diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_azure_net_app_files_management_client.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_azure_net_app_files_management_client.py index 0433ff9942b3..bcdf17ef4942 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_azure_net_app_files_management_client.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_azure_net_app_files_management_client.py @@ -58,7 +58,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 = '2019-11-01' + self.api_version = '2020-02-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py index 54503d451c19..dd213c562680 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py @@ -35,6 +35,7 @@ from ._models_py3 import VolumePropertiesDataProtection from ._models_py3 import VolumePropertiesExportPolicy from ._models_py3 import VolumeRevert + from ._models_py3 import VolumeSnapshotProperties except (SyntaxError, ImportError): from ._models import ActiveDirectory from ._models import AuthorizeRequest @@ -61,6 +62,7 @@ from ._models import VolumePropertiesDataProtection from ._models import VolumePropertiesExportPolicy from ._models import VolumeRevert + from ._models import VolumeSnapshotProperties from ._paged_models import CapacityPoolPaged from ._paged_models import NetAppAccountPaged from ._paged_models import OperationPaged @@ -102,6 +104,7 @@ 'VolumePropertiesDataProtection', 'VolumePropertiesExportPolicy', 'VolumeRevert', + 'VolumeSnapshotProperties', 'OperationPaged', 'NetAppAccountPaged', 'CapacityPoolPaged', diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py index 0e8e074de4f7..493cf97cf428 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py @@ -38,6 +38,10 @@ class ActiveDirectory(Model): :param site: The Active Directory site the service will limit Domain Controller discovery to :type site: str + :param backup_operators: Users to be added to the Built-in Backup Operator + active directory group. A list of unique usernames without domain + specifier + :type backup_operators: list[str] """ _attribute_map = { @@ -50,6 +54,7 @@ class ActiveDirectory(Model): 'smb_server_name': {'key': 'smbServerName', 'type': 'str'}, 'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'}, 'site': {'key': 'site', 'type': 'str'}, + 'backup_operators': {'key': 'backupOperators', 'type': '[str]'}, } def __init__(self, **kwargs): @@ -63,6 +68,7 @@ def __init__(self, **kwargs): self.smb_server_name = kwargs.get('smb_server_name', None) self.organizational_unit = kwargs.get('organizational_unit', None) self.site = kwargs.get('site', None) + self.backup_operators = kwargs.get('backup_operators', None) class AuthorizeRequest(Model): @@ -242,9 +248,10 @@ class ExportPolicyRule(Model): :type unix_read_write: bool :param cifs: Allows CIFS protocol :type cifs: bool - :param nfsv3: Allows NFSv3 protocol + :param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes :type nfsv3: bool - :param nfsv41: Allows NFSv4.1 protocol + :param nfsv41: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type + volumes :type nfsv41: bool :param allowed_clients: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names @@ -825,9 +832,6 @@ class Snapshot(Model): :vartype type: str :ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot :vartype snapshot_id: str - :param file_system_id: fileSystemId. UUID v4 used to identify the - FileSystem - :type file_system_id: str :ivar created: name. The creation date of the snapshot :vartype created: datetime :ivar provisioning_state: Azure lifecycle management @@ -840,7 +844,6 @@ class Snapshot(Model): 'name': {'readonly': True}, 'type': {'readonly': True}, '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}$'}, - '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}$'}, 'created': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -851,7 +854,6 @@ class Snapshot(Model): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'}, - 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, 'created': {'key': 'properties.created', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -863,7 +865,6 @@ def __init__(self, **kwargs): self.name = None self.type = None self.snapshot_id = None - self.file_system_id = kwargs.get('file_system_id', None) self.created = None self.provisioning_state = None @@ -926,6 +927,10 @@ class Volume(Model): ~azure.mgmt.netapp.models.VolumePropertiesDataProtection :param is_restoring: Restoring :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). + :type snapshot_directory_visible: bool """ _validation = { @@ -962,6 +967,7 @@ class Volume(Model): 'volume_type': {'key': 'properties.volumeType', 'type': 'str'}, 'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'}, 'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'}, + 'snapshot_directory_visible': {'key': 'properties.snapshotDirectoryVisible', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -985,6 +991,7 @@ def __init__(self, **kwargs): 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) class VolumePatch(Model): @@ -1073,15 +1080,19 @@ class VolumePropertiesDataProtection(Model): :param replication: Replication. Replication properties :type replication: ~azure.mgmt.netapp.models.ReplicationObject + :param snapshot: Snapshot. Snapshot properties. + :type snapshot: ~azure.mgmt.netapp.models.VolumeSnapshotProperties """ _attribute_map = { 'replication': {'key': 'replication', 'type': 'ReplicationObject'}, + 'snapshot': {'key': 'snapshot', 'type': 'VolumeSnapshotProperties'}, } def __init__(self, **kwargs): super(VolumePropertiesDataProtection, self).__init__(**kwargs) self.replication = kwargs.get('replication', None) + self.snapshot = kwargs.get('snapshot', None) class VolumePropertiesExportPolicy(Model): @@ -1116,3 +1127,19 @@ class VolumeRevert(Model): def __init__(self, **kwargs): super(VolumeRevert, self).__init__(**kwargs) self.snapshot_id = kwargs.get('snapshot_id', None) + + +class VolumeSnapshotProperties(Model): + """Volume Snapshot Properties. + + :param snapshot_policy_id: Snapshot Policy ResourceId + :type snapshot_policy_id: str + """ + + _attribute_map = { + 'snapshot_policy_id': {'key': 'snapshotPolicyId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VolumeSnapshotProperties, self).__init__(**kwargs) + self.snapshot_policy_id = kwargs.get('snapshot_policy_id', None) diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py index 552088d3e8f4..7aea0af3da51 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py @@ -38,6 +38,10 @@ class ActiveDirectory(Model): :param site: The Active Directory site the service will limit Domain Controller discovery to :type site: str + :param backup_operators: Users to be added to the Built-in Backup Operator + active directory group. A list of unique usernames without domain + specifier + :type backup_operators: list[str] """ _attribute_map = { @@ -50,9 +54,10 @@ class ActiveDirectory(Model): 'smb_server_name': {'key': 'smbServerName', 'type': 'str'}, 'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'}, 'site': {'key': 'site', 'type': 'str'}, + 'backup_operators': {'key': 'backupOperators', 'type': '[str]'}, } - 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: + 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: super(ActiveDirectory, self).__init__(**kwargs) self.active_directory_id = active_directory_id self.username = username @@ -63,6 +68,7 @@ def __init__(self, *, active_directory_id: str=None, username: str=None, passwor self.smb_server_name = smb_server_name self.organizational_unit = organizational_unit self.site = site + self.backup_operators = backup_operators class AuthorizeRequest(Model): @@ -242,9 +248,10 @@ class ExportPolicyRule(Model): :type unix_read_write: bool :param cifs: Allows CIFS protocol :type cifs: bool - :param nfsv3: Allows NFSv3 protocol + :param nfsv3: Allows NFSv3 protocol. Enable only for NFSv3 type volumes :type nfsv3: bool - :param nfsv41: Allows NFSv4.1 protocol + :param nfsv41: Allows NFSv4.1 protocol. Enable only for NFSv4.1 type + volumes :type nfsv41: bool :param allowed_clients: Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names @@ -825,9 +832,6 @@ class Snapshot(Model): :vartype type: str :ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot :vartype snapshot_id: str - :param file_system_id: fileSystemId. UUID v4 used to identify the - FileSystem - :type file_system_id: str :ivar created: name. The creation date of the snapshot :vartype created: datetime :ivar provisioning_state: Azure lifecycle management @@ -840,7 +844,6 @@ class Snapshot(Model): 'name': {'readonly': True}, 'type': {'readonly': True}, '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}$'}, - '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}$'}, 'created': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -851,19 +854,17 @@ class Snapshot(Model): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'}, - 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, 'created': {'key': 'properties.created', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } - def __init__(self, *, location: str, file_system_id: str=None, **kwargs) -> None: + def __init__(self, *, location: str, **kwargs) -> None: super(Snapshot, self).__init__(**kwargs) self.location = location self.id = None self.name = None self.type = None self.snapshot_id = None - self.file_system_id = file_system_id self.created = None self.provisioning_state = None @@ -926,6 +927,10 @@ class Volume(Model): ~azure.mgmt.netapp.models.VolumePropertiesDataProtection :param is_restoring: Restoring :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). + :type snapshot_directory_visible: bool """ _validation = { @@ -962,9 +967,10 @@ class Volume(Model): 'volume_type': {'key': 'properties.volumeType', 'type': 'str'}, 'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePropertiesDataProtection'}, 'is_restoring': {'key': 'properties.isRestoring', 'type': 'bool'}, + 'snapshot_directory_visible': {'key': 'properties.snapshotDirectoryVisible', 'type': 'bool'}, } - 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: + 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: super(Volume, self).__init__(**kwargs) self.location = location self.id = None @@ -985,6 +991,7 @@ def __init__(self, *, location: str, creation_token: str, subnet_id: str, tags=N self.volume_type = volume_type self.data_protection = data_protection self.is_restoring = is_restoring + self.snapshot_directory_visible = snapshot_directory_visible class VolumePatch(Model): @@ -1073,15 +1080,19 @@ class VolumePropertiesDataProtection(Model): :param replication: Replication. Replication properties :type replication: ~azure.mgmt.netapp.models.ReplicationObject + :param snapshot: Snapshot. Snapshot properties. + :type snapshot: ~azure.mgmt.netapp.models.VolumeSnapshotProperties """ _attribute_map = { 'replication': {'key': 'replication', 'type': 'ReplicationObject'}, + 'snapshot': {'key': 'snapshot', 'type': 'VolumeSnapshotProperties'}, } - def __init__(self, *, replication=None, **kwargs) -> None: + def __init__(self, *, replication=None, snapshot=None, **kwargs) -> None: super(VolumePropertiesDataProtection, self).__init__(**kwargs) self.replication = replication + self.snapshot = snapshot class VolumePropertiesExportPolicy(Model): @@ -1116,3 +1127,19 @@ class VolumeRevert(Model): def __init__(self, *, snapshot_id: str=None, **kwargs) -> None: super(VolumeRevert, self).__init__(**kwargs) self.snapshot_id = snapshot_id + + +class VolumeSnapshotProperties(Model): + """Volume Snapshot Properties. + + :param snapshot_policy_id: Snapshot Policy ResourceId + :type snapshot_policy_id: str + """ + + _attribute_map = { + 'snapshot_policy_id': {'key': 'snapshotPolicyId', 'type': 'str'}, + } + + def __init__(self, *, snapshot_policy_id: str=None, **kwargs) -> None: + super(VolumeSnapshotProperties, self).__init__(**kwargs) + self.snapshot_policy_id = snapshot_policy_id diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py index d57e9a40dac7..c97afa4e3692 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py @@ -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: "2019-11-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-02-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" + self.api_version = "2020-02-01" self.config = config @@ -362,29 +362,9 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'} - def update( - self, body, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): - """Update a NetApp account. - - Patch the specified NetApp account. - :param body: NetApp Account object supplied in the body of the - operation. - :type body: ~azure.mgmt.netapp.models.NetAppAccountPatch - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param account_name: The name of the NetApp account - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: NetAppAccount or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.netapp.models.NetAppAccount or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ + def _update_initial( + self, body, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.update.metadata['url'] path_format_arguments = { @@ -416,18 +396,73 @@ def update( request = self._client.patch(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) - if response.status_code not in [200, 202]: + if response.status_code not in [200, 201, 202]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp deserialized = None + if response.status_code == 200: deserialized = self._deserialize('NetAppAccount', response) + if response.status_code == 201: + deserialized = self._deserialize('NetAppAccount', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + + def update( + self, body, resource_group_name, account_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Update a NetApp account. + + Patch the specified NetApp account. + + :param body: NetApp Account object supplied in the body of the + operation. + :type body: ~azure.mgmt.netapp.models.NetAppAccountPatch + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param account_name: The name of the NetApp account + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetAppAccount or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.netapp.models.NetAppAccount] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.netapp.models.NetAppAccount]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + body=body, + resource_group_name=resource_group_name, + account_name=account_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetAppAccount', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'} diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py index 60c631c8ee61..585564008a10 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py @@ -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: "2019-11-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-02-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" + self.api_version = "2020-02-01" self.config = config diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py index 1ef1c6b5e8c2..346d5d8f058d 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py @@ -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: "2019-11-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-02-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" + self.api_version = "2020-02-01" self.config = config diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py index 8361d8f7e982..f55569ece678 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py @@ -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: "2019-11-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-02-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" + self.api_version = "2020-02-01" self.config = config diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py index 8701e992605e..efce67ecfc07 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py @@ -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: "2019-11-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-02-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" + self.api_version = "2020-02-01" self.config = config @@ -195,8 +195,8 @@ def get( def _create_initial( - self, resource_group_name, account_name, pool_name, volume_name, snapshot_name, location, file_system_id=None, custom_headers=None, raw=False, **operation_config): - body = models.Snapshot(location=location, file_system_id=file_system_id) + self, resource_group_name, account_name, pool_name, volume_name, snapshot_name, location, custom_headers=None, raw=False, **operation_config): + body = models.Snapshot(location=location) # Construct URL url = self.create.metadata['url'] @@ -249,7 +249,7 @@ def _create_initial( return deserialized def create( - self, resource_group_name, account_name, pool_name, volume_name, snapshot_name, location, file_system_id=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, account_name, pool_name, volume_name, snapshot_name, location, custom_headers=None, raw=False, polling=True, **operation_config): """Create a snapshot. Create the specified snapshot within the given volume. @@ -266,9 +266,6 @@ def create( :type snapshot_name: str :param location: Resource location :type location: str - :param file_system_id: fileSystemId UUID v4 used to identify the - FileSystem - :type file_system_id: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -289,7 +286,6 @@ def create( volume_name=volume_name, snapshot_name=snapshot_name, location=location, - file_system_id=file_system_id, custom_headers=custom_headers, raw=True, **operation_config diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py index 6f5991c7e478..c38982b89a93 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py @@ -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: "2019-11-01". + :ivar api_version: Version of the API to be used with the client request. Constant value: "2020-02-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" + self.api_version = "2020-02-01" self.config = config