@@ -38,6 +38,10 @@ class ActiveDirectory(Model):
38
38
:param site: The Active Directory site the service will limit Domain
39
39
Controller discovery to
40
40
: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]
41
45
"""
42
46
43
47
_attribute_map = {
@@ -50,9 +54,10 @@ class ActiveDirectory(Model):
50
54
'smb_server_name' : {'key' : 'smbServerName' , 'type' : 'str' },
51
55
'organizational_unit' : {'key' : 'organizationalUnit' , 'type' : 'str' },
52
56
'site' : {'key' : 'site' , 'type' : 'str' },
57
+ 'backup_operators' : {'key' : 'backupOperators' , 'type' : '[str]' },
53
58
}
54
59
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 :
56
61
super (ActiveDirectory , self ).__init__ (** kwargs )
57
62
self .active_directory_id = active_directory_id
58
63
self .username = username
@@ -63,6 +68,7 @@ def __init__(self, *, active_directory_id: str=None, username: str=None, passwor
63
68
self .smb_server_name = smb_server_name
64
69
self .organizational_unit = organizational_unit
65
70
self .site = site
71
+ self .backup_operators = backup_operators
66
72
67
73
68
74
class AuthorizeRequest (Model ):
@@ -242,9 +248,10 @@ class ExportPolicyRule(Model):
242
248
:type unix_read_write: bool
243
249
:param cifs: Allows CIFS protocol
244
250
:type cifs: bool
245
- :param nfsv3: Allows NFSv3 protocol
251
+ :param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes
246
252
: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
248
255
:type nfsv41: bool
249
256
:param allowed_clients: Client ingress specification as comma separated
250
257
string with IPv4 CIDRs, IPv4 host addresses and host names
@@ -825,9 +832,6 @@ class Snapshot(Model):
825
832
:vartype type: str
826
833
:ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot
827
834
:vartype snapshot_id: str
828
- :param file_system_id: fileSystemId. UUID v4 used to identify the
829
- FileSystem
830
- :type file_system_id: str
831
835
:ivar created: name. The creation date of the snapshot
832
836
:vartype created: datetime
833
837
:ivar provisioning_state: Azure lifecycle management
@@ -840,7 +844,6 @@ class Snapshot(Model):
840
844
'name' : {'readonly' : True },
841
845
'type' : {'readonly' : True },
842
846
'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}$' },
844
847
'created' : {'readonly' : True },
845
848
'provisioning_state' : {'readonly' : True },
846
849
}
@@ -851,19 +854,17 @@ class Snapshot(Model):
851
854
'name' : {'key' : 'name' , 'type' : 'str' },
852
855
'type' : {'key' : 'type' , 'type' : 'str' },
853
856
'snapshot_id' : {'key' : 'properties.snapshotId' , 'type' : 'str' },
854
- 'file_system_id' : {'key' : 'properties.fileSystemId' , 'type' : 'str' },
855
857
'created' : {'key' : 'properties.created' , 'type' : 'iso-8601' },
856
858
'provisioning_state' : {'key' : 'properties.provisioningState' , 'type' : 'str' },
857
859
}
858
860
859
- def __init__ (self , * , location : str , file_system_id : str = None , ** kwargs ) -> None :
861
+ def __init__ (self , * , location : str , ** kwargs ) -> None :
860
862
super (Snapshot , self ).__init__ (** kwargs )
861
863
self .location = location
862
864
self .id = None
863
865
self .name = None
864
866
self .type = None
865
867
self .snapshot_id = None
866
- self .file_system_id = file_system_id
867
868
self .created = None
868
869
self .provisioning_state = None
869
870
@@ -926,6 +927,10 @@ class Volume(Model):
926
927
~azure.mgmt.netapp.models.VolumePropertiesDataProtection
927
928
:param is_restoring: Restoring
928
929
: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
929
934
"""
930
935
931
936
_validation = {
@@ -962,9 +967,10 @@ class Volume(Model):
962
967
'volume_type' : {'key' : 'properties.volumeType' , 'type' : 'str' },
963
968
'data_protection' : {'key' : 'properties.dataProtection' , 'type' : 'VolumePropertiesDataProtection' },
964
969
'is_restoring' : {'key' : 'properties.isRestoring' , 'type' : 'bool' },
970
+ 'snapshot_directory_visible' : {'key' : 'properties.snapshotDirectoryVisible' , 'type' : 'bool' },
965
971
}
966
972
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 :
968
974
super (Volume , self ).__init__ (** kwargs )
969
975
self .location = location
970
976
self .id = None
@@ -985,6 +991,7 @@ def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=N
985
991
self .volume_type = volume_type
986
992
self .data_protection = data_protection
987
993
self .is_restoring = is_restoring
994
+ self .snapshot_directory_visible = snapshot_directory_visible
988
995
989
996
990
997
class VolumePatch (Model ):
@@ -1073,15 +1080,19 @@ class VolumePropertiesDataProtection(Model):
1073
1080
1074
1081
:param replication: Replication. Replication properties
1075
1082
:type replication: ~azure.mgmt.netapp.models.ReplicationObject
1083
+ :param snapshot: Snapshot. Snapshot properties.
1084
+ :type snapshot: ~azure.mgmt.netapp.models.VolumeSnapshotProperties
1076
1085
"""
1077
1086
1078
1087
_attribute_map = {
1079
1088
'replication' : {'key' : 'replication' , 'type' : 'ReplicationObject' },
1089
+ 'snapshot' : {'key' : 'snapshot' , 'type' : 'VolumeSnapshotProperties' },
1080
1090
}
1081
1091
1082
- def __init__ (self , * , replication = None , ** kwargs ) -> None :
1092
+ def __init__ (self , * , replication = None , snapshot = None , ** kwargs ) -> None :
1083
1093
super (VolumePropertiesDataProtection , self ).__init__ (** kwargs )
1084
1094
self .replication = replication
1095
+ self .snapshot = snapshot
1085
1096
1086
1097
1087
1098
class VolumePropertiesExportPolicy (Model ):
@@ -1116,3 +1127,19 @@ class VolumeRevert(Model):
1116
1127
def __init__ (self , * , snapshot_id : str = None , ** kwargs ) -> None :
1117
1128
super (VolumeRevert , self ).__init__ (** kwargs )
1118
1129
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