Skip to content

Commit f29cb38

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] netapp/resource-manager (#4622)
* [AutoPR netapp/resource-manager] Update to Release 3.5 standard (pre GA) (#4556) * Generated from 46f3cb6030777135484c1bdc4b1d2146053172f9 NFSAAS-1875 Update to R3.5 Standard (#11) * Generated from 084552639aef23de670f0dc26ba5c9496eb6daff Nfsaas 1875 swagger update (#12) * NFSAAS-1875 Update to R3.5 Standard * NFSAAS-1875 update to R3.5 standard * Generated from 0af27c76c27c57415609e59ba20027b3808ba30e Nfsaas 1875 swagger update (#13) * NFSAAS-1875 Update to R3.5 Standard * NFSAAS-1875 update to R3.5 standard * NFSAAS-1875 updated from review comments * Generated from c219e4e969a6443efa588eadc8ed77f611baa53e (#4638) Merge pull request #15 from leonardbf/NFSAAS-1875-correction NFSAAS-1875 small correction * updated versioning and change log * NFSAAS-2236 update python SDK tests for R3.5 (#4684) * Update HISTORY.rst
1 parent 874ca27 commit f29cb38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3392
-1702
lines changed

azure-mgmt-netapp/HISTORY.rst

+20
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@
33
Release History
44
===============
55

6+
0.3.0 (2019-03-25)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model VolumePatch has a new parameter export_policy
12+
- Model NetAppAccount has a new parameter active_directories
13+
- Model Volume has a new parameter export_policy
14+
- Model MountTarget has a new parameter smb_server_fqdn
15+
- Model MountTarget has a new parameter subnet
16+
17+
**Breaking changes**
18+
19+
- Operation PoolsOperations.update has a new signature
20+
- Model MountTarget no longer has parameter vlan_id
21+
- Operation AccountsOperations.update has a new signature
22+
- Operation AccountsOperations.create_or_update has a new signature
23+
- Model CapacityPoolPatch has a new signature
24+
- Model NetAppAccountPatch has a new signature
25+
626
0.2.0 (2019-03-04)
727
++++++++++++++++++
828

azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py

+12
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
from .metric_specification_py3 import MetricSpecification
1616
from .service_specification_py3 import ServiceSpecification
1717
from .operation_py3 import Operation
18+
from .active_directory_py3 import ActiveDirectory
1819
from .net_app_account_py3 import NetAppAccount
1920
from .net_app_account_patch_py3 import NetAppAccountPatch
2021
from .capacity_pool_py3 import CapacityPool
2122
from .capacity_pool_patch_py3 import CapacityPoolPatch
23+
from .export_policy_rule_py3 import ExportPolicyRule
24+
from .volume_properties_export_policy_py3 import VolumePropertiesExportPolicy
2225
from .volume_py3 import Volume
26+
from .volume_patch_properties_export_policy_py3 import VolumePatchPropertiesExportPolicy
2327
from .volume_patch_py3 import VolumePatch
2428
from .mount_target_py3 import MountTarget
2529
from .snapshot_py3 import Snapshot
@@ -31,11 +35,15 @@
3135
from .metric_specification import MetricSpecification
3236
from .service_specification import ServiceSpecification
3337
from .operation import Operation
38+
from .active_directory import ActiveDirectory
3439
from .net_app_account import NetAppAccount
3540
from .net_app_account_patch import NetAppAccountPatch
3641
from .capacity_pool import CapacityPool
3742
from .capacity_pool_patch import CapacityPoolPatch
43+
from .export_policy_rule import ExportPolicyRule
44+
from .volume_properties_export_policy import VolumePropertiesExportPolicy
3845
from .volume import Volume
46+
from .volume_patch_properties_export_policy import VolumePatchPropertiesExportPolicy
3947
from .volume_patch import VolumePatch
4048
from .mount_target import MountTarget
4149
from .snapshot import Snapshot
@@ -57,11 +65,15 @@
5765
'MetricSpecification',
5866
'ServiceSpecification',
5967
'Operation',
68+
'ActiveDirectory',
6069
'NetAppAccount',
6170
'NetAppAccountPatch',
6271
'CapacityPool',
6372
'CapacityPoolPatch',
73+
'ExportPolicyRule',
74+
'VolumePropertiesExportPolicy',
6475
'Volume',
76+
'VolumePatchPropertiesExportPolicy',
6577
'VolumePatch',
6678
'MountTarget',
6779
'Snapshot',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ActiveDirectory(Model):
16+
"""Active Directory.
17+
18+
:param active_directory_id: Id of the Active Directory
19+
:type active_directory_id: str
20+
:param username: Username of Active Directory domain administrator
21+
:type username: str
22+
:param password: Plain text password of Active Directory domain
23+
administrator
24+
:type password: str
25+
:param domain: Name of the Active Directory domain
26+
:type domain: str
27+
:param d_ns: Comma separated list of DNS server IP addresses for the
28+
Active Directory domain
29+
:type d_ns: str
30+
:param status: Status of the Active Directory
31+
:type status: str
32+
:param s_mb_server_name: NetBIOS name of the SMB server. This name will be
33+
registered as a computer account in the AD and used to mount volumes
34+
:type s_mb_server_name: str
35+
:param organizational_unit: The Organizational Unit (OU) within the
36+
Windows Active Directory
37+
:type organizational_unit: str
38+
"""
39+
40+
_attribute_map = {
41+
'active_directory_id': {'key': 'activeDirectoryId', 'type': 'str'},
42+
'username': {'key': 'username', 'type': 'str'},
43+
'password': {'key': 'password', 'type': 'str'},
44+
'domain': {'key': 'domain', 'type': 'str'},
45+
'd_ns': {'key': 'dNS', 'type': 'str'},
46+
'status': {'key': 'status', 'type': 'str'},
47+
's_mb_server_name': {'key': 'sMBServerName', 'type': 'str'},
48+
'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'},
49+
}
50+
51+
def __init__(self, **kwargs):
52+
super(ActiveDirectory, self).__init__(**kwargs)
53+
self.active_directory_id = kwargs.get('active_directory_id', None)
54+
self.username = kwargs.get('username', None)
55+
self.password = kwargs.get('password', None)
56+
self.domain = kwargs.get('domain', None)
57+
self.d_ns = kwargs.get('d_ns', None)
58+
self.status = kwargs.get('status', None)
59+
self.s_mb_server_name = kwargs.get('s_mb_server_name', None)
60+
self.organizational_unit = kwargs.get('organizational_unit', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ActiveDirectory(Model):
16+
"""Active Directory.
17+
18+
:param active_directory_id: Id of the Active Directory
19+
:type active_directory_id: str
20+
:param username: Username of Active Directory domain administrator
21+
:type username: str
22+
:param password: Plain text password of Active Directory domain
23+
administrator
24+
:type password: str
25+
:param domain: Name of the Active Directory domain
26+
:type domain: str
27+
:param d_ns: Comma separated list of DNS server IP addresses for the
28+
Active Directory domain
29+
:type d_ns: str
30+
:param status: Status of the Active Directory
31+
:type status: str
32+
:param s_mb_server_name: NetBIOS name of the SMB server. This name will be
33+
registered as a computer account in the AD and used to mount volumes
34+
:type s_mb_server_name: str
35+
:param organizational_unit: The Organizational Unit (OU) within the
36+
Windows Active Directory
37+
:type organizational_unit: str
38+
"""
39+
40+
_attribute_map = {
41+
'active_directory_id': {'key': 'activeDirectoryId', 'type': 'str'},
42+
'username': {'key': 'username', 'type': 'str'},
43+
'password': {'key': 'password', 'type': 'str'},
44+
'domain': {'key': 'domain', 'type': 'str'},
45+
'd_ns': {'key': 'dNS', 'type': 'str'},
46+
'status': {'key': 'status', 'type': 'str'},
47+
's_mb_server_name': {'key': 'sMBServerName', 'type': 'str'},
48+
'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'},
49+
}
50+
51+
def __init__(self, *, active_directory_id: str=None, username: str=None, password: str=None, domain: str=None, d_ns: str=None, status: str=None, s_mb_server_name: str=None, organizational_unit: str=None, **kwargs) -> None:
52+
super(ActiveDirectory, self).__init__(**kwargs)
53+
self.active_directory_id = active_directory_id
54+
self.username = username
55+
self.password = password
56+
self.domain = domain
57+
self.d_ns = d_ns
58+
self.status = status
59+
self.s_mb_server_name = s_mb_server_name
60+
self.organizational_unit = organizational_unit

azure-mgmt-netapp/azure/mgmt/netapp/models/azure_net_app_files_management_client_enums.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ class ServiceLevel(str, Enum):
1616

1717
standard = "Standard" #: Standard service level
1818
premium = "Premium" #: Premium service level
19-
extreme = "Extreme" #: Extreme service level
19+
ultra = "Ultra" #: Ultra service level

azure-mgmt-netapp/azure/mgmt/netapp/models/capacity_pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CapacityPool(Model):
3737
value: 4398046511104 .
3838
:type size: long
3939
:param service_level: serviceLevel. The service level of the file system.
40-
Possible values include: 'Standard', 'Premium', 'Extreme'. Default value:
40+
Possible values include: 'Standard', 'Premium', 'Ultra'. Default value:
4141
"Premium" .
4242
:type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
4343
:ivar provisioning_state: Azure lifecycle management

azure-mgmt-netapp/azure/mgmt/netapp/models/capacity_pool_patch.py

+38
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,52 @@
1515
class CapacityPoolPatch(Model):
1616
"""Capacity pool patch resource.
1717
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:param location: Resource location
22+
:type location: str
23+
:ivar id: Resource Id
24+
:vartype id: str
25+
:ivar name: Resource name
26+
:vartype name: str
27+
:ivar type: Resource type
28+
:vartype type: str
1829
:param tags: Resource tags
1930
:type tags: object
31+
:param size: size. Provisioned size of the pool (in bytes). Allowed values
32+
are in 4TiB chunks (value must be multiply of 4398046511104). Default
33+
value: 4398046511104 .
34+
:type size: long
35+
:param service_level: serviceLevel. The service level of the file system.
36+
Possible values include: 'Standard', 'Premium', 'Ultra'. Default value:
37+
"Premium" .
38+
:type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
2039
"""
2140

41+
_validation = {
42+
'id': {'readonly': True},
43+
'name': {'readonly': True},
44+
'type': {'readonly': True},
45+
'size': {'maximum': 549755813888000, 'minimum': 4398046511104},
46+
}
47+
2248
_attribute_map = {
49+
'location': {'key': 'location', 'type': 'str'},
50+
'id': {'key': 'id', 'type': 'str'},
51+
'name': {'key': 'name', 'type': 'str'},
52+
'type': {'key': 'type', 'type': 'str'},
2353
'tags': {'key': 'tags', 'type': 'object'},
54+
'size': {'key': 'properties.size', 'type': 'long'},
55+
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
2456
}
2557

2658
def __init__(self, **kwargs):
2759
super(CapacityPoolPatch, self).__init__(**kwargs)
60+
self.location = kwargs.get('location', None)
61+
self.id = None
62+
self.name = None
63+
self.type = None
2864
self.tags = kwargs.get('tags', None)
65+
self.size = kwargs.get('size', 4398046511104)
66+
self.service_level = kwargs.get('service_level', "Premium")

azure-mgmt-netapp/azure/mgmt/netapp/models/capacity_pool_patch_py3.py

+39-1
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,52 @@
1515
class CapacityPoolPatch(Model):
1616
"""Capacity pool patch resource.
1717
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:param location: Resource location
22+
:type location: str
23+
:ivar id: Resource Id
24+
:vartype id: str
25+
:ivar name: Resource name
26+
:vartype name: str
27+
:ivar type: Resource type
28+
:vartype type: str
1829
:param tags: Resource tags
1930
:type tags: object
31+
:param size: size. Provisioned size of the pool (in bytes). Allowed values
32+
are in 4TiB chunks (value must be multiply of 4398046511104). Default
33+
value: 4398046511104 .
34+
:type size: long
35+
:param service_level: serviceLevel. The service level of the file system.
36+
Possible values include: 'Standard', 'Premium', 'Ultra'. Default value:
37+
"Premium" .
38+
:type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
2039
"""
2140

41+
_validation = {
42+
'id': {'readonly': True},
43+
'name': {'readonly': True},
44+
'type': {'readonly': True},
45+
'size': {'maximum': 549755813888000, 'minimum': 4398046511104},
46+
}
47+
2248
_attribute_map = {
49+
'location': {'key': 'location', 'type': 'str'},
50+
'id': {'key': 'id', 'type': 'str'},
51+
'name': {'key': 'name', 'type': 'str'},
52+
'type': {'key': 'type', 'type': 'str'},
2353
'tags': {'key': 'tags', 'type': 'object'},
54+
'size': {'key': 'properties.size', 'type': 'long'},
55+
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
2456
}
2557

26-
def __init__(self, *, tags=None, **kwargs) -> None:
58+
def __init__(self, *, location: str=None, tags=None, size: int=4398046511104, service_level="Premium", **kwargs) -> None:
2759
super(CapacityPoolPatch, self).__init__(**kwargs)
60+
self.location = location
61+
self.id = None
62+
self.name = None
63+
self.type = None
2864
self.tags = tags
65+
self.size = size
66+
self.service_level = service_level

azure-mgmt-netapp/azure/mgmt/netapp/models/capacity_pool_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CapacityPool(Model):
3737
value: 4398046511104 .
3838
:type size: long
3939
:param service_level: serviceLevel. The service level of the file system.
40-
Possible values include: 'Standard', 'Premium', 'Extreme'. Default value:
40+
Possible values include: 'Standard', 'Premium', 'Ultra'. Default value:
4141
"Premium" .
4242
:type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
4343
:ivar provisioning_state: Azure lifecycle management
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ExportPolicyRule(Model):
16+
"""Volume Export Policy Rule.
17+
18+
:param rule_index: Order index
19+
:type rule_index: int
20+
:param unix_read_only: Read only access
21+
:type unix_read_only: bool
22+
:param unix_read_write: Read and write access
23+
:type unix_read_write: bool
24+
:param cifs: Allows CIFS protocol
25+
:type cifs: bool
26+
:param nfsv3: Allows NFSv3 protocol
27+
:type nfsv3: bool
28+
:param nfsv4: Allows NFSv4 protocol
29+
:type nfsv4: bool
30+
:param allowed_clients: Client ingress specification as comma separated
31+
string with IPv4 CIDRs, IPv4 host addresses and host names
32+
:type allowed_clients: str
33+
"""
34+
35+
_attribute_map = {
36+
'rule_index': {'key': 'ruleIndex', 'type': 'int'},
37+
'unix_read_only': {'key': 'unixReadOnly', 'type': 'bool'},
38+
'unix_read_write': {'key': 'unixReadWrite', 'type': 'bool'},
39+
'cifs': {'key': 'cifs', 'type': 'bool'},
40+
'nfsv3': {'key': 'nfsv3', 'type': 'bool'},
41+
'nfsv4': {'key': 'nfsv4', 'type': 'bool'},
42+
'allowed_clients': {'key': 'allowedClients', 'type': 'str'},
43+
}
44+
45+
def __init__(self, **kwargs):
46+
super(ExportPolicyRule, self).__init__(**kwargs)
47+
self.rule_index = kwargs.get('rule_index', None)
48+
self.unix_read_only = kwargs.get('unix_read_only', None)
49+
self.unix_read_write = kwargs.get('unix_read_write', None)
50+
self.cifs = kwargs.get('cifs', None)
51+
self.nfsv3 = kwargs.get('nfsv3', None)
52+
self.nfsv4 = kwargs.get('nfsv4', None)
53+
self.allowed_clients = kwargs.get('allowed_clients', None)

0 commit comments

Comments
 (0)