Skip to content

Commit

Permalink
CodeGen from PR 12367 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 978586d0dbc548d23b7e79c7f29e421b95f9661b into 4ac3bbf
  • Loading branch information
SDKAuto committed Jan 19, 2021
1 parent cbfb037 commit 0af0d7c
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 33 deletions.
46 changes: 28 additions & 18 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class ActiveDirectory(Model):
Variables are only populated by the server, and will be ignored when
sending a request.
:param active_directory_id: Id of the Active Directory
:param active_directory_id: Id of the Active Directory. Default value:
"guid id" .
:type active_directory_id: str
:param username: Username of Active Directory domain administrator
:type username: str
Expand All @@ -40,7 +41,7 @@ class ActiveDirectory(Model):
registered as a computer account in the AD and used to mount volumes
:type smb_server_name: str
:param organizational_unit: The Organizational Unit (OU) within the
Windows Active Directory
Windows Active Directory. Default value: "CN=Computers" .
:type organizational_unit: str
:param site: The Active Directory site the service will limit Domain
Controller discovery to
Expand Down Expand Up @@ -103,15 +104,15 @@ class ActiveDirectory(Model):

def __init__(self, **kwargs):
super(ActiveDirectory, self).__init__(**kwargs)
self.active_directory_id = kwargs.get('active_directory_id', None)
self.active_directory_id = kwargs.get('active_directory_id', "guid id")
self.username = kwargs.get('username', None)
self.password = kwargs.get('password', None)
self.domain = kwargs.get('domain', None)
self.dns = kwargs.get('dns', None)
self.status = None
self.status_details = None
self.smb_server_name = kwargs.get('smb_server_name', None)
self.organizational_unit = kwargs.get('organizational_unit', None)
self.organizational_unit = kwargs.get('organizational_unit', "CN=Computers")
self.site = kwargs.get('site', None)
self.backup_operators = kwargs.get('backup_operators', None)
self.kdc_ip = kwargs.get('kdc_ip', None)
Expand Down Expand Up @@ -785,7 +786,7 @@ class ExportPolicyRule(Model):
:param kerberos5p_read_write: Kerberos5p Read and write access. To be use
with swagger version 2020-05-01 or later. Default value: False .
:type kerberos5p_read_write: bool
:param cifs: Allows CIFS protocol
:param cifs: Allows CIFS protocol. Default value: False .
:type cifs: bool
:param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes
:type nfsv3: bool
Expand Down Expand Up @@ -827,7 +828,7 @@ def __init__(self, **kwargs):
self.kerberos5i_read_write = kwargs.get('kerberos5i_read_write', False)
self.kerberos5p_read_only = kwargs.get('kerberos5p_read_only', False)
self.kerberos5p_read_write = kwargs.get('kerberos5p_read_write', False)
self.cifs = kwargs.get('cifs', None)
self.cifs = kwargs.get('cifs', False)
self.nfsv3 = kwargs.get('nfsv3', None)
self.nfsv41 = kwargs.get('nfsv41', None)
self.allowed_clients = kwargs.get('allowed_clients', None)
Expand Down Expand Up @@ -1758,6 +1759,8 @@ class Volume(Model):
:type tags: dict[str, str]
:ivar file_system_id: FileSystem ID. Unique FileSystem Identifier.
:vartype file_system_id: str
:ivar name1: Resource name
:vartype name1: str
:param creation_token: Required. Creation Token or File Path. A unique
file path for the volume. Used when creating mount targets
:type creation_token: str
Expand All @@ -1773,7 +1776,8 @@ class Volume(Model):
:param export_policy: exportPolicy. Set of export policy rules
:type export_policy:
~azure.mgmt.netapp.models.VolumePropertiesExportPolicy
:param protocol_types: protocolTypes. Set of protocol types
:param protocol_types: protocolTypes. Set of protocol types, default
NFSv3, CIFS for SMB protocol
:type protocol_types: list[str]
:ivar provisioning_state: Azure lifecycle management
:vartype provisioning_state: str
Expand All @@ -1789,8 +1793,9 @@ class Volume(Model):
:param subnet_id: Required. The Azure Resource URI for a delegated subnet.
Must have the delegation Microsoft.NetApp/volumes
:type subnet_id: str
:param mount_targets: mountTargets. List of mount targets
:type mount_targets: list[~azure.mgmt.netapp.models.MountTargetProperties]
:ivar mount_targets: mountTargets. List of mount targets
:vartype mount_targets:
list[~azure.mgmt.netapp.models.MountTargetProperties]
:param volume_type: What type of volume is this
:type volume_type: str
:param data_protection: DataProtection. DataProtection type volumes
Expand All @@ -1801,13 +1806,14 @@ class Volume(Model):
:type is_restoring: bool
:param snapshot_directory_visible: If enabled (true) the volume will
contain a read-only .snapshot directory which provides access to each of
the volume's snapshots (default to true).
the volume's snapshots (default to true). Default value: True .
:type snapshot_directory_visible: bool
:param kerberos_enabled: Describe if a volume is KerberosEnabled. To be
use with swagger version 2020-05-01 or later. Default value: False .
:type kerberos_enabled: bool
:param security_style: The security style of volume. Possible values
include: 'ntfs', 'unix'
:param security_style: The security style of volume, default unix, ntfs
for dual protocol or CIFS protocol. Possible values include: 'ntfs',
'unix'. Default value: "unix" .
:type security_style: str or ~azure.mgmt.netapp.models.SecurityStyle
:param smb_encryption: Enables encryption for in-flight smb3 data. Only
applicable for SMB/DualProtocol volume. To be used with swagger version
Expand All @@ -1818,7 +1824,7 @@ class Volume(Model):
False .
:type smb_continuously_available: bool
:param throughput_mibps: Maximum throughput in Mibps that can be achieved
by this volume.
by this volume. Default value: 0 .
:type throughput_mibps: float
"""

Expand All @@ -1828,14 +1834,16 @@ class Volume(Model):
'name': {'readonly': True},
'type': {'readonly': True},
'file_system_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}$'},
'name1': {'readonly': True},
'creation_token': {'required': True, 'max_length': 80, 'min_length': 1, 'pattern': r'^[a-zA-Z][a-zA-Z0-9\-]{0,79}$'},
'usage_threshold': {'required': True, 'maximum': 109951162777600, 'minimum': 107374182400},
'provisioning_state': {'readonly': True},
'snapshot_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}|(\\?([^\/]*[\/])*)([^\/]+)$'},
'backup_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}|(\\?([^\/]*[\/])*)([^\/]+)$'},
'baremetal_tenant_id': {'readonly': True},
'subnet_id': {'required': True},
'throughput_mibps': {'maximum': 4500, 'minimum': 1, 'multiple': 0.001},
'mount_targets': {'readonly': True},
'throughput_mibps': {'maximum': 4500, 'minimum': 0, 'multiple': 0.001},
}

_attribute_map = {
Expand All @@ -1845,6 +1853,7 @@ class Volume(Model):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
'name1': {'key': 'properties.name', 'type': 'str'},
'creation_token': {'key': 'properties.creationToken', 'type': 'str'},
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'},
Expand Down Expand Up @@ -1875,6 +1884,7 @@ def __init__(self, **kwargs):
self.type = None
self.tags = kwargs.get('tags', None)
self.file_system_id = None
self.name1 = None
self.creation_token = kwargs.get('creation_token', None)
self.service_level = kwargs.get('service_level', "Premium")
self.usage_threshold = kwargs.get('usage_threshold', 107374182400)
Expand All @@ -1885,16 +1895,16 @@ def __init__(self, **kwargs):
self.backup_id = kwargs.get('backup_id', None)
self.baremetal_tenant_id = None
self.subnet_id = kwargs.get('subnet_id', None)
self.mount_targets = kwargs.get('mount_targets', None)
self.mount_targets = None
self.volume_type = kwargs.get('volume_type', None)
self.data_protection = kwargs.get('data_protection', None)
self.is_restoring = kwargs.get('is_restoring', None)
self.snapshot_directory_visible = kwargs.get('snapshot_directory_visible', None)
self.snapshot_directory_visible = kwargs.get('snapshot_directory_visible', True)
self.kerberos_enabled = kwargs.get('kerberos_enabled', False)
self.security_style = kwargs.get('security_style', None)
self.security_style = kwargs.get('security_style', "unix")
self.smb_encryption = kwargs.get('smb_encryption', False)
self.smb_continuously_available = kwargs.get('smb_continuously_available', False)
self.throughput_mibps = kwargs.get('throughput_mibps', None)
self.throughput_mibps = kwargs.get('throughput_mibps', 0)


class VolumeBackupProperties(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class ActiveDirectory(Model):
Variables are only populated by the server, and will be ignored when
sending a request.
:param active_directory_id: Id of the Active Directory
:param active_directory_id: Id of the Active Directory. Default value:
"guid id" .
:type active_directory_id: str
:param username: Username of Active Directory domain administrator
:type username: str
Expand All @@ -40,7 +41,7 @@ class ActiveDirectory(Model):
registered as a computer account in the AD and used to mount volumes
:type smb_server_name: str
:param organizational_unit: The Organizational Unit (OU) within the
Windows Active Directory
Windows Active Directory. Default value: "CN=Computers" .
:type organizational_unit: str
:param site: The Active Directory site the service will limit Domain
Controller discovery to
Expand Down Expand Up @@ -101,7 +102,7 @@ class ActiveDirectory(Model):
'security_operators': {'key': 'securityOperators', 'type': '[str]'},
}

def __init__(self, *, active_directory_id: str=None, username: str=None, password: str=None, domain: str=None, dns: str=None, smb_server_name: str=None, organizational_unit: str=None, site: str=None, backup_operators=None, kdc_ip: str=None, ad_name: str=None, server_root_ca_certificate: str=None, aes_encryption: bool=None, ldap_signing: bool=None, security_operators=None, **kwargs) -> None:
def __init__(self, *, active_directory_id: str="guid id", username: str=None, password: str=None, domain: str=None, dns: str=None, smb_server_name: str=None, organizational_unit: str="CN=Computers", site: str=None, backup_operators=None, kdc_ip: str=None, ad_name: str=None, server_root_ca_certificate: str=None, aes_encryption: bool=None, ldap_signing: bool=None, security_operators=None, **kwargs) -> None:
super(ActiveDirectory, self).__init__(**kwargs)
self.active_directory_id = active_directory_id
self.username = username
Expand Down Expand Up @@ -785,7 +786,7 @@ class ExportPolicyRule(Model):
:param kerberos5p_read_write: Kerberos5p Read and write access. To be use
with swagger version 2020-05-01 or later. Default value: False .
:type kerberos5p_read_write: bool
:param cifs: Allows CIFS protocol
:param cifs: Allows CIFS protocol. Default value: False .
:type cifs: bool
:param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes
:type nfsv3: bool
Expand Down Expand Up @@ -816,7 +817,7 @@ class ExportPolicyRule(Model):
'has_root_access': {'key': 'hasRootAccess', 'type': 'bool'},
}

def __init__(self, *, rule_index: int=None, unix_read_only: bool=None, unix_read_write: bool=None, kerberos5_read_only: bool=False, kerberos5_read_write: bool=False, kerberos5i_read_only: bool=False, kerberos5i_read_write: bool=False, kerberos5p_read_only: bool=False, kerberos5p_read_write: bool=False, cifs: bool=None, nfsv3: bool=None, nfsv41: bool=None, allowed_clients: str=None, has_root_access: bool=True, **kwargs) -> None:
def __init__(self, *, rule_index: int=None, unix_read_only: bool=None, unix_read_write: bool=None, kerberos5_read_only: bool=False, kerberos5_read_write: bool=False, kerberos5i_read_only: bool=False, kerberos5i_read_write: bool=False, kerberos5p_read_only: bool=False, kerberos5p_read_write: bool=False, cifs: bool=False, nfsv3: bool=None, nfsv41: bool=None, allowed_clients: str=None, has_root_access: bool=True, **kwargs) -> None:
super(ExportPolicyRule, self).__init__(**kwargs)
self.rule_index = rule_index
self.unix_read_only = unix_read_only
Expand Down Expand Up @@ -1758,6 +1759,8 @@ class Volume(Model):
:type tags: dict[str, str]
:ivar file_system_id: FileSystem ID. Unique FileSystem Identifier.
:vartype file_system_id: str
:ivar name1: Resource name
:vartype name1: str
:param creation_token: Required. Creation Token or File Path. A unique
file path for the volume. Used when creating mount targets
:type creation_token: str
Expand All @@ -1773,7 +1776,8 @@ class Volume(Model):
:param export_policy: exportPolicy. Set of export policy rules
:type export_policy:
~azure.mgmt.netapp.models.VolumePropertiesExportPolicy
:param protocol_types: protocolTypes. Set of protocol types
:param protocol_types: protocolTypes. Set of protocol types, default
NFSv3, CIFS for SMB protocol
:type protocol_types: list[str]
:ivar provisioning_state: Azure lifecycle management
:vartype provisioning_state: str
Expand All @@ -1789,8 +1793,9 @@ class Volume(Model):
:param subnet_id: Required. The Azure Resource URI for a delegated subnet.
Must have the delegation Microsoft.NetApp/volumes
:type subnet_id: str
:param mount_targets: mountTargets. List of mount targets
:type mount_targets: list[~azure.mgmt.netapp.models.MountTargetProperties]
:ivar mount_targets: mountTargets. List of mount targets
:vartype mount_targets:
list[~azure.mgmt.netapp.models.MountTargetProperties]
:param volume_type: What type of volume is this
:type volume_type: str
:param data_protection: DataProtection. DataProtection type volumes
Expand All @@ -1801,13 +1806,14 @@ class Volume(Model):
:type is_restoring: bool
:param snapshot_directory_visible: If enabled (true) the volume will
contain a read-only .snapshot directory which provides access to each of
the volume's snapshots (default to true).
the volume's snapshots (default to true). Default value: True .
:type snapshot_directory_visible: bool
:param kerberos_enabled: Describe if a volume is KerberosEnabled. To be
use with swagger version 2020-05-01 or later. Default value: False .
:type kerberos_enabled: bool
:param security_style: The security style of volume. Possible values
include: 'ntfs', 'unix'
:param security_style: The security style of volume, default unix, ntfs
for dual protocol or CIFS protocol. Possible values include: 'ntfs',
'unix'. Default value: "unix" .
:type security_style: str or ~azure.mgmt.netapp.models.SecurityStyle
:param smb_encryption: Enables encryption for in-flight smb3 data. Only
applicable for SMB/DualProtocol volume. To be used with swagger version
Expand All @@ -1818,7 +1824,7 @@ class Volume(Model):
False .
:type smb_continuously_available: bool
:param throughput_mibps: Maximum throughput in Mibps that can be achieved
by this volume.
by this volume. Default value: 0 .
:type throughput_mibps: float
"""

Expand All @@ -1828,14 +1834,16 @@ class Volume(Model):
'name': {'readonly': True},
'type': {'readonly': True},
'file_system_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}$'},
'name1': {'readonly': True},
'creation_token': {'required': True, 'max_length': 80, 'min_length': 1, 'pattern': r'^[a-zA-Z][a-zA-Z0-9\-]{0,79}$'},
'usage_threshold': {'required': True, 'maximum': 109951162777600, 'minimum': 107374182400},
'provisioning_state': {'readonly': True},
'snapshot_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}|(\\?([^\/]*[\/])*)([^\/]+)$'},
'backup_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}|(\\?([^\/]*[\/])*)([^\/]+)$'},
'baremetal_tenant_id': {'readonly': True},
'subnet_id': {'required': True},
'throughput_mibps': {'maximum': 4500, 'minimum': 1, 'multiple': 0.001},
'mount_targets': {'readonly': True},
'throughput_mibps': {'maximum': 4500, 'minimum': 0, 'multiple': 0.001},
}

_attribute_map = {
Expand All @@ -1845,6 +1853,7 @@ class Volume(Model):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'},
'name1': {'key': 'properties.name', 'type': 'str'},
'creation_token': {'key': 'properties.creationToken', 'type': 'str'},
'service_level': {'key': 'properties.serviceLevel', 'type': 'str'},
'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'},
Expand All @@ -1867,14 +1876,15 @@ class Volume(Model):
'throughput_mibps': {'key': 'properties.throughputMibps', 'type': 'float'},
}

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, backup_id: str=None, mount_targets=None, volume_type: str=None, data_protection=None, is_restoring: bool=None, snapshot_directory_visible: bool=None, kerberos_enabled: bool=False, security_style=None, smb_encryption: bool=False, smb_continuously_available: bool=False, throughput_mibps: float=None, **kwargs) -> None:
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, backup_id: str=None, volume_type: str=None, data_protection=None, is_restoring: bool=None, snapshot_directory_visible: bool=True, kerberos_enabled: bool=False, security_style="unix", smb_encryption: bool=False, smb_continuously_available: bool=False, throughput_mibps: float=0, **kwargs) -> None:
super(Volume, self).__init__(**kwargs)
self.location = location
self.id = None
self.name = None
self.type = None
self.tags = tags
self.file_system_id = None
self.name1 = None
self.creation_token = creation_token
self.service_level = service_level
self.usage_threshold = usage_threshold
Expand All @@ -1885,7 +1895,7 @@ def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=N
self.backup_id = backup_id
self.baremetal_tenant_id = None
self.subnet_id = subnet_id
self.mount_targets = mount_targets
self.mount_targets = None
self.volume_type = volume_type
self.data_protection = data_protection
self.is_restoring = is_restoring
Expand Down

0 comments on commit 0af0d7c

Please sign in to comment.