Skip to content

Commit

Permalink
[T1] netapp 2021 01 05 (#15980)
Browse files Browse the repository at this point in the history
* CodeGen from PR 11832 in Azure/azure-rest-api-specs
[NetAppFiles] Anf 8208 update swagger rest api to 2020 09 01 (#11832)

* add 2020-09-01 folder

* update api version examples

* Add 2020-09 update, update doc

* Fix througputMips example

* Add missing nextlink to volumes

* Update snapshotvolumelist

* Update prettier

* fix:review comment

Co-authored-by: Audunn Baldvinsson <audunn.baldvinsson@netapp.com>

* test,version,CHANGELOG

* revert test

* - Updated netapp tests
- Added new recordings

* fix imports

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: Audunn Baldvinsson <audunn.baldvinsson@netapp.com>
Co-authored-by: hodd <hodd@netapp.com>
  • Loading branch information
4 people committed Jan 6, 2021
1 parent c2a098d commit e188de6
Show file tree
Hide file tree
Showing 53 changed files with 25,684 additions and 26,253 deletions.
8 changes: 8 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 0.15.0 (2021-01-05)

**Features**

- Model Volume has a new parameter smb_encryption
- Model Volume has a new parameter smb_continuously_available
- Model ActiveDirectory has a new parameter security_operators


## 0.14.0 (2020-11-16)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
super(AzureNetAppFilesManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-07-01'
self.api_version = '2020-09-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
18 changes: 18 additions & 0 deletions sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class ActiveDirectory(Model):
:param ldap_signing: Specifies whether or not the LDAP traffic needs to be
signed.
:type ldap_signing: bool
:param security_operators: Domain Users in the Active directory to be
given SeSecurityPrivilege privilege (Needed for SMB Continuously available
shares for SQL). A list of unique usernames without domain specifier
:type security_operators: list[str]
"""

_validation = {
Expand Down Expand Up @@ -94,6 +98,7 @@ class ActiveDirectory(Model):
'server_root_ca_certificate': {'key': 'serverRootCACertificate', 'type': 'str'},
'aes_encryption': {'key': 'aesEncryption', 'type': 'bool'},
'ldap_signing': {'key': 'ldapSigning', 'type': 'bool'},
'security_operators': {'key': 'securityOperators', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -114,6 +119,7 @@ def __init__(self, **kwargs):
self.server_root_ca_certificate = kwargs.get('server_root_ca_certificate', None)
self.aes_encryption = kwargs.get('aes_encryption', None)
self.ldap_signing = kwargs.get('ldap_signing', None)
self.security_operators = kwargs.get('security_operators', None)


class AuthorizeRequest(Model):
Expand Down Expand Up @@ -1803,6 +1809,14 @@ class Volume(Model):
:param security_style: The security style of volume. Possible values
include: 'ntfs', '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
2020-08-01 or later. Default value: False .
:type smb_encryption: bool
:param smb_continuously_available: Enables continuously available share
property for smb volume. Only applicable for SMB volume. Default value:
False .
:type smb_continuously_available: bool
:param throughput_mibps: Maximum throughput in Mibps that can be achieved
by this volume.
:type throughput_mibps: float
Expand Down Expand Up @@ -1848,6 +1862,8 @@ class Volume(Model):
'snapshot_directory_visible': {'key': 'properties.snapshotDirectoryVisible', 'type': 'bool'},
'kerberos_enabled': {'key': 'properties.kerberosEnabled', 'type': 'bool'},
'security_style': {'key': 'properties.securityStyle', 'type': 'str'},
'smb_encryption': {'key': 'properties.smbEncryption', 'type': 'bool'},
'smb_continuously_available': {'key': 'properties.smbContinuouslyAvailable', 'type': 'bool'},
'throughput_mibps': {'key': 'properties.throughputMibps', 'type': 'float'},
}

Expand Down Expand Up @@ -1876,6 +1892,8 @@ def __init__(self, **kwargs):
self.snapshot_directory_visible = kwargs.get('snapshot_directory_visible', None)
self.kerberos_enabled = kwargs.get('kerberos_enabled', False)
self.security_style = kwargs.get('security_style', None)
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)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class ActiveDirectory(Model):
:param ldap_signing: Specifies whether or not the LDAP traffic needs to be
signed.
:type ldap_signing: bool
:param security_operators: Domain Users in the Active directory to be
given SeSecurityPrivilege privilege (Needed for SMB Continuously available
shares for SQL). A list of unique usernames without domain specifier
:type security_operators: list[str]
"""

_validation = {
Expand Down Expand Up @@ -94,9 +98,10 @@ class ActiveDirectory(Model):
'server_root_ca_certificate': {'key': 'serverRootCACertificate', 'type': 'str'},
'aes_encryption': {'key': 'aesEncryption', 'type': 'bool'},
'ldap_signing': {'key': 'ldapSigning', 'type': 'bool'},
'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, **kwargs) -> None:
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:
super(ActiveDirectory, self).__init__(**kwargs)
self.active_directory_id = active_directory_id
self.username = username
Expand All @@ -114,6 +119,7 @@ def __init__(self, *, active_directory_id: str=None, username: str=None, passwor
self.server_root_ca_certificate = server_root_ca_certificate
self.aes_encryption = aes_encryption
self.ldap_signing = ldap_signing
self.security_operators = security_operators


class AuthorizeRequest(Model):
Expand Down Expand Up @@ -1803,6 +1809,14 @@ class Volume(Model):
:param security_style: The security style of volume. Possible values
include: 'ntfs', '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
2020-08-01 or later. Default value: False .
:type smb_encryption: bool
:param smb_continuously_available: Enables continuously available share
property for smb volume. Only applicable for SMB volume. Default value:
False .
:type smb_continuously_available: bool
:param throughput_mibps: Maximum throughput in Mibps that can be achieved
by this volume.
:type throughput_mibps: float
Expand Down Expand Up @@ -1848,10 +1862,12 @@ class Volume(Model):
'snapshot_directory_visible': {'key': 'properties.snapshotDirectoryVisible', 'type': 'bool'},
'kerberos_enabled': {'key': 'properties.kerberosEnabled', 'type': 'bool'},
'security_style': {'key': 'properties.securityStyle', 'type': 'str'},
'smb_encryption': {'key': 'properties.smbEncryption', 'type': 'bool'},
'smb_continuously_available': {'key': 'properties.smbContinuouslyAvailable', 'type': 'bool'},
'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, 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, 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:
super(Volume, self).__init__(**kwargs)
self.location = location
self.id = None
Expand All @@ -1876,6 +1892,8 @@ def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=N
self.snapshot_directory_visible = snapshot_directory_visible
self.kerberos_enabled = kerberos_enabled
self.security_style = security_style
self.smb_encryption = smb_encryption
self.smb_continuously_available = smb_continuously_available
self.throughput_mibps = throughput_mibps


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AccountBackupsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AccountsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BackupPoliciesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BackupsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class NetAppResourceOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Operations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PoolsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SnapshotPoliciesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down Expand Up @@ -440,7 +440,7 @@ def get_long_running_output(response):

def list_volumes(
self, resource_group_name, account_name, snapshot_policy_name, custom_headers=None, raw=False, **operation_config):
"""Get volumes associated with snapshot policy.
"""Get volumes for snapshot policy.
Get volumes associated with snapshot policy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SnapshotsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class VaultsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class VolumesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-07-01".
:ivar api_version: Version of the API to be used with the client request. Constant value: "2020-09-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-07-01"
self.api_version = "2020-09-01"

self.config = config

Expand Down Expand Up @@ -815,7 +815,7 @@ def resync_replication(
Resync the connection on the destination volume. If the operation is
ran on the source volume it will reverse-resync the connection and sync
from source to destination.
from destination to source.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.14.0"
VERSION = "0.15.0"

Loading

0 comments on commit e188de6

Please sign in to comment.