Skip to content

Commit b98b4b6

Browse files
qiaozhaAutorestCI
andauthored
release-for-mgmt-netapp-0.12.0 (Azure#12792)
Co-authored-by: Azure SDK Bot <[email protected]>
1 parent 284f0c1 commit b98b4b6

32 files changed

+6559
-8156
lines changed

sdk/netapp/azure-mgmt-netapp/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Release History
22

3+
## 0.12.0 (2020-07-30)
4+
5+
**Features**
6+
7+
- Model ActiveDirectory has a new parameter backup_operators
8+
- Model VolumePropertiesDataProtection has a new parameter snapshot
9+
- Model Volume has a new parameter snapshot_directory_visible
10+
11+
**Breaking changes**
12+
13+
- Operation SnapshotsOperations.create has a new signature
14+
- Model Snapshot no longer has parameter file_system_id
15+
16+
317
## 0.11.0 (2020-07-09)
418

519
**Breaking changes**

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_azure_net_app_files_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858
super(AzureNetAppFilesManagementClient, self).__init__(self.config.credentials, self.config)
5959

6060
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
61-
self.api_version = '2019-11-01'
61+
self.api_version = '2020-02-01'
6262
self._serialize = Serializer(client_models)
6363
self._deserialize = Deserializer(client_models)
6464

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from ._models_py3 import VolumePropertiesDataProtection
3636
from ._models_py3 import VolumePropertiesExportPolicy
3737
from ._models_py3 import VolumeRevert
38+
from ._models_py3 import VolumeSnapshotProperties
3839
except (SyntaxError, ImportError):
3940
from ._models import ActiveDirectory
4041
from ._models import AuthorizeRequest
@@ -61,6 +62,7 @@
6162
from ._models import VolumePropertiesDataProtection
6263
from ._models import VolumePropertiesExportPolicy
6364
from ._models import VolumeRevert
65+
from ._models import VolumeSnapshotProperties
6466
from ._paged_models import CapacityPoolPaged
6567
from ._paged_models import NetAppAccountPaged
6668
from ._paged_models import OperationPaged
@@ -102,6 +104,7 @@
102104
'VolumePropertiesDataProtection',
103105
'VolumePropertiesExportPolicy',
104106
'VolumeRevert',
107+
'VolumeSnapshotProperties',
105108
'OperationPaged',
106109
'NetAppAccountPaged',
107110
'CapacityPoolPaged',

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class ActiveDirectory(Model):
3838
:param site: The Active Directory site the service will limit Domain
3939
Controller discovery to
4040
:type site: str
41+
:param backup_operators: Users to be added to the Built-in Backup Operator
42+
active directory group. A list of unique usernames without domain
43+
specifier
44+
:type backup_operators: list[str]
4145
"""
4246

4347
_attribute_map = {
@@ -50,6 +54,7 @@ class ActiveDirectory(Model):
5054
'smb_server_name': {'key': 'smbServerName', 'type': 'str'},
5155
'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'},
5256
'site': {'key': 'site', 'type': 'str'},
57+
'backup_operators': {'key': 'backupOperators', 'type': '[str]'},
5358
}
5459

5560
def __init__(self, **kwargs):
@@ -63,6 +68,7 @@ def __init__(self, **kwargs):
6368
self.smb_server_name = kwargs.get('smb_server_name', None)
6469
self.organizational_unit = kwargs.get('organizational_unit', None)
6570
self.site = kwargs.get('site', None)
71+
self.backup_operators = kwargs.get('backup_operators', None)
6672

6773

6874
class AuthorizeRequest(Model):
@@ -242,9 +248,10 @@ class ExportPolicyRule(Model):
242248
:type unix_read_write: bool
243249
:param cifs: Allows CIFS protocol
244250
:type cifs: bool
245-
:param nfsv3: Allows NFSv3 protocol
251+
:param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes
246252
:type nfsv3: bool
247-
:param nfsv41: Allows NFSv4.1 protocol
253+
:param nfsv41: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type
254+
volumes
248255
:type nfsv41: bool
249256
:param allowed_clients: Client ingress specification as comma separated
250257
string with IPv4 CIDRs, IPv4 host addresses and host names
@@ -825,9 +832,6 @@ class Snapshot(Model):
825832
:vartype type: str
826833
:ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot
827834
:vartype snapshot_id: str
828-
:param file_system_id: fileSystemId. UUID v4 used to identify the
829-
FileSystem
830-
:type file_system_id: str
831835
:ivar created: name. The creation date of the snapshot
832836
:vartype created: datetime
833837
:ivar provisioning_state: Azure lifecycle management
@@ -840,7 +844,6 @@ class Snapshot(Model):
840844
'name': {'readonly': True},
841845
'type': {'readonly': True},
842846
'snapshot_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
843-
'file_system_id': {'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
844847
'created': {'readonly': True},
845848
'provisioning_state': {'readonly': True},
846849
}
@@ -851,7 +854,6 @@ class Snapshot(Model):
851854
'name': {'key': 'name', 'type': 'str'},
852855
'type': {'key': 'type', 'type': 'str'},
853856
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
854-
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
855857
'created': {'key': 'properties.created', 'type': 'iso-8601'},
856858
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
857859
}
@@ -863,7 +865,6 @@ def __init__(self, **kwargs):
863865
self.name = None
864866
self.type = None
865867
self.snapshot_id = None
866-
self.file_system_id = kwargs.get('file_system_id', None)
867868
self.created = None
868869
self.provisioning_state = None
869870

@@ -926,6 +927,10 @@ class Volume(Model):
926927
~azure.mgmt.netapp.models.VolumePropertiesDataProtection
927928
:param is_restoring: Restoring
928929
:type is_restoring: bool
930+
:param snapshot_directory_visible: If enabled (true) the volume will
931+
contain a read-only .snapshot directory which provides access to each of
932+
the volume's snapshots (default to true).
933+
:type snapshot_directory_visible: bool
929934
"""
930935

931936
_validation = {
@@ -962,6 +967,7 @@ class Volume(Model):
962967
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
963968
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
964969
'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'},
970+
'snapshot_directory_visible': {'key': 'properties.snapshotDirectoryVisible', 'type': 'bool'},
965971
}
966972

967973
def __init__(self, **kwargs):
@@ -985,6 +991,7 @@ def __init__(self, **kwargs):
985991
self.volume_type = kwargs.get('volume_type', None)
986992
self.data_protection = kwargs.get('data_protection', None)
987993
self.is_restoring = kwargs.get('is_restoring', None)
994+
self.snapshot_directory_visible = kwargs.get('snapshot_directory_visible', None)
988995

989996

990997
class VolumePatch(Model):
@@ -1073,15 +1080,19 @@ class VolumePropertiesDataProtection(Model):
10731080
10741081
:param replication: Replication. Replication properties
10751082
:type replication: ~azure.mgmt.netapp.models.ReplicationObject
1083+
:param snapshot: Snapshot. Snapshot properties.
1084+
:type snapshot: ~azure.mgmt.netapp.models.VolumeSnapshotProperties
10761085
"""
10771086

10781087
_attribute_map = {
10791088
'replication': {'key': 'replication', 'type': 'ReplicationObject'},
1089+
'snapshot': {'key': 'snapshot', 'type': 'VolumeSnapshotProperties'},
10801090
}
10811091

10821092
def __init__(self, **kwargs):
10831093
super(VolumePropertiesDataProtection, self).__init__(**kwargs)
10841094
self.replication = kwargs.get('replication', None)
1095+
self.snapshot = kwargs.get('snapshot', None)
10851096

10861097

10871098
class VolumePropertiesExportPolicy(Model):
@@ -1116,3 +1127,19 @@ class VolumeRevert(Model):
11161127
def __init__(self, **kwargs):
11171128
super(VolumeRevert, self).__init__(**kwargs)
11181129
self.snapshot_id = kwargs.get('snapshot_id', None)
1130+
1131+
1132+
class VolumeSnapshotProperties(Model):
1133+
"""Volume Snapshot Properties.
1134+
1135+
:param snapshot_policy_id: Snapshot Policy ResourceId
1136+
:type snapshot_policy_id: str
1137+
"""
1138+
1139+
_attribute_map = {
1140+
'snapshot_policy_id': {'key': 'snapshotPolicyId', 'type': 'str'},
1141+
}
1142+
1143+
def __init__(self, **kwargs):
1144+
super(VolumeSnapshotProperties, self).__init__(**kwargs)
1145+
self.snapshot_policy_id = kwargs.get('snapshot_policy_id', None)

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class ActiveDirectory(Model):
3838
:param site: The Active Directory site the service will limit Domain
3939
Controller discovery to
4040
:type site: str
41+
:param backup_operators: Users to be added to the Built-in Backup Operator
42+
active directory group. A list of unique usernames without domain
43+
specifier
44+
:type backup_operators: list[str]
4145
"""
4246

4347
_attribute_map = {
@@ -50,9 +54,10 @@ class ActiveDirectory(Model):
5054
'smb_server_name': {'key': 'smbServerName', 'type': 'str'},
5155
'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'},
5256
'site': {'key': 'site', 'type': 'str'},
57+
'backup_operators': {'key': 'backupOperators', 'type': '[str]'},
5358
}
5459

55-
def __init__(self, *, active_directory_id: str=None, username: str=None, password: str=None, domain: str=None, dns: str=None, status: str=None, smb_server_name: str=None, organizational_unit: str=None, site: str=None, **kwargs) -> None:
60+
def __init__(self, *, active_directory_id: str=None, username: str=None, password: str=None, domain: str=None, dns: str=None, status: str=None, smb_server_name: str=None, organizational_unit: str=None, site: str=None, backup_operators=None, **kwargs) -> None:
5661
super(ActiveDirectory, self).__init__(**kwargs)
5762
self.active_directory_id = active_directory_id
5863
self.username = username
@@ -63,6 +68,7 @@ def __init__(self, *, active_directory_id: str=None, username: str=None, passwor
6368
self.smb_server_name = smb_server_name
6469
self.organizational_unit = organizational_unit
6570
self.site = site
71+
self.backup_operators = backup_operators
6672

6773

6874
class AuthorizeRequest(Model):
@@ -242,9 +248,10 @@ class ExportPolicyRule(Model):
242248
:type unix_read_write: bool
243249
:param cifs: Allows CIFS protocol
244250
:type cifs: bool
245-
:param nfsv3: Allows NFSv3 protocol
251+
:param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes
246252
:type nfsv3: bool
247-
:param nfsv41: Allows NFSv4.1 protocol
253+
:param nfsv41: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type
254+
volumes
248255
:type nfsv41: bool
249256
:param allowed_clients: Client ingress specification as comma separated
250257
string with IPv4 CIDRs, IPv4 host addresses and host names
@@ -825,9 +832,6 @@ class Snapshot(Model):
825832
:vartype type: str
826833
:ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot
827834
:vartype snapshot_id: str
828-
:param file_system_id: fileSystemId. UUID v4 used to identify the
829-
FileSystem
830-
:type file_system_id: str
831835
:ivar created: name. The creation date of the snapshot
832836
:vartype created: datetime
833837
:ivar provisioning_state: Azure lifecycle management
@@ -840,7 +844,6 @@ class Snapshot(Model):
840844
'name': {'readonly': True},
841845
'type': {'readonly': True},
842846
'snapshot_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
843-
'file_system_id': {'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'},
844847
'created': {'readonly': True},
845848
'provisioning_state': {'readonly': True},
846849
}
@@ -851,19 +854,17 @@ class Snapshot(Model):
851854
'name': {'key': 'name', 'type': 'str'},
852855
'type': {'key': 'type', 'type': 'str'},
853856
'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'},
854-
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
855857
'created': {'key': 'properties.created', 'type': 'iso-8601'},
856858
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
857859
}
858860

859-
def __init__(self, *, location: str, file_system_id: str=None, **kwargs) -> None:
861+
def __init__(self, *, location: str, **kwargs) -> None:
860862
super(Snapshot, self).__init__(**kwargs)
861863
self.location = location
862864
self.id = None
863865
self.name = None
864866
self.type = None
865867
self.snapshot_id = None
866-
self.file_system_id = file_system_id
867868
self.created = None
868869
self.provisioning_state = None
869870

@@ -926,6 +927,10 @@ class Volume(Model):
926927
~azure.mgmt.netapp.models.VolumePropertiesDataProtection
927928
:param is_restoring: Restoring
928929
:type is_restoring: bool
930+
:param snapshot_directory_visible: If enabled (true) the volume will
931+
contain a read-only .snapshot directory which provides access to each of
932+
the volume's snapshots (default to true).
933+
:type snapshot_directory_visible: bool
929934
"""
930935

931936
_validation = {
@@ -962,9 +967,10 @@ class Volume(Model):
962967
'volume_type': {'key': 'properties.volumeType', 'type': 'str'},
963968
'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'},
964969
'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'},
970+
'snapshot_directory_visible': {'key': 'properties.snapshotDirectoryVisible', 'type': 'bool'},
965971
}
966972

967-
def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=None, service_level="Premium", usage_threshold: int=107374182400, export_policy=None, protocol_types=None, snapshot_id: str=None, mount_targets=None, volume_type: str=None, data_protection=None, is_restoring: bool=None, **kwargs) -> None:
973+
def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=None, service_level="Premium", usage_threshold: int=107374182400, export_policy=None, protocol_types=None, snapshot_id: str=None, mount_targets=None, volume_type: str=None, data_protection=None, is_restoring: bool=None, snapshot_directory_visible: bool=None, **kwargs) -> None:
968974
super(Volume, self).__init__(**kwargs)
969975
self.location = location
970976
self.id = None
@@ -985,6 +991,7 @@ def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=N
985991
self.volume_type = volume_type
986992
self.data_protection = data_protection
987993
self.is_restoring = is_restoring
994+
self.snapshot_directory_visible = snapshot_directory_visible
988995

989996

990997
class VolumePatch(Model):
@@ -1073,15 +1080,19 @@ class VolumePropertiesDataProtection(Model):
10731080
10741081
:param replication: Replication. Replication properties
10751082
:type replication: ~azure.mgmt.netapp.models.ReplicationObject
1083+
:param snapshot: Snapshot. Snapshot properties.
1084+
:type snapshot: ~azure.mgmt.netapp.models.VolumeSnapshotProperties
10761085
"""
10771086

10781087
_attribute_map = {
10791088
'replication': {'key': 'replication', 'type': 'ReplicationObject'},
1089+
'snapshot': {'key': 'snapshot', 'type': 'VolumeSnapshotProperties'},
10801090
}
10811091

1082-
def __init__(self, *, replication=None, **kwargs) -> None:
1092+
def __init__(self, *, replication=None, snapshot=None, **kwargs) -> None:
10831093
super(VolumePropertiesDataProtection, self).__init__(**kwargs)
10841094
self.replication = replication
1095+
self.snapshot = snapshot
10851096

10861097

10871098
class VolumePropertiesExportPolicy(Model):
@@ -1116,3 +1127,19 @@ class VolumeRevert(Model):
11161127
def __init__(self, *, snapshot_id: str=None, **kwargs) -> None:
11171128
super(VolumeRevert, self).__init__(**kwargs)
11181129
self.snapshot_id = snapshot_id
1130+
1131+
1132+
class VolumeSnapshotProperties(Model):
1133+
"""Volume Snapshot Properties.
1134+
1135+
:param snapshot_policy_id: Snapshot Policy ResourceId
1136+
:type snapshot_policy_id: str
1137+
"""
1138+
1139+
_attribute_map = {
1140+
'snapshot_policy_id': {'key': 'snapshotPolicyId', 'type': 'str'},
1141+
}
1142+
1143+
def __init__(self, *, snapshot_policy_id: str=None, **kwargs) -> None:
1144+
super(VolumeSnapshotProperties, self).__init__(**kwargs)
1145+
self.snapshot_policy_id = snapshot_policy_id

0 commit comments

Comments
 (0)