diff --git a/sdk/netapp/azure-mgmt-netapp/_meta.json b/sdk/netapp/azure-mgmt-netapp/_meta.json
index cd92c50cb4b1..3aa8505183c5 100644
--- a/sdk/netapp/azure-mgmt-netapp/_meta.json
+++ b/sdk/netapp/azure-mgmt-netapp/_meta.json
@@ -1,11 +1,11 @@
{
- "commit": "8516fa819794ea879bc13bc4137300b67b58de1f",
+ "commit": "0516ef6c3e5a4a7d66a2fe3e3d7d20f47b9459d9",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
- "@autorest/python@6.17.0",
+ "@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
- "autorest_command": "autorest specification/netapp/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.17.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
+ "autorest_command": "autorest specification/netapp/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/netapp/resource-manager/readme.md"
}
\ No newline at end of file
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
index c76e0f0e7fa8..1904e9c00312 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
@@ -28,13 +28,13 @@ class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
- :keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
- api_version: str = kwargs.pop("api_version", "2024-03-01")
+ api_version: str = kwargs.pop("api_version", "2024-07-01")
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_net_app_management_client.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_net_app_management_client.py
index a4c104a27733..8873a9d76671 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_net_app_management_client.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_net_app_management_client.py
@@ -92,7 +92,7 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
- :keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py
index 0b30e0e18f03..e786ca9d2565 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "13.2.0"
+VERSION = "5.1.0"
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py
index 5b0fbaba00c5..fd21b8d0d7e9 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py
@@ -28,13 +28,13 @@ class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
- :keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
- api_version: str = kwargs.pop("api_version", "2024-03-01")
+ api_version: str = kwargs.pop("api_version", "2024-07-01")
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_net_app_management_client.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_net_app_management_client.py
index 8f50d90552a2..aac0ee0a2621 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_net_app_management_client.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_net_app_management_client.py
@@ -92,7 +92,7 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
- :keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
+ :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py
index f44ef082fe2a..99cbc50d33ca 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py
@@ -142,7 +142,7 @@ async def check_name_availability(
@distributed_trace_async
async def check_file_path_availability(
- self, location: str, name: str, subnet_id: str, **kwargs: Any
+ self, location: str, name: str, subnet_id: str, availability_zone: Optional[str] = None, **kwargs: Any
) -> _models.CheckAvailabilityResponse:
"""Check file path availability.
@@ -155,6 +155,10 @@ async def check_file_path_availability(
:param subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:type subnet_id: str
+ :param availability_zone: The Azure Resource logical availability zone which is used within
+ zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone
+ where volume is placed. Default value is None.
+ :type availability_zone: str
:return: CheckAvailabilityResponse or the result of cls(response)
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
@@ -174,7 +178,7 @@ async def check_file_path_availability(
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
cls: ClsType[_models.CheckAvailabilityResponse] = kwargs.pop("cls", None)
- _body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id)
+ _body = _models.FilePathAvailabilityRequest(availability_zone=availability_zone, name=name, subnet_id=subnet_id)
_json = self._serialize.body(_body, "FilePathAvailabilityRequest")
_request = build_check_file_path_availability_request(
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py
index 37afc6cf23ac..e320d2787159 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py
@@ -33,17 +33,21 @@
from ... import models as _models
from ...operations._volumes_operations import (
+ build_authorize_external_replication_request,
build_authorize_replication_request,
build_break_file_locks_request,
build_break_replication_request,
build_create_or_update_request,
build_delete_replication_request,
build_delete_request,
+ build_finalize_external_replication_request,
build_finalize_relocation_request,
build_get_request,
build_list_get_group_id_list_for_ldap_user_request,
build_list_replications_request,
build_list_request,
+ build_peer_external_cluster_request,
+ build_perform_replication_transfer_request,
build_pool_change_request,
build_populate_availability_zone_request,
build_re_initialize_replication_request,
@@ -2922,6 +2926,609 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
)
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
+ async def _peer_external_cluster_initial(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: Union[_models.PeerClusterForVolumeMigrationRequest, IO[bytes]],
+ **kwargs: Any
+ ) -> AsyncIterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
+
+ content_type = content_type or "application/json"
+ _json = None
+ _content = None
+ if isinstance(body, (IOBase, bytes)):
+ _content = body
+ else:
+ _json = self._serialize.body(body, "PeerClusterForVolumeMigrationRequest")
+
+ _request = build_peer_external_cluster_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ content_type=content_type,
+ json=_json,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ try:
+ await response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ if response.status_code == 202:
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @overload
+ async def begin_peer_external_cluster(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: _models.PeerClusterForVolumeMigrationRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> AsyncLROPoller[_models.ClusterPeerCommandResponse]:
+ """Start Cluster peering.
+
+ Starts peering the external cluster for this migration volume.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :param body: Cluster peer request object supplied in the body of the operation. Required.
+ :type body: ~azure.mgmt.netapp.models.PeerClusterForVolumeMigrationRequest
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: An instance of AsyncLROPoller that returns either ClusterPeerCommandResponse or the
+ result of cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.ClusterPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+
+ @overload
+ async def begin_peer_external_cluster(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> AsyncLROPoller[_models.ClusterPeerCommandResponse]:
+ """Start Cluster peering.
+
+ Starts peering the external cluster for this migration volume.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :param body: Cluster peer request object supplied in the body of the operation. Required.
+ :type body: IO[bytes]
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: An instance of AsyncLROPoller that returns either ClusterPeerCommandResponse or the
+ result of cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.ClusterPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+
+ @distributed_trace_async
+ async def begin_peer_external_cluster(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: Union[_models.PeerClusterForVolumeMigrationRequest, IO[bytes]],
+ **kwargs: Any
+ ) -> AsyncLROPoller[_models.ClusterPeerCommandResponse]:
+ """Start Cluster peering.
+
+ Starts peering the external cluster for this migration volume.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :param body: Cluster peer request object supplied in the body of the operation. Is either a
+ PeerClusterForVolumeMigrationRequest type or a IO[bytes] type. Required.
+ :type body: ~azure.mgmt.netapp.models.PeerClusterForVolumeMigrationRequest or IO[bytes]
+ :return: An instance of AsyncLROPoller that returns either ClusterPeerCommandResponse or the
+ result of cls(response)
+ :rtype:
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.ClusterPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[_models.ClusterPeerCommandResponse] = kwargs.pop("cls", None)
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = await self._peer_external_cluster_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ body=body,
+ api_version=api_version,
+ content_type=content_type,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ await raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response):
+ deserialized = self._deserialize("ClusterPeerCommandResponse", pipeline_response.http_response)
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
+ return deserialized
+
+ if polling is True:
+ polling_method: AsyncPollingMethod = cast(
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return AsyncLROPoller[_models.ClusterPeerCommandResponse].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return AsyncLROPoller[_models.ClusterPeerCommandResponse](
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
+ )
+
+ async def _authorize_external_replication_initial(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> AsyncIterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
+
+ _request = build_authorize_external_replication_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ try:
+ await response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ if response.status_code == 202:
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @distributed_trace_async
+ async def begin_authorize_external_replication(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> AsyncLROPoller[_models.SvmPeerCommandResponse]:
+ """Start migration process.
+
+ Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once
+ the SVM have been peered a SnapMirror will be created.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :return: An instance of AsyncLROPoller that returns either SvmPeerCommandResponse or the result
+ of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.SvmPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[_models.SvmPeerCommandResponse] = kwargs.pop("cls", None)
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = await self._authorize_external_replication_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ api_version=api_version,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ await raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response):
+ deserialized = self._deserialize("SvmPeerCommandResponse", pipeline_response.http_response)
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
+ return deserialized
+
+ if polling is True:
+ polling_method: AsyncPollingMethod = cast(
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return AsyncLROPoller[_models.SvmPeerCommandResponse].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return AsyncLROPoller[_models.SvmPeerCommandResponse](
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
+ )
+
+ async def _finalize_external_replication_initial(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> AsyncIterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
+
+ _request = build_finalize_external_replication_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [202]:
+ try:
+ await response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @distributed_trace_async
+ async def begin_finalize_external_replication(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> AsyncLROPoller[None]:
+ """Finalize migration process.
+
+ Finalizes the migration of an external volume by releasing the replication and breaking the
+ external cluster peering if no other migration is active.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[None] = kwargs.pop("cls", None)
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = await self._finalize_external_replication_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ api_version=api_version,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ await raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
+ if cls:
+ return cls(pipeline_response, None, {}) # type: ignore
+
+ if polling is True:
+ polling_method: AsyncPollingMethod = cast(
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return AsyncLROPoller[None].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
+
+ async def _perform_replication_transfer_initial(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> AsyncIterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
+
+ _request = build_perform_replication_transfer_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [202]:
+ try:
+ await response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @distributed_trace_async
+ async def begin_perform_replication_transfer(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> AsyncLROPoller[None]:
+ """Perform a replication transfer.
+
+ Performs an adhoc replication transfer on a volume with volumeType Migration.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.AsyncLROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[None] = kwargs.pop("cls", None)
+ polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = await self._perform_replication_transfer_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ api_version=api_version,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ await raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
+ if cls:
+ return cls(pipeline_response, None, {}) # type: ignore
+
+ if polling is True:
+ polling_method: AsyncPollingMethod = cast(
+ AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return AsyncLROPoller[None].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
+
async def _pool_change_initial(
self,
resource_group_name: str,
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 423cb6d0c3ed..109a256f9548 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
@@ -28,6 +28,7 @@
from ._models_py3 import CapacityPoolPatch
from ._models_py3 import CheckAvailabilityResponse
from ._models_py3 import CloudErrorBody
+from ._models_py3 import ClusterPeerCommandResponse
from ._models_py3 import DailySchedule
from ._models_py3 import Dimension
from ._models_py3 import EncryptionIdentity
@@ -56,6 +57,7 @@
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
+from ._models_py3 import PeerClusterForVolumeMigrationRequest
from ._models_py3 import PlacementKeyValuePairs
from ._models_py3 import PoolChangeRequest
from ._models_py3 import ProxyResource
@@ -67,6 +69,7 @@
from ._models_py3 import RegionInfoResource
from ._models_py3 import RegionInfosList
from ._models_py3 import RelocateVolumeRequest
+from ._models_py3 import RemotePath
from ._models_py3 import Replication
from ._models_py3 import ReplicationObject
from ._models_py3 import ReplicationStatus
@@ -89,6 +92,7 @@
from ._models_py3 import SubvolumeModel
from ._models_py3 import SubvolumePatchRequest
from ._models_py3 import SubvolumesList
+from ._models_py3 import SvmPeerCommandResponse
from ._models_py3 import SystemData
from ._models_py3 import TrackedResource
from ._models_py3 import UpdateNetworkSiblingSetRequest
@@ -175,6 +179,7 @@
"CapacityPoolPatch",
"CheckAvailabilityResponse",
"CloudErrorBody",
+ "ClusterPeerCommandResponse",
"DailySchedule",
"Dimension",
"EncryptionIdentity",
@@ -203,6 +208,7 @@
"Operation",
"OperationDisplay",
"OperationListResult",
+ "PeerClusterForVolumeMigrationRequest",
"PlacementKeyValuePairs",
"PoolChangeRequest",
"ProxyResource",
@@ -214,6 +220,7 @@
"RegionInfoResource",
"RegionInfosList",
"RelocateVolumeRequest",
+ "RemotePath",
"Replication",
"ReplicationObject",
"ReplicationStatus",
@@ -236,6 +243,7 @@
"SubvolumeModel",
"SubvolumePatchRequest",
"SubvolumesList",
+ "SvmPeerCommandResponse",
"SystemData",
"TrackedResource",
"UpdateNetworkSiblingSetRequest",
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 f11644d2ebe7..87e1c07860b3 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
@@ -99,7 +99,7 @@ class ActiveDirectory(_serialization.Model): # pylint: disable=too-many-instanc
:ivar administrators: Users to be added to the Built-in Administrators active directory group.
A list of unique usernames without domain specifier.
:vartype administrators: list[str]
- :ivar kdc_ip: kdc server IP addresses for the active directory machine. This optional parameter
+ :ivar kdc_ip: kdc server IP address for the active directory machine. This optional parameter
is used only while creating kerberos volume.
:vartype kdc_ip: str
:ivar ad_name: Name of the active directory machine. This optional parameter is used only while
@@ -229,7 +229,7 @@ def __init__(
:keyword administrators: Users to be added to the Built-in Administrators active directory
group. A list of unique usernames without domain specifier.
:paramtype administrators: list[str]
- :keyword kdc_ip: kdc server IP addresses for the active directory machine. This optional
+ :keyword kdc_ip: kdc server IP address for the active directory machine. This optional
parameter is used only while creating kerberos volume.
:paramtype kdc_ip: str
:keyword ad_name: Name of the active directory machine. This optional parameter is used only
@@ -603,7 +603,7 @@ class BackupPolicy(TrackedResource): # pylint: disable=too-many-instance-attrib
:vartype location: str
:ivar etag: A unique read-only string that changes whenever the resource is updated.
:vartype etag: str
- :ivar backup_policy_id: Backup Policy Resource ID.
+ :ivar backup_policy_id: Backup Policy GUID ID.
:vartype backup_policy_id: str
:ivar provisioning_state: Azure lifecycle management.
:vartype provisioning_state: str
@@ -704,7 +704,7 @@ class BackupPolicyPatch(_serialization.Model): # pylint: disable=too-many-insta
:vartype type: str
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
- :ivar backup_policy_id: Backup Policy Resource ID.
+ :ivar backup_policy_id: Backup Policy GUID ID.
:vartype backup_policy_id: str
:ivar provisioning_state: Azure lifecycle management.
:vartype provisioning_state: str
@@ -1440,6 +1440,30 @@ def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None,
self.message = message
+class ClusterPeerCommandResponse(_serialization.Model):
+ """Information about cluster peering process.
+
+ :ivar peer_accept_command: A command that needs to be run on the external ONTAP to accept
+ cluster peering. Will only be present if :code:`clusterPeeringStatus` is
+ :code:`pending`.
+ :vartype peer_accept_command: str
+ """
+
+ _attribute_map = {
+ "peer_accept_command": {"key": "peerAcceptCommand", "type": "str"},
+ }
+
+ def __init__(self, *, peer_accept_command: Optional[str] = None, **kwargs: Any) -> None:
+ """
+ :keyword peer_accept_command: A command that needs to be run on the external ONTAP to accept
+ cluster peering. Will only be present if :code:`clusterPeeringStatus` is
+ :code:`pending`.
+ :paramtype peer_accept_command: str
+ """
+ super().__init__(**kwargs)
+ self.peer_accept_command = peer_accept_command
+
+
class DailySchedule(_serialization.Model):
"""Daily Schedule properties.
@@ -1791,6 +1815,10 @@ class FilePathAvailabilityRequest(_serialization.Model):
:ivar subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:vartype subnet_id: str
+ :ivar availability_zone: The Azure Resource logical availability zone which is used within zone
+ mapping lookup for the subscription and region. The lookup will retrieve the physical zone
+ where volume is placed.
+ :vartype availability_zone: str
"""
_validation = {
@@ -1801,19 +1829,25 @@ class FilePathAvailabilityRequest(_serialization.Model):
_attribute_map = {
"name": {"key": "name", "type": "str"},
"subnet_id": {"key": "subnetId", "type": "str"},
+ "availability_zone": {"key": "availabilityZone", "type": "str"},
}
- def __init__(self, *, name: str, subnet_id: str, **kwargs: Any) -> None:
+ def __init__(self, *, name: str, subnet_id: str, availability_zone: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: File path to verify. Required.
:paramtype name: str
:keyword subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:paramtype subnet_id: str
+ :keyword availability_zone: The Azure Resource logical availability zone which is used within
+ zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone
+ where volume is placed.
+ :paramtype availability_zone: str
"""
super().__init__(**kwargs)
self.name = name
self.subnet_id = subnet_id
+ self.availability_zone = availability_zone
class GetGroupIdListForLDAPUserRequest(_serialization.Model):
@@ -2876,6 +2910,34 @@ def __init__(self, *, value: Optional[List["_models.Operation"]] = None, **kwarg
self.value = value
+class PeerClusterForVolumeMigrationRequest(_serialization.Model):
+ """Source Cluster properties for a cluster peer request.
+
+ All required parameters must be populated in order to send to server.
+
+ :ivar peer_ip_addresses: A list of IC-LIF IPs that can be used to connect to the On-prem
+ cluster. Required.
+ :vartype peer_ip_addresses: list[str]
+ """
+
+ _validation = {
+ "peer_ip_addresses": {"required": True, "min_items": 1},
+ }
+
+ _attribute_map = {
+ "peer_ip_addresses": {"key": "peerIpAddresses", "type": "[str]"},
+ }
+
+ def __init__(self, *, peer_ip_addresses: List[str], **kwargs: Any) -> None:
+ """
+ :keyword peer_ip_addresses: A list of IC-LIF IPs that can be used to connect to the On-prem
+ cluster. Required.
+ :paramtype peer_ip_addresses: list[str]
+ """
+ super().__init__(**kwargs)
+ self.peer_ip_addresses = peer_ip_addresses
+
+
class PlacementKeyValuePairs(_serialization.Model):
"""Application specific parameters for the placement of volumes in the volume group.
@@ -3247,6 +3309,46 @@ def __init__(self, *, creation_token: Optional[str] = None, **kwargs: Any) -> No
self.creation_token = creation_token
+class RemotePath(_serialization.Model):
+ """The full path to a volume that is to be migrated into ANF. Required for Migration volumes.
+
+ All required parameters must be populated in order to send to server.
+
+ :ivar external_host_name: The Path to a ONTAP Host. Required.
+ :vartype external_host_name: str
+ :ivar server_name: The name of a server on the ONTAP Host. Required.
+ :vartype server_name: str
+ :ivar volume_name: The name of a volume on the server. Required.
+ :vartype volume_name: str
+ """
+
+ _validation = {
+ "external_host_name": {"required": True},
+ "server_name": {"required": True},
+ "volume_name": {"required": True},
+ }
+
+ _attribute_map = {
+ "external_host_name": {"key": "externalHostName", "type": "str"},
+ "server_name": {"key": "serverName", "type": "str"},
+ "volume_name": {"key": "volumeName", "type": "str"},
+ }
+
+ def __init__(self, *, external_host_name: str, server_name: str, volume_name: str, **kwargs: Any) -> None:
+ """
+ :keyword external_host_name: The Path to a ONTAP Host. Required.
+ :paramtype external_host_name: str
+ :keyword server_name: The name of a server on the ONTAP Host. Required.
+ :paramtype server_name: str
+ :keyword volume_name: The name of a volume on the server. Required.
+ :paramtype volume_name: str
+ """
+ super().__init__(**kwargs)
+ self.external_host_name = external_host_name
+ self.server_name = server_name
+ self.volume_name = volume_name
+
+
class Replication(_serialization.Model):
"""Replication properties.
@@ -3330,6 +3432,9 @@ class ReplicationObject(_serialization.Model):
:vartype replication_schedule: str or ~azure.mgmt.netapp.models.ReplicationSchedule
:ivar remote_volume_resource_id: The resource ID of the remote volume. Required.
:vartype remote_volume_resource_id: str
+ :ivar remote_path: The full path to a volume that is to be migrated into ANF. Required for
+ Migration volumes.
+ :vartype remote_path: ~azure.mgmt.netapp.models.RemotePath
:ivar remote_volume_region: The remote region for the other end of the Volume Replication.
:vartype remote_volume_region: str
"""
@@ -3344,6 +3449,7 @@ class ReplicationObject(_serialization.Model):
"endpoint_type": {"key": "endpointType", "type": "str"},
"replication_schedule": {"key": "replicationSchedule", "type": "str"},
"remote_volume_resource_id": {"key": "remoteVolumeResourceId", "type": "str"},
+ "remote_path": {"key": "remotePath", "type": "RemotePath"},
"remote_volume_region": {"key": "remoteVolumeRegion", "type": "str"},
}
@@ -3353,6 +3459,7 @@ def __init__(
remote_volume_resource_id: str,
endpoint_type: Optional[Union[str, "_models.EndpointType"]] = None,
replication_schedule: Optional[Union[str, "_models.ReplicationSchedule"]] = None,
+ remote_path: Optional["_models.RemotePath"] = None,
remote_volume_region: Optional[str] = None,
**kwargs: Any
) -> None:
@@ -3365,6 +3472,9 @@ def __init__(
:paramtype replication_schedule: str or ~azure.mgmt.netapp.models.ReplicationSchedule
:keyword remote_volume_resource_id: The resource ID of the remote volume. Required.
:paramtype remote_volume_resource_id: str
+ :keyword remote_path: The full path to a volume that is to be migrated into ANF. Required for
+ Migration volumes.
+ :paramtype remote_path: ~azure.mgmt.netapp.models.RemotePath
:keyword remote_volume_region: The remote region for the other end of the Volume Replication.
:paramtype remote_volume_region: str
"""
@@ -3373,6 +3483,7 @@ def __init__(
self.endpoint_type = endpoint_type
self.replication_schedule = replication_schedule
self.remote_volume_resource_id = remote_volume_resource_id
+ self.remote_path = remote_path
self.remote_volume_region = remote_volume_region
@@ -4340,6 +4451,30 @@ def __init__(
self.next_link = next_link
+class SvmPeerCommandResponse(_serialization.Model):
+ """Information about svm peering process.
+
+ :ivar svm_peering_command: A command that needs to be run on the external ONTAP to accept svm
+ peering. Will only be present if :code:`svmPeeringStatus` is
+ :code:`pending`.
+ :vartype svm_peering_command: str
+ """
+
+ _attribute_map = {
+ "svm_peering_command": {"key": "svmPeeringCommand", "type": "str"},
+ }
+
+ def __init__(self, *, svm_peering_command: Optional[str] = None, **kwargs: Any) -> None:
+ """
+ :keyword svm_peering_command: A command that needs to be run on the external ONTAP to accept
+ svm peering. Will only be present if :code:`svmPeeringStatus` is
+ :code:`pending`.
+ :paramtype svm_peering_command: str
+ """
+ super().__init__(**kwargs)
+ self.svm_peering_command = svm_peering_command
+
+
class SystemData(_serialization.Model):
"""Metadata pertaining to creation and last modification of the resource.
@@ -4561,9 +4696,14 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
:ivar subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:vartype subnet_id: str
- :ivar network_features: Network features available to the volume, or current state of update.
- Known values are: "Basic", "Standard", "Basic_Standard", and "Standard_Basic".
+ :ivar network_features: The original value of the network features type available to the volume
+ at the time it was created. Known values are: "Basic", "Standard", "Basic_Standard", and
+ "Standard_Basic".
:vartype network_features: str or ~azure.mgmt.netapp.models.NetworkFeatures
+ :ivar effective_network_features: The effective value of the network features type available to
+ the volume, or current effective state of update. Known values are: "Basic", "Standard",
+ "Basic_Standard", and "Standard_Basic".
+ :vartype effective_network_features: str or ~azure.mgmt.netapp.models.NetworkFeatures
:ivar network_sibling_set_id: Network Sibling Set ID for the the group of volumes sharing
networking resources.
:vartype network_sibling_set_id: str
@@ -4721,6 +4861,7 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"provisioning_state": {"readonly": True},
"baremetal_tenant_id": {"readonly": True},
"subnet_id": {"required": True},
+ "effective_network_features": {"readonly": True},
"network_sibling_set_id": {
"readonly": True,
"max_length": 36,
@@ -4765,6 +4906,7 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"baremetal_tenant_id": {"key": "properties.baremetalTenantId", "type": "str"},
"subnet_id": {"key": "properties.subnetId", "type": "str"},
"network_features": {"key": "properties.networkFeatures", "type": "str"},
+ "effective_network_features": {"key": "properties.effectiveNetworkFeatures", "type": "str"},
"network_sibling_set_id": {"key": "properties.networkSiblingSetId", "type": "str"},
"storage_to_network_proximity": {"key": "properties.storageToNetworkProximity", "type": "str"},
"mount_targets": {"key": "properties.mountTargets", "type": "[MountTargetProperties]"},
@@ -4889,8 +5031,9 @@ def __init__( # pylint: disable=too-many-locals
:keyword subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:paramtype subnet_id: str
- :keyword network_features: Network features available to the volume, or current state of
- update. Known values are: "Basic", "Standard", "Basic_Standard", and "Standard_Basic".
+ :keyword network_features: The original value of the network features type available to the
+ volume at the time it was created. Known values are: "Basic", "Standard", "Basic_Standard", and
+ "Standard_Basic".
:paramtype network_features: str or ~azure.mgmt.netapp.models.NetworkFeatures
:keyword volume_type: What type of volume is this. For destination volumes in Cross Region
Replication, set type to DataProtection.
@@ -5003,6 +5146,7 @@ def __init__( # pylint: disable=too-many-locals
self.baremetal_tenant_id = None
self.subnet_id = subnet_id
self.network_features = network_features
+ self.effective_network_features = None
self.network_sibling_set_id = None
self.storage_to_network_proximity = None
self.mount_targets = None
@@ -5376,9 +5520,14 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
:ivar subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:vartype subnet_id: str
- :ivar network_features: Network features available to the volume, or current state of update.
- Known values are: "Basic", "Standard", "Basic_Standard", and "Standard_Basic".
+ :ivar network_features: The original value of the network features type available to the volume
+ at the time it was created. Known values are: "Basic", "Standard", "Basic_Standard", and
+ "Standard_Basic".
:vartype network_features: str or ~azure.mgmt.netapp.models.NetworkFeatures
+ :ivar effective_network_features: The effective value of the network features type available to
+ the volume, or current effective state of update. Known values are: "Basic", "Standard",
+ "Basic_Standard", and "Standard_Basic".
+ :vartype effective_network_features: str or ~azure.mgmt.netapp.models.NetworkFeatures
:ivar network_sibling_set_id: Network Sibling Set ID for the the group of volumes sharing
networking resources.
:vartype network_sibling_set_id: str
@@ -5532,6 +5681,7 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"provisioning_state": {"readonly": True},
"baremetal_tenant_id": {"readonly": True},
"subnet_id": {"required": True},
+ "effective_network_features": {"readonly": True},
"network_sibling_set_id": {
"readonly": True,
"max_length": 36,
@@ -5573,6 +5723,7 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"baremetal_tenant_id": {"key": "properties.baremetalTenantId", "type": "str"},
"subnet_id": {"key": "properties.subnetId", "type": "str"},
"network_features": {"key": "properties.networkFeatures", "type": "str"},
+ "effective_network_features": {"key": "properties.effectiveNetworkFeatures", "type": "str"},
"network_sibling_set_id": {"key": "properties.networkSiblingSetId", "type": "str"},
"storage_to_network_proximity": {"key": "properties.storageToNetworkProximity", "type": "str"},
"mount_targets": {"key": "properties.mountTargets", "type": "[MountTargetProperties]"},
@@ -5697,8 +5848,9 @@ def __init__( # pylint: disable=too-many-locals
:keyword subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:paramtype subnet_id: str
- :keyword network_features: Network features available to the volume, or current state of
- update. Known values are: "Basic", "Standard", "Basic_Standard", and "Standard_Basic".
+ :keyword network_features: The original value of the network features type available to the
+ volume at the time it was created. Known values are: "Basic", "Standard", "Basic_Standard", and
+ "Standard_Basic".
:paramtype network_features: str or ~azure.mgmt.netapp.models.NetworkFeatures
:keyword volume_type: What type of volume is this. For destination volumes in Cross Region
Replication, set type to DataProtection.
@@ -5814,6 +5966,7 @@ def __init__( # pylint: disable=too-many-locals
self.baremetal_tenant_id = None
self.subnet_id = subnet_id
self.network_features = network_features
+ self.effective_network_features = None
self.network_sibling_set_id = None
self.storage_to_network_proximity = None
self.mount_targets = None
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 936205a433d5..78fbde70bf9b 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
@@ -48,7 +48,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,7 @@ def build_list_request(resource_group_name: str, subscription_id: str, **kwargs:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -102,7 +102,7 @@ def build_get_request(resource_group_name: str, account_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -137,7 +137,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -175,7 +175,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -210,7 +210,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -248,7 +248,7 @@ def build_renew_credentials_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py
index fdb52a215ae1..0b6995293748 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py
@@ -48,7 +48,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -119,7 +119,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -158,7 +158,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -197,7 +197,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_vaults_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_vaults_operations.py
index f05058d4c124..79fafdda0ce1 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_vaults_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_vaults_operations.py
@@ -50,7 +50,7 @@ def build_list_by_net_app_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -85,7 +85,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -123,7 +123,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -164,7 +164,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -205,7 +205,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py
index 7d2844d0183a..88911f808390 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py
@@ -50,7 +50,7 @@ def build_get_latest_status_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -91,7 +91,7 @@ def build_get_volume_latest_restore_status_request( # pylint: disable=name-too-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -138,7 +138,7 @@ def build_list_by_vault_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -183,7 +183,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -229,7 +229,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -278,7 +278,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -327,7 +327,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_account_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_account_operations.py
index 8394c7e462a7..7199364bf559 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_account_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_account_operations.py
@@ -48,7 +48,7 @@ def build_migrate_backups_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_backup_vault_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_backup_vault_operations.py
index e48e13b72084..b31cb5675c64 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_backup_vault_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_backup_vault_operations.py
@@ -53,7 +53,7 @@ def build_restore_files_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_volume_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_volume_operations.py
index 2b5f05c59544..25787e5947ed 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_volume_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_under_volume_operations.py
@@ -48,7 +48,7 @@ def build_migrate_backups_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
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 4a9052fb9fc8..4d51e3f5f2f2 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
@@ -45,7 +45,7 @@ def build_check_name_availability_request(location: str, subscription_id: str, *
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -78,7 +78,7 @@ def build_check_file_path_availability_request( # pylint: disable=name-too-long
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -109,7 +109,7 @@ def build_check_quota_availability_request(location: str, subscription_id: str,
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -140,7 +140,7 @@ def build_query_region_info_request(location: str, subscription_id: str, **kwarg
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -167,7 +167,7 @@ def build_query_network_sibling_set_request(location: str, subscription_id: str,
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -198,7 +198,7 @@ def build_update_network_sibling_set_request(location: str, subscription_id: str
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -322,7 +322,7 @@ def check_name_availability(
@distributed_trace
def check_file_path_availability(
- self, location: str, name: str, subnet_id: str, **kwargs: Any
+ self, location: str, name: str, subnet_id: str, availability_zone: Optional[str] = None, **kwargs: Any
) -> _models.CheckAvailabilityResponse:
"""Check file path availability.
@@ -335,6 +335,10 @@ def check_file_path_availability(
:param subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation
Microsoft.NetApp/volumes. Required.
:type subnet_id: str
+ :param availability_zone: The Azure Resource logical availability zone which is used within
+ zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone
+ where volume is placed. Default value is None.
+ :type availability_zone: str
:return: CheckAvailabilityResponse or the result of cls(response)
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
@@ -354,7 +358,7 @@ def check_file_path_availability(
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
cls: ClsType[_models.CheckAvailabilityResponse] = kwargs.pop("cls", None)
- _body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id)
+ _body = _models.FilePathAvailabilityRequest(availability_zone=availability_zone, name=name, subnet_id=subnet_id)
_json = self._serialize.body(_body, "FilePathAvailabilityRequest")
_request = build_check_file_path_availability_request(
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_quota_limits_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_quota_limits_operations.py
index 38449e428fd2..760436fea10d 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_quota_limits_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_quota_limits_operations.py
@@ -43,7 +43,7 @@ def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> Ht
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -70,7 +70,7 @@ def build_get_request(location: str, quota_limit_name: str, subscription_id: str
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_region_infos_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_region_infos_operations.py
index 1c4e419c443d..9d6637b5c283 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_region_infos_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_region_infos_operations.py
@@ -43,7 +43,7 @@ def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> Ht
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -70,7 +70,7 @@ def build_get_request(location: str, subscription_id: str, **kwargs: Any) -> Htt
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 e25e12b5035a..a770dbf8a001 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
@@ -43,7 +43,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 28fd4ca9a29c..e9c21919d704 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
@@ -48,7 +48,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -121,7 +121,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -162,7 +162,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -203,7 +203,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py
index d1c5798518dd..c7cbc2357549 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py
@@ -48,7 +48,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +83,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -119,7 +119,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -158,7 +158,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -197,7 +197,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -233,7 +233,7 @@ def build_list_volumes_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 cb6b97b68e67..97efd6614ce4 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
@@ -51,7 +51,7 @@ def build_list_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -98,7 +98,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -146,7 +146,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -199,7 +199,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -250,7 +250,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -298,7 +298,7 @@ def build_restore_files_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_subvolumes_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_subvolumes_operations.py
index 4446b41ccb40..4a931ada5744 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_subvolumes_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_subvolumes_operations.py
@@ -50,7 +50,7 @@ def build_list_by_volume_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -97,7 +97,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -152,7 +152,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -210,7 +210,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -268,7 +268,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -323,7 +323,7 @@ def build_get_metadata_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_groups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_groups_operations.py
index dd5f5692b05a..a1942ef2b467 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_groups_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_groups_operations.py
@@ -50,7 +50,7 @@ def build_list_by_net_app_account_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -85,7 +85,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -128,7 +128,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -174,7 +174,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_quota_rules_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_quota_rules_operations.py
index 862d6d99edb5..f591c45da5f6 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_quota_rules_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volume_quota_rules_operations.py
@@ -50,7 +50,7 @@ def build_list_by_volume_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -97,7 +97,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -145,7 +145,7 @@ def build_create_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -196,7 +196,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -247,7 +247,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
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 0c3574ed7f1b..205b7f94d5ca 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
@@ -50,7 +50,7 @@ def build_list_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -88,7 +88,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -129,7 +129,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -173,7 +173,7 @@ def build_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -224,7 +224,7 @@ def build_delete_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -267,7 +267,7 @@ def build_populate_availability_zone_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -308,7 +308,7 @@ def build_revert_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -352,7 +352,7 @@ def build_reset_cifs_password_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -393,7 +393,7 @@ def build_break_file_locks_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -437,7 +437,7 @@ def build_list_get_group_id_list_for_ldap_user_request( # pylint: disable=name-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -481,7 +481,7 @@ def build_break_replication_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -525,7 +525,7 @@ def build_reestablish_replication_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -569,7 +569,7 @@ def build_replication_status_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -610,7 +610,7 @@ def build_list_replications_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -651,7 +651,7 @@ def build_resync_replication_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -692,7 +692,7 @@ def build_delete_replication_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -733,7 +733,7 @@ def build_authorize_replication_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -777,7 +777,7 @@ def build_re_initialize_replication_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -812,13 +812,180 @@ def build_re_initialize_replication_request(
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
+def build_peer_external_cluster_request(
+ resource_group_name: str, account_name: str, pool_name: str, volume_name: str, subscription_id: str, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/peerExternalCluster",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "resourceGroupName": _SERIALIZER.url(
+ "resource_group_name", resource_group_name, "str", max_length=90, min_length=1
+ ),
+ "accountName": _SERIALIZER.url(
+ "account_name", account_name, "str", pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$"
+ ),
+ "poolName": _SERIALIZER.url(
+ "pool_name", pool_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ "volumeName": _SERIALIZER.url(
+ "volume_name", volume_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct parameters
+ _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
+
+ # Construct headers
+ if content_type is not None:
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
+
+
+def build_authorize_external_replication_request( # pylint: disable=name-too-long
+ resource_group_name: str, account_name: str, pool_name: str, volume_name: str, subscription_id: str, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/authorizeExternalReplication",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "resourceGroupName": _SERIALIZER.url(
+ "resource_group_name", resource_group_name, "str", max_length=90, min_length=1
+ ),
+ "accountName": _SERIALIZER.url(
+ "account_name", account_name, "str", pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$"
+ ),
+ "poolName": _SERIALIZER.url(
+ "pool_name", pool_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ "volumeName": _SERIALIZER.url(
+ "volume_name", volume_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct parameters
+ _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
+
+
+def build_finalize_external_replication_request( # pylint: disable=name-too-long
+ resource_group_name: str, account_name: str, pool_name: str, volume_name: str, subscription_id: str, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/finalizeExternalReplication",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "resourceGroupName": _SERIALIZER.url(
+ "resource_group_name", resource_group_name, "str", max_length=90, min_length=1
+ ),
+ "accountName": _SERIALIZER.url(
+ "account_name", account_name, "str", pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$"
+ ),
+ "poolName": _SERIALIZER.url(
+ "pool_name", pool_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ "volumeName": _SERIALIZER.url(
+ "volume_name", volume_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct parameters
+ _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
+
+
+def build_perform_replication_transfer_request( # pylint: disable=name-too-long
+ resource_group_name: str, account_name: str, pool_name: str, volume_name: str, subscription_id: str, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = kwargs.pop(
+ "template_url",
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/performReplicationTransfer",
+ ) # pylint: disable=line-too-long
+ path_format_arguments = {
+ "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "resourceGroupName": _SERIALIZER.url(
+ "resource_group_name", resource_group_name, "str", max_length=90, min_length=1
+ ),
+ "accountName": _SERIALIZER.url(
+ "account_name", account_name, "str", pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$"
+ ),
+ "poolName": _SERIALIZER.url(
+ "pool_name", pool_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ "volumeName": _SERIALIZER.url(
+ "volume_name", volume_name, "str", max_length=64, min_length=1, pattern=r"^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$"
+ ),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct parameters
+ _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
+
+
def build_pool_change_request(
resource_group_name: str, account_name: str, pool_name: str, volume_name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -862,7 +1029,7 @@ def build_relocate_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -906,7 +1073,7 @@ def build_finalize_relocation_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -947,7 +1114,7 @@ def build_revert_relocation_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-01"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -3831,6 +3998,606 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
)
return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
+ def _peer_external_cluster_initial(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: Union[_models.PeerClusterForVolumeMigrationRequest, IO[bytes]],
+ **kwargs: Any
+ ) -> Iterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
+
+ content_type = content_type or "application/json"
+ _json = None
+ _content = None
+ if isinstance(body, (IOBase, bytes)):
+ _content = body
+ else:
+ _json = self._serialize.body(body, "PeerClusterForVolumeMigrationRequest")
+
+ _request = build_peer_external_cluster_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ content_type=content_type,
+ json=_json,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ try:
+ response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ if response.status_code == 202:
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @overload
+ def begin_peer_external_cluster(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: _models.PeerClusterForVolumeMigrationRequest,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> LROPoller[_models.ClusterPeerCommandResponse]:
+ """Start Cluster peering.
+
+ Starts peering the external cluster for this migration volume.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :param body: Cluster peer request object supplied in the body of the operation. Required.
+ :type body: ~azure.mgmt.netapp.models.PeerClusterForVolumeMigrationRequest
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: An instance of LROPoller that returns either ClusterPeerCommandResponse or the result
+ of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.netapp.models.ClusterPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+
+ @overload
+ def begin_peer_external_cluster(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: IO[bytes],
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> LROPoller[_models.ClusterPeerCommandResponse]:
+ """Start Cluster peering.
+
+ Starts peering the external cluster for this migration volume.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :param body: Cluster peer request object supplied in the body of the operation. Required.
+ :type body: IO[bytes]
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: An instance of LROPoller that returns either ClusterPeerCommandResponse or the result
+ of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.netapp.models.ClusterPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+
+ @distributed_trace
+ def begin_peer_external_cluster(
+ self,
+ resource_group_name: str,
+ account_name: str,
+ pool_name: str,
+ volume_name: str,
+ body: Union[_models.PeerClusterForVolumeMigrationRequest, IO[bytes]],
+ **kwargs: Any
+ ) -> LROPoller[_models.ClusterPeerCommandResponse]:
+ """Start Cluster peering.
+
+ Starts peering the external cluster for this migration volume.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :param body: Cluster peer request object supplied in the body of the operation. Is either a
+ PeerClusterForVolumeMigrationRequest type or a IO[bytes] type. Required.
+ :type body: ~azure.mgmt.netapp.models.PeerClusterForVolumeMigrationRequest or IO[bytes]
+ :return: An instance of LROPoller that returns either ClusterPeerCommandResponse or the result
+ of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.netapp.models.ClusterPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[_models.ClusterPeerCommandResponse] = kwargs.pop("cls", None)
+ polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = self._peer_external_cluster_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ body=body,
+ api_version=api_version,
+ content_type=content_type,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response):
+ deserialized = self._deserialize("ClusterPeerCommandResponse", pipeline_response.http_response)
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
+ return deserialized
+
+ if polling is True:
+ polling_method: PollingMethod = cast(
+ PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(PollingMethod, NoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return LROPoller[_models.ClusterPeerCommandResponse].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return LROPoller[_models.ClusterPeerCommandResponse](
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
+ )
+
+ def _authorize_external_replication_initial(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> Iterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
+
+ _request = build_authorize_external_replication_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 202]:
+ try:
+ response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ if response.status_code == 202:
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @distributed_trace
+ def begin_authorize_external_replication(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> LROPoller[_models.SvmPeerCommandResponse]:
+ """Start migration process.
+
+ Starts SVM peering and returns a command to be run on the external ONTAP to accept it. Once
+ the SVM have been peered a SnapMirror will be created.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :return: An instance of LROPoller that returns either SvmPeerCommandResponse or the result of
+ cls(response)
+ :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.netapp.models.SvmPeerCommandResponse]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[_models.SvmPeerCommandResponse] = kwargs.pop("cls", None)
+ polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = self._authorize_external_replication_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ api_version=api_version,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response):
+ deserialized = self._deserialize("SvmPeerCommandResponse", pipeline_response.http_response)
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
+ return deserialized
+
+ if polling is True:
+ polling_method: PollingMethod = cast(
+ PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(PollingMethod, NoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return LROPoller[_models.SvmPeerCommandResponse].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return LROPoller[_models.SvmPeerCommandResponse](
+ self._client, raw_result, get_long_running_output, polling_method # type: ignore
+ )
+
+ def _finalize_external_replication_initial(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> Iterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
+
+ _request = build_finalize_external_replication_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [202]:
+ try:
+ response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @distributed_trace
+ def begin_finalize_external_replication(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> LROPoller[None]:
+ """Finalize migration process.
+
+ Finalizes the migration of an external volume by releasing the replication and breaking the
+ external cluster peering if no other migration is active.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[None] = kwargs.pop("cls", None)
+ polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = self._finalize_external_replication_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ api_version=api_version,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
+ if cls:
+ return cls(pipeline_response, None, {}) # type: ignore
+
+ if polling is True:
+ polling_method: PollingMethod = cast(
+ PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(PollingMethod, NoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return LROPoller[None].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
+
+ def _perform_replication_transfer_initial(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> Iterator[bytes]:
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
+
+ _request = build_perform_replication_transfer_request(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ subscription_id=self._config.subscription_id,
+ api_version=api_version,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = True
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [202]:
+ try:
+ response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ response_headers = {}
+ response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
+
+ deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
+
+ if cls:
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
+
+ return deserialized # type: ignore
+
+ @distributed_trace
+ def begin_perform_replication_transfer(
+ self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
+ ) -> LROPoller[None]:
+ """Perform a replication transfer.
+
+ Performs an adhoc replication transfer on a volume with volumeType Migration.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
+ :param account_name: The name of the NetApp account. Required.
+ :type account_name: str
+ :param pool_name: The name of the capacity pool. Required.
+ :type pool_name: str
+ :param volume_name: The name of the volume. Required.
+ :type volume_name: str
+ :return: An instance of LROPoller that returns either None or the result of cls(response)
+ :rtype: ~azure.core.polling.LROPoller[None]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
+ cls: ClsType[None] = kwargs.pop("cls", None)
+ polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
+ lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
+ cont_token: Optional[str] = kwargs.pop("continuation_token", None)
+ if cont_token is None:
+ raw_result = self._perform_replication_transfer_initial(
+ resource_group_name=resource_group_name,
+ account_name=account_name,
+ pool_name=pool_name,
+ volume_name=volume_name,
+ api_version=api_version,
+ cls=lambda x, y, z: x,
+ headers=_headers,
+ params=_params,
+ **kwargs
+ )
+ raw_result.http_response.read() # type: ignore
+ kwargs.pop("error_map", None)
+
+ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
+ if cls:
+ return cls(pipeline_response, None, {}) # type: ignore
+
+ if polling is True:
+ polling_method: PollingMethod = cast(
+ PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
+ )
+ elif polling is False:
+ polling_method = cast(PollingMethod, NoPolling())
+ else:
+ polling_method = polling
+ if cont_token:
+ return LROPoller[None].from_continuation_token(
+ polling_method=polling_method,
+ continuation_token=cont_token,
+ client=self._client,
+ deserialization_callback=get_long_running_output,
+ )
+ return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
+
def _pool_change_initial(
self,
resource_group_name: str,
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update.py
index 9a32f11827c9..03171cf3ddf3 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -40,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_CreateOrUpdate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update_ad.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update_ad.py
index 78468320a670..b4f0b2e87483 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update_ad.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_create_or_update_ad.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -58,6 +56,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_CreateOrUpdateAD.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_CreateOrUpdateAD.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_delete.py
index f142f7726284..e45741ca4196 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_delete.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get.py
index 9568bd4fa406..1d5632b3701e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_list.py
index 575b51de4056..81b89a1439d7 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_list.py
@@ -30,13 +30,11 @@ def main():
subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
)
- response = client.accounts.list(
- resource_group_name="myRG",
- )
+ response = client.accounts.list_by_subscription()
for item in response:
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_renew_credentials.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_renew_credentials.py
index a55942cb8095..d85fa2fd159f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_renew_credentials.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_renew_credentials.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_RenewCredentials.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_RenewCredentials.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_update.py
index b02c41bbe46b..a88e6d231f98 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -40,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Accounts_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Accounts_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_create.py
index 1bb88a45d12a..847a53e32649 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -49,6 +47,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_delete.py
index acc166cbec67..1a82f80a7de8 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_delete.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_get.py
index bc253ed6a7bc..875a5a908875 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_list.py
index 1d5add643f57..44cc8af1ffe9 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_update.py
index 3d1e09dfc3af..206e060d2fb4 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_policies_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -49,6 +47,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupPolicies_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupPolicies_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_create.py
index 8d96c08570e6..3e55cc24aa50 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -41,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_delete.py
index 033ed2c023db..c859aa3337f3 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_delete.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_get.py
index 1967f1165a10..fa7a951bf64f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_list.py
index 1be4da3e4d22..e58ab6c71b6d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_update.py
index eb9b96c1603f..6824e60a1785 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backup_vaults_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -41,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupVaults_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupVaults_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_account_migrate.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_account_migrate.py
index 80b9da2851b3..95caf29c2527 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_account_migrate.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_account_migrate.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -41,6 +39,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderAccount_Migrate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderAccount_Migrate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_create.py
index 8e6d46e9c051..bf3221597bce 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -47,6 +45,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_delete.py
index 4519bcb7ff93..d746887d2097 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_delete.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_get.py
index f2478f6a6f38..280ef8e831e5 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_get.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_list.py
index f7de26fd547a..455c901d97b5 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_list.py
@@ -39,6 +39,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_single_file_restore.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_single_file_restore.py
index 0f475c9545dd..6d01a1ca11d4 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_single_file_restore.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_single_file_restore.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -44,6 +42,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_SingleFileRestore.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_SingleFileRestore.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_update.py
index 7836045b94e7..30a2f53e3079 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_backup_vault_update.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderBackupVault_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderBackupVault_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_volume_migrate.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_volume_migrate.py
index 82ea77a9efad..a4b95351c335 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_volume_migrate.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/backups_under_volume_migrate.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/BackupsUnderVolume_Migrate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/BackupsUnderVolume_Migrate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/group_id_list_for_ldap_user.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/group_id_list_for_ldap_user.py
index de66acbf9004..5849a58a6540 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/group_id_list_for_ldap_user.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/group_id_list_for_ldap_user.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -42,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/GroupIdListForLDAPUser.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/GroupIdListForLDAPUser.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/operation_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/operation_list.py
index 99f6e31ee67b..2c5d42f7bf8e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/operation_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/operation_list.py
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/OperationList.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/OperationList.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update.py
index 28ecb72603b9..107d4920e061 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -44,6 +42,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_CreateOrUpdate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_CreateOrUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_delete.py
index 81fc85b14855..e500170ddba2 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_delete.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get.py
index ca7e0478cad6..3acbdabe2757 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_list.py
index f2ba839701c8..b1a0d16c935d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Pools_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Pools_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_get.py
index 2c130968c24a..8054505c8111 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_get.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/QuotaLimits_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_list.py
index 4b4ec4fd8afa..3ebd70692961 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/quota_limits_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/QuotaLimits_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/QuotaLimits_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/region_info.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/region_info.py
index 1a56ecad70c9..2003606ec91f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/region_info.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/region_info.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/RegionInfo.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfo.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_get.py
index beda92df4627..b6a9c7b176e4 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_get.py
@@ -36,6 +36,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/RegionInfos_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_list.py
index cd4e2790e8a3..ae7ddf2295d7 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/region_infos_list.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/RegionInfos_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/RegionInfos_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_create.py
index db1ad8943ccb..6bb01ded387c 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -50,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_delete.py
index 8da3b1bb3113..78d15957b242 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_delete.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_get.py
index 8bc3d6616bea..16ae50864691 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_get.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list.py
index 028dfca49e1c..90c8cef5ece8 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list_volumes.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list_volumes.py
index fea2521a5344..467e3af24e9e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list_volumes.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_list_volumes.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_ListVolumes.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_ListVolumes.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_update.py
index 0a9ad73c483e..074f92a1a46a 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshot_policies_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -50,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/SnapshotPolicies_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/SnapshotPolicies_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_create.py
index c8a5420cdbcc..b625f3330b90 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_delete.py
index d0735e713088..b00d7aed563e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_delete.py
@@ -39,6 +39,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_get.py
index cbb77028fa14..ab13d2c0b1f6 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_get.py
@@ -40,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_list.py
index e54711196877..b5adec601f5e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_list.py
@@ -40,6 +40,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_single_file_restore.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_single_file_restore.py
index 53c9f023174e..7bb5d7584487 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_single_file_restore.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_single_file_restore.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -42,6 +40,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Snapshots_SingleFileRestore.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Snapshots_SingleFileRestore.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_create.py
index 19930ddb1d7a..0408a537416c 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_delete.py
index c23fbe0f584c..0ff048e341a7 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_delete.py
@@ -39,6 +39,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_get.py
index 9a9fc83b54a5..696cc280aa33 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_get.py
@@ -40,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_list.py
index 3516158485ed..9bd9447e4f3d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_list.py
@@ -40,6 +40,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_metadata.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_metadata.py
index eb35b091dee8..3268c08ba491 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_metadata.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_metadata.py
@@ -40,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Metadata.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Metadata.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_update.py
index dcd316786a95..dd0b486576d1 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Subvolumes_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Subvolumes_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_oracle.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_oracle.py
index aacdbef2c00b..9fa5c0823b88 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_oracle.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_oracle.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -460,6 +458,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Create_Oracle.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_Oracle.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_sap_hana.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_sap_hana.py
index 09de35302684..57c213b89b5e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_sap_hana.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_create_sap_hana.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -222,6 +220,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Create_SapHana.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Create_SapHana.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_delete.py
index c729e0d21efe..0bf142da7544 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_delete.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_oracle.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_oracle.py
index 0ab4fb456fe7..87f54fcf5670 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_oracle.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_oracle.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Get_Oracle.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_Oracle.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_sap_hana.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_sap_hana.py
index c075336a6e33..8ae3fb95a2f2 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_sap_hana.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_get_sap_hana.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_Get_SapHana.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_Get_SapHana.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_oracle.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_oracle.py
index 46bb60d36af3..bc566237acc3 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_oracle.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_oracle.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_List_Oracle.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_Oracle.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_sap_hana.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_sap_hana.py
index a5ef208c4549..bb9e8392b81e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_sap_hana.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_groups_list_sap_hana.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeGroups_List_SapHana.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeGroups_List_SapHana.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_create.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_create.py
index 864abfecbd54..330f01735fb1 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_create.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -46,6 +44,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Create.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_delete.py
index d2ea9f22c3fd..cc418d2b0e76 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_delete.py
@@ -39,6 +39,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_get.py
index 181bd10982aa..681fe1b27d27 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_get.py
@@ -40,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_list.py
index 2481b5552aab..0360d2621e28 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_list.py
@@ -40,6 +40,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_update.py
index 7ea74df2e9c0..03a33225de53 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volume_quota_rules_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/VolumeQuotaRules_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/VolumeQuotaRules_Update.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_external_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_external_replication.py
new file mode 100644
index 000000000000..6f0996e3157c
--- /dev/null
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_external_replication.py
@@ -0,0 +1,44 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+
+from azure.mgmt.netapp import NetAppManagementClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-netapp
+# USAGE
+ python volumes_authorize_external_replication.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = NetAppManagementClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
+ )
+
+ response = client.volumes.begin_authorize_external_replication(
+ resource_group_name="myRG",
+ account_name="account1",
+ pool_name="pool1",
+ volume_name="volume1",
+ ).result()
+ print(response)
+
+
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeExternalReplication.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_replication.py
index e01de4f6b961..ca7a8cc2455a 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_replication.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_authorize_replication.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_AuthorizeReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_AuthorizeReplication.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_file_locks.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_file_locks.py
index 5686bcf55f74..dd2ee320217f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_file_locks.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_file_locks.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_BreakFileLocks.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakFileLocks.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_replication.py
index 27acfc19b39e..8c09c586cf0d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_replication.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_break_replication.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_BreakReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_BreakReplication.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_create_or_update.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_create_or_update.py
index 44a576423002..c1041ff35ae9 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_create_or_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_create_or_update.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -50,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_CreateOrUpdate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_CreateOrUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete.py
index 88fad9af83b3..62f946995cc4 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Delete.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete_replication.py
index de894aa5e67b..ef7d90558fb4 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete_replication.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_delete_replication.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_DeleteReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_DeleteReplication.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_external_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_external_replication.py
new file mode 100644
index 000000000000..72e43521e224
--- /dev/null
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_external_replication.py
@@ -0,0 +1,43 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+
+from azure.mgmt.netapp import NetAppManagementClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-netapp
+# USAGE
+ python volumes_finalize_external_replication.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = NetAppManagementClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
+ )
+
+ client.volumes.begin_finalize_external_replication(
+ resource_group_name="myRG",
+ account_name="account1",
+ pool_name="pool1",
+ volume_name="volume1",
+ ).result()
+
+
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeExternalReplication.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_relocation.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_relocation.py
index e91201a6a269..0f6ad3c9c263 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_relocation.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_finalize_relocation.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_FinalizeRelocation.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_FinalizeRelocation.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_get.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_get.py
index 8c86edbbfbcf..73c42fb5b239 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_get.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_get.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_backup_status.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_backup_status.py
index 48567f32ed79..a4fd8b385cc1 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_backup_status.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_backup_status.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_LatestBackupStatus.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestBackupStatus.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_restore_status.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_restore_status.py
index f35bb9c6c33b..26ba6547f39f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_restore_status.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_latest_restore_status.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_LatestRestoreStatus.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_LatestRestoreStatus.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list.py
index 9c66dea7ca0e..d0da0a05658e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list.py
@@ -39,6 +39,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_replications.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_replications.py
index 1575ba071122..89ec97be2196 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_replications.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_replications.py
@@ -40,6 +40,6 @@ def main():
print(item)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ListReplications.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ListReplications.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_peer_external_cluster.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_peer_external_cluster.py
new file mode 100644
index 000000000000..bf78e5f1dfa9
--- /dev/null
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_peer_external_cluster.py
@@ -0,0 +1,45 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+
+from azure.mgmt.netapp import NetAppManagementClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-netapp
+# USAGE
+ python volumes_peer_external_cluster.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = NetAppManagementClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
+ )
+
+ response = client.volumes.begin_peer_external_cluster(
+ resource_group_name="myRG",
+ account_name="account1",
+ pool_name="pool1",
+ volume_name="volume1",
+ body={"peerIpAddresses": ["0.0.0.1", "0.0.0.2", "0.0.0.3", "0.0.0.4", "0.0.0.5", "0.0.0.6"]},
+ ).result()
+ print(response)
+
+
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PeerExternalCluster.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_perform_replication_transfer.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_perform_replication_transfer.py
new file mode 100644
index 000000000000..207e2c300c44
--- /dev/null
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_perform_replication_transfer.py
@@ -0,0 +1,43 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+
+from azure.mgmt.netapp import NetAppManagementClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-netapp
+# USAGE
+ python volumes_perform_replication_transfer.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = NetAppManagementClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
+ )
+
+ client.volumes.begin_perform_replication_transfer(
+ resource_group_name="myRG",
+ account_name="account1",
+ pool_name="pool1",
+ volume_name="volume1",
+ ).result()
+
+
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PerformReplicationTransfer.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_pool_change.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_pool_change.py
index 22c575b83089..abaa2f79ca19 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_pool_change.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_pool_change.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_PoolChange.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PoolChange.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_populate_availability_zones.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_populate_availability_zones.py
index fe8b6111252e..d86247fc85f8 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_populate_availability_zones.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_populate_availability_zones.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_PopulateAvailabilityZones.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_PopulateAvailabilityZones.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_re_initialize_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_re_initialize_replication.py
index 290743793198..4e0472136602 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_re_initialize_replication.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_re_initialize_replication.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ReInitializeReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReInitializeReplication.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reestablish_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reestablish_replication.py
index 3da5b4ea8f8e..c94e96869fa9 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reestablish_replication.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reestablish_replication.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ReestablishReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReestablishReplication.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_relocate.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_relocate.py
index fd21d6a7d153..98ce6a22de9e 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_relocate.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_relocate.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Relocate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Relocate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_replication_status.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_replication_status.py
index b5f75e1332aa..572ab9059241 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_replication_status.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_replication_status.py
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ReplicationStatus.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ReplicationStatus.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reset_cifs_password.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reset_cifs_password.py
index ae35ee017423..cef2b25dbe01 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reset_cifs_password.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_reset_cifs_password.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ResetCifsPassword.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResetCifsPassword.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_resync_replication.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_resync_replication.py
index e031b49699b5..703c0d37184f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_resync_replication.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_resync_replication.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_ResyncReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_ResyncReplication.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert.py
index de8c67604c51..2c8067cc26d5 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert.py
@@ -6,8 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-from typing import Any, IO, Union
-
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
@@ -43,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_Revert.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_Revert.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert_relocation.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert_relocation.py
index d5f241b0caf3..aabab886c057 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert_relocation.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert_relocation.py
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-03-01/examples/Volumes_RevertRelocation.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-07-01/examples/Volumes_RevertRelocation.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations.py
index ececad23010b..e6bb8b34c18b 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations.py
@@ -22,7 +22,7 @@ def setup_method(self, method):
@recorded_by_proxy
def test_list_by_subscription(self, resource_group):
response = self.client.accounts.list_by_subscription(
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,7 +33,7 @@ def test_list_by_subscription(self, resource_group):
def test_list(self, resource_group):
response = self.client.accounts.list(
resource_group_name=resource_group.name,
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
response = self.client.accounts.get(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -119,7 +119,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -131,7 +131,7 @@ def test_begin_delete(self, resource_group):
response = self.client.accounts.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -196,7 +196,7 @@ def test_begin_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -208,7 +208,7 @@ def test_begin_renew_credentials(self, resource_group):
response = self.client.accounts.begin_renew_credentials(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations_async.py
index e7ca6676b262..5ef0227507c0 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_accounts_operations_async.py
@@ -23,7 +23,7 @@ def setup_method(self, method):
@recorded_by_proxy_async
async def test_list_by_subscription(self, resource_group):
response = self.client.accounts.list_by_subscription(
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ async def test_list_by_subscription(self, resource_group):
async def test_list(self, resource_group):
response = self.client.accounts.list(
resource_group_name=resource_group.name,
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
response = await self.client.accounts.get(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -121,7 +121,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -135,7 +135,7 @@ async def test_begin_delete(self, resource_group):
await self.client.accounts.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -202,7 +202,7 @@ async def test_begin_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -216,7 +216,7 @@ async def test_begin_renew_credentials(self, resource_group):
await self.client.accounts.begin_renew_credentials(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations.py
index 6635f10eb167..a3f9ff2695d8 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations.py
@@ -24,7 +24,7 @@ def test_list(self, resource_group):
response = self.client.backup_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -76,7 +76,7 @@ def test_begin_create(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -106,7 +106,7 @@ def test_begin_update(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -119,7 +119,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations_async.py
index f27b981ea597..cd05a60e980f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_policies_operations_async.py
@@ -25,7 +25,7 @@ async def test_list(self, resource_group):
response = self.client.backup_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -78,7 +78,7 @@ async def test_begin_create(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -110,7 +110,7 @@ async def test_begin_update(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -125,7 +125,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations.py
index 9a6a8dcec038..5e5fe8f567cb 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations.py
@@ -24,7 +24,7 @@ def test_list_by_net_app_account(self, resource_group):
response = self.client.backup_vaults.list_by_net_app_account(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -66,7 +66,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -80,7 +80,7 @@ def test_begin_update(self, resource_group):
account_name="str",
backup_vault_name="str",
body={"tags": {"str": "str"}},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -93,7 +93,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations_async.py
index 4bbaa9a0a1a8..fbcfef80b13a 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backup_vaults_operations_async.py
@@ -25,7 +25,7 @@ async def test_list_by_net_app_account(self, resource_group):
response = self.client.backup_vaults.list_by_net_app_account(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -68,7 +68,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -84,7 +84,7 @@ async def test_begin_update(self, resource_group):
account_name="str",
backup_vault_name="str",
body={"tags": {"str": "str"}},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -99,7 +99,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations.py
index 7b62cb03b029..1f8d3ed6597b 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations.py
@@ -26,7 +26,7 @@ def test_get_latest_status(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ def test_get_volume_latest_restore_status(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -53,7 +53,7 @@ def test_list_by_vault(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -67,7 +67,7 @@ def test_get(self, resource_group):
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -105,7 +105,7 @@ def test_begin_create(self, resource_group):
"type": "str",
"useExistingSnapshot": False,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -119,7 +119,7 @@ def test_begin_update(self, resource_group):
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -133,7 +133,7 @@ def test_begin_delete(self, resource_group):
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations_async.py
index fe7c37d7197d..62a93d0d99cf 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_operations_async.py
@@ -27,7 +27,7 @@ async def test_get_latest_status(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -41,7 +41,7 @@ async def test_get_volume_latest_restore_status(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -54,7 +54,7 @@ async def test_list_by_vault(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -68,7 +68,7 @@ async def test_get(self, resource_group):
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -107,7 +107,7 @@ async def test_begin_create(self, resource_group):
"type": "str",
"useExistingSnapshot": False,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -123,7 +123,7 @@ async def test_begin_update(self, resource_group):
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -139,7 +139,7 @@ async def test_begin_delete(self, resource_group):
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations.py
index cc9e88300116..d1bfa6659041 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations.py
@@ -25,7 +25,7 @@ def test_begin_migrate_backups(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
body={"backupVaultId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations_async.py
index d4b3779b7cb6..19f25399f864 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_account_operations_async.py
@@ -27,7 +27,7 @@ async def test_begin_migrate_backups(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
body={"backupVaultId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations.py
index 527567183527..24a54d1308ec 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations.py
@@ -27,7 +27,7 @@ def test_begin_restore_files(self, resource_group):
backup_vault_name="str",
backup_name="str",
body={"destinationVolumeId": "str", "fileList": ["str"], "restoreFilePath": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations_async.py
index b5cedb3df437..f0562cb5dc18 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_backup_vault_operations_async.py
@@ -29,7 +29,7 @@ async def test_begin_restore_files(self, resource_group):
backup_vault_name="str",
backup_name="str",
body={"destinationVolumeId": "str", "fileList": ["str"], "restoreFilePath": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations.py
index 08810a1f9c54..50f590200c76 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations.py
@@ -27,7 +27,7 @@ def test_begin_migrate_backups(self, resource_group):
pool_name="str",
volume_name="str",
body={"backupVaultId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations_async.py
index 50c9e9f5a892..b3aa51b4495b 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_backups_under_volume_operations_async.py
@@ -29,7 +29,7 @@ async def test_begin_migrate_backups(self, resource_group):
pool_name="str",
volume_name="str",
body={"backupVaultId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations.py
index 29ad4274e3b1..b7fc794179a5 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations.py
@@ -26,7 +26,7 @@ def test_check_name_availability(self, resource_group):
name="str",
type="str",
resource_group="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -39,7 +39,7 @@ def test_check_file_path_availability(self, resource_group):
location="str",
name="str",
subnet_id="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -53,7 +53,7 @@ def test_check_quota_availability(self, resource_group):
name="str",
type="str",
resource_group="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -64,7 +64,7 @@ def test_check_quota_availability(self, resource_group):
def test_query_region_info(self, resource_group):
response = self.client.net_app_resource.query_region_info(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ def test_query_network_sibling_set(self, resource_group):
location="str",
network_sibling_set_id="str",
subnet_id="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -92,7 +92,7 @@ def test_begin_update_network_sibling_set(self, resource_group):
subnet_id="str",
network_sibling_set_state_id="str",
network_features="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations_async.py
index 95a2213aebb7..4a5bb25abff5 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_operations_async.py
@@ -27,7 +27,7 @@ async def test_check_name_availability(self, resource_group):
name="str",
type="str",
resource_group="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ async def test_check_file_path_availability(self, resource_group):
location="str",
name="str",
subnet_id="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -54,7 +54,7 @@ async def test_check_quota_availability(self, resource_group):
name="str",
type="str",
resource_group="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -65,7 +65,7 @@ async def test_check_quota_availability(self, resource_group):
async def test_query_region_info(self, resource_group):
response = await self.client.net_app_resource.query_region_info(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -78,7 +78,7 @@ async def test_query_network_sibling_set(self, resource_group):
location="str",
network_sibling_set_id="str",
subnet_id="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -94,7 +94,7 @@ async def test_begin_update_network_sibling_set(self, resource_group):
subnet_id="str",
network_sibling_set_state_id="str",
network_features="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations.py
index b3ce0f0f3eea..401d625be12d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations.py
@@ -23,7 +23,7 @@ def setup_method(self, method):
def test_list(self, resource_group):
response = self.client.net_app_resource_quota_limits.list(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -35,7 +35,7 @@ def test_get(self, resource_group):
response = self.client.net_app_resource_quota_limits.get(
location="str",
quota_limit_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations_async.py
index 97f7a9ee320d..18498df9d507 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_quota_limits_operations_async.py
@@ -24,7 +24,7 @@ def setup_method(self, method):
async def test_list(self, resource_group):
response = self.client.net_app_resource_quota_limits.list(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -36,7 +36,7 @@ async def test_get(self, resource_group):
response = await self.client.net_app_resource_quota_limits.get(
location="str",
quota_limit_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations.py
index bc12b7940905..96ee49254d3c 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations.py
@@ -23,7 +23,7 @@ def setup_method(self, method):
def test_list(self, resource_group):
response = self.client.net_app_resource_region_infos.list(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -34,7 +34,7 @@ def test_list(self, resource_group):
def test_get(self, resource_group):
response = self.client.net_app_resource_region_infos.get(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations_async.py
index f51f988f8754..2be26ab47041 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_net_app_resource_region_infos_operations_async.py
@@ -24,7 +24,7 @@ def setup_method(self, method):
async def test_list(self, resource_group):
response = self.client.net_app_resource_region_infos.list(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -35,7 +35,7 @@ async def test_list(self, resource_group):
async def test_get(self, resource_group):
response = await self.client.net_app_resource_region_infos.get(
location="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations.py
index 53d81993652c..bb119b4883f5 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations.py
@@ -22,7 +22,7 @@ def setup_method(self, method):
@recorded_by_proxy
def test_list(self, resource_group):
response = self.client.operations.list(
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations_async.py
index e6e73de55d5a..26686d3e6bfd 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_operations_async.py
@@ -23,7 +23,7 @@ def setup_method(self, method):
@recorded_by_proxy_async
async def test_list(self, resource_group):
response = self.client.operations.list(
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations.py
index 17be0b5736f5..1121df5a84a7 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations.py
@@ -24,7 +24,7 @@ def test_list(self, resource_group):
response = self.client.pools.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ def test_begin_create_or_update(self, resource_group):
"type": "str",
"utilizedThroughputMibps": 0.0,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -98,7 +98,7 @@ def test_begin_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -111,7 +111,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations_async.py
index 61d07836b125..2bf72bfb77c3 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_pools_operations_async.py
@@ -25,7 +25,7 @@ async def test_list(self, resource_group):
response = self.client.pools.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ async def test_begin_create_or_update(self, resource_group):
"type": "str",
"utilizedThroughputMibps": 0.0,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -102,7 +102,7 @@ async def test_begin_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -117,7 +117,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations.py
index 1cfe65e89d55..2a1191611dc7 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations.py
@@ -24,7 +24,7 @@ def test_list(self, resource_group):
response = self.client.snapshot_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -72,7 +72,7 @@ def test_create(self, resource_group):
"type": "str",
"weeklySchedule": {"day": "str", "hour": 0, "minute": 0, "snapshotsToKeep": 0, "usedBytes": 0},
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -98,7 +98,7 @@ def test_begin_update(self, resource_group):
"type": "str",
"weeklySchedule": {"day": "str", "hour": 0, "minute": 0, "snapshotsToKeep": 0, "usedBytes": 0},
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -111,7 +111,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -124,7 +124,7 @@ def test_list_volumes(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations_async.py
index 564f918d5d82..3847e7809f42 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshot_policies_operations_async.py
@@ -25,7 +25,7 @@ async def test_list(self, resource_group):
response = self.client.snapshot_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -73,7 +73,7 @@ async def test_create(self, resource_group):
"type": "str",
"weeklySchedule": {"day": "str", "hour": 0, "minute": 0, "snapshotsToKeep": 0, "usedBytes": 0},
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -106,7 +106,7 @@ async def test_begin_update(self, resource_group):
"type": "str",
"weeklySchedule": {"day": "str", "hour": 0, "minute": 0, "snapshotsToKeep": 0, "usedBytes": 0},
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -121,7 +121,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -135,7 +135,7 @@ async def test_list_volumes(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations.py
index 85f75f047bb0..e4fffa2bbca0 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations.py
@@ -26,7 +26,7 @@ def test_list(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -41,7 +41,7 @@ def test_get(self, resource_group):
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -73,7 +73,7 @@ def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -89,7 +89,7 @@ def test_begin_update(self, resource_group):
volume_name="str",
snapshot_name="str",
body={},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -104,7 +104,7 @@ def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -120,7 +120,7 @@ def test_begin_restore_files(self, resource_group):
volume_name="str",
snapshot_name="str",
body={"filePaths": ["str"], "destinationPath": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations_async.py
index b9d37f82d446..ed8c1e7b5d5d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_snapshots_operations_async.py
@@ -27,7 +27,7 @@ async def test_list(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -42,7 +42,7 @@ async def test_get(self, resource_group):
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ async def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -93,7 +93,7 @@ async def test_begin_update(self, resource_group):
volume_name="str",
snapshot_name="str",
body={},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -110,7 +110,7 @@ async def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -128,7 +128,7 @@ async def test_begin_restore_files(self, resource_group):
volume_name="str",
snapshot_name="str",
body={"filePaths": ["str"], "destinationPath": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations.py
index 055cb37d77b3..fbd22873ddd2 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations.py
@@ -26,7 +26,7 @@ def test_list_by_volume(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -41,7 +41,7 @@ def test_get(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -73,7 +73,7 @@ def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -89,7 +89,7 @@ def test_begin_update(self, resource_group):
volume_name="str",
subvolume_name="str",
body={"path": "str", "size": 0},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -104,7 +104,7 @@ def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -119,7 +119,7 @@ def test_begin_get_metadata(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations_async.py
index f1cac97cbf23..bcb00fe6f682 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_subvolumes_operations_async.py
@@ -27,7 +27,7 @@ async def test_list_by_volume(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -42,7 +42,7 @@ async def test_get(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ async def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -93,7 +93,7 @@ async def test_begin_update(self, resource_group):
volume_name="str",
subvolume_name="str",
body={"path": "str", "size": 0},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -110,7 +110,7 @@ async def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -127,7 +127,7 @@ async def test_begin_get_metadata(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations.py
index e329da8ba160..f56c03177f28 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations.py
@@ -24,7 +24,7 @@ def test_list_by_net_app_account(self, resource_group):
response = self.client.volume_groups.list_by_net_app_account(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -37,7 +37,7 @@ def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -82,6 +82,7 @@ def test_begin_create(self, resource_group):
"replication": {
"remoteVolumeResourceId": "str",
"endpointType": "str",
+ "remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
"replicationId": "str",
"replicationSchedule": "str",
@@ -93,6 +94,7 @@ def test_begin_create(self, resource_group):
"defaultGroupQuotaInKiBs": 0,
"defaultUserQuotaInKiBs": 0,
"deleteBaseSnapshot": bool,
+ "effectiveNetworkFeatures": "Basic",
"enableSubvolumes": "Disabled",
"encrypted": bool,
"encryptionKeySource": "Microsoft.NetApp",
@@ -160,7 +162,7 @@ def test_begin_create(self, resource_group):
}
],
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -173,7 +175,7 @@ def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations_async.py
index f6abd9b8146c..c044142e91ce 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_groups_operations_async.py
@@ -25,7 +25,7 @@ async def test_list_by_net_app_account(self, resource_group):
response = self.client.volume_groups.list_by_net_app_account(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -38,7 +38,7 @@ async def test_get(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -84,6 +84,7 @@ async def test_begin_create(self, resource_group):
"replication": {
"remoteVolumeResourceId": "str",
"endpointType": "str",
+ "remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
"replicationId": "str",
"replicationSchedule": "str",
@@ -95,6 +96,7 @@ async def test_begin_create(self, resource_group):
"defaultGroupQuotaInKiBs": 0,
"defaultUserQuotaInKiBs": 0,
"deleteBaseSnapshot": bool,
+ "effectiveNetworkFeatures": "Basic",
"enableSubvolumes": "Disabled",
"encrypted": bool,
"encryptionKeySource": "Microsoft.NetApp",
@@ -167,7 +169,7 @@ async def test_begin_create(self, resource_group):
}
],
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -182,7 +184,7 @@ async def test_begin_delete(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations.py
index e6673577a864..45d54a7fd5c4 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations.py
@@ -26,7 +26,7 @@ def test_list_by_volume(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -41,7 +41,7 @@ def test_get(self, resource_group):
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ def test_begin_create(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -97,7 +97,7 @@ def test_begin_update(self, resource_group):
"quotaType": "str",
"tags": {"str": "str"},
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -112,7 +112,7 @@ def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations_async.py
index 6e0fa6dba84a..742cd286ce1f 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volume_quota_rules_operations_async.py
@@ -27,7 +27,7 @@ async def test_list_by_volume(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -42,7 +42,7 @@ async def test_get(self, resource_group):
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -77,7 +77,7 @@ async def test_begin_create(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -101,7 +101,7 @@ async def test_begin_update(self, resource_group):
"quotaType": "str",
"tags": {"str": "str"},
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -118,7 +118,7 @@ async def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations.py
index 29becfa3ab09..5fd2b1bc9a71 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations.py
@@ -25,7 +25,7 @@ def test_list(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -39,7 +39,7 @@ def test_get(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -72,6 +72,7 @@ def test_begin_create_or_update(self, resource_group):
"replication": {
"remoteVolumeResourceId": "str",
"endpointType": "str",
+ "remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
"replicationId": "str",
"replicationSchedule": "str",
@@ -83,6 +84,7 @@ def test_begin_create_or_update(self, resource_group):
"defaultGroupQuotaInKiBs": 0,
"defaultUserQuotaInKiBs": 0,
"deleteBaseSnapshot": bool,
+ "effectiveNetworkFeatures": "Basic",
"enableSubvolumes": "Disabled",
"encrypted": bool,
"encryptionKeySource": "Microsoft.NetApp",
@@ -157,7 +159,7 @@ def test_begin_create_or_update(self, resource_group):
"volumeType": "str",
"zones": ["str"],
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -217,7 +219,7 @@ def test_begin_update(self, resource_group):
"unixPermissions": "str",
"usageThreshold": 107374182400,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -231,7 +233,7 @@ def test_begin_delete(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -245,7 +247,7 @@ def test_begin_populate_availability_zone(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -260,7 +262,7 @@ def test_begin_revert(self, resource_group):
pool_name="str",
volume_name="str",
body={"snapshotId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -274,7 +276,7 @@ def test_begin_reset_cifs_password(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -288,7 +290,7 @@ def test_begin_break_file_locks(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -303,7 +305,7 @@ def test_begin_list_get_group_id_list_for_ldap_user(self, resource_group):
pool_name="str",
volume_name="str",
body={"username": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -317,7 +319,7 @@ def test_begin_break_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -332,7 +334,7 @@ def test_begin_reestablish_replication(self, resource_group):
pool_name="str",
volume_name="str",
body={"sourceVolumeId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -346,7 +348,7 @@ def test_replication_status(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -360,7 +362,7 @@ def test_list_replications(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -374,7 +376,7 @@ def test_begin_resync_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -388,7 +390,7 @@ def test_begin_delete_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -403,7 +405,7 @@ def test_begin_authorize_replication(self, resource_group):
pool_name="str",
volume_name="str",
body={"remoteVolumeResourceId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -417,7 +419,64 @@ def test_begin_re_initialize_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_begin_peer_external_cluster(self, resource_group):
+ response = self.client.volumes.begin_peer_external_cluster(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ body={"peerIpAddresses": ["str"]},
+ api_version="2024-07-01",
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_begin_authorize_external_replication(self, resource_group):
+ response = self.client.volumes.begin_authorize_external_replication(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ api_version="2024-07-01",
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_begin_finalize_external_replication(self, resource_group):
+ response = self.client.volumes.begin_finalize_external_replication(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ api_version="2024-07-01",
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy
+ def test_begin_perform_replication_transfer(self, resource_group):
+ response = self.client.volumes.begin_perform_replication_transfer(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -432,7 +491,7 @@ def test_begin_pool_change(self, resource_group):
pool_name="str",
volume_name="str",
body={"newPoolResourceId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -446,7 +505,7 @@ def test_begin_relocate(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -460,7 +519,7 @@ def test_begin_finalize_relocation(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -474,7 +533,7 @@ def test_begin_revert_relocation(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations_async.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations_async.py
index 8d51ea54aa72..e0a2c687094c 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations_async.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/test_net_app_management_volumes_operations_async.py
@@ -26,7 +26,7 @@ async def test_list(self, resource_group):
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -40,7 +40,7 @@ async def test_get(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -74,6 +74,7 @@ async def test_begin_create_or_update(self, resource_group):
"replication": {
"remoteVolumeResourceId": "str",
"endpointType": "str",
+ "remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
"replicationId": "str",
"replicationSchedule": "str",
@@ -85,6 +86,7 @@ async def test_begin_create_or_update(self, resource_group):
"defaultGroupQuotaInKiBs": 0,
"defaultUserQuotaInKiBs": 0,
"deleteBaseSnapshot": bool,
+ "effectiveNetworkFeatures": "Basic",
"enableSubvolumes": "Disabled",
"encrypted": bool,
"encryptionKeySource": "Microsoft.NetApp",
@@ -159,7 +161,7 @@ async def test_begin_create_or_update(self, resource_group):
"volumeType": "str",
"zones": ["str"],
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -221,7 +223,7 @@ async def test_begin_update(self, resource_group):
"unixPermissions": "str",
"usageThreshold": 107374182400,
},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -237,7 +239,7 @@ async def test_begin_delete(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -253,7 +255,7 @@ async def test_begin_populate_availability_zone(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -270,7 +272,7 @@ async def test_begin_revert(self, resource_group):
pool_name="str",
volume_name="str",
body={"snapshotId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -286,7 +288,7 @@ async def test_begin_reset_cifs_password(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -302,7 +304,7 @@ async def test_begin_break_file_locks(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -319,7 +321,7 @@ async def test_begin_list_get_group_id_list_for_ldap_user(self, resource_group):
pool_name="str",
volume_name="str",
body={"username": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -335,7 +337,7 @@ async def test_begin_break_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -352,7 +354,7 @@ async def test_begin_reestablish_replication(self, resource_group):
pool_name="str",
volume_name="str",
body={"sourceVolumeId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -367,7 +369,7 @@ async def test_replication_status(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
# please add some check logic here by yourself
@@ -381,7 +383,7 @@ async def test_list_replications(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -396,7 +398,7 @@ async def test_begin_resync_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -412,7 +414,7 @@ async def test_begin_delete_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -429,7 +431,7 @@ async def test_begin_authorize_replication(self, resource_group):
pool_name="str",
volume_name="str",
body={"remoteVolumeResourceId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -445,7 +447,72 @@ async def test_begin_re_initialize_replication(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
+ )
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_begin_peer_external_cluster(self, resource_group):
+ response = await (
+ await self.client.volumes.begin_peer_external_cluster(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ body={"peerIpAddresses": ["str"]},
+ api_version="2024-07-01",
+ )
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_begin_authorize_external_replication(self, resource_group):
+ response = await (
+ await self.client.volumes.begin_authorize_external_replication(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ api_version="2024-07-01",
+ )
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_begin_finalize_external_replication(self, resource_group):
+ response = await (
+ await self.client.volumes.begin_finalize_external_replication(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ api_version="2024-07-01",
+ )
+ ).result() # call '.result()' to poll until service return final result
+
+ # please add some check logic here by yourself
+ # ...
+
+ @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
+ @recorded_by_proxy_async
+ async def test_begin_perform_replication_transfer(self, resource_group):
+ response = await (
+ await self.client.volumes.begin_perform_replication_transfer(
+ resource_group_name=resource_group.name,
+ account_name="str",
+ pool_name="str",
+ volume_name="str",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -462,7 +529,7 @@ async def test_begin_pool_change(self, resource_group):
pool_name="str",
volume_name="str",
body={"newPoolResourceId": "str"},
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -478,7 +545,7 @@ async def test_begin_relocate(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -494,7 +561,7 @@ async def test_begin_finalize_relocation(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result
@@ -510,7 +577,7 @@ async def test_begin_revert_relocation(self, resource_group):
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-03-01",
+ api_version="2024-07-01",
)
).result() # call '.result()' to poll until service return final result