diff --git a/sdk/netapp/azure-mgmt-netapp/_meta.json b/sdk/netapp/azure-mgmt-netapp/_meta.json
index 5136e9793ac0..110978454087 100644
--- a/sdk/netapp/azure-mgmt-netapp/_meta.json
+++ b/sdk/netapp/azure-mgmt-netapp/_meta.json
@@ -1,11 +1,11 @@
{
- "commit": "c4dc3cd6256c8a7525079f2b98285cd5b1c8bee6",
+ "commit": "72cd4a212f0e555acd096257e6e782c64a9468a5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
- "@autorest/python@6.19.0",
+ "@autorest/python@6.27.4",
"@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=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-preview-2024-07-01-preview --use=@autorest/python@6.19.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.27.4 --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/__init__.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/__init__.py
index 877de7b3e183..8973f5cb4980 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/__init__.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/__init__.py
@@ -5,15 +5,21 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+# pylint: disable=wrong-import-position
-from ._net_app_management_client import NetAppManagementClient
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._net_app_management_client import NetAppManagementClient # type: ignore
from ._version import VERSION
__version__ = VERSION
try:
from ._patch import __all__ as _patch_all
- from ._patch import * # pylint: disable=unused-wildcard-import
+ from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
@@ -21,6 +27,6 @@
__all__ = [
"NetAppManagementClient",
]
-__all__.extend([p for p in _patch_all if p not in __all__])
+__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
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 4a594b650db0..73d076ca2b7c 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py
@@ -14,11 +14,10 @@
from ._version import VERSION
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
-class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
+class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for NetAppManagementClient.
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,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-07-01-preview". Note that overriding
- this default value may result in unsupported behavior.
+ :keyword api_version: Api Version. Default value is "2024-09-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-07-01-preview")
+ api_version: str = kwargs.pop("api_version", "2024-09-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 5bb7c457a9c3..e2f4e94b6b88 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
@@ -40,11 +40,10 @@
)
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
-class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
+class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
"""Microsoft NetApp Files Azure Resource Provider specification.
:ivar operations: Operations operations
@@ -92,8 +91,8 @@ 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-07-01-preview". Note that overriding
- this default value may result in unsupported behavior.
+ :keyword api_version: Api Version. Default value is "2024-09-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
Retry-After header is present.
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_serialization.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_serialization.py
index 8139854b97bb..b24ab2885450 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_serialization.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_serialization.py
@@ -1,3 +1,4 @@
+# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -24,7 +25,6 @@
#
# --------------------------------------------------------------------------
-# pylint: skip-file
# pyright: reportUnnecessaryTypeIgnoreComment=false
from base64 import b64decode, b64encode
@@ -52,7 +52,6 @@
MutableMapping,
Type,
List,
- Mapping,
)
try:
@@ -91,6 +90,8 @@ def deserialize_from_text(cls, data: Optional[Union[AnyStr, IO]], content_type:
:param data: Input, could be bytes or stream (will be decoded with UTF8) or text
:type data: str or bytes or IO
:param str content_type: The content type.
+ :return: The deserialized data.
+ :rtype: object
"""
if hasattr(data, "read"):
# Assume a stream
@@ -112,7 +113,7 @@ def deserialize_from_text(cls, data: Optional[Union[AnyStr, IO]], content_type:
try:
return json.loads(data_as_str)
except ValueError as err:
- raise DeserializationError("JSON is invalid: {}".format(err), err)
+ raise DeserializationError("JSON is invalid: {}".format(err), err) from err
elif "xml" in (content_type or []):
try:
@@ -155,6 +156,11 @@ def deserialize_from_http_generics(cls, body_bytes: Optional[Union[AnyStr, IO]],
Use bytes and headers to NOT use any requests/aiohttp or whatever
specific implementation.
Headers will tested for "content-type"
+
+ :param bytes body_bytes: The body of the response.
+ :param dict headers: The headers of the response.
+ :returns: The deserialized data.
+ :rtype: object
"""
# Try to use content-type from headers if available
content_type = None
@@ -184,15 +190,30 @@ class UTC(datetime.tzinfo):
"""Time Zone info for handling UTC"""
def utcoffset(self, dt):
- """UTF offset for UTC is 0."""
+ """UTF offset for UTC is 0.
+
+ :param datetime.datetime dt: The datetime
+ :returns: The offset
+ :rtype: datetime.timedelta
+ """
return datetime.timedelta(0)
def tzname(self, dt):
- """Timestamp representation."""
+ """Timestamp representation.
+
+ :param datetime.datetime dt: The datetime
+ :returns: The timestamp representation
+ :rtype: str
+ """
return "Z"
def dst(self, dt):
- """No daylight saving for UTC."""
+ """No daylight saving for UTC.
+
+ :param datetime.datetime dt: The datetime
+ :returns: The daylight saving time
+ :rtype: datetime.timedelta
+ """
return datetime.timedelta(hours=1)
@@ -206,7 +227,7 @@ class _FixedOffset(datetime.tzinfo): # type: ignore
:param datetime.timedelta offset: offset in timedelta format
"""
- def __init__(self, offset):
+ def __init__(self, offset) -> None:
self.__offset = offset
def utcoffset(self, dt):
@@ -235,24 +256,26 @@ def __getinitargs__(self):
_FLATTEN = re.compile(r"(? None:
self.additional_properties: Optional[Dict[str, Any]] = {}
- for k in kwargs:
+ for k in kwargs: # pylint: disable=consider-using-dict-items
if k not in self._attribute_map:
_LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__)
elif k in self._validation and self._validation[k].get("readonly", False):
@@ -300,13 +330,23 @@ def __init__(self, **kwargs: Any) -> None:
setattr(self, k, kwargs[k])
def __eq__(self, other: Any) -> bool:
- """Compare objects by comparing all attributes."""
+ """Compare objects by comparing all attributes.
+
+ :param object other: The object to compare
+ :returns: True if objects are equal
+ :rtype: bool
+ """
if isinstance(other, self.__class__):
return self.__dict__ == other.__dict__
return False
def __ne__(self, other: Any) -> bool:
- """Compare objects by comparing all attributes."""
+ """Compare objects by comparing all attributes.
+
+ :param object other: The object to compare
+ :returns: True if objects are not equal
+ :rtype: bool
+ """
return not self.__eq__(other)
def __str__(self) -> str:
@@ -326,7 +366,11 @@ def is_xml_model(cls) -> bool:
@classmethod
def _create_xml_node(cls):
- """Create XML node."""
+ """Create XML node.
+
+ :returns: The XML node
+ :rtype: xml.etree.ElementTree.Element
+ """
try:
xml_map = cls._xml_map # type: ignore
except AttributeError:
@@ -346,7 +390,9 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON:
:rtype: dict
"""
serializer = Serializer(self._infer_class_models())
- return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) # type: ignore
+ return serializer._serialize( # type: ignore # pylint: disable=protected-access
+ self, keep_readonly=keep_readonly, **kwargs
+ )
def as_dict(
self,
@@ -380,12 +426,15 @@ def my_key_transformer(key, attr_desc, value):
If you want XML serialization, you can pass the kwargs is_xml=True.
+ :param bool keep_readonly: If you want to serialize the readonly attributes
:param function key_transformer: A key transformer function.
:returns: A dict JSON compatible object
:rtype: dict
"""
serializer = Serializer(self._infer_class_models())
- return serializer._serialize(self, key_transformer=key_transformer, keep_readonly=keep_readonly, **kwargs) # type: ignore
+ return serializer._serialize( # type: ignore # pylint: disable=protected-access
+ self, key_transformer=key_transformer, keep_readonly=keep_readonly, **kwargs
+ )
@classmethod
def _infer_class_models(cls):
@@ -395,7 +444,7 @@ def _infer_class_models(cls):
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
if cls.__name__ not in client_models:
raise ValueError("Not Autorest generated code")
- except Exception:
+ except Exception: # pylint: disable=broad-exception-caught
# Assume it's not Autorest generated (tests?). Add ourselves as dependencies.
client_models = {cls.__name__: cls}
return client_models
@@ -408,6 +457,7 @@ def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = N
:param str content_type: JSON by default, set application/xml if XML.
:returns: An instance of this model
:raises: DeserializationError if something went wrong
+ :rtype: ModelType
"""
deserializer = Deserializer(cls._infer_class_models())
return deserializer(cls.__name__, data, content_type=content_type) # type: ignore
@@ -426,9 +476,11 @@ def from_dict(
and last_rest_key_case_insensitive_extractor)
:param dict data: A dict using RestAPI structure
+ :param function key_extractors: A key extractor function.
:param str content_type: JSON by default, set application/xml if XML.
:returns: An instance of this model
:raises: DeserializationError if something went wrong
+ :rtype: ModelType
"""
deserializer = Deserializer(cls._infer_class_models())
deserializer.key_extractors = ( # type: ignore
@@ -448,21 +500,25 @@ def _flatten_subtype(cls, key, objects):
return {}
result = dict(cls._subtype_map[key])
for valuetype in cls._subtype_map[key].values():
- result.update(objects[valuetype]._flatten_subtype(key, objects))
+ result.update(objects[valuetype]._flatten_subtype(key, objects)) # pylint: disable=protected-access
return result
@classmethod
def _classify(cls, response, objects):
"""Check the class _subtype_map for any child classes.
We want to ignore any inherited _subtype_maps.
- Remove the polymorphic key from the initial data.
+
+ :param dict response: The initial data
+ :param dict objects: The class objects
+ :returns: The class to be used
+ :rtype: class
"""
for subtype_key in cls.__dict__.get("_subtype_map", {}).keys():
subtype_value = None
if not isinstance(response, ET.Element):
rest_api_response_key = cls._get_rest_key_parts(subtype_key)[-1]
- subtype_value = response.pop(rest_api_response_key, None) or response.pop(subtype_key, None)
+ subtype_value = response.get(rest_api_response_key, None) or response.get(subtype_key, None)
else:
subtype_value = xml_key_extractor(subtype_key, cls._attribute_map[subtype_key], response)
if subtype_value:
@@ -501,11 +557,13 @@ def _decode_attribute_map_key(key):
inside the received data.
:param str key: A key string from the generated code
+ :returns: The decoded key
+ :rtype: str
"""
return key.replace("\\.", ".")
-class Serializer(object):
+class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -540,7 +598,7 @@ class Serializer(object):
"multiple": lambda x, y: x % y != 0,
}
- def __init__(self, classes: Optional[Mapping[str, type]] = None):
+ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
self.serialize_type = {
"iso-8601": Serializer.serialize_iso,
"rfc-1123": Serializer.serialize_rfc,
@@ -560,13 +618,16 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None):
self.key_transformer = full_restapi_key_transformer
self.client_side_validation = True
- def _serialize(self, target_obj, data_type=None, **kwargs):
+ def _serialize( # pylint: disable=too-many-nested-blocks, too-many-branches, too-many-statements, too-many-locals
+ self, target_obj, data_type=None, **kwargs
+ ):
"""Serialize data into a string according to type.
- :param target_obj: The data to be serialized.
+ :param object target_obj: The data to be serialized.
:param str data_type: The type to be serialized from.
:rtype: str, dict
:raises: SerializationError if serialization fails.
+ :returns: The serialized data.
"""
key_transformer = kwargs.get("key_transformer", self.key_transformer)
keep_readonly = kwargs.get("keep_readonly", False)
@@ -592,12 +653,14 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
serialized = {}
if is_xml_model_serialization:
- serialized = target_obj._create_xml_node()
+ serialized = target_obj._create_xml_node() # pylint: disable=protected-access
try:
- attributes = target_obj._attribute_map
+ attributes = target_obj._attribute_map # pylint: disable=protected-access
for attr, attr_desc in attributes.items():
attr_name = attr
- if not keep_readonly and target_obj._validation.get(attr_name, {}).get("readonly", False):
+ if not keep_readonly and target_obj._validation.get( # pylint: disable=protected-access
+ attr_name, {}
+ ).get("readonly", False):
continue
if attr_name == "additional_properties" and attr_desc["key"] == "":
@@ -633,7 +696,8 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
if isinstance(new_attr, list):
serialized.extend(new_attr) # type: ignore
elif isinstance(new_attr, ET.Element):
- # If the down XML has no XML/Name, we MUST replace the tag with the local tag. But keeping the namespaces.
+ # If the down XML has no XML/Name,
+ # we MUST replace the tag with the local tag. But keeping the namespaces.
if "name" not in getattr(orig_attr, "_xml_map", {}):
splitted_tag = new_attr.tag.split("}")
if len(splitted_tag) == 2: # Namespace
@@ -664,17 +728,17 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
except (AttributeError, KeyError, TypeError) as err:
msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj))
raise SerializationError(msg) from err
- else:
- return serialized
+ return serialized
def body(self, data, data_type, **kwargs):
"""Serialize data intended for a request body.
- :param data: The data to be serialized.
+ :param object data: The data to be serialized.
:param str data_type: The type to be serialized from.
:rtype: dict
:raises: SerializationError if serialization fails.
:raises: ValueError if data is None
+ :returns: The serialized request body
"""
# Just in case this is a dict
@@ -703,7 +767,7 @@ def body(self, data, data_type, **kwargs):
attribute_key_case_insensitive_extractor,
last_rest_key_case_insensitive_extractor,
]
- data = deserializer._deserialize(data_type, data)
+ data = deserializer._deserialize(data_type, data) # pylint: disable=protected-access
except DeserializationError as err:
raise SerializationError("Unable to build a model: " + str(err)) from err
@@ -712,9 +776,11 @@ def body(self, data, data_type, **kwargs):
def url(self, name, data, data_type, **kwargs):
"""Serialize data intended for a URL path.
- :param data: The data to be serialized.
+ :param str name: The name of the URL path parameter.
+ :param object data: The data to be serialized.
:param str data_type: The type to be serialized from.
:rtype: str
+ :returns: The serialized URL path
:raises: TypeError if serialization fails.
:raises: ValueError if data is None
"""
@@ -728,21 +794,20 @@ def url(self, name, data, data_type, **kwargs):
output = output.replace("{", quote("{")).replace("}", quote("}"))
else:
output = quote(str(output), safe="")
- except SerializationError:
- raise TypeError("{} must be type {}.".format(name, data_type))
- else:
- return output
+ except SerializationError as exc:
+ raise TypeError("{} must be type {}.".format(name, data_type)) from exc
+ return output
def query(self, name, data, data_type, **kwargs):
"""Serialize data intended for a URL query.
- :param data: The data to be serialized.
+ :param str name: The name of the query parameter.
+ :param object data: The data to be serialized.
:param str data_type: The type to be serialized from.
- :keyword bool skip_quote: Whether to skip quote the serialized result.
- Defaults to False.
:rtype: str, list
:raises: TypeError if serialization fails.
:raises: ValueError if data is None
+ :returns: The serialized query parameter
"""
try:
# Treat the list aside, since we don't want to encode the div separator
@@ -759,19 +824,20 @@ def query(self, name, data, data_type, **kwargs):
output = str(output)
else:
output = quote(str(output), safe="")
- except SerializationError:
- raise TypeError("{} must be type {}.".format(name, data_type))
- else:
- return str(output)
+ except SerializationError as exc:
+ raise TypeError("{} must be type {}.".format(name, data_type)) from exc
+ return str(output)
def header(self, name, data, data_type, **kwargs):
"""Serialize data intended for a request header.
- :param data: The data to be serialized.
+ :param str name: The name of the header.
+ :param object data: The data to be serialized.
:param str data_type: The type to be serialized from.
:rtype: str
:raises: TypeError if serialization fails.
:raises: ValueError if data is None
+ :returns: The serialized header
"""
try:
if data_type in ["[str]"]:
@@ -780,21 +846,20 @@ def header(self, name, data, data_type, **kwargs):
output = self.serialize_data(data, data_type, **kwargs)
if data_type == "bool":
output = json.dumps(output)
- except SerializationError:
- raise TypeError("{} must be type {}.".format(name, data_type))
- else:
- return str(output)
+ except SerializationError as exc:
+ raise TypeError("{} must be type {}.".format(name, data_type)) from exc
+ return str(output)
def serialize_data(self, data, data_type, **kwargs):
"""Serialize generic data according to supplied data type.
- :param data: The data to be serialized.
+ :param object data: The data to be serialized.
:param str data_type: The type to be serialized from.
- :param bool required: Whether it's essential that the data not be
- empty or None
:raises: AttributeError if required data is None.
:raises: ValueError if data is None
:raises: SerializationError if serialization fails.
+ :returns: The serialized data.
+ :rtype: str, int, float, bool, dict, list
"""
if data is None:
raise ValueError("No value for given attribute")
@@ -805,7 +870,7 @@ def serialize_data(self, data, data_type, **kwargs):
if data_type in self.basic_types.values():
return self.serialize_basic(data, data_type, **kwargs)
- elif data_type in self.serialize_type:
+ if data_type in self.serialize_type:
return self.serialize_type[data_type](data, **kwargs)
# If dependencies is empty, try with current data class
@@ -821,11 +886,10 @@ def serialize_data(self, data, data_type, **kwargs):
except (ValueError, TypeError) as err:
msg = "Unable to serialize value: {!r} as type: {!r}."
raise SerializationError(msg.format(data, data_type)) from err
- else:
- return self._serialize(data, **kwargs)
+ return self._serialize(data, **kwargs)
@classmethod
- def _get_custom_serializers(cls, data_type, **kwargs):
+ def _get_custom_serializers(cls, data_type, **kwargs): # pylint: disable=inconsistent-return-statements
custom_serializer = kwargs.get("basic_types_serializers", {}).get(data_type)
if custom_serializer:
return custom_serializer
@@ -841,23 +905,26 @@ def serialize_basic(cls, data, data_type, **kwargs):
- basic_types_serializers dict[str, callable] : If set, use the callable as serializer
- is_xml bool : If set, use xml_basic_types_serializers
- :param data: Object to be serialized.
+ :param obj data: Object to be serialized.
:param str data_type: Type of object in the iterable.
+ :rtype: str, int, float, bool
+ :return: serialized object
"""
custom_serializer = cls._get_custom_serializers(data_type, **kwargs)
if custom_serializer:
return custom_serializer(data)
if data_type == "str":
return cls.serialize_unicode(data)
- return eval(data_type)(data) # nosec
+ return eval(data_type)(data) # nosec # pylint: disable=eval-used
@classmethod
def serialize_unicode(cls, data):
"""Special handling for serializing unicode strings in Py2.
Encode to UTF-8 if unicode, otherwise handle as a str.
- :param data: Object to be serialized.
+ :param str data: Object to be serialized.
:rtype: str
+ :return: serialized object
"""
try: # If I received an enum, return its value
return data.value
@@ -871,8 +938,7 @@ def serialize_unicode(cls, data):
return data
except NameError:
return str(data)
- else:
- return str(data)
+ return str(data)
def serialize_iter(self, data, iter_type, div=None, **kwargs):
"""Serialize iterable.
@@ -882,15 +948,13 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs):
serialization_ctxt['type'] should be same as data_type.
- is_xml bool : If set, serialize as XML
- :param list attr: Object to be serialized.
+ :param list data: Object to be serialized.
:param str iter_type: Type of object in the iterable.
- :param bool required: Whether the objects in the iterable must
- not be None or empty.
:param str div: If set, this str will be used to combine the elements
in the iterable into a combined string. Default is 'None'.
- :keyword bool do_quote: Whether to quote the serialized result of each iterable element.
Defaults to False.
:rtype: list, str
+ :return: serialized iterable
"""
if isinstance(data, str):
raise SerializationError("Refuse str type as a valid iter type.")
@@ -945,9 +1009,8 @@ def serialize_dict(self, attr, dict_type, **kwargs):
:param dict attr: Object to be serialized.
:param str dict_type: Type of object in the dictionary.
- :param bool required: Whether the objects in the dictionary must
- not be None or empty.
:rtype: dict
+ :return: serialized dictionary
"""
serialization_ctxt = kwargs.get("serialization_ctxt", {})
serialized = {}
@@ -971,7 +1034,7 @@ def serialize_dict(self, attr, dict_type, **kwargs):
return serialized
- def serialize_object(self, attr, **kwargs):
+ def serialize_object(self, attr, **kwargs): # pylint: disable=too-many-return-statements
"""Serialize a generic object.
This will be handled as a dictionary. If object passed in is not
a basic type (str, int, float, dict, list) it will simply be
@@ -979,6 +1042,7 @@ def serialize_object(self, attr, **kwargs):
:param dict attr: Object to be serialized.
:rtype: dict or str
+ :return: serialized object
"""
if attr is None:
return None
@@ -1003,7 +1067,7 @@ def serialize_object(self, attr, **kwargs):
return self.serialize_decimal(attr)
# If it's a model or I know this dependency, serialize as a Model
- elif obj_type in self.dependencies.values() or isinstance(attr, Model):
+ if obj_type in self.dependencies.values() or isinstance(attr, Model):
return self._serialize(attr)
if obj_type == dict:
@@ -1034,56 +1098,61 @@ def serialize_enum(attr, enum_obj=None):
try:
enum_obj(result) # type: ignore
return result
- except ValueError:
+ except ValueError as exc:
for enum_value in enum_obj: # type: ignore
if enum_value.value.lower() == str(attr).lower():
return enum_value.value
error = "{!r} is not valid value for enum {!r}"
- raise SerializationError(error.format(attr, enum_obj))
+ raise SerializationError(error.format(attr, enum_obj)) from exc
@staticmethod
- def serialize_bytearray(attr, **kwargs):
+ def serialize_bytearray(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize bytearray into base-64 string.
- :param attr: Object to be serialized.
+ :param str attr: Object to be serialized.
:rtype: str
+ :return: serialized base64
"""
return b64encode(attr).decode()
@staticmethod
- def serialize_base64(attr, **kwargs):
+ def serialize_base64(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize str into base-64 string.
- :param attr: Object to be serialized.
+ :param str attr: Object to be serialized.
:rtype: str
+ :return: serialized base64
"""
encoded = b64encode(attr).decode("ascii")
return encoded.strip("=").replace("+", "-").replace("/", "_")
@staticmethod
- def serialize_decimal(attr, **kwargs):
+ def serialize_decimal(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Decimal object to float.
- :param attr: Object to be serialized.
+ :param decimal attr: Object to be serialized.
:rtype: float
+ :return: serialized decimal
"""
return float(attr)
@staticmethod
- def serialize_long(attr, **kwargs):
+ def serialize_long(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize long (Py2) or int (Py3).
- :param attr: Object to be serialized.
+ :param int attr: Object to be serialized.
:rtype: int/long
+ :return: serialized long
"""
return _long_type(attr)
@staticmethod
- def serialize_date(attr, **kwargs):
+ def serialize_date(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Date object into ISO-8601 formatted string.
:param Date attr: Object to be serialized.
:rtype: str
+ :return: serialized date
"""
if isinstance(attr, str):
attr = isodate.parse_date(attr)
@@ -1091,11 +1160,12 @@ def serialize_date(attr, **kwargs):
return t
@staticmethod
- def serialize_time(attr, **kwargs):
+ def serialize_time(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Time object into ISO-8601 formatted string.
:param datetime.time attr: Object to be serialized.
:rtype: str
+ :return: serialized time
"""
if isinstance(attr, str):
attr = isodate.parse_time(attr)
@@ -1105,30 +1175,32 @@ def serialize_time(attr, **kwargs):
return t
@staticmethod
- def serialize_duration(attr, **kwargs):
+ def serialize_duration(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize TimeDelta object into ISO-8601 formatted string.
:param TimeDelta attr: Object to be serialized.
:rtype: str
+ :return: serialized duration
"""
if isinstance(attr, str):
attr = isodate.parse_duration(attr)
return isodate.duration_isoformat(attr)
@staticmethod
- def serialize_rfc(attr, **kwargs):
+ def serialize_rfc(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Datetime object into RFC-1123 formatted string.
:param Datetime attr: Object to be serialized.
:rtype: str
:raises: TypeError if format invalid.
+ :return: serialized rfc
"""
try:
if not attr.tzinfo:
_LOGGER.warning("Datetime with no tzinfo will be considered UTC.")
utc = attr.utctimetuple()
- except AttributeError:
- raise TypeError("RFC1123 object must be valid Datetime object.")
+ except AttributeError as exc:
+ raise TypeError("RFC1123 object must be valid Datetime object.") from exc
return "{}, {:02} {} {:04} {:02}:{:02}:{:02} GMT".format(
Serializer.days[utc.tm_wday],
@@ -1141,12 +1213,13 @@ def serialize_rfc(attr, **kwargs):
)
@staticmethod
- def serialize_iso(attr, **kwargs):
+ def serialize_iso(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Datetime object into ISO-8601 formatted string.
:param Datetime attr: Object to be serialized.
:rtype: str
:raises: SerializationError if format invalid.
+ :return: serialized iso
"""
if isinstance(attr, str):
attr = isodate.parse_datetime(attr)
@@ -1172,13 +1245,14 @@ def serialize_iso(attr, **kwargs):
raise TypeError(msg) from err
@staticmethod
- def serialize_unix(attr, **kwargs):
+ def serialize_unix(attr, **kwargs): # pylint: disable=unused-argument
"""Serialize Datetime object into IntTime format.
This is represented as seconds.
:param Datetime attr: Object to be serialized.
:rtype: int
:raises: SerializationError if format invalid
+ :return: serialied unix
"""
if isinstance(attr, int):
return attr
@@ -1186,11 +1260,11 @@ def serialize_unix(attr, **kwargs):
if not attr.tzinfo:
_LOGGER.warning("Datetime with no tzinfo will be considered UTC.")
return int(calendar.timegm(attr.utctimetuple()))
- except AttributeError:
- raise TypeError("Unix time object must be valid Datetime object.")
+ except AttributeError as exc:
+ raise TypeError("Unix time object must be valid Datetime object.") from exc
-def rest_key_extractor(attr, attr_desc, data):
+def rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
key = attr_desc["key"]
working_data = data
@@ -1211,7 +1285,9 @@ def rest_key_extractor(attr, attr_desc, data):
return working_data.get(key)
-def rest_key_case_insensitive_extractor(attr, attr_desc, data):
+def rest_key_case_insensitive_extractor( # pylint: disable=unused-argument, inconsistent-return-statements
+ attr, attr_desc, data
+):
key = attr_desc["key"]
working_data = data
@@ -1232,17 +1308,29 @@ def rest_key_case_insensitive_extractor(attr, attr_desc, data):
return attribute_key_case_insensitive_extractor(key, None, working_data)
-def last_rest_key_extractor(attr, attr_desc, data):
- """Extract the attribute in "data" based on the last part of the JSON path key."""
+def last_rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
+ """Extract the attribute in "data" based on the last part of the JSON path key.
+
+ :param str attr: The attribute to extract
+ :param dict attr_desc: The attribute description
+ :param dict data: The data to extract from
+ :rtype: object
+ :returns: The extracted attribute
+ """
key = attr_desc["key"]
dict_keys = _FLATTEN.split(key)
return attribute_key_extractor(dict_keys[-1], None, data)
-def last_rest_key_case_insensitive_extractor(attr, attr_desc, data):
+def last_rest_key_case_insensitive_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
"""Extract the attribute in "data" based on the last part of the JSON path key.
This is the case insensitive version of "last_rest_key_extractor"
+ :param str attr: The attribute to extract
+ :param dict attr_desc: The attribute description
+ :param dict data: The data to extract from
+ :rtype: object
+ :returns: The extracted attribute
"""
key = attr_desc["key"]
dict_keys = _FLATTEN.split(key)
@@ -1279,7 +1367,7 @@ def _extract_name_from_internal_type(internal_type):
return xml_name
-def xml_key_extractor(attr, attr_desc, data):
+def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument,too-many-return-statements
if isinstance(data, dict):
return None
@@ -1331,22 +1419,21 @@ def xml_key_extractor(attr, attr_desc, data):
if is_iter_type:
if is_wrapped:
return None # is_wrapped no node, we want None
- else:
- return [] # not wrapped, assume empty list
+ return [] # not wrapped, assume empty list
return None # Assume it's not there, maybe an optional node.
# If is_iter_type and not wrapped, return all found children
if is_iter_type:
if not is_wrapped:
return children
- else: # Iter and wrapped, should have found one node only (the wrap one)
- if len(children) != 1:
- raise DeserializationError(
- "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format(
- xml_name
- )
+ # Iter and wrapped, should have found one node only (the wrap one)
+ if len(children) != 1:
+ raise DeserializationError(
+ "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( # pylint: disable=line-too-long
+ xml_name
)
- return list(children[0]) # Might be empty list and that's ok.
+ )
+ return list(children[0]) # Might be empty list and that's ok.
# Here it's not a itertype, we should have found one element only or empty
if len(children) > 1:
@@ -1354,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data):
return children[0]
-class Deserializer(object):
+class Deserializer:
"""Response object model deserializer.
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1363,9 +1450,9 @@ class Deserializer(object):
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
- valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?")
+ valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?")
- def __init__(self, classes: Optional[Mapping[str, type]] = None):
+ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
self.deserialize_type = {
"iso-8601": Deserializer.deserialize_iso,
"rfc-1123": Deserializer.deserialize_rfc,
@@ -1403,11 +1490,12 @@ def __call__(self, target_obj, response_data, content_type=None):
:param str content_type: Swagger "produces" if available.
:raises: DeserializationError if deserialization fails.
:return: Deserialized object.
+ :rtype: object
"""
data = self._unpack_content(response_data, content_type)
return self._deserialize(target_obj, data)
- def _deserialize(self, target_obj, data):
+ def _deserialize(self, target_obj, data): # pylint: disable=inconsistent-return-statements
"""Call the deserializer on a model.
Data needs to be already deserialized as JSON or XML ElementTree
@@ -1416,12 +1504,13 @@ def _deserialize(self, target_obj, data):
:param object data: Object to deserialize.
:raises: DeserializationError if deserialization fails.
:return: Deserialized object.
+ :rtype: object
"""
# This is already a model, go recursive just in case
if hasattr(data, "_attribute_map"):
constants = [name for name, config in getattr(data, "_validation", {}).items() if config.get("constant")]
try:
- for attr, mapconfig in data._attribute_map.items():
+ for attr, mapconfig in data._attribute_map.items(): # pylint: disable=protected-access
if attr in constants:
continue
value = getattr(data, attr)
@@ -1440,13 +1529,13 @@ def _deserialize(self, target_obj, data):
if isinstance(response, str):
return self.deserialize_data(data, response)
- elif isinstance(response, type) and issubclass(response, Enum):
+ if isinstance(response, type) and issubclass(response, Enum):
return self.deserialize_enum(data, response)
if data is None or data is CoreNull:
return data
try:
- attributes = response._attribute_map # type: ignore
+ attributes = response._attribute_map # type: ignore # pylint: disable=protected-access
d_attrs = {}
for attr, attr_desc in attributes.items():
# Check empty string. If it's not empty, someone has a real "additionalProperties"...
@@ -1476,9 +1565,8 @@ def _deserialize(self, target_obj, data):
except (AttributeError, TypeError, KeyError) as err:
msg = "Unable to deserialize to object: " + class_name # type: ignore
raise DeserializationError(msg) from err
- else:
- additional_properties = self._build_additional_properties(attributes, data)
- return self._instantiate_model(response, d_attrs, additional_properties)
+ additional_properties = self._build_additional_properties(attributes, data)
+ return self._instantiate_model(response, d_attrs, additional_properties)
def _build_additional_properties(self, attribute_map, data):
if not self.additional_properties_detection:
@@ -1505,6 +1593,8 @@ def _classify_target(self, target, data):
:param str target: The target object type to deserialize to.
:param str/dict data: The response data to deserialize.
+ :return: The classified target object and its class name.
+ :rtype: tuple
"""
if target is None:
return None, None
@@ -1516,7 +1606,7 @@ def _classify_target(self, target, data):
return target, target
try:
- target = target._classify(data, self.dependencies) # type: ignore
+ target = target._classify(data, self.dependencies) # type: ignore # pylint: disable=protected-access
except AttributeError:
pass # Target is not a Model, no classify
return target, target.__class__.__name__ # type: ignore
@@ -1531,10 +1621,12 @@ def failsafe_deserialize(self, target_obj, data, content_type=None):
:param str target_obj: The target object type to deserialize to.
:param str/dict data: The response data to deserialize.
:param str content_type: Swagger "produces" if available.
+ :return: Deserialized object.
+ :rtype: object
"""
try:
return self(target_obj, data, content_type=content_type)
- except:
+ except: # pylint: disable=bare-except
_LOGGER.debug(
"Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True
)
@@ -1552,10 +1644,12 @@ def _unpack_content(raw_data, content_type=None):
If raw_data is something else, bypass all logic and return it directly.
- :param raw_data: Data to be processed.
- :param content_type: How to parse if raw_data is a string/bytes.
+ :param obj raw_data: Data to be processed.
+ :param str content_type: How to parse if raw_data is a string/bytes.
:raises JSONDecodeError: If JSON is requested and parsing is impossible.
:raises UnicodeDecodeError: If bytes is not UTF8
+ :rtype: object
+ :return: Unpacked content.
"""
# Assume this is enough to detect a Pipeline Response without importing it
context = getattr(raw_data, "context", {})
@@ -1579,24 +1673,35 @@ def _unpack_content(raw_data, content_type=None):
def _instantiate_model(self, response, attrs, additional_properties=None):
"""Instantiate a response model passing in deserialized args.
- :param response: The response model class.
- :param d_attrs: The deserialized response attributes.
+ :param Response response: The response model class.
+ :param dict attrs: The deserialized response attributes.
+ :param dict additional_properties: Additional properties to be set.
+ :rtype: Response
+ :return: The instantiated response model.
"""
if callable(response):
subtype = getattr(response, "_subtype_map", {})
try:
- readonly = [k for k, v in response._validation.items() if v.get("readonly")]
- const = [k for k, v in response._validation.items() if v.get("constant")]
+ readonly = [
+ k
+ for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
+ if v.get("readonly")
+ ]
+ const = [
+ k
+ for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
+ if v.get("constant")
+ ]
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
response_obj = response(**kwargs)
for attr in readonly:
setattr(response_obj, attr, attrs.get(attr))
if additional_properties:
- response_obj.additional_properties = additional_properties
+ response_obj.additional_properties = additional_properties # type: ignore
return response_obj
except TypeError as err:
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore
- raise DeserializationError(msg + str(err))
+ raise DeserializationError(msg + str(err)) from err
else:
try:
for attr, value in attrs.items():
@@ -1605,15 +1710,16 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
except Exception as exp:
msg = "Unable to populate response model. "
msg += "Type: {}, Error: {}".format(type(response), exp)
- raise DeserializationError(msg)
+ raise DeserializationError(msg) from exp
- def deserialize_data(self, data, data_type):
+ def deserialize_data(self, data, data_type): # pylint: disable=too-many-return-statements
"""Process data for deserialization according to data type.
:param str data: The response string to be deserialized.
:param str data_type: The type to deserialize to.
:raises: DeserializationError if deserialization fails.
:return: Deserialized object.
+ :rtype: object
"""
if data is None:
return data
@@ -1627,7 +1733,11 @@ def deserialize_data(self, data, data_type):
if isinstance(data, self.deserialize_expected_types.get(data_type, tuple())):
return data
- is_a_text_parsing_type = lambda x: x not in ["object", "[]", r"{}"]
+ is_a_text_parsing_type = lambda x: x not in [ # pylint: disable=unnecessary-lambda-assignment
+ "object",
+ "[]",
+ r"{}",
+ ]
if isinstance(data, ET.Element) and is_a_text_parsing_type(data_type) and not data.text:
return None
data_val = self.deserialize_type[data_type](data)
@@ -1647,14 +1757,14 @@ def deserialize_data(self, data, data_type):
msg = "Unable to deserialize response data."
msg += " Data: {}, {}".format(data, data_type)
raise DeserializationError(msg) from err
- else:
- return self._deserialize(obj_type, data)
+ return self._deserialize(obj_type, data)
def deserialize_iter(self, attr, iter_type):
"""Deserialize an iterable.
:param list attr: Iterable to be deserialized.
:param str iter_type: The type of object in the iterable.
+ :return: Deserialized iterable.
:rtype: list
"""
if attr is None:
@@ -1671,6 +1781,7 @@ def deserialize_dict(self, attr, dict_type):
:param dict/list attr: Dictionary to be deserialized. Also accepts
a list of key, value pairs.
:param str dict_type: The object type of the items in the dictionary.
+ :return: Deserialized dictionary.
:rtype: dict
"""
if isinstance(attr, list):
@@ -1681,11 +1792,12 @@ def deserialize_dict(self, attr, dict_type):
attr = {el.tag: el.text for el in attr}
return {k: self.deserialize_data(v, dict_type) for k, v in attr.items()}
- def deserialize_object(self, attr, **kwargs):
+ def deserialize_object(self, attr, **kwargs): # pylint: disable=too-many-return-statements
"""Deserialize a generic object.
This will be handled as a dictionary.
:param dict attr: Dictionary to be deserialized.
+ :return: Deserialized object.
:rtype: dict
:raises: TypeError if non-builtin datatype encountered.
"""
@@ -1720,11 +1832,10 @@ def deserialize_object(self, attr, **kwargs):
pass
return deserialized
- else:
- error = "Cannot deserialize generic object with type: "
- raise TypeError(error + str(obj_type))
+ error = "Cannot deserialize generic object with type: "
+ raise TypeError(error + str(obj_type))
- def deserialize_basic(self, attr, data_type):
+ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return-statements
"""Deserialize basic builtin data type from string.
Will attempt to convert to str, int, float and bool.
This function will also accept '1', '0', 'true' and 'false' as
@@ -1732,6 +1843,7 @@ def deserialize_basic(self, attr, data_type):
:param str attr: response string to be deserialized.
:param str data_type: deserialization data type.
+ :return: Deserialized basic type.
:rtype: str, int, float or bool
:raises: TypeError if string format is not valid.
"""
@@ -1743,24 +1855,23 @@ def deserialize_basic(self, attr, data_type):
if data_type == "str":
# None or '', node is empty string.
return ""
- else:
- # None or '', node with a strong type is None.
- # Don't try to model "empty bool" or "empty int"
- return None
+ # None or '', node with a strong type is None.
+ # Don't try to model "empty bool" or "empty int"
+ return None
if data_type == "bool":
if attr in [True, False, 1, 0]:
return bool(attr)
- elif isinstance(attr, str):
+ if isinstance(attr, str):
if attr.lower() in ["true", "1"]:
return True
- elif attr.lower() in ["false", "0"]:
+ if attr.lower() in ["false", "0"]:
return False
raise TypeError("Invalid boolean value: {}".format(attr))
if data_type == "str":
return self.deserialize_unicode(attr)
- return eval(data_type)(attr) # nosec
+ return eval(data_type)(attr) # nosec # pylint: disable=eval-used
@staticmethod
def deserialize_unicode(data):
@@ -1768,6 +1879,7 @@ def deserialize_unicode(data):
as a string.
:param str data: response string to be deserialized.
+ :return: Deserialized string.
:rtype: str or unicode
"""
# We might be here because we have an enum modeled as string,
@@ -1781,8 +1893,7 @@ def deserialize_unicode(data):
return data
except NameError:
return str(data)
- else:
- return str(data)
+ return str(data)
@staticmethod
def deserialize_enum(data, enum_obj):
@@ -1794,6 +1905,7 @@ def deserialize_enum(data, enum_obj):
:param str data: Response string to be deserialized. If this value is
None or invalid it will be returned as-is.
:param Enum enum_obj: Enum object to deserialize to.
+ :return: Deserialized enum object.
:rtype: Enum
"""
if isinstance(data, enum_obj) or data is None:
@@ -1804,9 +1916,9 @@ def deserialize_enum(data, enum_obj):
# Workaround. We might consider remove it in the future.
try:
return list(enum_obj.__members__.values())[data]
- except IndexError:
+ except IndexError as exc:
error = "{!r} is not a valid index for enum {!r}"
- raise DeserializationError(error.format(data, enum_obj))
+ raise DeserializationError(error.format(data, enum_obj)) from exc
try:
return enum_obj(str(data))
except ValueError:
@@ -1822,6 +1934,7 @@ def deserialize_bytearray(attr):
"""Deserialize string into bytearray.
:param str attr: response string to be deserialized.
+ :return: Deserialized bytearray
:rtype: bytearray
:raises: TypeError if string format invalid.
"""
@@ -1834,6 +1947,7 @@ def deserialize_base64(attr):
"""Deserialize base64 encoded string into string.
:param str attr: response string to be deserialized.
+ :return: Deserialized base64 string
:rtype: bytearray
:raises: TypeError if string format invalid.
"""
@@ -1849,8 +1963,9 @@ def deserialize_decimal(attr):
"""Deserialize string into Decimal object.
:param str attr: response string to be deserialized.
- :rtype: Decimal
+ :return: Deserialized decimal
:raises: DeserializationError if string format invalid.
+ :rtype: decimal
"""
if isinstance(attr, ET.Element):
attr = attr.text
@@ -1865,6 +1980,7 @@ def deserialize_long(attr):
"""Deserialize string into long (Py2) or int (Py3).
:param str attr: response string to be deserialized.
+ :return: Deserialized int
:rtype: long or int
:raises: ValueError if string format invalid.
"""
@@ -1877,6 +1993,7 @@ def deserialize_duration(attr):
"""Deserialize ISO-8601 formatted string into TimeDelta object.
:param str attr: response string to be deserialized.
+ :return: Deserialized duration
:rtype: TimeDelta
:raises: DeserializationError if string format invalid.
"""
@@ -1887,14 +2004,14 @@ def deserialize_duration(attr):
except (ValueError, OverflowError, AttributeError) as err:
msg = "Cannot deserialize duration object."
raise DeserializationError(msg) from err
- else:
- return duration
+ return duration
@staticmethod
def deserialize_date(attr):
"""Deserialize ISO-8601 formatted string into Date object.
:param str attr: response string to be deserialized.
+ :return: Deserialized date
:rtype: Date
:raises: DeserializationError if string format invalid.
"""
@@ -1910,6 +2027,7 @@ def deserialize_time(attr):
"""Deserialize ISO-8601 formatted string into time object.
:param str attr: response string to be deserialized.
+ :return: Deserialized time
:rtype: datetime.time
:raises: DeserializationError if string format invalid.
"""
@@ -1924,6 +2042,7 @@ def deserialize_rfc(attr):
"""Deserialize RFC-1123 formatted string into Datetime object.
:param str attr: response string to be deserialized.
+ :return: Deserialized RFC datetime
:rtype: Datetime
:raises: DeserializationError if string format invalid.
"""
@@ -1939,14 +2058,14 @@ def deserialize_rfc(attr):
except ValueError as err:
msg = "Cannot deserialize to rfc datetime object."
raise DeserializationError(msg) from err
- else:
- return date_obj
+ return date_obj
@staticmethod
def deserialize_iso(attr):
"""Deserialize ISO-8601 formatted string into Datetime object.
:param str attr: response string to be deserialized.
+ :return: Deserialized ISO datetime
:rtype: Datetime
:raises: DeserializationError if string format invalid.
"""
@@ -1976,8 +2095,7 @@ def deserialize_iso(attr):
except (ValueError, OverflowError, AttributeError) as err:
msg = "Cannot deserialize datetime object."
raise DeserializationError(msg) from err
- else:
- return date_obj
+ return date_obj
@staticmethod
def deserialize_unix(attr):
@@ -1985,6 +2103,7 @@ def deserialize_unix(attr):
This is represented as seconds.
:param int attr: Object to be serialized.
+ :return: Deserialized datetime
:rtype: Datetime
:raises: DeserializationError if format invalid
"""
@@ -1996,5 +2115,4 @@ def deserialize_unix(attr):
except ValueError as err:
msg = "Cannot deserialize to unix datetime object."
raise DeserializationError(msg) from err
- else:
- return date_obj
+ return date_obj
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 7dc1645854db..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.4.0b1"
+VERSION = "5.1.0"
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/__init__.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/__init__.py
index 1d833f94c238..aac84f643f29 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/__init__.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/__init__.py
@@ -5,12 +5,18 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+# pylint: disable=wrong-import-position
-from ._net_app_management_client import NetAppManagementClient
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._net_app_management_client import NetAppManagementClient # type: ignore
try:
from ._patch import __all__ as _patch_all
- from ._patch import * # pylint: disable=unused-wildcard-import
+ from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk
@@ -18,6 +24,6 @@
__all__ = [
"NetAppManagementClient",
]
-__all__.extend([p for p in _patch_all if p not in __all__])
+__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
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 e27587969925..b0058f814d9b 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
@@ -14,11 +14,10 @@
from .._version import VERSION
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
-class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
+class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for NetAppManagementClient.
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,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-07-01-preview". Note that overriding
- this default value may result in unsupported behavior.
+ :keyword api_version: Api Version. Default value is "2024-09-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-07-01-preview")
+ api_version: str = kwargs.pop("api_version", "2024-09-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 3647010bd36c..afb1c96e2169 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
@@ -40,11 +40,10 @@
)
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
-class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
+class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
"""Microsoft NetApp Files Azure Resource Provider specification.
:ivar operations: Operations operations
@@ -92,8 +91,8 @@ 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-07-01-preview". Note that overriding
- this default value may result in unsupported behavior.
+ :keyword api_version: Api Version. Default value is "2024-09-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
Retry-After header is present.
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/__init__.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/__init__.py
index 96d2b3958ac5..59fbfffaa566 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/__init__.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/__init__.py
@@ -5,28 +5,34 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+# pylint: disable=wrong-import-position
-from ._operations import Operations
-from ._net_app_resource_operations import NetAppResourceOperations
-from ._net_app_resource_quota_limits_operations import NetAppResourceQuotaLimitsOperations
-from ._net_app_resource_region_infos_operations import NetAppResourceRegionInfosOperations
-from ._accounts_operations import AccountsOperations
-from ._pools_operations import PoolsOperations
-from ._volumes_operations import VolumesOperations
-from ._snapshots_operations import SnapshotsOperations
-from ._snapshot_policies_operations import SnapshotPoliciesOperations
-from ._backup_policies_operations import BackupPoliciesOperations
-from ._volume_quota_rules_operations import VolumeQuotaRulesOperations
-from ._volume_groups_operations import VolumeGroupsOperations
-from ._subvolumes_operations import SubvolumesOperations
-from ._backups_operations import BackupsOperations
-from ._backup_vaults_operations import BackupVaultsOperations
-from ._backups_under_backup_vault_operations import BackupsUnderBackupVaultOperations
-from ._backups_under_volume_operations import BackupsUnderVolumeOperations
-from ._backups_under_account_operations import BackupsUnderAccountOperations
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._operations import Operations # type: ignore
+from ._net_app_resource_operations import NetAppResourceOperations # type: ignore
+from ._net_app_resource_quota_limits_operations import NetAppResourceQuotaLimitsOperations # type: ignore
+from ._net_app_resource_region_infos_operations import NetAppResourceRegionInfosOperations # type: ignore
+from ._accounts_operations import AccountsOperations # type: ignore
+from ._pools_operations import PoolsOperations # type: ignore
+from ._volumes_operations import VolumesOperations # type: ignore
+from ._snapshots_operations import SnapshotsOperations # type: ignore
+from ._snapshot_policies_operations import SnapshotPoliciesOperations # type: ignore
+from ._backup_policies_operations import BackupPoliciesOperations # type: ignore
+from ._volume_quota_rules_operations import VolumeQuotaRulesOperations # type: ignore
+from ._volume_groups_operations import VolumeGroupsOperations # type: ignore
+from ._subvolumes_operations import SubvolumesOperations # type: ignore
+from ._backups_operations import BackupsOperations # type: ignore
+from ._backup_vaults_operations import BackupVaultsOperations # type: ignore
+from ._backups_under_backup_vault_operations import BackupsUnderBackupVaultOperations # type: ignore
+from ._backups_under_volume_operations import BackupsUnderVolumeOperations # type: ignore
+from ._backups_under_account_operations import BackupsUnderAccountOperations # type: ignore
from ._patch import __all__ as _patch_all
-from ._patch import * # pylint: disable=unused-wildcard-import
+from ._patch import *
from ._patch import patch_sdk as _patch_sdk
__all__ = [
@@ -49,5 +55,5 @@
"BackupsUnderVolumeOperations",
"BackupsUnderAccountOperations",
]
-__all__.extend([p for p in _patch_all if p not in __all__])
+__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py
index 35e28eab093c..2278e4e3967e 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -48,7 +48,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -88,7 +88,7 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.NetAppAc
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.NetAppAccountList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -168,7 +168,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_model
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.NetAppAccountList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -245,7 +245,7 @@ async def get(self, resource_group_name: str, account_name: str, **kwargs: Any)
:rtype: ~azure.mgmt.netapp.models.NetAppAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -291,7 +291,7 @@ async def get(self, resource_group_name: str, account_name: str, **kwargs: Any)
async def _create_or_update_initial(
self, resource_group_name: str, account_name: str, body: Union[_models.NetAppAccount, IO[bytes]], **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -483,7 +483,7 @@ def get_long_running_output(pipeline_response):
)
async def _delete_initial(self, resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -595,7 +595,7 @@ async def _update_initial(
body: Union[_models.NetAppAccountPatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -792,7 +792,7 @@ def get_long_running_output(pipeline_response):
async def _renew_credentials_initial(
self, resource_group_name: str, account_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -909,7 +909,7 @@ async def _transition_to_cmk_initial(
body: Optional[Union[_models.EncryptionTransitionRequest, IO[bytes]]] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1111,7 +1111,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _get_change_key_vault_information_initial( # pylint: disable=name-too-long
self, resource_group_name: str, account_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1230,7 +1230,7 @@ async def _change_key_vault_initial(
body: Optional[Union[_models.ChangeKeyVault, IO[bytes]]] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py
index 872363f5e094..7ad25b22ac09 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -43,7 +42,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -88,7 +87,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> As
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BackupPoliciesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -170,7 +169,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.BackupPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -222,7 +221,7 @@ async def _create_initial(
body: Union[_models.BackupPolicy, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -436,7 +435,7 @@ async def _update_initial(
body: Union[_models.BackupPolicyPatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -645,7 +644,7 @@ def get_long_running_output(pipeline_response):
async def _delete_initial(
self, resource_group_name: str, account_name: str, backup_policy_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_vaults_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_vaults_operations.py
index 46e71752ee6a..da3c1f4d7f1b 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_vaults_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_vaults_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -43,7 +42,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -90,7 +89,7 @@ def list_by_net_app_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BackupVaultsList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -172,7 +171,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.BackupVault
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -224,7 +223,7 @@ async def _create_or_update_initial(
body: Union[_models.BackupVault, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -438,7 +437,7 @@ async def _update_initial(
body: Union[_models.BackupVaultPatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -650,7 +649,7 @@ def get_long_running_output(pipeline_response):
async def _delete_initial(
self, resource_group_name: str, account_name: str, backup_vault_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py
index b96a1a65e0f6..103f166db842 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -45,7 +44,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -90,7 +89,7 @@ async def get_latest_status(
:rtype: ~azure.mgmt.netapp.models.BackupStatus
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -156,7 +155,7 @@ async def get_volume_latest_restore_status(
:rtype: ~azure.mgmt.netapp.models.RestoreStatus
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -234,7 +233,7 @@ def list_by_vault(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BackupsList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -320,7 +319,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.Backup
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -374,7 +373,7 @@ async def _create_initial(
body: Union[_models.Backup, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -600,7 +599,7 @@ async def _update_initial(
body: Optional[Union[_models.BackupPatch, IO[bytes]]] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -826,7 +825,7 @@ def get_long_running_output(pipeline_response):
async def _delete_initial(
self, resource_group_name: str, account_name: str, backup_vault_name: str, backup_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_account_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_account_operations.py
index e036ed99a1da..1956d8d26916 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_account_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_account_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -65,7 +64,7 @@ async def _migrate_backups_initial(
body: Union[_models.BackupsMigrationRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_backup_vault_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_backup_vault_operations.py
index 94c959121e3e..654717ce9a48 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_backup_vault_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_backup_vault_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -67,7 +66,7 @@ async def _restore_files_initial(
body: Union[_models.BackupRestoreFiles, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_volume_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_volume_operations.py
index c154534d89ed..91add69eb8ab 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_volume_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_under_volume_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -67,7 +66,7 @@ async def _migrate_backups_initial(
body: Union[_models.BackupsMigrationRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 99cbc50d33ca..313b1f544daf 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, AsyncIterator, Callable, Dict, Optional, Type, TypeVar, Union, cast
+from typing import Any, AsyncIterator, Callable, Dict, Optional, TypeVar, Union, cast
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -40,7 +39,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -92,7 +91,7 @@ async def check_name_availability(
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -163,7 +162,7 @@ async def check_file_path_availability(
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -239,7 +238,7 @@ async def check_quota_availability(
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -299,7 +298,7 @@ async def query_region_info(self, location: str, **kwargs: Any) -> _models.Regio
:rtype: ~azure.mgmt.netapp.models.RegionInfo
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -345,6 +344,7 @@ async def query_region_info(self, location: str, **kwargs: Any) -> _models.Regio
async def query_network_sibling_set(
self, location: str, network_sibling_set_id: str, subnet_id: str, **kwargs: Any
) -> _models.NetworkSiblingSet:
+ # pylint: disable=line-too-long
"""Describe a network sibling set.
Get details of the specified network sibling set.
@@ -363,7 +363,7 @@ async def query_network_sibling_set(
:rtype: ~azure.mgmt.netapp.models.NetworkSiblingSet
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -422,7 +422,7 @@ async def _update_network_sibling_set_initial(
network_features: Union[str, _models.NetworkFeatures] = "Basic",
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -494,6 +494,7 @@ async def begin_update_network_sibling_set(
network_features: Union[str, _models.NetworkFeatures] = "Basic",
**kwargs: Any
) -> AsyncLROPoller[_models.NetworkSiblingSet]:
+ # pylint: disable=line-too-long
"""Update the network features of a network sibling set.
Update the network features of the specified network sibling set.
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py
index e011218fc5ca..2a3e6c716f9a 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_quota_limits_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
+from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -32,7 +31,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -76,7 +75,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncIterable["_models.Subscript
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SubscriptionQuotaItemList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -152,7 +151,7 @@ async def get(self, location: str, quota_limit_name: str, **kwargs: Any) -> _mod
:rtype: ~azure.mgmt.netapp.models.SubscriptionQuotaItem
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_region_infos_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_region_infos_operations.py
index af0b32972a13..5002fe380841 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_region_infos_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_region_infos_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
+from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -32,7 +31,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -74,7 +73,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncIterable["_models.RegionInf
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.RegionInfosList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -148,7 +147,7 @@ async def get(self, location: str, **kwargs: Any) -> _models.RegionInfoResource:
:rtype: ~azure.mgmt.netapp.models.RegionInfoResource
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py
index 9ce42490d089..8a4d6e6b6c1d 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
+from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -31,7 +30,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -71,7 +70,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]:
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py
index 0e2d270e62b3..cff8b6ce7f77 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -43,7 +42,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -88,7 +87,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> As
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.CapacityPoolList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -170,7 +169,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.CapacityPool
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -222,7 +221,7 @@ async def _create_or_update_initial(
body: Union[_models.CapacityPool, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -435,7 +434,7 @@ async def _update_initial(
body: Union[_models.CapacityPoolPatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -643,7 +642,7 @@ def get_long_running_output(pipeline_response):
async def _delete_initial(
self, resource_group_name: str, account_name: str, pool_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py
index 79c513902cbc..f9cb4c785374 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -44,7 +43,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -89,7 +88,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SnapshotPoliciesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -169,7 +168,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.SnapshotPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -298,7 +297,7 @@ async def create(
:rtype: ~azure.mgmt.netapp.models.SnapshotPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -362,7 +361,7 @@ async def _update_initial(
body: Union[_models.SnapshotPolicyPatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -564,7 +563,7 @@ def get_long_running_output(pipeline_response):
async def _delete_initial(
self, resource_group_name: str, account_name: str, snapshot_policy_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -692,7 +691,7 @@ async def list_volumes(
:rtype: ~azure.mgmt.netapp.models.SnapshotPolicyVolumeList
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py
index 6e184bbf406d..a54de24289e2 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -44,7 +43,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -96,7 +95,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SnapshotsList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -190,7 +189,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.Snapshot
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -246,7 +245,7 @@ async def _create_initial(
body: Union[_models.Snapshot, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -483,7 +482,7 @@ async def _update_initial(
body: JSON,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -633,7 +632,7 @@ async def _delete_initial(
snapshot_name: str,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -768,7 +767,7 @@ async def _restore_files_initial(
body: Union[_models.SnapshotRestoreFiles, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_subvolumes_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_subvolumes_operations.py
index 0968d1bb84f6..527ae240a61b 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_subvolumes_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_subvolumes_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -44,7 +43,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -95,7 +94,7 @@ def list_by_volume(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SubvolumesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -189,7 +188,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.SubvolumeInfo
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -245,7 +244,7 @@ async def _create_initial(
body: Union[_models.SubvolumeInfo, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -483,7 +482,7 @@ async def _update_initial(
body: Union[_models.SubvolumePatchRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -720,7 +719,7 @@ async def _delete_initial(
subvolume_name: str,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -855,7 +854,7 @@ async def _get_metadata_initial(
subvolume_name: str,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_groups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_groups_operations.py
index 991a3e5d0711..c0fd633b943a 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_groups_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_groups_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -42,7 +41,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -89,7 +88,7 @@ def list_by_net_app_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.VolumeGroupList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -171,7 +170,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.VolumeGroupDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -223,7 +222,7 @@ async def _create_initial(
body: Union[_models.VolumeGroupDetails, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -435,7 +434,7 @@ def get_long_running_output(pipeline_response):
async def _delete_initial(
self, resource_group_name: str, account_name: str, volume_group_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_quota_rules_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_quota_rules_operations.py
index 1105ac80db61..7a378d327abb 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_quota_rules_operations.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volume_quota_rules_operations.py
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -43,7 +42,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -94,7 +93,7 @@ def list_by_volume(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.VolumeQuotaRulesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -188,7 +187,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.VolumeQuotaRule
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -244,7 +243,7 @@ async def _create_initial(
body: Union[_models.VolumeQuotaRule, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -481,7 +480,7 @@ async def _update_initial(
body: Union[_models.VolumeQuotaRulePatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -717,7 +716,7 @@ async def _delete_initial(
volume_quota_rule_name: str,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 03b8a7e03871..1fe753cb1bc9 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -44,7 +44,6 @@
build_finalize_relocation_request,
build_get_request,
build_list_get_group_id_list_for_ldap_user_request,
- build_list_quota_report_request,
build_list_replications_request,
build_list_request,
build_peer_external_cluster_request,
@@ -59,14 +58,13 @@
build_resync_replication_request,
build_revert_relocation_request,
build_revert_request,
- build_split_clone_from_parent_request,
build_update_request,
)
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -115,7 +113,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.VolumeList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -200,7 +198,7 @@ async def get(
:rtype: ~azure.mgmt.netapp.models.Volume
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -254,7 +252,7 @@ async def _create_or_update_initial(
body: Union[_models.Volume, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -480,7 +478,7 @@ async def _update_initial(
body: Union[_models.VolumePatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -705,7 +703,7 @@ async def _delete_initial(
force_delete: Optional[bool] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -834,7 +832,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _populate_availability_zone_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -967,7 +965,7 @@ async def _revert_initial(
body: Union[_models.VolumeRevert, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1179,7 +1177,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _reset_cifs_password_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1295,127 +1293,6 @@ 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 _split_clone_from_parent_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_split_clone_from_parent_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_split_clone_from_parent(
- self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
- ) -> AsyncLROPoller[None]:
- """Split clone from parent volume.
-
- Split operation to convert clone volume to an independent 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
- :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._split_clone_from_parent_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 _break_file_locks_initial(
self,
resource_group_name: str,
@@ -1425,7 +1302,7 @@ async def _break_file_locks_initial(
body: Optional[Union[_models.BreakFileLocksRequest, IO[bytes]]] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1652,7 +1529,7 @@ async def _list_get_group_id_list_for_ldap_user_initial( # pylint: disable=name
body: Union[_models.GetGroupIdListForLDAPUserRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1875,133 +1752,6 @@ def get_long_running_output(pipeline_response):
self._client, raw_result, get_long_running_output, polling_method # type: ignore
)
- async def _list_quota_report_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_list_quota_report_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_list_quota_report(
- self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
- ) -> AsyncLROPoller[_models.ListQuotaReportResponse]:
- """Lists Quota Report for the volume.
-
- Returns report of quotas for the 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
- :return: An instance of AsyncLROPoller that returns either ListQuotaReportResponse or the
- result of cls(response)
- :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.ListQuotaReportResponse]
- :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.ListQuotaReportResponse] = 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._list_quota_report_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("ListQuotaReportResponse", 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.ListQuotaReportResponse].from_continuation_token(
- polling_method=polling_method,
- continuation_token=cont_token,
- client=self._client,
- deserialization_callback=get_long_running_output,
- )
- return AsyncLROPoller[_models.ListQuotaReportResponse](
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
- )
-
async def _break_replication_initial(
self,
resource_group_name: str,
@@ -2011,7 +1761,7 @@ async def _break_replication_initial(
body: Optional[Union[_models.BreakReplicationRequest, IO[bytes]]] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2232,7 +1982,7 @@ async def _reestablish_replication_initial(
body: Union[_models.ReestablishReplicationRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2465,7 +2215,7 @@ async def replication_status(
:rtype: ~azure.mgmt.netapp.models.ReplicationStatus
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2537,7 +2287,7 @@ def list_replications(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ListReplications] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2605,7 +2355,7 @@ async def get_next(next_link=None):
async def _resync_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2724,7 +2474,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _delete_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2849,7 +2599,7 @@ async def _authorize_replication_initial(
body: Union[_models.AuthorizeRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3061,7 +2811,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _re_initialize_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3185,7 +2935,7 @@ async def _peer_external_cluster_initial(
body: Union[_models.PeerClusterForVolumeMigrationRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3411,7 +3161,7 @@ def get_long_running_output(pipeline_response):
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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3539,7 +3289,7 @@ def get_long_running_output(pipeline_response):
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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3661,7 +3411,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3788,7 +3538,7 @@ async def _pool_change_initial(
body: Union[_models.PoolChangeRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4006,7 +3756,7 @@ async def _relocate_initial(
body: Optional[Union[_models.RelocateVolumeRequest, IO[bytes]]] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4219,7 +3969,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _finalize_relocation_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4335,7 +4085,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _revert_relocation_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 c78f59758d38..6979b3f5a329 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
@@ -5,164 +5,170 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+# pylint: disable=wrong-import-position
-from ._models_py3 import AccountEncryption
-from ._models_py3 import ActiveDirectory
-from ._models_py3 import AuthorizeRequest
-from ._models_py3 import Backup
-from ._models_py3 import BackupPatch
-from ._models_py3 import BackupPoliciesList
-from ._models_py3 import BackupPolicy
-from ._models_py3 import BackupPolicyPatch
-from ._models_py3 import BackupRestoreFiles
-from ._models_py3 import BackupStatus
-from ._models_py3 import BackupVault
-from ._models_py3 import BackupVaultPatch
-from ._models_py3 import BackupVaultsList
-from ._models_py3 import BackupsList
-from ._models_py3 import BackupsMigrationRequest
-from ._models_py3 import BreakFileLocksRequest
-from ._models_py3 import BreakReplicationRequest
-from ._models_py3 import CapacityPool
-from ._models_py3 import CapacityPoolList
-from ._models_py3 import CapacityPoolPatch
-from ._models_py3 import ChangeKeyVault
-from ._models_py3 import CheckAvailabilityResponse
-from ._models_py3 import CloudErrorBody
-from ._models_py3 import ClusterPeerCommandResponse
-from ._models_py3 import DailySchedule
-from ._models_py3 import DestinationReplication
-from ._models_py3 import Dimension
-from ._models_py3 import EncryptionIdentity
-from ._models_py3 import EncryptionTransitionRequest
-from ._models_py3 import ErrorAdditionalInfo
-from ._models_py3 import ErrorDetail
-from ._models_py3 import ErrorResponse
-from ._models_py3 import ExportPolicyRule
-from ._models_py3 import FilePathAvailabilityRequest
-from ._models_py3 import GetGroupIdListForLDAPUserRequest
-from ._models_py3 import GetGroupIdListForLDAPUserResponse
-from ._models_py3 import HourlySchedule
-from ._models_py3 import KeyVaultPrivateEndpoint
-from ._models_py3 import KeyVaultProperties
-from ._models_py3 import LdapSearchScopeOpt
-from ._models_py3 import ListQuotaReportResponse
-from ._models_py3 import ListReplications
-from ._models_py3 import LogSpecification
-from ._models_py3 import ManagedServiceIdentity
-from ._models_py3 import MetricSpecification
-from ._models_py3 import MonthlySchedule
-from ._models_py3 import MountTarget
-from ._models_py3 import MountTargetProperties
-from ._models_py3 import NetAppAccount
-from ._models_py3 import NetAppAccountList
-from ._models_py3 import NetAppAccountPatch
-from ._models_py3 import NetworkSiblingSet
-from ._models_py3 import NicInfo
-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
-from ._models_py3 import QueryNetworkSiblingSetRequest
-from ._models_py3 import QuotaAvailabilityRequest
-from ._models_py3 import QuotaReport
-from ._models_py3 import ReestablishReplicationRequest
-from ._models_py3 import RegionInfo
-from ._models_py3 import RegionInfoAvailabilityZoneMappingsItem
-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
-from ._models_py3 import Resource
-from ._models_py3 import ResourceIdentity
-from ._models_py3 import ResourceNameAvailabilityRequest
-from ._models_py3 import RestoreStatus
-from ._models_py3 import ServiceSpecification
-from ._models_py3 import Snapshot
-from ._models_py3 import SnapshotPoliciesList
-from ._models_py3 import SnapshotPolicy
-from ._models_py3 import SnapshotPolicyDetails
-from ._models_py3 import SnapshotPolicyPatch
-from ._models_py3 import SnapshotPolicyVolumeList
-from ._models_py3 import SnapshotRestoreFiles
-from ._models_py3 import SnapshotsList
-from ._models_py3 import SubscriptionQuotaItem
-from ._models_py3 import SubscriptionQuotaItemList
-from ._models_py3 import SubvolumeInfo
-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
-from ._models_py3 import UserAssignedIdentity
-from ._models_py3 import Volume
-from ._models_py3 import VolumeBackupProperties
-from ._models_py3 import VolumeBackups
-from ._models_py3 import VolumeGroup
-from ._models_py3 import VolumeGroupDetails
-from ._models_py3 import VolumeGroupList
-from ._models_py3 import VolumeGroupMetaData
-from ._models_py3 import VolumeGroupVolumeProperties
-from ._models_py3 import VolumeList
-from ._models_py3 import VolumePatch
-from ._models_py3 import VolumePatchPropertiesDataProtection
-from ._models_py3 import VolumePatchPropertiesExportPolicy
-from ._models_py3 import VolumePropertiesDataProtection
-from ._models_py3 import VolumePropertiesExportPolicy
-from ._models_py3 import VolumeQuotaRule
-from ._models_py3 import VolumeQuotaRulePatch
-from ._models_py3 import VolumeQuotaRulesList
-from ._models_py3 import VolumeRelocationProperties
-from ._models_py3 import VolumeRevert
-from ._models_py3 import VolumeSnapshotProperties
-from ._models_py3 import WeeklySchedule
+from typing import TYPE_CHECKING
-from ._net_app_management_client_enums import AcceptGrowCapacityPoolForShortTermCloneSplit
-from ._net_app_management_client_enums import ActiveDirectoryStatus
-from ._net_app_management_client_enums import ApplicationType
-from ._net_app_management_client_enums import AvsDataStore
-from ._net_app_management_client_enums import BackupType
-from ._net_app_management_client_enums import CheckNameResourceTypes
-from ._net_app_management_client_enums import CheckQuotaNameResourceTypes
-from ._net_app_management_client_enums import ChownMode
-from ._net_app_management_client_enums import CoolAccessRetrievalPolicy
-from ._net_app_management_client_enums import CreatedByType
-from ._net_app_management_client_enums import EnableSubvolumes
-from ._net_app_management_client_enums import EncryptionKeySource
-from ._net_app_management_client_enums import EncryptionType
-from ._net_app_management_client_enums import EndpointType
-from ._net_app_management_client_enums import FileAccessLogs
-from ._net_app_management_client_enums import InAvailabilityReasonType
-from ._net_app_management_client_enums import KeySource
-from ._net_app_management_client_enums import KeyVaultStatus
-from ._net_app_management_client_enums import ManagedServiceIdentityType
-from ._net_app_management_client_enums import MetricAggregationType
-from ._net_app_management_client_enums import MirrorState
-from ._net_app_management_client_enums import NetworkFeatures
-from ._net_app_management_client_enums import NetworkSiblingSetProvisioningState
-from ._net_app_management_client_enums import ProvisioningState
-from ._net_app_management_client_enums import QosType
-from ._net_app_management_client_enums import RegionStorageToNetworkProximity
-from ._net_app_management_client_enums import RelationshipStatus
-from ._net_app_management_client_enums import ReplicationSchedule
-from ._net_app_management_client_enums import ReplicationType
-from ._net_app_management_client_enums import SecurityStyle
-from ._net_app_management_client_enums import ServiceLevel
-from ._net_app_management_client_enums import SmbAccessBasedEnumeration
-from ._net_app_management_client_enums import SmbNonBrowsable
-from ._net_app_management_client_enums import Type
-from ._net_app_management_client_enums import VolumeLanguage
-from ._net_app_management_client_enums import VolumeStorageToNetworkProximity
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+
+from ._models_py3 import ( # type: ignore
+ AccountEncryption,
+ ActiveDirectory,
+ AuthorizeRequest,
+ Backup,
+ BackupPatch,
+ BackupPoliciesList,
+ BackupPolicy,
+ BackupPolicyPatch,
+ BackupRestoreFiles,
+ BackupStatus,
+ BackupVault,
+ BackupVaultPatch,
+ BackupVaultsList,
+ BackupsList,
+ BackupsMigrationRequest,
+ BreakFileLocksRequest,
+ BreakReplicationRequest,
+ CapacityPool,
+ CapacityPoolList,
+ CapacityPoolPatch,
+ ChangeKeyVault,
+ CheckAvailabilityResponse,
+ CloudErrorBody,
+ ClusterPeerCommandResponse,
+ DailySchedule,
+ Dimension,
+ EncryptionIdentity,
+ EncryptionTransitionRequest,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ ExportPolicyRule,
+ FilePathAvailabilityRequest,
+ GetGroupIdListForLDAPUserRequest,
+ GetGroupIdListForLDAPUserResponse,
+ HourlySchedule,
+ KeyVaultPrivateEndpoint,
+ KeyVaultProperties,
+ LdapSearchScopeOpt,
+ ListReplications,
+ LogSpecification,
+ ManagedServiceIdentity,
+ MetricSpecification,
+ MonthlySchedule,
+ MountTarget,
+ MountTargetProperties,
+ NetAppAccount,
+ NetAppAccountList,
+ NetAppAccountPatch,
+ NetworkSiblingSet,
+ NicInfo,
+ Operation,
+ OperationDisplay,
+ OperationListResult,
+ PeerClusterForVolumeMigrationRequest,
+ PlacementKeyValuePairs,
+ PoolChangeRequest,
+ ProxyResource,
+ QueryNetworkSiblingSetRequest,
+ QuotaAvailabilityRequest,
+ ReestablishReplicationRequest,
+ RegionInfo,
+ RegionInfoAvailabilityZoneMappingsItem,
+ RegionInfoResource,
+ RegionInfosList,
+ RelocateVolumeRequest,
+ RemotePath,
+ Replication,
+ ReplicationObject,
+ ReplicationStatus,
+ Resource,
+ ResourceIdentity,
+ ResourceNameAvailabilityRequest,
+ RestoreStatus,
+ ServiceSpecification,
+ Snapshot,
+ SnapshotPoliciesList,
+ SnapshotPolicy,
+ SnapshotPolicyDetails,
+ SnapshotPolicyPatch,
+ SnapshotPolicyVolumeList,
+ SnapshotRestoreFiles,
+ SnapshotsList,
+ SubscriptionQuotaItem,
+ SubscriptionQuotaItemList,
+ SubvolumeInfo,
+ SubvolumeModel,
+ SubvolumePatchRequest,
+ SubvolumesList,
+ SvmPeerCommandResponse,
+ SystemData,
+ TrackedResource,
+ UpdateNetworkSiblingSetRequest,
+ UserAssignedIdentity,
+ Volume,
+ VolumeBackupProperties,
+ VolumeBackups,
+ VolumeGroup,
+ VolumeGroupDetails,
+ VolumeGroupList,
+ VolumeGroupMetaData,
+ VolumeGroupVolumeProperties,
+ VolumeList,
+ VolumePatch,
+ VolumePatchPropertiesDataProtection,
+ VolumePatchPropertiesExportPolicy,
+ VolumePropertiesDataProtection,
+ VolumePropertiesExportPolicy,
+ VolumeQuotaRule,
+ VolumeQuotaRulePatch,
+ VolumeQuotaRulesList,
+ VolumeRelocationProperties,
+ VolumeRevert,
+ VolumeSnapshotProperties,
+ WeeklySchedule,
+)
+
+from ._net_app_management_client_enums import ( # type: ignore
+ ActiveDirectoryStatus,
+ ApplicationType,
+ AvsDataStore,
+ BackupType,
+ CheckNameResourceTypes,
+ CheckQuotaNameResourceTypes,
+ ChownMode,
+ CoolAccessRetrievalPolicy,
+ CoolAccessTieringPolicy,
+ CreatedByType,
+ EnableSubvolumes,
+ EncryptionKeySource,
+ EncryptionType,
+ EndpointType,
+ FileAccessLogs,
+ InAvailabilityReasonType,
+ KeySource,
+ KeyVaultStatus,
+ ManagedServiceIdentityType,
+ MetricAggregationType,
+ MirrorState,
+ NetworkFeatures,
+ NetworkSiblingSetProvisioningState,
+ ProvisioningState,
+ QosType,
+ RegionStorageToNetworkProximity,
+ RelationshipStatus,
+ ReplicationSchedule,
+ SecurityStyle,
+ ServiceLevel,
+ SmbAccessBasedEnumeration,
+ SmbNonBrowsable,
+ Type,
+ VolumeStorageToNetworkProximity,
+)
from ._patch import __all__ as _patch_all
-from ._patch import * # pylint: disable=unused-wildcard-import
+from ._patch import *
from ._patch import patch_sdk as _patch_sdk
__all__ = [
@@ -191,7 +197,6 @@
"CloudErrorBody",
"ClusterPeerCommandResponse",
"DailySchedule",
- "DestinationReplication",
"Dimension",
"EncryptionIdentity",
"EncryptionTransitionRequest",
@@ -206,7 +211,6 @@
"KeyVaultPrivateEndpoint",
"KeyVaultProperties",
"LdapSearchScopeOpt",
- "ListQuotaReportResponse",
"ListReplications",
"LogSpecification",
"ManagedServiceIdentity",
@@ -228,7 +232,6 @@
"ProxyResource",
"QueryNetworkSiblingSetRequest",
"QuotaAvailabilityRequest",
- "QuotaReport",
"ReestablishReplicationRequest",
"RegionInfo",
"RegionInfoAvailabilityZoneMappingsItem",
@@ -284,7 +287,6 @@
"VolumeRevert",
"VolumeSnapshotProperties",
"WeeklySchedule",
- "AcceptGrowCapacityPoolForShortTermCloneSplit",
"ActiveDirectoryStatus",
"ApplicationType",
"AvsDataStore",
@@ -293,6 +295,7 @@
"CheckQuotaNameResourceTypes",
"ChownMode",
"CoolAccessRetrievalPolicy",
+ "CoolAccessTieringPolicy",
"CreatedByType",
"EnableSubvolumes",
"EncryptionKeySource",
@@ -312,14 +315,12 @@
"RegionStorageToNetworkProximity",
"RelationshipStatus",
"ReplicationSchedule",
- "ReplicationType",
"SecurityStyle",
"ServiceLevel",
"SmbAccessBasedEnumeration",
"SmbNonBrowsable",
"Type",
- "VolumeLanguage",
"VolumeStorageToNetworkProximity",
]
-__all__.extend([p for p in _patch_all if p not in __all__])
+__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
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 34278feb3214..dd85750f564c 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
@@ -1,5 +1,5 @@
-# coding=utf-8
# pylint: disable=too-many-lines
+# 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.
@@ -13,7 +13,6 @@
from .. import _serialization
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from .. import models as _models
@@ -64,7 +63,7 @@ def __init__(
self.identity = identity
-class ActiveDirectory(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class ActiveDirectory(_serialization.Model):
"""Active Directory.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -369,7 +368,7 @@ class ProxyResource(Resource):
"""
-class Backup(ProxyResource): # pylint: disable=too-many-instance-attributes
+class Backup(ProxyResource):
"""Backup under a Backup Vault.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -411,8 +410,6 @@ class Backup(ProxyResource): # pylint: disable=too-many-instance-attributes
:vartype snapshot_name: str
:ivar backup_policy_resource_id: ResourceId used to identify the backup policy.
:vartype backup_policy_resource_id: str
- :ivar is_large_volume: Specifies if the backup is for a large volume.
- :vartype is_large_volume: bool
"""
_validation = {
@@ -433,7 +430,6 @@ class Backup(ProxyResource): # pylint: disable=too-many-instance-attributes
"failure_reason": {"readonly": True},
"volume_resource_id": {"required": True},
"backup_policy_resource_id": {"readonly": True},
- "is_large_volume": {"readonly": True},
}
_attribute_map = {
@@ -452,7 +448,6 @@ class Backup(ProxyResource): # pylint: disable=too-many-instance-attributes
"use_existing_snapshot": {"key": "properties.useExistingSnapshot", "type": "bool"},
"snapshot_name": {"key": "properties.snapshotName", "type": "str"},
"backup_policy_resource_id": {"key": "properties.backupPolicyResourceId", "type": "str"},
- "is_large_volume": {"key": "properties.isLargeVolume", "type": "bool"},
}
def __init__(
@@ -487,7 +482,6 @@ def __init__(
self.use_existing_snapshot = use_existing_snapshot
self.snapshot_name = snapshot_name
self.backup_policy_resource_id = None
- self.is_large_volume = None
class BackupPatch(_serialization.Model):
@@ -584,7 +578,7 @@ def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kw
self.location = location
-class BackupPolicy(TrackedResource): # pylint: disable=too-many-instance-attributes
+class BackupPolicy(TrackedResource):
"""Backup policy information.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -608,7 +602,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
@@ -694,7 +688,7 @@ def __init__(
self.volume_backups = None
-class BackupPolicyPatch(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BackupPolicyPatch(_serialization.Model):
"""Backup policy Details for create and update.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -709,7 +703,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
@@ -1129,7 +1123,7 @@ def __init__(self, *, force_break_replication: Optional[bool] = None, **kwargs:
self.force_break_replication = force_break_replication
-class CapacityPool(TrackedResource): # pylint: disable=too-many-instance-attributes
+class CapacityPool(TrackedResource):
"""Capacity pool resource.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -1159,7 +1153,7 @@ class CapacityPool(TrackedResource): # pylint: disable=too-many-instance-attrib
must be multiple of 1099511627776).
:vartype size: int
:ivar service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:vartype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:ivar provisioning_state: Azure lifecycle management.
:vartype provisioning_state: str
@@ -1167,9 +1161,6 @@ class CapacityPool(TrackedResource): # pylint: disable=too-many-instance-attrib
:vartype total_throughput_mibps: float
:ivar utilized_throughput_mibps: Utilized throughput of pool in MiB/s.
:vartype utilized_throughput_mibps: float
- :ivar custom_throughput_mibps: Maximum throughput in MiB/s that can be achieved by this pool
- and this will be accepted as input only for manual qosType pool with Flexible service level.
- :vartype custom_throughput_mibps: float
:ivar qos_type: The qos type of the pool. Known values are: "Auto" and "Manual".
:vartype qos_type: str or ~azure.mgmt.netapp.models.QosType
:ivar cool_access: If enabled (true) the pool can contain cool Access enabled volumes.
@@ -1214,7 +1205,6 @@ class CapacityPool(TrackedResource): # pylint: disable=too-many-instance-attrib
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"total_throughput_mibps": {"key": "properties.totalThroughputMibps", "type": "float"},
"utilized_throughput_mibps": {"key": "properties.utilizedThroughputMibps", "type": "float"},
- "custom_throughput_mibps": {"key": "properties.customThroughputMibps", "type": "float"},
"qos_type": {"key": "properties.qosType", "type": "str"},
"cool_access": {"key": "properties.coolAccess", "type": "bool"},
"encryption_type": {"key": "properties.encryptionType", "type": "str"},
@@ -1227,7 +1217,6 @@ def __init__(
size: int = 4398046511104,
service_level: Union[str, "_models.ServiceLevel"] = "Premium",
tags: Optional[Dict[str, str]] = None,
- custom_throughput_mibps: Optional[float] = None,
qos_type: Optional[Union[str, "_models.QosType"]] = None,
cool_access: bool = False,
encryption_type: Union[str, "_models.EncryptionType"] = "Single",
@@ -1242,11 +1231,8 @@ def __init__(
(value must be multiple of 1099511627776).
:paramtype size: int
:keyword service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:paramtype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
- :keyword custom_throughput_mibps: Maximum throughput in MiB/s that can be achieved by this pool
- and this will be accepted as input only for manual qosType pool with Flexible service level.
- :paramtype custom_throughput_mibps: float
:keyword qos_type: The qos type of the pool. Known values are: "Auto" and "Manual".
:paramtype qos_type: str or ~azure.mgmt.netapp.models.QosType
:keyword cool_access: If enabled (true) the pool can contain cool Access enabled volumes.
@@ -1264,7 +1250,6 @@ def __init__(
self.provisioning_state = None
self.total_throughput_mibps = None
self.utilized_throughput_mibps = None
- self.custom_throughput_mibps = custom_throughput_mibps
self.qos_type = qos_type
self.cool_access = cool_access
self.encryption_type = encryption_type
@@ -1320,9 +1305,6 @@ class CapacityPoolPatch(_serialization.Model):
:vartype qos_type: str or ~azure.mgmt.netapp.models.QosType
:ivar cool_access: If enabled (true) the pool can contain cool Access enabled volumes.
:vartype cool_access: bool
- :ivar custom_throughput_mibps: Maximum throughput in MiB/s that can be achieved by this pool
- and this will be accepted as input only for manual qosType pool with Flexible service level.
- :vartype custom_throughput_mibps: float
"""
_validation = {
@@ -1340,7 +1322,6 @@ class CapacityPoolPatch(_serialization.Model):
"size": {"key": "properties.size", "type": "int"},
"qos_type": {"key": "properties.qosType", "type": "str"},
"cool_access": {"key": "properties.coolAccess", "type": "bool"},
- "custom_throughput_mibps": {"key": "properties.customThroughputMibps", "type": "float"},
}
def __init__(
@@ -1351,7 +1332,6 @@ def __init__(
size: int = 4398046511104,
qos_type: Optional[Union[str, "_models.QosType"]] = None,
cool_access: Optional[bool] = None,
- custom_throughput_mibps: Optional[float] = None,
**kwargs: Any
) -> None:
"""
@@ -1366,9 +1346,6 @@ def __init__(
:paramtype qos_type: str or ~azure.mgmt.netapp.models.QosType
:keyword cool_access: If enabled (true) the pool can contain cool Access enabled volumes.
:paramtype cool_access: bool
- :keyword custom_throughput_mibps: Maximum throughput in MiB/s that can be achieved by this pool
- and this will be accepted as input only for manual qosType pool with Flexible service level.
- :paramtype custom_throughput_mibps: float
"""
super().__init__(**kwargs)
self.location = location
@@ -1379,7 +1356,6 @@ def __init__(
self.size = size
self.qos_type = qos_type
self.cool_access = cool_access
- self.custom_throughput_mibps = custom_throughput_mibps
class ChangeKeyVault(_serialization.Model):
@@ -1595,54 +1571,6 @@ def __init__(
self.used_bytes = used_bytes
-class DestinationReplication(_serialization.Model):
- """Destination replication properties.
-
- :ivar resource_id: The resource ID of the remote volume.
- :vartype resource_id: str
- :ivar replication_type: Indicates whether the replication is cross zone or cross region. Known
- values are: "CrossRegionReplication" and "CrossZoneReplication".
- :vartype replication_type: str or ~azure.mgmt.netapp.models.ReplicationType
- :ivar region: The remote region for the destination volume.
- :vartype region: str
- :ivar zone: The remote zone for the destination volume.
- :vartype zone: str
- """
-
- _attribute_map = {
- "resource_id": {"key": "resourceId", "type": "str"},
- "replication_type": {"key": "replicationType", "type": "str"},
- "region": {"key": "region", "type": "str"},
- "zone": {"key": "zone", "type": "str"},
- }
-
- def __init__(
- self,
- *,
- resource_id: Optional[str] = None,
- replication_type: Optional[Union[str, "_models.ReplicationType"]] = None,
- region: Optional[str] = None,
- zone: Optional[str] = None,
- **kwargs: Any
- ) -> None:
- """
- :keyword resource_id: The resource ID of the remote volume.
- :paramtype resource_id: str
- :keyword replication_type: Indicates whether the replication is cross zone or cross region.
- Known values are: "CrossRegionReplication" and "CrossZoneReplication".
- :paramtype replication_type: str or ~azure.mgmt.netapp.models.ReplicationType
- :keyword region: The remote region for the destination volume.
- :paramtype region: str
- :keyword zone: The remote zone for the destination volume.
- :paramtype zone: str
- """
- super().__init__(**kwargs)
- self.resource_id = resource_id
- self.replication_type = replication_type
- self.region = region
- self.zone = zone
-
-
class Dimension(_serialization.Model):
"""Dimension of blobs, possibly be blob type or access tier.
@@ -1681,9 +1609,6 @@ class EncryptionIdentity(_serialization.Model):
authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match
key of identity.userAssignedIdentities.
:vartype user_assigned_identity: str
- :ivar federated_client_id: ClientId of the multi-tenant AAD Application. Used to access
- cross-tenant KeyVaults.
- :vartype federated_client_id: str
"""
_validation = {
@@ -1693,25 +1618,18 @@ class EncryptionIdentity(_serialization.Model):
_attribute_map = {
"principal_id": {"key": "principalId", "type": "str"},
"user_assigned_identity": {"key": "userAssignedIdentity", "type": "str"},
- "federated_client_id": {"key": "federatedClientId", "type": "str"},
}
- def __init__(
- self, *, user_assigned_identity: Optional[str] = None, federated_client_id: Optional[str] = None, **kwargs: Any
- ) -> None:
+ def __init__(self, *, user_assigned_identity: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword user_assigned_identity: The ARM resource identifier of the user assigned identity used
to authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match
key of identity.userAssignedIdentities.
:paramtype user_assigned_identity: str
- :keyword federated_client_id: ClientId of the multi-tenant AAD Application. Used to access
- cross-tenant KeyVaults.
- :paramtype federated_client_id: str
"""
super().__init__(**kwargs)
self.principal_id = None
self.user_assigned_identity = user_assigned_identity
- self.federated_client_id = federated_client_id
class EncryptionTransitionRequest(_serialization.Model):
@@ -1841,7 +1759,7 @@ def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: A
self.error = error
-class ExportPolicyRule(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class ExportPolicyRule(_serialization.Model):
"""Volume Export Policy Rule.
:ivar rule_index: Order index.
@@ -2248,34 +2166,6 @@ def __init__(
self.group_membership_filter = group_membership_filter
-class ListQuotaReportResponse(_serialization.Model):
- """Quota Report for volume.
-
- :ivar value: List of volume quota report records.
- :vartype value: list[~azure.mgmt.netapp.models.QuotaReport]
- :ivar next_link: URL to get the next set of results.
- :vartype next_link: str
- """
-
- _attribute_map = {
- "value": {"key": "value", "type": "[QuotaReport]"},
- "next_link": {"key": "nextLink", "type": "str"},
- }
-
- def __init__(
- self, *, value: Optional[List["_models.QuotaReport"]] = None, next_link: Optional[str] = None, **kwargs: Any
- ) -> None:
- """
- :keyword value: List of volume quota report records.
- :paramtype value: list[~azure.mgmt.netapp.models.QuotaReport]
- :keyword next_link: URL to get the next set of results.
- :paramtype next_link: str
- """
- super().__init__(**kwargs)
- self.value = value
- self.next_link = next_link
-
-
class ListReplications(_serialization.Model):
"""List Replications.
@@ -2384,7 +2274,7 @@ def __init__(
self.user_assigned_identities = user_assigned_identities
-class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class MetricSpecification(_serialization.Model):
"""Metric specification of operation.
:ivar name: Name of metric specification.
@@ -2716,7 +2606,7 @@ def __init__(self, *, file_system_id: str, smb_server_fqdn: Optional[str] = None
self.smb_server_fqdn = smb_server_fqdn
-class NetAppAccount(TrackedResource): # pylint: disable=too-many-instance-attributes
+class NetAppAccount(TrackedResource):
"""NetApp account resource.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -2751,11 +2641,6 @@ class NetAppAccount(TrackedResource): # pylint: disable=too-many-instance-attri
:ivar disable_showmount: Shows the status of disableShowmount for all volumes under the
subscription, null equals false.
:vartype disable_showmount: bool
- :ivar nfs_v4_id_domain: Domain for NFSv4 user ID mapping. This property will be set for all
- NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- :vartype nfs_v4_id_domain: str
- :ivar is_multi_ad_enabled: This will have true value only if account is Multiple AD enabled.
- :vartype is_multi_ad_enabled: bool
"""
_validation = {
@@ -2767,8 +2652,6 @@ class NetAppAccount(TrackedResource): # pylint: disable=too-many-instance-attri
"etag": {"readonly": True},
"provisioning_state": {"readonly": True},
"disable_showmount": {"readonly": True},
- "nfs_v4_id_domain": {"max_length": 255, "pattern": r"^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"},
- "is_multi_ad_enabled": {"readonly": True},
}
_attribute_map = {
@@ -2784,8 +2667,6 @@ class NetAppAccount(TrackedResource): # pylint: disable=too-many-instance-attri
"active_directories": {"key": "properties.activeDirectories", "type": "[ActiveDirectory]"},
"encryption": {"key": "properties.encryption", "type": "AccountEncryption"},
"disable_showmount": {"key": "properties.disableShowmount", "type": "bool"},
- "nfs_v4_id_domain": {"key": "properties.nfsV4IDDomain", "type": "str"},
- "is_multi_ad_enabled": {"key": "properties.isMultiAdEnabled", "type": "bool"},
}
def __init__(
@@ -2796,7 +2677,6 @@ def __init__(
identity: Optional["_models.ManagedServiceIdentity"] = None,
active_directories: Optional[List["_models.ActiveDirectory"]] = None,
encryption: Optional["_models.AccountEncryption"] = None,
- nfs_v4_id_domain: Optional[str] = None,
**kwargs: Any
) -> None:
"""
@@ -2810,9 +2690,6 @@ def __init__(
:paramtype active_directories: list[~azure.mgmt.netapp.models.ActiveDirectory]
:keyword encryption: Encryption settings.
:paramtype encryption: ~azure.mgmt.netapp.models.AccountEncryption
- :keyword nfs_v4_id_domain: Domain for NFSv4 user ID mapping. This property will be set for all
- NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- :paramtype nfs_v4_id_domain: str
"""
super().__init__(tags=tags, location=location, **kwargs)
self.etag = None
@@ -2821,8 +2698,6 @@ def __init__(
self.active_directories = active_directories
self.encryption = encryption
self.disable_showmount = None
- self.nfs_v4_id_domain = nfs_v4_id_domain
- self.is_multi_ad_enabled = None
class NetAppAccountList(_serialization.Model):
@@ -2853,7 +2728,7 @@ def __init__(
self.next_link = next_link
-class NetAppAccountPatch(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class NetAppAccountPatch(_serialization.Model):
"""NetApp account patch resource.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -2879,11 +2754,6 @@ class NetAppAccountPatch(_serialization.Model): # pylint: disable=too-many-inst
:ivar disable_showmount: Shows the status of disableShowmount for all volumes under the
subscription, null equals false.
:vartype disable_showmount: bool
- :ivar nfs_v4_id_domain: Domain for NFSv4 user ID mapping. This property will be set for all
- NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- :vartype nfs_v4_id_domain: str
- :ivar is_multi_ad_enabled: This will have true value only if account is Multiple AD enabled.
- :vartype is_multi_ad_enabled: bool
"""
_validation = {
@@ -2892,8 +2762,6 @@ class NetAppAccountPatch(_serialization.Model): # pylint: disable=too-many-inst
"type": {"readonly": True},
"provisioning_state": {"readonly": True},
"disable_showmount": {"readonly": True},
- "nfs_v4_id_domain": {"max_length": 255, "pattern": r"^[a-zA-Z0-9][a-zA-Z0-9.-]{0,253}[a-zA-Z0-9]$"},
- "is_multi_ad_enabled": {"readonly": True},
}
_attribute_map = {
@@ -2907,8 +2775,6 @@ class NetAppAccountPatch(_serialization.Model): # pylint: disable=too-many-inst
"active_directories": {"key": "properties.activeDirectories", "type": "[ActiveDirectory]"},
"encryption": {"key": "properties.encryption", "type": "AccountEncryption"},
"disable_showmount": {"key": "properties.disableShowmount", "type": "bool"},
- "nfs_v4_id_domain": {"key": "properties.nfsV4IDDomain", "type": "str"},
- "is_multi_ad_enabled": {"key": "properties.isMultiAdEnabled", "type": "bool"},
}
def __init__(
@@ -2919,7 +2785,6 @@ def __init__(
identity: Optional["_models.ManagedServiceIdentity"] = None,
active_directories: Optional[List["_models.ActiveDirectory"]] = None,
encryption: Optional["_models.AccountEncryption"] = None,
- nfs_v4_id_domain: Optional[str] = None,
**kwargs: Any
) -> None:
"""
@@ -2933,9 +2798,6 @@ def __init__(
:paramtype active_directories: list[~azure.mgmt.netapp.models.ActiveDirectory]
:keyword encryption: Encryption settings.
:paramtype encryption: ~azure.mgmt.netapp.models.AccountEncryption
- :keyword nfs_v4_id_domain: Domain for NFSv4 user ID mapping. This property will be set for all
- NetApp accounts in the subscription and region and only affect non ldap NFSv4 volumes.
- :paramtype nfs_v4_id_domain: str
"""
super().__init__(**kwargs)
self.location = location
@@ -2948,8 +2810,6 @@ def __init__(
self.active_directories = active_directories
self.encryption = encryption
self.disable_showmount = None
- self.nfs_v4_id_domain = nfs_v4_id_domain
- self.is_multi_ad_enabled = None
class NetworkSiblingSet(_serialization.Model):
@@ -3360,76 +3220,6 @@ def __init__(
self.resource_group = resource_group
-class QuotaReport(_serialization.Model):
- """Quota report record properties.
-
- :ivar quota_type: Type of quota. Known values are: "DefaultUserQuota", "DefaultGroupQuota",
- "IndividualUserQuota", and "IndividualGroupQuota".
- :vartype quota_type: str or ~azure.mgmt.netapp.models.Type
- :ivar quota_target: UserID/GroupID/SID based on the quota target type. UserID and groupID can
- be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by
- running :code:``.
- :vartype quota_target: str
- :ivar quota_limit_used_in_ki_bs: Specifies the current usage in kibibytes for the user/group
- quota.
- :vartype quota_limit_used_in_ki_bs: int
- :ivar quota_limit_total_in_ki_bs: Specifies the total size limit in kibibytes for the
- user/group quota.
- :vartype quota_limit_total_in_ki_bs: int
- :ivar percentage_used: Percentage of used size compared to total size.
- :vartype percentage_used: float
- :ivar is_derived_quota: Flag to indicate whether the quota is derived from default quota.
- :vartype is_derived_quota: bool
- """
-
- _attribute_map = {
- "quota_type": {"key": "quotaType", "type": "str"},
- "quota_target": {"key": "quotaTarget", "type": "str"},
- "quota_limit_used_in_ki_bs": {"key": "quotaLimitUsedInKiBs", "type": "int"},
- "quota_limit_total_in_ki_bs": {"key": "quotaLimitTotalInKiBs", "type": "int"},
- "percentage_used": {"key": "percentageUsed", "type": "float"},
- "is_derived_quota": {"key": "isDerivedQuota", "type": "bool"},
- }
-
- def __init__(
- self,
- *,
- quota_type: Optional[Union[str, "_models.Type"]] = None,
- quota_target: Optional[str] = None,
- quota_limit_used_in_ki_bs: Optional[int] = None,
- quota_limit_total_in_ki_bs: Optional[int] = None,
- percentage_used: Optional[float] = None,
- is_derived_quota: Optional[bool] = None,
- **kwargs: Any
- ) -> None:
- """
- :keyword quota_type: Type of quota. Known values are: "DefaultUserQuota", "DefaultGroupQuota",
- "IndividualUserQuota", and "IndividualGroupQuota".
- :paramtype quota_type: str or ~azure.mgmt.netapp.models.Type
- :keyword quota_target: UserID/GroupID/SID based on the quota target type. UserID and groupID
- can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by
- running :code:``.
- :paramtype quota_target: str
- :keyword quota_limit_used_in_ki_bs: Specifies the current usage in kibibytes for the user/group
- quota.
- :paramtype quota_limit_used_in_ki_bs: int
- :keyword quota_limit_total_in_ki_bs: Specifies the total size limit in kibibytes for the
- user/group quota.
- :paramtype quota_limit_total_in_ki_bs: int
- :keyword percentage_used: Percentage of used size compared to total size.
- :paramtype percentage_used: float
- :keyword is_derived_quota: Flag to indicate whether the quota is derived from default quota.
- :paramtype is_derived_quota: bool
- """
- super().__init__(**kwargs)
- self.quota_type = quota_type
- self.quota_target = quota_target
- self.quota_limit_used_in_ki_bs = quota_limit_used_in_ki_bs
- self.quota_limit_total_in_ki_bs = quota_limit_total_in_ki_bs
- self.percentage_used = percentage_used
- self.is_derived_quota = is_derived_quota
-
-
class ReestablishReplicationRequest(_serialization.Model):
"""Re-establish request object supplied in the body of the operation.
@@ -3771,13 +3561,10 @@ class ReplicationObject(_serialization.Model):
: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
- :ivar destination_replications: A list of destination replications.
- :vartype destination_replications: list[~azure.mgmt.netapp.models.DestinationReplication]
"""
_validation = {
"replication_id": {"readonly": True},
- "destination_replications": {"readonly": True},
}
_attribute_map = {
@@ -3787,7 +3574,6 @@ class ReplicationObject(_serialization.Model):
"remote_volume_resource_id": {"key": "remoteVolumeResourceId", "type": "str"},
"remote_path": {"key": "remotePath", "type": "RemotePath"},
"remote_volume_region": {"key": "remoteVolumeRegion", "type": "str"},
- "destination_replications": {"key": "destinationReplications", "type": "[DestinationReplication]"},
}
def __init__(
@@ -3823,7 +3609,6 @@ def __init__(
self.remote_volume_resource_id = remote_volume_resource_id
self.remote_path = remote_path
self.remote_volume_region = remote_volume_region
- self.destination_replications = None
class ReplicationStatus(_serialization.Model):
@@ -4135,7 +3920,7 @@ def __init__(self, *, value: Optional[List["_models.SnapshotPolicy"]] = None, **
self.value = value
-class SnapshotPolicy(TrackedResource): # pylint: disable=too-many-instance-attributes
+class SnapshotPolicy(TrackedResource):
"""Snapshot policy information.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4237,7 +4022,7 @@ def __init__(
self.provisioning_state = None
-class SnapshotPolicyDetails(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class SnapshotPolicyDetails(_serialization.Model):
"""Snapshot policy properties.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4329,7 +4114,7 @@ def __init__(
self.provisioning_state = None
-class SnapshotPolicyPatch(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class SnapshotPolicyPatch(_serialization.Model):
"""Snapshot policy Details for create and update.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4628,7 +4413,7 @@ def __init__(
self.provisioning_state = None
-class SubvolumeModel(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class SubvolumeModel(_serialization.Model):
"""Result of the post subvolume and action is to get metadata of the subvolume.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4978,7 +4763,7 @@ def __init__(self, **kwargs: Any) -> None:
self.client_id = None
-class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
+class Volume(TrackedResource):
"""Volume resource.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -5010,12 +4795,12 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
Required.
:vartype creation_token: str
:ivar service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:vartype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:ivar usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a soft
quota used for alerting only. For regular volumes, valid values are in the range 50GiB to
- 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional
- basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
+ 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an
+ exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
:vartype usage_threshold: int
:ivar export_policy: Set of export policy rules.
:vartype export_policy: ~azure.mgmt.netapp.models.VolumePropertiesExportPolicy
@@ -5053,18 +4838,11 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
:ivar mount_targets: List of mount targets.
:vartype mount_targets: list[~azure.mgmt.netapp.models.MountTargetProperties]
:ivar volume_type: What type of volume is this. For destination volumes in Cross Region
- Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone.
+ Replication, set type to DataProtection.
:vartype volume_type: str
:ivar data_protection: DataProtection type volumes include an object containing details of the
replication.
:vartype data_protection: ~azure.mgmt.netapp.models.VolumePropertiesDataProtection
- :ivar accept_grow_capacity_pool_for_short_term_clone_split: While auto splitting the short term
- clone volume, if the parent pool does not have enough space to accommodate the volume after
- split, it will be automatically resized, which will lead to increased billing. To accept
- capacity pool size auto grow and create a short term clone volume, set the property as
- accepted. Known values are: "Accepted" and "Declined".
- :vartype accept_grow_capacity_pool_for_short_term_clone_split: str or
- ~azure.mgmt.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit
:ivar is_restoring: Restoring.
:vartype is_restoring: bool
:ivar snapshot_directory_visible: If enabled (true) the volume will contain a read-only
@@ -5123,15 +4901,19 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"Default", "OnRead", and "Never".
:vartype cool_access_retrieval_policy: str or
~azure.mgmt.netapp.models.CoolAccessRetrievalPolicy
+ :ivar cool_access_tiering_policy: coolAccessTieringPolicy determines which cold data blocks are
+ moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks
+ in both the Snapshot copies and the active file system to the cool tier tier. This policy is
+ the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not
+ associated with the active file system to the cool tier. Known values are: "Auto" and
+ "SnapshotOnly".
+ :vartype cool_access_tiering_policy: str or ~azure.mgmt.netapp.models.CoolAccessTieringPolicy
:ivar unix_permissions: UNIX permissions for NFS volume accepted in octal 4 digit format. First
digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit
selects permission for the owner of the file: read (4), write (2) and execute (1). Third
selects permissions for other users in the same group. the fourth for other users not in the
group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other
- users. Avoid passing null value for unixPermissions in volume update operation, As per the
- behavior, If Null value is passed then user-visible unixPermissions value will became null, and
- user will not be able to get unixPermissions value. On safer side, actual unixPermissions value
- on volume will remain as its last saved value only.
+ users.
:vartype unix_permissions: str
:ivar clone_progress: When a volume is being restored from another volume's snapshot, will show
the percentage completion of this cloning process. When this value is empty/null there is no
@@ -5185,19 +4967,6 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
:vartype is_large_volume: bool
:ivar originating_resource_id: Id of the snapshot or backup that the volume is restored from.
:vartype originating_resource_id: str
- :ivar inherited_size_in_bytes: Space shared by short term clone volume with parent volume in
- bytes.
- :vartype inherited_size_in_bytes: int
- :ivar language: Language supported for volume. Known values are: "c.utf-8", "utf8mb4", "ar",
- "ar.utf-8", "hr", "hr.utf-8", "cs", "cs.utf-8", "da", "da.utf-8", "nl", "nl.utf-8", "en",
- "en.utf-8", "fi", "fi.utf-8", "fr", "fr.utf-8", "de", "de.utf-8", "he", "he.utf-8", "hu",
- "hu.utf-8", "it", "it.utf-8", "ja", "ja.utf-8", "ja-v1", "ja-v1.utf-8", "ja-jp.pck",
- "ja-jp.pck.utf-8", "ja-jp.932", "ja-jp.932.utf-8", "ja-jp.pck-v2", "ja-jp.pck-v2.utf-8", "ko",
- "ko.utf-8", "no", "no.utf-8", "pl", "pl.utf-8", "pt", "pt.utf-8", "c", "ro", "ro.utf-8", "ru",
- "ru.utf-8", "zh", "zh.utf-8", "zh.gbk", "zh.gbk.utf-8", "zh-tw.big5", "zh-tw.big5.utf-8",
- "zh-tw", "zh-tw.utf-8", "sk", "sk.utf-8", "sl", "sl.utf-8", "es", "es.utf-8", "sv", "sv.utf-8",
- "tr", "tr.utf-8", "en-us", and "en-us.utf-8".
- :vartype language: str or ~azure.mgmt.netapp.models.VolumeLanguage
"""
_validation = {
@@ -5244,7 +5013,6 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"encrypted": {"readonly": True},
"provisioned_availability_zone": {"readonly": True},
"originating_resource_id": {"readonly": True},
- "inherited_size_in_bytes": {"readonly": True},
}
_attribute_map = {
@@ -5275,10 +5043,6 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"mount_targets": {"key": "properties.mountTargets", "type": "[MountTargetProperties]"},
"volume_type": {"key": "properties.volumeType", "type": "str"},
"data_protection": {"key": "properties.dataProtection", "type": "VolumePropertiesDataProtection"},
- "accept_grow_capacity_pool_for_short_term_clone_split": {
- "key": "properties.acceptGrowCapacityPoolForShortTermCloneSplit",
- "type": "str",
- },
"is_restoring": {"key": "properties.isRestoring", "type": "bool"},
"snapshot_directory_visible": {"key": "properties.snapshotDirectoryVisible", "type": "bool"},
"kerberos_enabled": {"key": "properties.kerberosEnabled", "type": "bool"},
@@ -5298,6 +5062,7 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"cool_access": {"key": "properties.coolAccess", "type": "bool"},
"coolness_period": {"key": "properties.coolnessPeriod", "type": "int"},
"cool_access_retrieval_policy": {"key": "properties.coolAccessRetrievalPolicy", "type": "str"},
+ "cool_access_tiering_policy": {"key": "properties.coolAccessTieringPolicy", "type": "str"},
"unix_permissions": {"key": "properties.unixPermissions", "type": "str"},
"clone_progress": {"key": "properties.cloneProgress", "type": "int"},
"file_access_logs": {"key": "properties.fileAccessLogs", "type": "str"},
@@ -5318,8 +5083,6 @@ class Volume(TrackedResource): # pylint: disable=too-many-instance-attributes
"provisioned_availability_zone": {"key": "properties.provisionedAvailabilityZone", "type": "str"},
"is_large_volume": {"key": "properties.isLargeVolume", "type": "bool"},
"originating_resource_id": {"key": "properties.originatingResourceId", "type": "str"},
- "inherited_size_in_bytes": {"key": "properties.inheritedSizeInBytes", "type": "int"},
- "language": {"key": "properties.language", "type": "str"},
}
def __init__( # pylint: disable=too-many-locals
@@ -5340,9 +5103,6 @@ def __init__( # pylint: disable=too-many-locals
network_features: Union[str, "_models.NetworkFeatures"] = "Basic",
volume_type: Optional[str] = None,
data_protection: Optional["_models.VolumePropertiesDataProtection"] = None,
- accept_grow_capacity_pool_for_short_term_clone_split: Optional[
- Union[str, "_models.AcceptGrowCapacityPoolForShortTermCloneSplit"]
- ] = None,
is_restoring: Optional[bool] = None,
snapshot_directory_visible: bool = True,
kerberos_enabled: bool = False,
@@ -5358,6 +5118,7 @@ def __init__( # pylint: disable=too-many-locals
cool_access: bool = False,
coolness_period: Optional[int] = None,
cool_access_retrieval_policy: Optional[Union[str, "_models.CoolAccessRetrievalPolicy"]] = None,
+ cool_access_tiering_policy: Optional[Union[str, "_models.CoolAccessTieringPolicy"]] = None,
unix_permissions: Optional[str] = None,
avs_data_store: Union[str, "_models.AvsDataStore"] = "Disabled",
is_default_quota_enabled: bool = False,
@@ -5369,7 +5130,6 @@ def __init__( # pylint: disable=too-many-locals
placement_rules: Optional[List["_models.PlacementKeyValuePairs"]] = None,
enable_subvolumes: Union[str, "_models.EnableSubvolumes"] = "Disabled",
is_large_volume: bool = False,
- language: Optional[Union[str, "_models.VolumeLanguage"]] = None,
**kwargs: Any
) -> None:
"""
@@ -5383,12 +5143,12 @@ def __init__( # pylint: disable=too-many-locals
Required.
:paramtype creation_token: str
:keyword service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:paramtype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:keyword usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a
soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to
- 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional
- basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
+ 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an
+ exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
:paramtype usage_threshold: int
:keyword export_policy: Set of export policy rules.
:paramtype export_policy: ~azure.mgmt.netapp.models.VolumePropertiesExportPolicy
@@ -5409,18 +5169,11 @@ def __init__( # pylint: disable=too-many-locals
"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. For creating clone volume, set type to ShortTermClone.
+ Replication, set type to DataProtection.
:paramtype volume_type: str
:keyword data_protection: DataProtection type volumes include an object containing details of
the replication.
:paramtype data_protection: ~azure.mgmt.netapp.models.VolumePropertiesDataProtection
- :keyword accept_grow_capacity_pool_for_short_term_clone_split: While auto splitting the short
- term clone volume, if the parent pool does not have enough space to accommodate the volume
- after split, it will be automatically resized, which will lead to increased billing. To accept
- capacity pool size auto grow and create a short term clone volume, set the property as
- accepted. Known values are: "Accepted" and "Declined".
- :paramtype accept_grow_capacity_pool_for_short_term_clone_split: str or
- ~azure.mgmt.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit
:keyword is_restoring: Restoring.
:paramtype is_restoring: bool
:keyword snapshot_directory_visible: If enabled (true) the volume will contain a read-only
@@ -5476,15 +5229,19 @@ def __init__( # pylint: disable=too-many-locals
"Default", "OnRead", and "Never".
:paramtype cool_access_retrieval_policy: str or
~azure.mgmt.netapp.models.CoolAccessRetrievalPolicy
+ :keyword cool_access_tiering_policy: coolAccessTieringPolicy determines which cold data blocks
+ are moved to cool tier. The possible values for this field are: Auto - Moves cold user data
+ blocks in both the Snapshot copies and the active file system to the cool tier tier. This
+ policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that
+ are not associated with the active file system to the cool tier. Known values are: "Auto" and
+ "SnapshotOnly".
+ :paramtype cool_access_tiering_policy: str or ~azure.mgmt.netapp.models.CoolAccessTieringPolicy
:keyword unix_permissions: UNIX permissions for NFS volume accepted in octal 4 digit format.
First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second
digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third
selects permissions for other users in the same group. the fourth for other users not in the
group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other
- users. Avoid passing null value for unixPermissions in volume update operation, As per the
- behavior, If Null value is passed then user-visible unixPermissions value will became null, and
- user will not be able to get unixPermissions value. On safer side, actual unixPermissions value
- on volume will remain as its last saved value only.
+ users.
:paramtype unix_permissions: str
:keyword avs_data_store: Specifies whether the volume is enabled for Azure VMware Solution
(AVS) datastore purpose. Known values are: "Enabled" and "Disabled".
@@ -5512,16 +5269,6 @@ def __init__( # pylint: disable=too-many-locals
:paramtype enable_subvolumes: str or ~azure.mgmt.netapp.models.EnableSubvolumes
:keyword is_large_volume: Specifies whether volume is a Large Volume or Regular Volume.
:paramtype is_large_volume: bool
- :keyword language: Language supported for volume. Known values are: "c.utf-8", "utf8mb4", "ar",
- "ar.utf-8", "hr", "hr.utf-8", "cs", "cs.utf-8", "da", "da.utf-8", "nl", "nl.utf-8", "en",
- "en.utf-8", "fi", "fi.utf-8", "fr", "fr.utf-8", "de", "de.utf-8", "he", "he.utf-8", "hu",
- "hu.utf-8", "it", "it.utf-8", "ja", "ja.utf-8", "ja-v1", "ja-v1.utf-8", "ja-jp.pck",
- "ja-jp.pck.utf-8", "ja-jp.932", "ja-jp.932.utf-8", "ja-jp.pck-v2", "ja-jp.pck-v2.utf-8", "ko",
- "ko.utf-8", "no", "no.utf-8", "pl", "pl.utf-8", "pt", "pt.utf-8", "c", "ro", "ro.utf-8", "ru",
- "ru.utf-8", "zh", "zh.utf-8", "zh.gbk", "zh.gbk.utf-8", "zh-tw.big5", "zh-tw.big5.utf-8",
- "zh-tw", "zh-tw.utf-8", "sk", "sk.utf-8", "sl", "sl.utf-8", "es", "es.utf-8", "sv", "sv.utf-8",
- "tr", "tr.utf-8", "en-us", and "en-us.utf-8".
- :paramtype language: str or ~azure.mgmt.netapp.models.VolumeLanguage
"""
super().__init__(tags=tags, location=location, **kwargs)
self.etag = None
@@ -5545,7 +5292,6 @@ def __init__( # pylint: disable=too-many-locals
self.mount_targets = None
self.volume_type = volume_type
self.data_protection = data_protection
- self.accept_grow_capacity_pool_for_short_term_clone_split = accept_grow_capacity_pool_for_short_term_clone_split
self.is_restoring = is_restoring
self.snapshot_directory_visible = snapshot_directory_visible
self.kerberos_enabled = kerberos_enabled
@@ -5562,6 +5308,7 @@ def __init__( # pylint: disable=too-many-locals
self.cool_access = cool_access
self.coolness_period = coolness_period
self.cool_access_retrieval_policy = cool_access_retrieval_policy
+ self.cool_access_tiering_policy = cool_access_tiering_policy
self.unix_permissions = unix_permissions
self.clone_progress = None
self.file_access_logs = None
@@ -5582,8 +5329,6 @@ def __init__( # pylint: disable=too-many-locals
self.provisioned_availability_zone = None
self.is_large_volume = is_large_volume
self.originating_resource_id = None
- self.inherited_size_in_bytes = None
- self.language = language
class VolumeBackupProperties(_serialization.Model):
@@ -5868,7 +5613,7 @@ def __init__(
self.volumes_count = None
-class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class VolumeGroupVolumeProperties(_serialization.Model):
"""Volume resource.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -5891,12 +5636,12 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
Required.
:vartype creation_token: str
:ivar service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:vartype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:ivar usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a soft
quota used for alerting only. For regular volumes, valid values are in the range 50GiB to
- 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional
- basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
+ 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an
+ exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
:vartype usage_threshold: int
:ivar export_policy: Set of export policy rules.
:vartype export_policy: ~azure.mgmt.netapp.models.VolumePropertiesExportPolicy
@@ -5934,18 +5679,11 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
:ivar mount_targets: List of mount targets.
:vartype mount_targets: list[~azure.mgmt.netapp.models.MountTargetProperties]
:ivar volume_type: What type of volume is this. For destination volumes in Cross Region
- Replication, set type to DataProtection. For creating clone volume, set type to ShortTermClone.
+ Replication, set type to DataProtection.
:vartype volume_type: str
:ivar data_protection: DataProtection type volumes include an object containing details of the
replication.
:vartype data_protection: ~azure.mgmt.netapp.models.VolumePropertiesDataProtection
- :ivar accept_grow_capacity_pool_for_short_term_clone_split: While auto splitting the short term
- clone volume, if the parent pool does not have enough space to accommodate the volume after
- split, it will be automatically resized, which will lead to increased billing. To accept
- capacity pool size auto grow and create a short term clone volume, set the property as
- accepted. Known values are: "Accepted" and "Declined".
- :vartype accept_grow_capacity_pool_for_short_term_clone_split: str or
- ~azure.mgmt.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit
:ivar is_restoring: Restoring.
:vartype is_restoring: bool
:ivar snapshot_directory_visible: If enabled (true) the volume will contain a read-only
@@ -6004,15 +5742,19 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"Default", "OnRead", and "Never".
:vartype cool_access_retrieval_policy: str or
~azure.mgmt.netapp.models.CoolAccessRetrievalPolicy
+ :ivar cool_access_tiering_policy: coolAccessTieringPolicy determines which cold data blocks are
+ moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks
+ in both the Snapshot copies and the active file system to the cool tier tier. This policy is
+ the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not
+ associated with the active file system to the cool tier. Known values are: "Auto" and
+ "SnapshotOnly".
+ :vartype cool_access_tiering_policy: str or ~azure.mgmt.netapp.models.CoolAccessTieringPolicy
:ivar unix_permissions: UNIX permissions for NFS volume accepted in octal 4 digit format. First
digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second digit
selects permission for the owner of the file: read (4), write (2) and execute (1). Third
selects permissions for other users in the same group. the fourth for other users not in the
group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other
- users. Avoid passing null value for unixPermissions in volume update operation, As per the
- behavior, If Null value is passed then user-visible unixPermissions value will became null, and
- user will not be able to get unixPermissions value. On safer side, actual unixPermissions value
- on volume will remain as its last saved value only.
+ users.
:vartype unix_permissions: str
:ivar clone_progress: When a volume is being restored from another volume's snapshot, will show
the percentage completion of this cloning process. When this value is empty/null there is no
@@ -6066,19 +5808,6 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
:vartype is_large_volume: bool
:ivar originating_resource_id: Id of the snapshot or backup that the volume is restored from.
:vartype originating_resource_id: str
- :ivar inherited_size_in_bytes: Space shared by short term clone volume with parent volume in
- bytes.
- :vartype inherited_size_in_bytes: int
- :ivar language: Language supported for volume. Known values are: "c.utf-8", "utf8mb4", "ar",
- "ar.utf-8", "hr", "hr.utf-8", "cs", "cs.utf-8", "da", "da.utf-8", "nl", "nl.utf-8", "en",
- "en.utf-8", "fi", "fi.utf-8", "fr", "fr.utf-8", "de", "de.utf-8", "he", "he.utf-8", "hu",
- "hu.utf-8", "it", "it.utf-8", "ja", "ja.utf-8", "ja-v1", "ja-v1.utf-8", "ja-jp.pck",
- "ja-jp.pck.utf-8", "ja-jp.932", "ja-jp.932.utf-8", "ja-jp.pck-v2", "ja-jp.pck-v2.utf-8", "ko",
- "ko.utf-8", "no", "no.utf-8", "pl", "pl.utf-8", "pt", "pt.utf-8", "c", "ro", "ro.utf-8", "ru",
- "ru.utf-8", "zh", "zh.utf-8", "zh.gbk", "zh.gbk.utf-8", "zh-tw.big5", "zh-tw.big5.utf-8",
- "zh-tw", "zh-tw.utf-8", "sk", "sk.utf-8", "sl", "sl.utf-8", "es", "es.utf-8", "sv", "sv.utf-8",
- "tr", "tr.utf-8", "en-us", and "en-us.utf-8".
- :vartype language: str or ~azure.mgmt.netapp.models.VolumeLanguage
"""
_validation = {
@@ -6121,7 +5850,6 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"encrypted": {"readonly": True},
"provisioned_availability_zone": {"readonly": True},
"originating_resource_id": {"readonly": True},
- "inherited_size_in_bytes": {"readonly": True},
}
_attribute_map = {
@@ -6149,10 +5877,6 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"mount_targets": {"key": "properties.mountTargets", "type": "[MountTargetProperties]"},
"volume_type": {"key": "properties.volumeType", "type": "str"},
"data_protection": {"key": "properties.dataProtection", "type": "VolumePropertiesDataProtection"},
- "accept_grow_capacity_pool_for_short_term_clone_split": {
- "key": "properties.acceptGrowCapacityPoolForShortTermCloneSplit",
- "type": "str",
- },
"is_restoring": {"key": "properties.isRestoring", "type": "bool"},
"snapshot_directory_visible": {"key": "properties.snapshotDirectoryVisible", "type": "bool"},
"kerberos_enabled": {"key": "properties.kerberosEnabled", "type": "bool"},
@@ -6172,6 +5896,7 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"cool_access": {"key": "properties.coolAccess", "type": "bool"},
"coolness_period": {"key": "properties.coolnessPeriod", "type": "int"},
"cool_access_retrieval_policy": {"key": "properties.coolAccessRetrievalPolicy", "type": "str"},
+ "cool_access_tiering_policy": {"key": "properties.coolAccessTieringPolicy", "type": "str"},
"unix_permissions": {"key": "properties.unixPermissions", "type": "str"},
"clone_progress": {"key": "properties.cloneProgress", "type": "int"},
"file_access_logs": {"key": "properties.fileAccessLogs", "type": "str"},
@@ -6192,8 +5917,6 @@ class VolumeGroupVolumeProperties(_serialization.Model): # pylint: disable=too-
"provisioned_availability_zone": {"key": "properties.provisionedAvailabilityZone", "type": "str"},
"is_large_volume": {"key": "properties.isLargeVolume", "type": "bool"},
"originating_resource_id": {"key": "properties.originatingResourceId", "type": "str"},
- "inherited_size_in_bytes": {"key": "properties.inheritedSizeInBytes", "type": "int"},
- "language": {"key": "properties.language", "type": "str"},
}
def __init__( # pylint: disable=too-many-locals
@@ -6214,9 +5937,6 @@ def __init__( # pylint: disable=too-many-locals
network_features: Union[str, "_models.NetworkFeatures"] = "Basic",
volume_type: Optional[str] = None,
data_protection: Optional["_models.VolumePropertiesDataProtection"] = None,
- accept_grow_capacity_pool_for_short_term_clone_split: Optional[
- Union[str, "_models.AcceptGrowCapacityPoolForShortTermCloneSplit"]
- ] = None,
is_restoring: Optional[bool] = None,
snapshot_directory_visible: bool = True,
kerberos_enabled: bool = False,
@@ -6232,6 +5952,7 @@ def __init__( # pylint: disable=too-many-locals
cool_access: bool = False,
coolness_period: Optional[int] = None,
cool_access_retrieval_policy: Optional[Union[str, "_models.CoolAccessRetrievalPolicy"]] = None,
+ cool_access_tiering_policy: Optional[Union[str, "_models.CoolAccessTieringPolicy"]] = None,
unix_permissions: Optional[str] = None,
avs_data_store: Union[str, "_models.AvsDataStore"] = "Disabled",
is_default_quota_enabled: bool = False,
@@ -6243,7 +5964,6 @@ def __init__( # pylint: disable=too-many-locals
placement_rules: Optional[List["_models.PlacementKeyValuePairs"]] = None,
enable_subvolumes: Union[str, "_models.EnableSubvolumes"] = "Disabled",
is_large_volume: bool = False,
- language: Optional[Union[str, "_models.VolumeLanguage"]] = None,
**kwargs: Any
) -> None:
"""
@@ -6257,12 +5977,12 @@ def __init__( # pylint: disable=too-many-locals
Required.
:paramtype creation_token: str
:keyword service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:paramtype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:keyword usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a
soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to
- 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional
- basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
+ 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an
+ exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
:paramtype usage_threshold: int
:keyword export_policy: Set of export policy rules.
:paramtype export_policy: ~azure.mgmt.netapp.models.VolumePropertiesExportPolicy
@@ -6283,18 +6003,11 @@ def __init__( # pylint: disable=too-many-locals
"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. For creating clone volume, set type to ShortTermClone.
+ Replication, set type to DataProtection.
:paramtype volume_type: str
:keyword data_protection: DataProtection type volumes include an object containing details of
the replication.
:paramtype data_protection: ~azure.mgmt.netapp.models.VolumePropertiesDataProtection
- :keyword accept_grow_capacity_pool_for_short_term_clone_split: While auto splitting the short
- term clone volume, if the parent pool does not have enough space to accommodate the volume
- after split, it will be automatically resized, which will lead to increased billing. To accept
- capacity pool size auto grow and create a short term clone volume, set the property as
- accepted. Known values are: "Accepted" and "Declined".
- :paramtype accept_grow_capacity_pool_for_short_term_clone_split: str or
- ~azure.mgmt.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit
:keyword is_restoring: Restoring.
:paramtype is_restoring: bool
:keyword snapshot_directory_visible: If enabled (true) the volume will contain a read-only
@@ -6350,15 +6063,19 @@ def __init__( # pylint: disable=too-many-locals
"Default", "OnRead", and "Never".
:paramtype cool_access_retrieval_policy: str or
~azure.mgmt.netapp.models.CoolAccessRetrievalPolicy
+ :keyword cool_access_tiering_policy: coolAccessTieringPolicy determines which cold data blocks
+ are moved to cool tier. The possible values for this field are: Auto - Moves cold user data
+ blocks in both the Snapshot copies and the active file system to the cool tier tier. This
+ policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that
+ are not associated with the active file system to the cool tier. Known values are: "Auto" and
+ "SnapshotOnly".
+ :paramtype cool_access_tiering_policy: str or ~azure.mgmt.netapp.models.CoolAccessTieringPolicy
:keyword unix_permissions: UNIX permissions for NFS volume accepted in octal 4 digit format.
First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second
digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third
selects permissions for other users in the same group. the fourth for other users not in the
group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other
- users. Avoid passing null value for unixPermissions in volume update operation, As per the
- behavior, If Null value is passed then user-visible unixPermissions value will became null, and
- user will not be able to get unixPermissions value. On safer side, actual unixPermissions value
- on volume will remain as its last saved value only.
+ users.
:paramtype unix_permissions: str
:keyword avs_data_store: Specifies whether the volume is enabled for Azure VMware Solution
(AVS) datastore purpose. Known values are: "Enabled" and "Disabled".
@@ -6386,16 +6103,6 @@ def __init__( # pylint: disable=too-many-locals
:paramtype enable_subvolumes: str or ~azure.mgmt.netapp.models.EnableSubvolumes
:keyword is_large_volume: Specifies whether volume is a Large Volume or Regular Volume.
:paramtype is_large_volume: bool
- :keyword language: Language supported for volume. Known values are: "c.utf-8", "utf8mb4", "ar",
- "ar.utf-8", "hr", "hr.utf-8", "cs", "cs.utf-8", "da", "da.utf-8", "nl", "nl.utf-8", "en",
- "en.utf-8", "fi", "fi.utf-8", "fr", "fr.utf-8", "de", "de.utf-8", "he", "he.utf-8", "hu",
- "hu.utf-8", "it", "it.utf-8", "ja", "ja.utf-8", "ja-v1", "ja-v1.utf-8", "ja-jp.pck",
- "ja-jp.pck.utf-8", "ja-jp.932", "ja-jp.932.utf-8", "ja-jp.pck-v2", "ja-jp.pck-v2.utf-8", "ko",
- "ko.utf-8", "no", "no.utf-8", "pl", "pl.utf-8", "pt", "pt.utf-8", "c", "ro", "ro.utf-8", "ru",
- "ru.utf-8", "zh", "zh.utf-8", "zh.gbk", "zh.gbk.utf-8", "zh-tw.big5", "zh-tw.big5.utf-8",
- "zh-tw", "zh-tw.utf-8", "sk", "sk.utf-8", "sl", "sl.utf-8", "es", "es.utf-8", "sv", "sv.utf-8",
- "tr", "tr.utf-8", "en-us", and "en-us.utf-8".
- :paramtype language: str or ~azure.mgmt.netapp.models.VolumeLanguage
"""
super().__init__(**kwargs)
self.id = None
@@ -6422,7 +6129,6 @@ def __init__( # pylint: disable=too-many-locals
self.mount_targets = None
self.volume_type = volume_type
self.data_protection = data_protection
- self.accept_grow_capacity_pool_for_short_term_clone_split = accept_grow_capacity_pool_for_short_term_clone_split
self.is_restoring = is_restoring
self.snapshot_directory_visible = snapshot_directory_visible
self.kerberos_enabled = kerberos_enabled
@@ -6439,6 +6145,7 @@ def __init__( # pylint: disable=too-many-locals
self.cool_access = cool_access
self.coolness_period = coolness_period
self.cool_access_retrieval_policy = cool_access_retrieval_policy
+ self.cool_access_tiering_policy = cool_access_tiering_policy
self.unix_permissions = unix_permissions
self.clone_progress = None
self.file_access_logs = None
@@ -6459,8 +6166,6 @@ def __init__( # pylint: disable=too-many-locals
self.provisioned_availability_zone = None
self.is_large_volume = is_large_volume
self.originating_resource_id = None
- self.inherited_size_in_bytes = None
- self.language = language
class VolumeList(_serialization.Model):
@@ -6491,7 +6196,7 @@ def __init__(
self.next_link = next_link
-class VolumePatch(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class VolumePatch(_serialization.Model):
"""Volume patch resource.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -6507,12 +6212,12 @@ class VolumePatch(_serialization.Model): # pylint: disable=too-many-instance-at
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
:ivar service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:vartype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:ivar usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a soft
quota used for alerting only. For regular volumes, valid values are in the range 50GiB to
- 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional
- basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
+ 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an
+ exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
:vartype usage_threshold: int
:ivar export_policy: Set of export policy rules.
:vartype export_policy: ~azure.mgmt.netapp.models.VolumePatchPropertiesExportPolicy
@@ -6555,6 +6260,13 @@ class VolumePatch(_serialization.Model): # pylint: disable=too-many-instance-at
"Default", "OnRead", and "Never".
:vartype cool_access_retrieval_policy: str or
~azure.mgmt.netapp.models.CoolAccessRetrievalPolicy
+ :ivar cool_access_tiering_policy: coolAccessTieringPolicy determines which cold data blocks are
+ moved to cool tier. The possible values for this field are: Auto - Moves cold user data blocks
+ in both the Snapshot copies and the active file system to the cool tier tier. This policy is
+ the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that are not
+ associated with the active file system to the cool tier. Known values are: "Auto" and
+ "SnapshotOnly".
+ :vartype cool_access_tiering_policy: str or ~azure.mgmt.netapp.models.CoolAccessTieringPolicy
:ivar snapshot_directory_visible: If enabled (true) the volume will contain a read-only
snapshot directory which provides access to each of the volume's snapshots.
:vartype snapshot_directory_visible: bool
@@ -6596,6 +6308,7 @@ class VolumePatch(_serialization.Model): # pylint: disable=too-many-instance-at
"cool_access": {"key": "properties.coolAccess", "type": "bool"},
"coolness_period": {"key": "properties.coolnessPeriod", "type": "int"},
"cool_access_retrieval_policy": {"key": "properties.coolAccessRetrievalPolicy", "type": "str"},
+ "cool_access_tiering_policy": {"key": "properties.coolAccessTieringPolicy", "type": "str"},
"snapshot_directory_visible": {"key": "properties.snapshotDirectoryVisible", "type": "bool"},
"smb_access_based_enumeration": {"key": "properties.smbAccessBasedEnumeration", "type": "str"},
"smb_non_browsable": {"key": "properties.smbNonBrowsable", "type": "str"},
@@ -6619,6 +6332,7 @@ def __init__(
cool_access: Optional[bool] = None,
coolness_period: Optional[int] = None,
cool_access_retrieval_policy: Optional[Union[str, "_models.CoolAccessRetrievalPolicy"]] = None,
+ cool_access_tiering_policy: Optional[Union[str, "_models.CoolAccessTieringPolicy"]] = None,
snapshot_directory_visible: Optional[bool] = None,
smb_access_based_enumeration: Optional[Union[str, "_models.SmbAccessBasedEnumeration"]] = None,
smb_non_browsable: Optional[Union[str, "_models.SmbNonBrowsable"]] = None,
@@ -6630,12 +6344,12 @@ def __init__(
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
:keyword service_level: The service level of the file system. Known values are: "Standard",
- "Premium", "Ultra", "StandardZRS", and "Flexible".
+ "Premium", "Ultra", and "StandardZRS".
:paramtype service_level: str or ~azure.mgmt.netapp.models.ServiceLevel
:keyword usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a
soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to
- 100TiB. For large volumes, valid values are in the range 100TiB to 1PiB, and on an exceptional
- basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
+ 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an
+ exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.
:paramtype usage_threshold: int
:keyword export_policy: Set of export policy rules.
:paramtype export_policy: ~azure.mgmt.netapp.models.VolumePatchPropertiesExportPolicy
@@ -6678,6 +6392,13 @@ def __init__(
"Default", "OnRead", and "Never".
:paramtype cool_access_retrieval_policy: str or
~azure.mgmt.netapp.models.CoolAccessRetrievalPolicy
+ :keyword cool_access_tiering_policy: coolAccessTieringPolicy determines which cold data blocks
+ are moved to cool tier. The possible values for this field are: Auto - Moves cold user data
+ blocks in both the Snapshot copies and the active file system to the cool tier tier. This
+ policy is the default. SnapshotOnly - Moves user data blocks of the Volume Snapshot copies that
+ are not associated with the active file system to the cool tier. Known values are: "Auto" and
+ "SnapshotOnly".
+ :paramtype cool_access_tiering_policy: str or ~azure.mgmt.netapp.models.CoolAccessTieringPolicy
:keyword snapshot_directory_visible: If enabled (true) the volume will contain a read-only
snapshot directory which provides access to each of the volume's snapshots.
:paramtype snapshot_directory_visible: bool
@@ -6709,6 +6430,7 @@ def __init__(
self.cool_access = cool_access
self.coolness_period = coolness_period
self.cool_access_retrieval_policy = cool_access_retrieval_policy
+ self.cool_access_tiering_policy = cool_access_tiering_policy
self.snapshot_directory_visible = snapshot_directory_visible
self.smb_access_based_enumeration = smb_access_based_enumeration
self.smb_non_browsable = smb_non_browsable
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py
index 20d0b9c2b171..322e65fe0acb 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py
@@ -10,20 +10,6 @@
from azure.core import CaseInsensitiveEnumMeta
-class AcceptGrowCapacityPoolForShortTermCloneSplit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """While auto splitting the short term clone volume, if the parent pool does not have enough space
- to accommodate the volume after split, it will be automatically resized, which will lead to
- increased billing. To accept capacity pool size auto grow and create a short term clone volume,
- set the property as accepted.
- """
-
- ACCEPTED = "Accepted"
- """Auto grow capacity pool for short term clone split is accepted."""
- DECLINED = "Declined"
- """Auto grow capacity pool for short term clone split is declined. Short term clone volume
- creation will not be allowed, to create short term clone volume accept auto grow capacity pool."""
-
-
class ActiveDirectoryStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Status of the Active Directory."""
@@ -112,6 +98,18 @@ class CoolAccessRetrievalPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
NEVER = "Never"
+class CoolAccessTieringPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ """coolAccessTieringPolicy determines which cold data blocks are moved to cool tier. The possible
+ values for this field are: Auto - Moves cold user data blocks in both the Snapshot copies and
+ the active file system to the cool tier tier. This policy is the default. SnapshotOnly - Moves
+ user data blocks of the Volume Snapshot copies that are not associated with the active file
+ system to the cool tier.
+ """
+
+ AUTO = "Auto"
+ SNAPSHOT_ONLY = "SnapshotOnly"
+
+
class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The type of identity that created the resource."""
@@ -313,15 +311,6 @@ class ReplicationSchedule(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DAILY = "daily"
-class ReplicationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Indicates whether the replication is cross zone or cross region."""
-
- CROSS_REGION_REPLICATION = "CrossRegionReplication"
- """Cross region replication"""
- CROSS_ZONE_REPLICATION = "CrossZoneReplication"
- """Cross zone replication"""
-
-
class SecurityStyle(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS
protocol.
@@ -342,8 +331,6 @@ class ServiceLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Ultra service level"""
STANDARD_ZRS = "StandardZRS"
"""Zone redundant storage service level"""
- FLEXIBLE = "Flexible"
- """Flexible service level"""
class SmbAccessBasedEnumeration(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -367,7 +354,7 @@ class SmbNonBrowsable(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Type of quota rule."""
+ """Type of quota."""
DEFAULT_USER_QUOTA = "DefaultUserQuota"
"""Default user quota"""
@@ -379,149 +366,6 @@ class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Individual group quota"""
-class VolumeLanguage(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Language supported for volume."""
-
- C_UTF8 = "c.utf-8"
- """Posix with UTF-8"""
- UTF8_MB4 = "utf8mb4"
- """UTF-8 with 4 byte character support"""
- AR = "ar"
- """Arabic - Deprecated"""
- AR_UTF8 = "ar.utf-8"
- """Arabic with UTF-8"""
- HR = "hr"
- """Croatian - Deprecated"""
- HR_UTF8 = "hr.utf-8"
- """Croatian with UTF-8"""
- CS = "cs"
- """Czech - Deprecated"""
- CS_UTF8 = "cs.utf-8"
- """Czech with UTF-8"""
- DA = "da"
- """Danish - Deprecated"""
- DA_UTF8 = "da.utf-8"
- """Danish with UTF-8"""
- NL = "nl"
- """Dutch - Deprecated"""
- NL_UTF8 = "nl.utf-8"
- """Dutch with UTF-8"""
- EN = "en"
- """English - Deprecated"""
- EN_UTF8 = "en.utf-8"
- """English with UTF-8"""
- FI = "fi"
- """Finnish - Deprecated"""
- FI_UTF8 = "fi.utf-8"
- """Finnish with UTF-8"""
- FR = "fr"
- """French - Deprecated"""
- FR_UTF8 = "fr.utf-8"
- """French with UTF-8"""
- DE = "de"
- """German - Deprecated"""
- DE_UTF8 = "de.utf-8"
- """German with UTF-8"""
- HE = "he"
- """Hebrew - Deprecated"""
- HE_UTF8 = "he.utf-8"
- """Hebrew with UTF-8"""
- HU = "hu"
- """Hungarian - Deprecated"""
- HU_UTF8 = "hu.utf-8"
- """Hungarian with UTF-8"""
- IT = "it"
- """Italian - Deprecated"""
- IT_UTF8 = "it.utf-8"
- """Italian with UTF-8"""
- JA = "ja"
- """Japanese euc-j - Deprecated"""
- JA_UTF8 = "ja.utf-8"
- """Japanese euc-j with UTF-8"""
- JA_V1 = "ja-v1"
- """Japanese euc-j - Deprecated"""
- JA_V1_UTF8 = "ja-v1.utf-8"
- """Japanese euc-j with UTF-8"""
- JA_JP_PCK = "ja-jp.pck"
- """Japanese pck"""
- JA_JP_PCK_UTF8 = "ja-jp.pck.utf-8"
- """Japanese pck with UTF-8 - Deprecated"""
- JA_JP932 = "ja-jp.932"
- """Japanese cp932"""
- JA_JP932_UTF8 = "ja-jp.932.utf-8"
- """Japanese cp932 with UTF-8 - Deprecated"""
- JA_JP_PCK_V2 = "ja-jp.pck-v2"
- """Japanese pck - sjis"""
- JA_JP_PCK_V2_UTF8 = "ja-jp.pck-v2.utf-8"
- """Japanese pck - sjis with UTF-8 - Deprecated"""
- KO = "ko"
- """Korean - Deprecated"""
- KO_UTF8 = "ko.utf-8"
- """Korean with UTF-8"""
- NO = "no"
- """Norwegian - Deprecated"""
- NO_UTF8 = "no.utf-8"
- """Norwegian with UTF-8"""
- PL = "pl"
- """Polish - Deprecated"""
- PL_UTF8 = "pl.utf-8"
- """Polish with UTF-8"""
- PT = "pt"
- """Portuguese - Deprecated"""
- PT_UTF8 = "pt.utf-8"
- """Portuguese with UTF-8"""
- C = "c"
- """Posix - Deprecated"""
- RO = "ro"
- """Romanian - Deprecated"""
- RO_UTF8 = "ro.utf-8"
- """Romanian with UTF-8"""
- RU = "ru"
- """Russian - Deprecated"""
- RU_UTF8 = "ru.utf-8"
- """Russian with UTF-8"""
- ZH = "zh"
- """Simplified Chinese - Deprecated"""
- ZH_UTF8 = "zh.utf-8"
- """Simplified Chinese with UTF-8"""
- ZH_GBK = "zh.gbk"
- """Simplified gbk Chinese"""
- ZH_GBK_UTF8 = "zh.gbk.utf-8"
- """Simplified gbk Chinese with UTF-8 - Deprecated"""
- ZH_TW_BIG5 = "zh-tw.big5"
- """Traditional Chinese BIG 5"""
- ZH_TW_BIG5_UTF8 = "zh-tw.big5.utf-8"
- """Traditional Chinese BIG 5 with UTF-8 - Deprecated"""
- ZH_TW = "zh-tw"
- """Traditional Chinese EUC-TW"""
- ZH_TW_UTF8 = "zh-tw.utf-8"
- """Traditional Chinese EUC-TW with UTF-8 - Deprecated"""
- SK = "sk"
- """Slovak - Deprecated"""
- SK_UTF8 = "sk.utf-8"
- """Slovak with UTF-8"""
- SL = "sl"
- """Slovenian - Deprecated"""
- SL_UTF8 = "sl.utf-8"
- """Slovenian with UTF-8"""
- ES = "es"
- """Spanish - Deprecated"""
- ES_UTF8 = "es.utf-8"
- """Spanish with UTF-8"""
- SV = "sv"
- """Swedish - Deprecated"""
- SV_UTF8 = "sv.utf-8"
- """Swedish with UTF-8"""
- TR = "tr"
- """Turkish - Deprecated"""
- TR_UTF8 = "tr.utf-8"
- """Turkish with UTF-8"""
- EN_US = "en-us"
- """US English - Deprecated"""
- EN_US_UTF8 = "en-us.utf-8"
- """US English with UTF-8"""
-
-
class VolumeStorageToNetworkProximity(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provides storage to network proximity information for the volume."""
diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/__init__.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/__init__.py
index 96d2b3958ac5..59fbfffaa566 100644
--- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/__init__.py
+++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/__init__.py
@@ -5,28 +5,34 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
+# pylint: disable=wrong-import-position
-from ._operations import Operations
-from ._net_app_resource_operations import NetAppResourceOperations
-from ._net_app_resource_quota_limits_operations import NetAppResourceQuotaLimitsOperations
-from ._net_app_resource_region_infos_operations import NetAppResourceRegionInfosOperations
-from ._accounts_operations import AccountsOperations
-from ._pools_operations import PoolsOperations
-from ._volumes_operations import VolumesOperations
-from ._snapshots_operations import SnapshotsOperations
-from ._snapshot_policies_operations import SnapshotPoliciesOperations
-from ._backup_policies_operations import BackupPoliciesOperations
-from ._volume_quota_rules_operations import VolumeQuotaRulesOperations
-from ._volume_groups_operations import VolumeGroupsOperations
-from ._subvolumes_operations import SubvolumesOperations
-from ._backups_operations import BackupsOperations
-from ._backup_vaults_operations import BackupVaultsOperations
-from ._backups_under_backup_vault_operations import BackupsUnderBackupVaultOperations
-from ._backups_under_volume_operations import BackupsUnderVolumeOperations
-from ._backups_under_account_operations import BackupsUnderAccountOperations
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._operations import Operations # type: ignore
+from ._net_app_resource_operations import NetAppResourceOperations # type: ignore
+from ._net_app_resource_quota_limits_operations import NetAppResourceQuotaLimitsOperations # type: ignore
+from ._net_app_resource_region_infos_operations import NetAppResourceRegionInfosOperations # type: ignore
+from ._accounts_operations import AccountsOperations # type: ignore
+from ._pools_operations import PoolsOperations # type: ignore
+from ._volumes_operations import VolumesOperations # type: ignore
+from ._snapshots_operations import SnapshotsOperations # type: ignore
+from ._snapshot_policies_operations import SnapshotPoliciesOperations # type: ignore
+from ._backup_policies_operations import BackupPoliciesOperations # type: ignore
+from ._volume_quota_rules_operations import VolumeQuotaRulesOperations # type: ignore
+from ._volume_groups_operations import VolumeGroupsOperations # type: ignore
+from ._subvolumes_operations import SubvolumesOperations # type: ignore
+from ._backups_operations import BackupsOperations # type: ignore
+from ._backup_vaults_operations import BackupVaultsOperations # type: ignore
+from ._backups_under_backup_vault_operations import BackupsUnderBackupVaultOperations # type: ignore
+from ._backups_under_volume_operations import BackupsUnderVolumeOperations # type: ignore
+from ._backups_under_account_operations import BackupsUnderAccountOperations # type: ignore
from ._patch import __all__ as _patch_all
-from ._patch import * # pylint: disable=unused-wildcard-import
+from ._patch import *
from ._patch import patch_sdk as _patch_sdk
__all__ = [
@@ -49,5 +55,5 @@
"BackupsUnderVolumeOperations",
"BackupsUnderAccountOperations",
]
-__all__.extend([p for p in _patch_all if p not in __all__])
+__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
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 730a7b117912..b47b450406c0 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +36,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -283,7 +283,7 @@ def build_transition_to_cmk_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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -321,7 +321,7 @@ def build_get_change_key_vault_information_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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -356,7 +356,7 @@ def build_change_key_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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -423,7 +423,7 @@ def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.NetAppAccount
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.NetAppAccountList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -503,7 +503,7 @@ def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.Net
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.NetAppAccountList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -580,7 +580,7 @@ def get(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _mo
:rtype: ~azure.mgmt.netapp.models.NetAppAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -626,7 +626,7 @@ def get(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _mo
def _create_or_update_initial(
self, resource_group_name: str, account_name: str, body: Union[_models.NetAppAccount, IO[bytes]], **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -817,7 +817,7 @@ def get_long_running_output(pipeline_response):
)
def _delete_initial(self, resource_group_name: str, account_name: str, **kwargs: Any) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -929,7 +929,7 @@ def _update_initial(
body: Union[_models.NetAppAccountPatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1124,7 +1124,7 @@ def get_long_running_output(pipeline_response):
)
def _renew_credentials_initial(self, resource_group_name: str, account_name: str, **kwargs: Any) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1238,7 +1238,7 @@ def _transition_to_cmk_initial(
body: Optional[Union[_models.EncryptionTransitionRequest, IO[bytes]]] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1440,7 +1440,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _get_change_key_vault_information_initial( # pylint: disable=name-too-long
self, resource_group_name: str, account_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1559,7 +1559,7 @@ def _change_key_vault_initial(
body: Optional[Union[_models.ChangeKeyVault, IO[bytes]]] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 7f40afa51a20..653c2ab098b9 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +35,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -48,7 +47,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +82,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -119,7 +118,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -158,7 +157,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -197,7 +196,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -267,7 +266,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> It
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BackupPoliciesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -349,7 +348,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.BackupPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -401,7 +400,7 @@ def _create_initial(
body: Union[_models.BackupPolicy, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -614,7 +613,7 @@ def _update_initial(
body: Union[_models.BackupPolicyPatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -822,7 +821,7 @@ def get_long_running_output(pipeline_response):
def _delete_initial(
self, resource_group_name: str, account_name: str, backup_policy_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 07869fffaf49..a9c3c86c94ce 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +35,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -50,7 +49,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -85,7 +84,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -123,7 +122,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -164,7 +163,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -205,7 +204,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -279,7 +278,7 @@ def list_by_net_app_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BackupVaultsList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -361,7 +360,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.BackupVault
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -413,7 +412,7 @@ def _create_or_update_initial(
body: Union[_models.BackupVault, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -626,7 +625,7 @@ def _update_initial(
body: Union[_models.BackupVaultPatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -838,7 +837,7 @@ def get_long_running_output(pipeline_response):
def _delete_initial(
self, resource_group_name: str, account_name: str, backup_vault_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 ce7b1ac760d2..20bd4387a429 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +36,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -402,7 +402,7 @@ def get_latest_status(
:rtype: ~azure.mgmt.netapp.models.BackupStatus
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -468,7 +468,7 @@ def get_volume_latest_restore_status(
:rtype: ~azure.mgmt.netapp.models.RestoreStatus
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -546,7 +546,7 @@ def list_by_vault(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BackupsList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -632,7 +632,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.Backup
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -686,7 +686,7 @@ def _create_initial(
body: Union[_models.Backup, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -908,7 +908,7 @@ def _update_initial(
body: Optional[Union[_models.BackupPatch, IO[bytes]]] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1131,7 +1131,7 @@ def get_long_running_output(pipeline_response):
def _delete_initial(
self, resource_group_name: str, account_name: str, backup_vault_name: str, backup_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 1a254ae9955a..ea397cc4cfad 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -48,7 +47,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -106,7 +105,7 @@ def _migrate_backups_initial(
body: Union[_models.BackupsMigrationRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 242708639525..ecacd675a9d4 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -53,7 +52,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -119,7 +118,7 @@ def _restore_files_initial(
body: Union[_models.BackupRestoreFiles, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 a93b70b02f43..da2d17d88c9f 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -48,7 +47,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -114,7 +113,7 @@ def _migrate_backups_initial(
body: Union[_models.BackupsMigrationRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 82a0d87dce0f..b51a322b720a 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, Callable, Dict, Iterator, Optional, Type, TypeVar, Union, cast
+from typing import Any, Callable, Dict, Iterator, Optional, TypeVar, Union, cast
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -33,7 +32,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -45,7 +44,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -78,7 +77,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -109,7 +108,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -140,7 +139,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -167,7 +166,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -198,7 +197,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -272,7 +271,7 @@ def check_name_availability(
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -343,7 +342,7 @@ def check_file_path_availability(
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -419,7 +418,7 @@ def check_quota_availability(
:rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -479,7 +478,7 @@ def query_region_info(self, location: str, **kwargs: Any) -> _models.RegionInfo:
:rtype: ~azure.mgmt.netapp.models.RegionInfo
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -525,6 +524,7 @@ def query_region_info(self, location: str, **kwargs: Any) -> _models.RegionInfo:
def query_network_sibling_set(
self, location: str, network_sibling_set_id: str, subnet_id: str, **kwargs: Any
) -> _models.NetworkSiblingSet:
+ # pylint: disable=line-too-long
"""Describe a network sibling set.
Get details of the specified network sibling set.
@@ -543,7 +543,7 @@ def query_network_sibling_set(
:rtype: ~azure.mgmt.netapp.models.NetworkSiblingSet
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -602,7 +602,7 @@ def _update_network_sibling_set_initial(
network_features: Union[str, _models.NetworkFeatures] = "Basic",
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -674,6 +674,7 @@ def begin_update_network_sibling_set(
network_features: Union[str, _models.NetworkFeatures] = "Basic",
**kwargs: Any
) -> LROPoller[_models.NetworkSiblingSet]:
+ # pylint: disable=line-too-long
"""Update the network features of a network sibling set.
Update the network features of the specified network sibling set.
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 9e8ceaba390d..3d82a381627c 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
+from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
import urllib.parse
from azure.core.exceptions import (
@@ -31,7 +30,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -43,7 +42,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -70,7 +69,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -133,7 +132,7 @@ def list(self, location: str, **kwargs: Any) -> Iterable["_models.SubscriptionQu
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SubscriptionQuotaItemList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -209,7 +208,7 @@ def get(self, location: str, quota_limit_name: str, **kwargs: Any) -> _models.Su
:rtype: ~azure.mgmt.netapp.models.SubscriptionQuotaItem
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 8001a7ce56b7..f61e933c38fe 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
+from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
import urllib.parse
from azure.core.exceptions import (
@@ -31,7 +30,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -43,7 +42,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -70,7 +69,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -131,7 +130,7 @@ def list(self, location: str, **kwargs: Any) -> Iterable["_models.RegionInfoReso
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.RegionInfosList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -205,7 +204,7 @@ def get(self, location: str, **kwargs: Any) -> _models.RegionInfoResource:
:rtype: ~azure.mgmt.netapp.models.RegionInfoResource
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 1978e8ca0066..b260a6945e55 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
-from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
+from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
import urllib.parse
from azure.core.exceptions import (
@@ -31,7 +30,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -43,7 +42,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -93,7 +92,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]:
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 3bb6136e30f1..52e741381a51 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +35,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -48,7 +47,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +82,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -121,7 +120,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -162,7 +161,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -203,7 +202,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -275,7 +274,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> It
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.CapacityPoolList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -355,7 +354,7 @@ def get(self, resource_group_name: str, account_name: str, pool_name: str, **kwa
:rtype: ~azure.mgmt.netapp.models.CapacityPool
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -407,7 +406,7 @@ def _create_or_update_initial(
body: Union[_models.CapacityPool, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -620,7 +619,7 @@ def _update_initial(
body: Union[_models.CapacityPoolPatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -828,7 +827,7 @@ def get_long_running_output(pipeline_response):
def _delete_initial(
self, resource_group_name: str, account_name: str, pool_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 c229b6c6258d..7afeea2c477b 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +35,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -48,7 +47,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -83,7 +82,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -119,7 +118,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -158,7 +157,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -197,7 +196,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -233,7 +232,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -301,7 +300,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> It
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SnapshotPoliciesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -381,7 +380,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.SnapshotPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -510,7 +509,7 @@ def create(
:rtype: ~azure.mgmt.netapp.models.SnapshotPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -574,7 +573,7 @@ def _update_initial(
body: Union[_models.SnapshotPolicyPatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -776,7 +775,7 @@ def get_long_running_output(pipeline_response):
def _delete_initial(
self, resource_group_name: str, account_name: str, snapshot_policy_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -904,7 +903,7 @@ def list_volumes(
:rtype: ~azure.mgmt.netapp.models.SnapshotPolicyVolumeList
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 1f127ea00591..074cea4b51a0 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +36,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -383,7 +383,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SnapshotsList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -477,7 +477,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.Snapshot
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -533,7 +533,7 @@ def _create_initial(
body: Union[_models.Snapshot, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -767,7 +767,7 @@ def _update_initial(
body: JSON,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -916,7 +916,7 @@ def _delete_initial(
snapshot_name: str,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1051,7 +1051,7 @@ def _restore_files_initial(
body: Union[_models.SnapshotRestoreFiles, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 8e2ab150ef4d..4ebe5329bf6d 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +36,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -412,7 +412,7 @@ def list_by_volume(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SubvolumesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -506,7 +506,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.SubvolumeInfo
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -562,7 +562,7 @@ def _create_initial(
body: Union[_models.SubvolumeInfo, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -799,7 +799,7 @@ def _update_initial(
body: Union[_models.SubvolumePatchRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1035,7 +1035,7 @@ def _delete_initial(
subvolume_name: str,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1169,7 +1169,7 @@ def _get_metadata_initial(
subvolume_name: str,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 f990d07f8095..a033cd5d8b38 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
@@ -1,4 +1,3 @@
-# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +35,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -50,7 +49,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -85,7 +84,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -128,7 +127,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -174,7 +173,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -253,7 +252,7 @@ def list_by_net_app_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.VolumeGroupList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -335,7 +334,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.VolumeGroupDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -387,7 +386,7 @@ def _create_initial(
body: Union[_models.VolumeGroupDetails, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -599,7 +598,7 @@ def get_long_running_output(pipeline_response):
def _delete_initial(
self, resource_group_name: str, account_name: str, volume_group_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 28703a6f4b35..85a777d2a545 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +36,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -329,7 +329,7 @@ def list_by_volume(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.VolumeQuotaRulesList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -423,7 +423,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.VolumeQuotaRule
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -479,7 +479,7 @@ def _create_initial(
body: Union[_models.VolumeQuotaRule, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -716,7 +716,7 @@ def _update_initial(
body: Union[_models.VolumeQuotaRulePatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -952,7 +952,7 @@ def _delete_initial(
volume_quota_rule_name: str,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
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 7dbd44f4dab1..caf915cb1920 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
@@ -1,4 +1,4 @@
-# pylint: disable=too-many-lines,too-many-statements
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8,7 +8,7 @@
# --------------------------------------------------------------------------
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -36,7 +36,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
+ from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
@@ -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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -387,54 +387,13 @@ def build_reset_cifs_password_request(
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-def build_split_clone_from_parent_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-preview"))
- 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}/splitCloneFromParent",
- ) # 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_break_file_locks_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-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -478,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -516,54 +475,13 @@ def build_list_get_group_id_list_for_ldap_user_request( # pylint: disable=name-
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-def build_list_quota_report_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-preview"))
- 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}/listQuotaReport",
- ) # 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_break_replication_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-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -607,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -651,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -692,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -733,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -774,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -815,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -859,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -900,7 +818,7 @@ def build_peer_external_cluster_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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -944,7 +862,7 @@ def build_authorize_external_replication_request( # pylint: disable=name-too-lo
_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-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -985,7 +903,7 @@ def build_finalize_external_replication_request( # pylint: disable=name-too-lon
_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-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1026,7 +944,7 @@ def build_perform_replication_transfer_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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1067,7 +985,7 @@ def build_pool_change_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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -1111,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")
@@ -1155,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1196,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-07-01-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1275,7 +1193,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.VolumeList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1360,7 +1278,7 @@ def get(
:rtype: ~azure.mgmt.netapp.models.Volume
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1414,7 +1332,7 @@ def _create_or_update_initial(
body: Union[_models.Volume, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1636,7 +1554,7 @@ def _update_initial(
body: Union[_models.VolumePatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1858,7 +1776,7 @@ def _delete_initial(
force_delete: Optional[bool] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1987,7 +1905,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _populate_availability_zone_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2119,7 +2037,7 @@ def _revert_initial(
body: Union[_models.VolumeRevert, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2331,7 +2249,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _reset_cifs_password_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2447,127 +2365,6 @@ 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 _split_clone_from_parent_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_split_clone_from_parent_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_split_clone_from_parent(
- self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
- ) -> LROPoller[None]:
- """Split clone from parent volume.
-
- Split operation to convert clone volume to an independent 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
- :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._split_clone_from_parent_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 _break_file_locks_initial(
self,
resource_group_name: str,
@@ -2577,7 +2374,7 @@ def _break_file_locks_initial(
body: Optional[Union[_models.BreakFileLocksRequest, IO[bytes]]] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2804,7 +2601,7 @@ def _list_get_group_id_list_for_ldap_user_initial( # pylint: disable=name-too-l
body: Union[_models.GetGroupIdListForLDAPUserRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3027,133 +2824,6 @@ def get_long_running_output(pipeline_response):
self._client, raw_result, get_long_running_output, polling_method # type: ignore
)
- def _list_quota_report_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_list_quota_report_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_list_quota_report(
- self, resource_group_name: str, account_name: str, pool_name: str, volume_name: str, **kwargs: Any
- ) -> LROPoller[_models.ListQuotaReportResponse]:
- """Lists Quota Report for the volume.
-
- Returns report of quotas for the 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
- :return: An instance of LROPoller that returns either ListQuotaReportResponse or the result of
- cls(response)
- :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.netapp.models.ListQuotaReportResponse]
- :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.ListQuotaReportResponse] = 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._list_quota_report_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("ListQuotaReportResponse", 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.ListQuotaReportResponse].from_continuation_token(
- polling_method=polling_method,
- continuation_token=cont_token,
- client=self._client,
- deserialization_callback=get_long_running_output,
- )
- return LROPoller[_models.ListQuotaReportResponse](
- self._client, raw_result, get_long_running_output, polling_method # type: ignore
- )
-
def _break_replication_initial(
self,
resource_group_name: str,
@@ -3163,7 +2833,7 @@ def _break_replication_initial(
body: Optional[Union[_models.BreakReplicationRequest, IO[bytes]]] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3384,7 +3054,7 @@ def _reestablish_replication_initial(
body: Union[_models.ReestablishReplicationRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3617,7 +3287,7 @@ def replication_status(
:rtype: ~azure.mgmt.netapp.models.ReplicationStatus
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3689,7 +3359,7 @@ def list_replications(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ListReplications] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3757,7 +3427,7 @@ def get_next(next_link=None):
def _resync_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3876,7 +3546,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _delete_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4001,7 +3671,7 @@ def _authorize_replication_initial(
body: Union[_models.AuthorizeRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4213,7 +3883,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _re_initialize_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4337,7 +4007,7 @@ def _peer_external_cluster_initial(
body: Union[_models.PeerClusterForVolumeMigrationRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4560,7 +4230,7 @@ def get_long_running_output(pipeline_response):
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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4688,7 +4358,7 @@ def get_long_running_output(pipeline_response):
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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4810,7 +4480,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4937,7 +4607,7 @@ def _pool_change_initial(
body: Union[_models.PoolChangeRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -5155,7 +4825,7 @@ def _relocate_initial(
body: Optional[Union[_models.RelocateVolumeRequest, IO[bytes]]] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -5368,7 +5038,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _finalize_relocation_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -5484,7 +5154,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _revert_relocation_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]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_change_key_vault.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_change_key_vault.py
index 3fc9fb48ae3f..74ee23db7fac 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_change_key_vault.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_change_key_vault.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_ChangeKeyVault.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_ChangeKeyVault.json
if __name__ == "__main__":
main()
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 c659e2a55d3b..e4e5ecd63b01 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
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 2d164806037a..49fe7a127fec 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
@@ -56,6 +56,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_CreateOrUpdateAD.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 d9a7cc04cfa7..951b887395dd 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/preview/2024-07-01-preview/examples/Accounts_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 69e63cd9e0ba..945922260985 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/preview/2024-07-01-preview/examples/Accounts_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get_change_key_vault_information.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get_change_key_vault_information.py
index 912886271b59..89640759e5ad 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get_change_key_vault_information.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_get_change_key_vault_information.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_GetChangeKeyVaultInformation.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_GetChangeKeyVaultInformation.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 f25c5ada780c..80aa03b981d0 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_list.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_list.py
@@ -9,7 +9,6 @@
from azure.identity import DefaultAzureCredential
from azure.mgmt.netapp import NetAppManagementClient
-
"""
# PREREQUISITES
pip install azure-identity
@@ -22,21 +21,19 @@
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.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/preview/2024-07-01-preview/examples/Accounts_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_List.json
if __name__ == "__main__":
main()
+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 8f64039cd9c6..82eef0da5e01 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/preview/2024-07-01-preview/examples/Accounts_RenewCredentials.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_RenewCredentials.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_transition_encryption_key.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_transition_encryption_key.py
index 1f522bc7b232..062697e341a2 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_transition_encryption_key.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_transition_encryption_key.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_TransitionEncryptionKey.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Accounts_TransitionEncryptionKey.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 d5a7dafa6497..94ed1b20db39 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/accounts_update.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Accounts_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 adf04b2e8f41..b925d55fcbd6 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
@@ -47,6 +47,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 9c1bed7ef879..eb3833a72626 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/preview/2024-07-01-preview/examples/BackupPolicies_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 b90d09aa866e..c6d635b57e8a 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/preview/2024-07-01-preview/examples/BackupPolicies_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 413cbd9cab32..a3d10ad5db09 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/preview/2024-07-01-preview/examples/BackupPolicies_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 e5058f5b1abe..9a6c8742e6da 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
@@ -47,6 +47,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupPolicies_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 52c9a31e6480..45c2e41eda34 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
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 d80a95284cf7..8ca78b318a6e 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/preview/2024-07-01-preview/examples/BackupVaults_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 bedf76ea3419..2c111c652769 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/preview/2024-07-01-preview/examples/BackupVaults_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 9a02920e6bb1..28e931fe3333 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/preview/2024-07-01-preview/examples/BackupVaults_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 3ba711ebe61d..3ddf67603fa4 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
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupVaults_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 d71d440a6598..c21ee9d16561 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
@@ -39,6 +39,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderAccount_Migrate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 cb24ffcf014a..8eab8447754b 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
@@ -45,6 +45,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 e5314d34335d..dffbeaafa08d 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/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 a556af8e39b9..d3c89a91f259 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/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 f3ec902ceedd..707fc752aad6 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/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 5692d4c45e41..e4b2236042ce 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
@@ -42,6 +42,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_SingleFileRestore.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 26c155acdf9a..9afecd6a3715 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/preview/2024-07-01-preview/examples/BackupsUnderBackupVault_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 36d95321bc78..7a24cd20961c 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
@@ -41,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/BackupsUnderVolume_Migrate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 5abd63583913..213aa21b73c9 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
@@ -40,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/GroupIdListForLDAPUser.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 0c2ab12e6c5c..69390bf16801 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/preview/2024-07-01-preview/examples/OperationList.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 bca1e7f76bc8..916b4d9c9b3e 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
@@ -42,6 +42,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_CreateOrUpdate.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update_custom_throughput.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update_custom_throughput.py
deleted file mode 100644
index f7c89945cefd..000000000000
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_create_or_update_custom_throughput.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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 pools_create_or_update_custom_throughput.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.pools.begin_create_or_update(
- resource_group_name="myRG",
- account_name="account1",
- pool_name="customPool1",
- body={
- "location": "eastus",
- "properties": {
- "customThroughputMibps": 128,
- "qosType": "Manual",
- "serviceLevel": "Flexible",
- "size": 4398046511104,
- },
- },
- ).result()
- print(response)
-
-
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_CreateOrUpdate_CustomThroughput.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 9fb9e965f18b..c21606f09348 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/preview/2024-07-01-preview/examples/Pools_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 bfab2b1c433e..3474f3d2519b 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/preview/2024-07-01-preview/examples/Pools_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Pools_Get.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get_custom_throughput.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get_custom_throughput.py
deleted file mode 100644
index 42d6c036bf61..000000000000
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/pools_get_custom_throughput.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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 pools_get_custom_throughput.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.pools.get(
- resource_group_name="myRG",
- account_name="account1",
- pool_name="customPool1",
- )
- print(response)
-
-
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Pools_Get_CustomThroughput.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 a08c8b1a5c9d..cecec1dd6671 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/preview/2024-07-01-preview/examples/Pools_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 5712a4e89794..731643888d3e 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/preview/2024-07-01-preview/examples/QuotaLimits_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 2eb5664520b0..5283f4527faf 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/preview/2024-07-01-preview/examples/QuotaLimits_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 216bcdd783d9..9db1b0c21bc1 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/preview/2024-07-01-preview/examples/RegionInfo.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 b7686e08313f..ef2576543df8 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/preview/2024-07-01-preview/examples/RegionInfos_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 db48d430785d..0c64e7d2d85d 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/preview/2024-07-01-preview/examples/RegionInfos_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 b6eb9d7561a1..0b2fb7e2dfaa 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
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 1980b1d12b6c..1702090e2e8b 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/preview/2024-07-01-preview/examples/SnapshotPolicies_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 748e16e767e2..064e911d43d9 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/preview/2024-07-01-preview/examples/SnapshotPolicies_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 55e4b84bee34..135ccc4a1d26 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/preview/2024-07-01-preview/examples/SnapshotPolicies_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 e6cbe84390dc..918fd69822ea 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/preview/2024-07-01-preview/examples/SnapshotPolicies_ListVolumes.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 4b7fcd853dfa..ff322bd9205b 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
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/SnapshotPolicies_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 f6c056f38b9b..5e994f7e8817 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_create.py
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 8a58a5d749ea..8d0916474835 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/preview/2024-07-01-preview/examples/Snapshots_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 ec62cbdb0357..17f440915fc1 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/preview/2024-07-01-preview/examples/Snapshots_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 45c1fbc4cb9c..f29e6e8471e4 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/preview/2024-07-01-preview/examples/Snapshots_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 554c53bbfd92..079aefc38aee 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
@@ -40,6 +40,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Snapshots_SingleFileRestore.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 e56cd86e8eff..6b607334fc81 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_create.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_create.py
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 53c4efe413f8..f37d9edb7b86 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/preview/2024-07-01-preview/examples/Subvolumes_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 84dd1eb9fbd7..d160fe4d304a 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/preview/2024-07-01-preview/examples/Subvolumes_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 acc20846450c..bc84b131144e 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/preview/2024-07-01-preview/examples/Subvolumes_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 24a4a6b35971..ce3b5b67b80b 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/preview/2024-07-01-preview/examples/Subvolumes_Metadata.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 3054f4dc5011..ae0b0fe50add 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_update.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/subvolumes_update.py
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Subvolumes_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 01de45f1c7e4..f4608642c328 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
@@ -458,6 +458,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_Oracle.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 69aa49299825..f9c7f60b6bbc 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
@@ -220,6 +220,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeGroups_Create_SapHana.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 057e72090042..a89ea641b449 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/preview/2024-07-01-preview/examples/VolumeGroups_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 4bea4dd19cc3..94a3139306b1 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/preview/2024-07-01-preview/examples/VolumeGroups_Get_Oracle.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 fd10a67bda89..37f1f864c9df 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/preview/2024-07-01-preview/examples/VolumeGroups_Get_SapHana.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 290946f60e47..3cb7bad81bac 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/preview/2024-07-01-preview/examples/VolumeGroups_List_Oracle.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 a9245f3ac637..15c23ea4e494 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/preview/2024-07-01-preview/examples/VolumeGroups_List_SapHana.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 fc9c9120a2ac..0f74478d380b 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
@@ -44,6 +44,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Create.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 5b19b8554eb1..8e66d97cc3ff 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/preview/2024-07-01-preview/examples/VolumeQuotaRules_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 245e38d5f100..0680f5c4c779 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/preview/2024-07-01-preview/examples/VolumeQuotaRules_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 c7cefeec37dd..59474f74c886 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/preview/2024-07-01-preview/examples/VolumeQuotaRules_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 8728bcf7d8e0..debd5c20c5ee 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
@@ -41,6 +41,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/VolumeQuotaRules_Update.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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
index 7f332e1bb92b..d7a34914e35c 100644
--- 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
@@ -39,6 +39,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeExternalReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 ca5a3c1fb084..863d2678f7f9 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
@@ -41,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_AuthorizeReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 982c8370f829..62bf1d6bae97 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/preview/2024-07-01-preview/examples/Volumes_BreakFileLocks.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 dc26a08c8eee..37efbb64d6a7 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/preview/2024-07-01-preview/examples/Volumes_BreakReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 aa0aaf72577f..fa5d75cd883b 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
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_CreateOrUpdate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 e37aceb2ce32..6efc791488fe 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/preview/2024-07-01-preview/examples/Volumes_Delete.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 187dab216807..ecf6e8fc927b 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/preview/2024-07-01-preview/examples/Volumes_DeleteReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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
index 0f56aa2e6f7a..7bbfa9838294 100644
--- 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
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_FinalizeExternalReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 8153c914703a..bcfb79509a01 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/preview/2024-07-01-preview/examples/Volumes_FinalizeRelocation.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 9b636a1ed13e..a2da0330f78c 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/preview/2024-07-01-preview/examples/Volumes_Get.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 fc1c47d948a3..e46722ee60ef 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/preview/2024-07-01-preview/examples/Volumes_LatestBackupStatus.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 d9c9656cc935..f6c021b26620 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/preview/2024-07-01-preview/examples/Volumes_LatestRestoreStatus.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 473d22761c4a..318949c97966 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/preview/2024-07-01-preview/examples/Volumes_List.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_List.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_quota_report.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_quota_report.py
deleted file mode 100644
index 637603c38180..000000000000
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_list_quota_report.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# 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_list_quota_report.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_list_quota_report(
- 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/preview/2024-07-01-preview/examples/Volumes_ListQuotaReport.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 8b44a51fee75..e12634d0a64a 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/preview/2024-07-01-preview/examples/Volumes_ListReplications.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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
index 8927aa80fbe6..2f4d63cca8ca 100644
--- 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
@@ -40,6 +40,6 @@ def main():
print(response)
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PeerExternalCluster.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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
index 8cefca40ba5f..7d26f11b3e11 100644
--- 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
@@ -38,6 +38,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PerformReplicationTransfer.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 6444fe4acfed..a33393f279da 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
@@ -41,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_PoolChange.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 7fe36540bfd1..5c7a7c5e80b3 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/preview/2024-07-01-preview/examples/Volumes_PopulateAvailabilityZones.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 1e4bc2c5cbce..fcdffce37d0f 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/preview/2024-07-01-preview/examples/Volumes_ReInitializeReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 490eb36e344a..87ecd115b4eb 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
@@ -41,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_ReestablishReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 f33cddc7d9eb..6caf33810538 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/preview/2024-07-01-preview/examples/Volumes_Relocate.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 4049578c5650..4f37f84cbdef 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/preview/2024-07-01-preview/examples/Volumes_ReplicationStatus.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 c28cc6978583..78c07de92f0f 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/preview/2024-07-01-preview/examples/Volumes_ResetCifsPassword.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 dada759259f0..94de4d89fb97 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/preview/2024-07-01-preview/examples/Volumes_ResyncReplication.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 e4b1b4b6a52e..e56afcefe77d 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_revert.py
@@ -41,6 +41,6 @@ def main():
).result()
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_Revert.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-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 9cd42d84ba30..a27f064be5e2 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/preview/2024-07-01-preview/examples/Volumes_RevertRelocation.json
+# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2024-09-01/examples/Volumes_RevertRelocation.json
if __name__ == "__main__":
main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_split_clone.py b/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_split_clone.py
deleted file mode 100644
index 6b0c4f50d3ed..000000000000
--- a/sdk/netapp/azure-mgmt-netapp/generated_samples/volumes_split_clone.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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_split_clone.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_split_clone_from_parent(
- resource_group_name="myRG",
- account_name="account1",
- pool_name="pool1",
- volume_name="volume1",
- ).result()
-
-
-# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/preview/2024-07-01-preview/examples/Volumes_SplitClone.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/netapp/azure-mgmt-netapp/generated_tests/conftest.py b/sdk/netapp/azure-mgmt-netapp/generated_tests/conftest.py
index 5e9c2e5e14c1..9cba6fd48347 100644
--- a/sdk/netapp/azure-mgmt-netapp/generated_tests/conftest.py
+++ b/sdk/netapp/azure-mgmt-netapp/generated_tests/conftest.py
@@ -18,7 +18,7 @@
load_dotenv()
-# aovid record sensitive identity information in recordings
+# For security, please avoid record sensitive identity information in recordings
@pytest.fixture(scope="session", autouse=True)
def add_sanitizers(test_proxy):
netappmanagement_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000")
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 cc5e880c4fd4..693ba6312631 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
@@ -20,9 +20,9 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_subscription(self, resource_group):
+ def test_accounts_list_by_subscription(self, resource_group):
response = self.client.accounts.list_by_subscription(
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -30,10 +30,10 @@ def test_list_by_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_accounts_list(self, resource_group):
response = self.client.accounts.list(
resource_group_name=resource_group.name,
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -41,11 +41,11 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_accounts_get(self, resource_group):
response = self.client.accounts.get(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -53,7 +53,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update(self, resource_group):
+ def test_accounts_begin_create_or_update(self, resource_group):
response = self.client.accounts.begin_create_or_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -88,7 +88,7 @@ def test_begin_create_or_update(self, resource_group):
],
"disableShowmount": bool,
"encryption": {
- "identity": {"federatedClientId": "str", "principalId": "str", "userAssignedIdentity": "str"},
+ "identity": {"principalId": "str", "userAssignedIdentity": "str"},
"keySource": "Microsoft.NetApp",
"keyVaultProperties": {
"keyName": "str",
@@ -106,9 +106,7 @@ def test_begin_create_or_update(self, resource_group):
"tenantId": "str",
"userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}},
},
- "isMultiAdEnabled": bool,
"name": "str",
- "nfsV4IDDomain": "str",
"provisioningState": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
@@ -121,7 +119,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -129,11 +127,11 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_accounts_begin_delete(self, resource_group):
response = self.client.accounts.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -141,7 +139,7 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_accounts_begin_update(self, resource_group):
response = self.client.accounts.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -175,7 +173,7 @@ def test_begin_update(self, resource_group):
],
"disableShowmount": bool,
"encryption": {
- "identity": {"federatedClientId": "str", "principalId": "str", "userAssignedIdentity": "str"},
+ "identity": {"principalId": "str", "userAssignedIdentity": "str"},
"keySource": "Microsoft.NetApp",
"keyVaultProperties": {
"keyName": "str",
@@ -192,15 +190,13 @@ def test_begin_update(self, resource_group):
"tenantId": "str",
"userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}},
},
- "isMultiAdEnabled": bool,
"location": "str",
"name": "str",
- "nfsV4IDDomain": "str",
"provisioningState": "str",
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -208,11 +204,11 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_renew_credentials(self, resource_group):
+ def test_accounts_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-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -220,11 +216,11 @@ def test_begin_renew_credentials(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_transition_to_cmk(self, resource_group):
+ def test_accounts_begin_transition_to_cmk(self, resource_group):
response = self.client.accounts.begin_transition_to_cmk(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -232,11 +228,11 @@ def test_begin_transition_to_cmk(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_get_change_key_vault_information(self, resource_group):
+ def test_accounts_begin_get_change_key_vault_information(self, resource_group):
response = self.client.accounts.begin_get_change_key_vault_information(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -244,11 +240,11 @@ def test_begin_get_change_key_vault_information(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_change_key_vault(self, resource_group):
+ def test_accounts_begin_change_key_vault(self, resource_group):
response = self.client.accounts.begin_change_key_vault(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 4ca06c976c56..ae5e4ec03404 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
@@ -21,9 +21,9 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_subscription(self, resource_group):
+ async def test_accounts_list_by_subscription(self, resource_group):
response = self.client.accounts.list_by_subscription(
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -31,10 +31,10 @@ async def test_list_by_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_accounts_list(self, resource_group):
response = self.client.accounts.list(
resource_group_name=resource_group.name,
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -42,11 +42,11 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_accounts_get(self, resource_group):
response = await self.client.accounts.get(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -54,7 +54,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update(self, resource_group):
+ async def test_accounts_begin_create_or_update(self, resource_group):
response = await (
await self.client.accounts.begin_create_or_update(
resource_group_name=resource_group.name,
@@ -90,7 +90,7 @@ async def test_begin_create_or_update(self, resource_group):
],
"disableShowmount": bool,
"encryption": {
- "identity": {"federatedClientId": "str", "principalId": "str", "userAssignedIdentity": "str"},
+ "identity": {"principalId": "str", "userAssignedIdentity": "str"},
"keySource": "Microsoft.NetApp",
"keyVaultProperties": {
"keyName": "str",
@@ -108,9 +108,7 @@ async def test_begin_create_or_update(self, resource_group):
"tenantId": "str",
"userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}},
},
- "isMultiAdEnabled": bool,
"name": "str",
- "nfsV4IDDomain": "str",
"provisioningState": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
@@ -123,7 +121,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -132,12 +130,12 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_accounts_begin_delete(self, resource_group):
response = await (
await self.client.accounts.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -146,7 +144,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_accounts_begin_update(self, resource_group):
response = await (
await self.client.accounts.begin_update(
resource_group_name=resource_group.name,
@@ -181,7 +179,7 @@ async def test_begin_update(self, resource_group):
],
"disableShowmount": bool,
"encryption": {
- "identity": {"federatedClientId": "str", "principalId": "str", "userAssignedIdentity": "str"},
+ "identity": {"principalId": "str", "userAssignedIdentity": "str"},
"keySource": "Microsoft.NetApp",
"keyVaultProperties": {
"keyName": "str",
@@ -198,15 +196,13 @@ async def test_begin_update(self, resource_group):
"tenantId": "str",
"userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}},
},
- "isMultiAdEnabled": bool,
"location": "str",
"name": "str",
- "nfsV4IDDomain": "str",
"provisioningState": "str",
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -215,12 +211,12 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_renew_credentials(self, resource_group):
+ async def test_accounts_begin_renew_credentials(self, resource_group):
response = await (
await self.client.accounts.begin_renew_credentials(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -229,12 +225,12 @@ async def test_begin_renew_credentials(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_transition_to_cmk(self, resource_group):
+ async def test_accounts_begin_transition_to_cmk(self, resource_group):
response = await (
await self.client.accounts.begin_transition_to_cmk(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -243,12 +239,12 @@ async def test_begin_transition_to_cmk(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_get_change_key_vault_information(self, resource_group):
+ async def test_accounts_begin_get_change_key_vault_information(self, resource_group):
response = await (
await self.client.accounts.begin_get_change_key_vault_information(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -257,12 +253,12 @@ async def test_begin_get_change_key_vault_information(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_change_key_vault(self, resource_group):
+ async def test_accounts_begin_change_key_vault(self, resource_group):
response = await (
await self.client.accounts.begin_change_key_vault(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 b6ac9510570e..bb66246700e9 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
@@ -20,11 +20,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_backup_policies_list(self, resource_group):
response = self.client.backup_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -32,12 +32,12 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_backup_policies_get(self, resource_group):
response = self.client.backup_policies.get(
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create(self, resource_group):
+ def test_backup_policies_begin_create(self, resource_group):
response = self.client.backup_policies.begin_create(
resource_group_name=resource_group.name,
account_name="str",
@@ -76,7 +76,7 @@ def test_begin_create(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -84,7 +84,7 @@ def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_backup_policies_begin_update(self, resource_group):
response = self.client.backup_policies.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -106,7 +106,7 @@ def test_begin_update(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -114,12 +114,12 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_backup_policies_begin_delete(self, resource_group):
response = self.client.backup_policies.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 884d13113b74..b9af33529529 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
@@ -21,11 +21,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_backup_policies_list(self, resource_group):
response = self.client.backup_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -33,12 +33,12 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_backup_policies_get(self, resource_group):
response = await self.client.backup_policies.get(
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create(self, resource_group):
+ async def test_backup_policies_begin_create(self, resource_group):
response = await (
await self.client.backup_policies.begin_create(
resource_group_name=resource_group.name,
@@ -78,7 +78,7 @@ async def test_begin_create(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -87,7 +87,7 @@ async def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_backup_policies_begin_update(self, resource_group):
response = await (
await self.client.backup_policies.begin_update(
resource_group_name=resource_group.name,
@@ -110,7 +110,7 @@ async def test_begin_update(self, resource_group):
"volumesAssigned": 0,
"weeklyBackupsToKeep": 0,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -119,13 +119,13 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_backup_policies_begin_delete(self, resource_group):
response = await (
await self.client.backup_policies.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
backup_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 2c21b2fd61cc..e80b0ccb8c16 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
@@ -20,11 +20,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_net_app_account(self, resource_group):
+ def test_backup_vaults_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-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -32,12 +32,12 @@ def test_list_by_net_app_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_backup_vaults_get(self, resource_group):
response = self.client.backup_vaults.get(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update(self, resource_group):
+ def test_backup_vaults_begin_create_or_update(self, resource_group):
response = self.client.backup_vaults.begin_create_or_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -66,7 +66,7 @@ def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -74,13 +74,13 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_backup_vaults_begin_update(self, resource_group):
response = self.client.backup_vaults.begin_update(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
body={"tags": {"str": "str"}},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -88,12 +88,12 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_backup_vaults_begin_delete(self, resource_group):
response = self.client.backup_vaults.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 d0e83813bbbc..c09ce33ba33b 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
@@ -21,11 +21,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_net_app_account(self, resource_group):
+ async def test_backup_vaults_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-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -33,12 +33,12 @@ async def test_list_by_net_app_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_backup_vaults_get(self, resource_group):
response = await self.client.backup_vaults.get(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update(self, resource_group):
+ async def test_backup_vaults_begin_create_or_update(self, resource_group):
response = await (
await self.client.backup_vaults.begin_create_or_update(
resource_group_name=resource_group.name,
@@ -68,7 +68,7 @@ async def test_begin_create_or_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -77,14 +77,14 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_backup_vaults_begin_update(self, resource_group):
response = await (
await self.client.backup_vaults.begin_update(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
body={"tags": {"str": "str"}},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -93,13 +93,13 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_backup_vaults_begin_delete(self, resource_group):
response = await (
await self.client.backup_vaults.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 0de18654269d..e69281be7ba9 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
@@ -20,13 +20,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_latest_status(self, resource_group):
+ def test_backups_get_latest_status(self, resource_group):
response = self.client.backups.get_latest_status(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -34,13 +34,13 @@ def test_get_latest_status(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_volume_latest_restore_status(self, resource_group):
+ def test_backups_get_volume_latest_restore_status(self, resource_group):
response = self.client.backups.get_volume_latest_restore_status(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -48,12 +48,12 @@ def test_get_volume_latest_restore_status(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_vault(self, resource_group):
+ def test_backups_list_by_vault(self, resource_group):
response = self.client.backups.list_by_vault(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -61,13 +61,13 @@ def test_list_by_vault(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_backups_get(self, resource_group):
response = self.client.backups.get(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -75,7 +75,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create(self, resource_group):
+ def test_backups_begin_create(self, resource_group):
response = self.client.backups.begin_create(
resource_group_name=resource_group.name,
account_name="str",
@@ -89,7 +89,6 @@ def test_begin_create(self, resource_group):
"creationDate": "2020-02-20 00:00:00",
"failureReason": "str",
"id": "str",
- "isLargeVolume": bool,
"label": "str",
"name": "str",
"provisioningState": "str",
@@ -106,7 +105,7 @@ def test_begin_create(self, resource_group):
"type": "str",
"useExistingSnapshot": False,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -114,13 +113,13 @@ def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_backups_begin_update(self, resource_group):
response = self.client.backups.begin_update(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -128,13 +127,13 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_backups_begin_delete(self, resource_group):
response = self.client.backups.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 b509cba39b84..fe1ee5d297bb 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
@@ -21,13 +21,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_latest_status(self, resource_group):
+ async def test_backups_get_latest_status(self, resource_group):
response = await self.client.backups.get_latest_status(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -35,13 +35,13 @@ async def test_get_latest_status(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_volume_latest_restore_status(self, resource_group):
+ async def test_backups_get_volume_latest_restore_status(self, resource_group):
response = await self.client.backups.get_volume_latest_restore_status(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -49,12 +49,12 @@ async def test_get_volume_latest_restore_status(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_vault(self, resource_group):
+ async def test_backups_list_by_vault(self, resource_group):
response = self.client.backups.list_by_vault(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -62,13 +62,13 @@ async def test_list_by_vault(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_backups_get(self, resource_group):
response = await self.client.backups.get(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -76,7 +76,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create(self, resource_group):
+ async def test_backups_begin_create(self, resource_group):
response = await (
await self.client.backups.begin_create(
resource_group_name=resource_group.name,
@@ -91,7 +91,6 @@ async def test_begin_create(self, resource_group):
"creationDate": "2020-02-20 00:00:00",
"failureReason": "str",
"id": "str",
- "isLargeVolume": bool,
"label": "str",
"name": "str",
"provisioningState": "str",
@@ -108,7 +107,7 @@ async def test_begin_create(self, resource_group):
"type": "str",
"useExistingSnapshot": False,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -117,14 +116,14 @@ async def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_backups_begin_update(self, resource_group):
response = await (
await self.client.backups.begin_update(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -133,14 +132,14 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_backups_begin_delete(self, resource_group):
response = await (
await self.client.backups.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 45db33cbb2bf..4bab6f041367 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
@@ -20,12 +20,12 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_migrate_backups(self, resource_group):
+ def test_backups_under_account_begin_migrate_backups(self, resource_group):
response = self.client.backups_under_account.begin_migrate_backups(
resource_group_name=resource_group.name,
account_name="str",
body={"backupVaultId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 e7475c11cd72..509b1dc451a4 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
@@ -21,13 +21,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_migrate_backups(self, resource_group):
+ async def test_backups_under_account_begin_migrate_backups(self, resource_group):
response = await (
await self.client.backups_under_account.begin_migrate_backups(
resource_group_name=resource_group.name,
account_name="str",
body={"backupVaultId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 377a1ee5ba9c..74c4cccf51bc 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
@@ -20,14 +20,14 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_restore_files(self, resource_group):
+ def test_backups_under_backup_vault_begin_restore_files(self, resource_group):
response = self.client.backups_under_backup_vault.begin_restore_files(
resource_group_name=resource_group.name,
account_name="str",
backup_vault_name="str",
backup_name="str",
body={"destinationVolumeId": "str", "fileList": ["str"], "restoreFilePath": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 7ff883432695..8eaa7d4ca4b2 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
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_restore_files(self, resource_group):
+ async def test_backups_under_backup_vault_begin_restore_files(self, resource_group):
response = await (
await self.client.backups_under_backup_vault.begin_restore_files(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-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 ef1af1eafb7f..1f497c43594c 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
@@ -20,14 +20,14 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_migrate_backups(self, resource_group):
+ def test_backups_under_volume_begin_migrate_backups(self, resource_group):
response = self.client.backups_under_volume.begin_migrate_backups(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
body={"backupVaultId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 ed5d8d16ec13..af4cefbdc473 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
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_migrate_backups(self, resource_group):
+ async def test_backups_under_volume_begin_migrate_backups(self, resource_group):
response = await (
await self.client.backups_under_volume.begin_migrate_backups(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-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 0d90b71e4df6..5def2f1c47c5 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
@@ -20,13 +20,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_name_availability(self, resource_group):
+ def test_net_app_resource_check_name_availability(self, resource_group):
response = self.client.net_app_resource.check_name_availability(
location="str",
name="str",
type="str",
resource_group="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -34,12 +34,12 @@ def test_check_name_availability(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_file_path_availability(self, resource_group):
+ def test_net_app_resource_check_file_path_availability(self, resource_group):
response = self.client.net_app_resource.check_file_path_availability(
location="str",
name="str",
subnet_id="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -47,13 +47,13 @@ def test_check_file_path_availability(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_quota_availability(self, resource_group):
+ def test_net_app_resource_check_quota_availability(self, resource_group):
response = self.client.net_app_resource.check_quota_availability(
location="str",
name="str",
type="str",
resource_group="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -61,10 +61,10 @@ def test_check_quota_availability(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_query_region_info(self, resource_group):
+ def test_net_app_resource_query_region_info(self, resource_group):
response = self.client.net_app_resource.query_region_info(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -72,12 +72,12 @@ def test_query_region_info(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_query_network_sibling_set(self, resource_group):
+ def test_net_app_resource_query_network_sibling_set(self, resource_group):
response = self.client.net_app_resource.query_network_sibling_set(
location="str",
network_sibling_set_id="str",
subnet_id="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -85,14 +85,14 @@ def test_query_network_sibling_set(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update_network_sibling_set(self, resource_group):
+ def test_net_app_resource_begin_update_network_sibling_set(self, resource_group):
response = self.client.net_app_resource.begin_update_network_sibling_set(
location="str",
network_sibling_set_id="str",
subnet_id="str",
network_sibling_set_state_id="str",
network_features="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 3ef5db363615..90a00a8fc50e 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
@@ -21,13 +21,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_name_availability(self, resource_group):
+ async def test_net_app_resource_check_name_availability(self, resource_group):
response = await self.client.net_app_resource.check_name_availability(
location="str",
name="str",
type="str",
resource_group="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -35,12 +35,12 @@ async def test_check_name_availability(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_file_path_availability(self, resource_group):
+ async def test_net_app_resource_check_file_path_availability(self, resource_group):
response = await self.client.net_app_resource.check_file_path_availability(
location="str",
name="str",
subnet_id="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -48,13 +48,13 @@ async def test_check_file_path_availability(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_quota_availability(self, resource_group):
+ async def test_net_app_resource_check_quota_availability(self, resource_group):
response = await self.client.net_app_resource.check_quota_availability(
location="str",
name="str",
type="str",
resource_group="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -62,10 +62,10 @@ async def test_check_quota_availability(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_query_region_info(self, resource_group):
+ async def test_net_app_resource_query_region_info(self, resource_group):
response = await self.client.net_app_resource.query_region_info(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -73,12 +73,12 @@ async def test_query_region_info(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_query_network_sibling_set(self, resource_group):
+ async def test_net_app_resource_query_network_sibling_set(self, resource_group):
response = await self.client.net_app_resource.query_network_sibling_set(
location="str",
network_sibling_set_id="str",
subnet_id="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -86,7 +86,7 @@ async def test_query_network_sibling_set(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update_network_sibling_set(self, resource_group):
+ async def test_net_app_resource_begin_update_network_sibling_set(self, resource_group):
response = await (
await self.client.net_app_resource.begin_update_network_sibling_set(
location="str",
@@ -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-07-01-preview",
+ api_version="2024-09-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 5d84715f40d3..015088fc18b4 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
@@ -20,10 +20,10 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_net_app_resource_quota_limits_list(self, resource_group):
response = self.client.net_app_resource_quota_limits.list(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -31,11 +31,11 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_net_app_resource_quota_limits_get(self, resource_group):
response = self.client.net_app_resource_quota_limits.get(
location="str",
quota_limit_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 7fc06f64fa16..a903a24eeac0 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
@@ -21,10 +21,10 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_net_app_resource_quota_limits_list(self, resource_group):
response = self.client.net_app_resource_quota_limits.list(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -32,11 +32,11 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_net_app_resource_quota_limits_get(self, resource_group):
response = await self.client.net_app_resource_quota_limits.get(
location="str",
quota_limit_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 ebca8ce2f653..e96304aecfe3 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
@@ -20,10 +20,10 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_net_app_resource_region_infos_list(self, resource_group):
response = self.client.net_app_resource_region_infos.list(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -31,10 +31,10 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_net_app_resource_region_infos_get(self, resource_group):
response = self.client.net_app_resource_region_infos.get(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 00e2efa2f4ad..b8b75f70989b 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
@@ -21,10 +21,10 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_net_app_resource_region_infos_list(self, resource_group):
response = self.client.net_app_resource_region_infos.list(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -32,10 +32,10 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_net_app_resource_region_infos_get(self, resource_group):
response = await self.client.net_app_resource_region_infos.get(
location="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 9080b659d8ff..bf7c058f5a80 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
@@ -20,9 +20,9 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_operations_list(self, resource_group):
response = self.client.operations.list(
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 e1a09441312d..3b405b836a93 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
@@ -21,9 +21,9 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_operations_list(self, resource_group):
response = self.client.operations.list(
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 931a67973a68..acfe6b7e75a5 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
@@ -20,11 +20,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_pools_list(self, resource_group):
response = self.client.pools.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -32,12 +32,12 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_pools_get(self, resource_group):
response = self.client.pools.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update(self, resource_group):
+ def test_pools_begin_create_or_update(self, resource_group):
response = self.client.pools.begin_create_or_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -55,7 +55,6 @@ def test_begin_create_or_update(self, resource_group):
"serviceLevel": "Premium",
"size": 4398046511104,
"coolAccess": False,
- "customThroughputMibps": 0.0,
"encryptionType": "Single",
"etag": "str",
"id": "str",
@@ -76,7 +75,7 @@ def test_begin_create_or_update(self, resource_group):
"type": "str",
"utilizedThroughputMibps": 0.0,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -84,14 +83,13 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_pools_begin_update(self, resource_group):
response = self.client.pools.begin_update(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
body={
"coolAccess": bool,
- "customThroughputMibps": 0.0,
"id": "str",
"location": "str",
"name": "str",
@@ -100,7 +98,7 @@ def test_begin_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -108,12 +106,12 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_pools_begin_delete(self, resource_group):
response = self.client.pools.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 54ae4de729ff..522c4ae553e0 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
@@ -21,11 +21,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_pools_list(self, resource_group):
response = self.client.pools.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -33,12 +33,12 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_pools_get(self, resource_group):
response = await self.client.pools.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update(self, resource_group):
+ async def test_pools_begin_create_or_update(self, resource_group):
response = await (
await self.client.pools.begin_create_or_update(
resource_group_name=resource_group.name,
@@ -57,7 +57,6 @@ async def test_begin_create_or_update(self, resource_group):
"serviceLevel": "Premium",
"size": 4398046511104,
"coolAccess": False,
- "customThroughputMibps": 0.0,
"encryptionType": "Single",
"etag": "str",
"id": "str",
@@ -78,7 +77,7 @@ async def test_begin_create_or_update(self, resource_group):
"type": "str",
"utilizedThroughputMibps": 0.0,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -87,7 +86,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_pools_begin_update(self, resource_group):
response = await (
await self.client.pools.begin_update(
resource_group_name=resource_group.name,
@@ -95,7 +94,6 @@ async def test_begin_update(self, resource_group):
pool_name="str",
body={
"coolAccess": bool,
- "customThroughputMibps": 0.0,
"id": "str",
"location": "str",
"name": "str",
@@ -104,7 +102,7 @@ async def test_begin_update(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -113,13 +111,13 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_pools_begin_delete(self, resource_group):
response = await (
await self.client.pools.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 582337d3e65f..46ceff19b0c7 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
@@ -20,11 +20,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_snapshot_policies_list(self, resource_group):
response = self.client.snapshot_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -32,12 +32,12 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_snapshot_policies_get(self, resource_group):
response = self.client.snapshot_policies.get(
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_create(self, resource_group):
+ def test_snapshot_policies_create(self, resource_group):
response = self.client.snapshot_policies.create(
resource_group_name=resource_group.name,
account_name="str",
@@ -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-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -80,7 +80,7 @@ def test_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_snapshot_policies_begin_update(self, resource_group):
response = self.client.snapshot_policies.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -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-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -106,12 +106,12 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_snapshot_policies_begin_delete(self, resource_group):
response = self.client.snapshot_policies.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -119,12 +119,12 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_volumes(self, resource_group):
+ def test_snapshot_policies_list_volumes(self, resource_group):
response = self.client.snapshot_policies.list_volumes(
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 5e5e27d30b5b..e80017a51825 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
@@ -21,11 +21,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_snapshot_policies_list(self, resource_group):
response = self.client.snapshot_policies.list(
resource_group_name=resource_group.name,
account_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -33,12 +33,12 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_snapshot_policies_get(self, resource_group):
response = await self.client.snapshot_policies.get(
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_create(self, resource_group):
+ async def test_snapshot_policies_create(self, resource_group):
response = await self.client.snapshot_policies.create(
resource_group_name=resource_group.name,
account_name="str",
@@ -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-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -81,7 +81,7 @@ async def test_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_snapshot_policies_begin_update(self, resource_group):
response = await (
await self.client.snapshot_policies.begin_update(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -115,13 +115,13 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_snapshot_policies_begin_delete(self, resource_group):
response = await (
await self.client.snapshot_policies.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -130,12 +130,12 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_volumes(self, resource_group):
+ async def test_snapshot_policies_list_volumes(self, resource_group):
response = await self.client.snapshot_policies.list_volumes(
resource_group_name=resource_group.name,
account_name="str",
snapshot_policy_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 5a6ece9425ca..309db814f981 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
@@ -20,13 +20,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_snapshots_list(self, resource_group):
response = self.client.snapshots.list(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -34,14 +34,14 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_snapshots_get(self, resource_group):
response = self.client.snapshots.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -49,7 +49,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create(self, resource_group):
+ def test_snapshots_begin_create(self, resource_group):
response = self.client.snapshots.begin_create(
resource_group_name=resource_group.name,
account_name="str",
@@ -73,7 +73,7 @@ def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -81,7 +81,7 @@ def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_snapshots_begin_update(self, resource_group):
response = self.client.snapshots.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -89,7 +89,7 @@ def test_begin_update(self, resource_group):
volume_name="str",
snapshot_name="str",
body={},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -97,14 +97,14 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_snapshots_begin_delete(self, resource_group):
response = self.client.snapshots.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_restore_files(self, resource_group):
+ def test_snapshots_begin_restore_files(self, resource_group):
response = self.client.snapshots.begin_restore_files(
resource_group_name=resource_group.name,
account_name="str",
@@ -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-07-01-preview",
+ api_version="2024-09-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 ebe1350f61ed..cc6f804201e7 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
@@ -21,13 +21,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_snapshots_list(self, resource_group):
response = self.client.snapshots.list(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -35,14 +35,14 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_snapshots_get(self, resource_group):
response = await self.client.snapshots.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create(self, resource_group):
+ async def test_snapshots_begin_create(self, resource_group):
response = await (
await self.client.snapshots.begin_create(
resource_group_name=resource_group.name,
@@ -75,7 +75,7 @@ async def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -84,7 +84,7 @@ async def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_snapshots_begin_update(self, resource_group):
response = await (
await self.client.snapshots.begin_update(
resource_group_name=resource_group.name,
@@ -93,7 +93,7 @@ async def test_begin_update(self, resource_group):
volume_name="str",
snapshot_name="str",
body={},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -102,7 +102,7 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_snapshots_begin_delete(self, resource_group):
response = await (
await self.client.snapshots.begin_delete(
resource_group_name=resource_group.name,
@@ -110,7 +110,7 @@ async def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
snapshot_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -119,7 +119,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_restore_files(self, resource_group):
+ async def test_snapshots_begin_restore_files(self, resource_group):
response = await (
await self.client.snapshots.begin_restore_files(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-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 9ea002bbeb9e..502de18726aa 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
@@ -20,13 +20,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_volume(self, resource_group):
+ def test_subvolumes_list_by_volume(self, resource_group):
response = self.client.subvolumes.list_by_volume(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -34,14 +34,14 @@ def test_list_by_volume(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_subvolumes_get(self, resource_group):
response = self.client.subvolumes.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -49,7 +49,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create(self, resource_group):
+ def test_subvolumes_begin_create(self, resource_group):
response = self.client.subvolumes.begin_create(
resource_group_name=resource_group.name,
account_name="str",
@@ -73,7 +73,7 @@ def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -81,7 +81,7 @@ def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_subvolumes_begin_update(self, resource_group):
response = self.client.subvolumes.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -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-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -97,14 +97,14 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_subvolumes_begin_delete(self, resource_group):
response = self.client.subvolumes.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -112,14 +112,14 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_get_metadata(self, resource_group):
+ def test_subvolumes_begin_get_metadata(self, resource_group):
response = self.client.subvolumes.begin_get_metadata(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 6ff827e7689a..9bff7ee6bccf 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
@@ -21,13 +21,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_volume(self, resource_group):
+ async def test_subvolumes_list_by_volume(self, resource_group):
response = self.client.subvolumes.list_by_volume(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -35,14 +35,14 @@ async def test_list_by_volume(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_subvolumes_get(self, resource_group):
response = await self.client.subvolumes.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create(self, resource_group):
+ async def test_subvolumes_begin_create(self, resource_group):
response = await (
await self.client.subvolumes.begin_create(
resource_group_name=resource_group.name,
@@ -75,7 +75,7 @@ async def test_begin_create(self, resource_group):
},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -84,7 +84,7 @@ async def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_subvolumes_begin_update(self, resource_group):
response = await (
await self.client.subvolumes.begin_update(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -102,7 +102,7 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_subvolumes_begin_delete(self, resource_group):
response = await (
await self.client.subvolumes.begin_delete(
resource_group_name=resource_group.name,
@@ -110,7 +110,7 @@ async def test_begin_delete(self, resource_group):
pool_name="str",
volume_name="str",
subvolume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -119,7 +119,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_get_metadata(self, resource_group):
+ async def test_subvolumes_begin_get_metadata(self, resource_group):
response = await (
await self.client.subvolumes.begin_get_metadata(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-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 150c8eef3a0e..eeb72ef0e30f 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
@@ -20,11 +20,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_net_app_account(self, resource_group):
+ def test_volume_groups_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-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -32,12 +32,12 @@ def test_list_by_net_app_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_volume_groups_get(self, resource_group):
response = self.client.volume_groups.get(
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -45,7 +45,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create(self, resource_group):
+ def test_volume_groups_begin_create(self, resource_group):
response = self.client.volume_groups.begin_create(
resource_group_name=resource_group.name,
account_name="str",
@@ -68,7 +68,6 @@ def test_begin_create(self, resource_group):
"creationToken": "str",
"subnetId": "str",
"usageThreshold": 107374182400,
- "acceptGrowCapacityPoolForShortTermCloneSplit": "str",
"actualThroughputMibps": 0.0,
"avsDataStore": "Disabled",
"backupId": "str",
@@ -77,13 +76,11 @@ def test_begin_create(self, resource_group):
"cloneProgress": 0,
"coolAccess": False,
"coolAccessRetrievalPolicy": "str",
+ "coolAccessTieringPolicy": "str",
"coolnessPeriod": 0,
"dataProtection": {
"backup": {"backupPolicyId": "str", "backupVaultId": "str", "policyEnforced": bool},
"replication": {
- "destinationReplications": [
- {"region": "str", "replicationType": "str", "resourceId": "str", "zone": "str"}
- ],
"endpointType": "str",
"remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
@@ -126,13 +123,11 @@ def test_begin_create(self, resource_group):
"fileAccessLogs": "Disabled",
"fileSystemId": "str",
"id": "str",
- "inheritedSizeInBytes": 0,
"isDefaultQuotaEnabled": False,
"isLargeVolume": False,
"isRestoring": bool,
"kerberosEnabled": False,
"keyVaultPrivateEndpointResourceId": "str",
- "language": "str",
"ldapEnabled": False,
"maximumNumberOfFiles": 0,
"mountTargets": [
@@ -168,7 +163,7 @@ def test_begin_create(self, resource_group):
}
],
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -176,12 +171,12 @@ def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_volume_groups_begin_delete(self, resource_group):
response = self.client.volume_groups.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 15ffd4331576..98b92a5a1a99 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
@@ -21,11 +21,11 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_net_app_account(self, resource_group):
+ async def test_volume_groups_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-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -33,12 +33,12 @@ async def test_list_by_net_app_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_volume_groups_get(self, resource_group):
response = await self.client.volume_groups.get(
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -46,7 +46,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create(self, resource_group):
+ async def test_volume_groups_begin_create(self, resource_group):
response = await (
await self.client.volume_groups.begin_create(
resource_group_name=resource_group.name,
@@ -70,7 +70,6 @@ async def test_begin_create(self, resource_group):
"creationToken": "str",
"subnetId": "str",
"usageThreshold": 107374182400,
- "acceptGrowCapacityPoolForShortTermCloneSplit": "str",
"actualThroughputMibps": 0.0,
"avsDataStore": "Disabled",
"backupId": "str",
@@ -79,13 +78,11 @@ async def test_begin_create(self, resource_group):
"cloneProgress": 0,
"coolAccess": False,
"coolAccessRetrievalPolicy": "str",
+ "coolAccessTieringPolicy": "str",
"coolnessPeriod": 0,
"dataProtection": {
"backup": {"backupPolicyId": "str", "backupVaultId": "str", "policyEnforced": bool},
"replication": {
- "destinationReplications": [
- {"region": "str", "replicationType": "str", "resourceId": "str", "zone": "str"}
- ],
"endpointType": "str",
"remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
@@ -128,13 +125,11 @@ async def test_begin_create(self, resource_group):
"fileAccessLogs": "Disabled",
"fileSystemId": "str",
"id": "str",
- "inheritedSizeInBytes": 0,
"isDefaultQuotaEnabled": False,
"isLargeVolume": False,
"isRestoring": bool,
"kerberosEnabled": False,
"keyVaultPrivateEndpointResourceId": "str",
- "language": "str",
"ldapEnabled": False,
"maximumNumberOfFiles": 0,
"mountTargets": [
@@ -175,7 +170,7 @@ async def test_begin_create(self, resource_group):
}
],
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -184,13 +179,13 @@ async def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_volume_groups_begin_delete(self, resource_group):
response = await (
await self.client.volume_groups.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
volume_group_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 2a400afa0c83..893693a7db31 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
@@ -20,13 +20,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_volume(self, resource_group):
+ def test_volume_quota_rules_list_by_volume(self, resource_group):
response = self.client.volume_quota_rules.list_by_volume(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -34,14 +34,14 @@ def test_list_by_volume(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_volume_quota_rules_get(self, resource_group):
response = self.client.volume_quota_rules.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -49,7 +49,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create(self, resource_group):
+ def test_volume_quota_rules_begin_create(self, resource_group):
response = self.client.volume_quota_rules.begin_create(
resource_group_name=resource_group.name,
account_name="str",
@@ -75,7 +75,7 @@ def test_begin_create(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -83,7 +83,7 @@ def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_volume_quota_rules_begin_update(self, resource_group):
response = self.client.volume_quota_rules.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -97,7 +97,7 @@ def test_begin_update(self, resource_group):
"quotaType": "str",
"tags": {"str": "str"},
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -105,14 +105,14 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_volume_quota_rules_begin_delete(self, resource_group):
response = self.client.volume_quota_rules.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 0895754f5446..222830575fc1 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
@@ -21,13 +21,13 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_volume(self, resource_group):
+ async def test_volume_quota_rules_list_by_volume(self, resource_group):
response = self.client.volume_quota_rules.list_by_volume(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -35,14 +35,14 @@ async def test_list_by_volume(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_volume_quota_rules_get(self, resource_group):
response = await self.client.volume_quota_rules.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
volume_quota_rule_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -50,7 +50,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create(self, resource_group):
+ async def test_volume_quota_rules_begin_create(self, resource_group):
response = await (
await self.client.volume_quota_rules.begin_create(
resource_group_name=resource_group.name,
@@ -77,7 +77,7 @@ async def test_begin_create(self, resource_group):
"tags": {"str": "str"},
"type": "str",
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -86,7 +86,7 @@ async def test_begin_create(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_volume_quota_rules_begin_update(self, resource_group):
response = await (
await self.client.volume_quota_rules.begin_update(
resource_group_name=resource_group.name,
@@ -101,7 +101,7 @@ async def test_begin_update(self, resource_group):
"quotaType": "str",
"tags": {"str": "str"},
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -110,7 +110,7 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_volume_quota_rules_begin_delete(self, resource_group):
response = await (
await self.client.volume_quota_rules.begin_delete(
resource_group_name=resource_group.name,
@@ -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-07-01-preview",
+ api_version="2024-09-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 09f8fef4b236..fbea3b2bece1 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
@@ -20,12 +20,12 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_volumes_list(self, resource_group):
response = self.client.volumes.list(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -33,13 +33,13 @@ def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_volumes_get(self, resource_group):
response = self.client.volumes.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -47,7 +47,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update(self, resource_group):
+ def test_volumes_begin_create_or_update(self, resource_group):
response = self.client.volumes.begin_create_or_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -58,7 +58,6 @@ def test_begin_create_or_update(self, resource_group):
"location": "str",
"subnetId": "str",
"usageThreshold": 107374182400,
- "acceptGrowCapacityPoolForShortTermCloneSplit": "str",
"actualThroughputMibps": 0.0,
"avsDataStore": "Disabled",
"backupId": "str",
@@ -67,13 +66,11 @@ def test_begin_create_or_update(self, resource_group):
"cloneProgress": 0,
"coolAccess": False,
"coolAccessRetrievalPolicy": "str",
+ "coolAccessTieringPolicy": "str",
"coolnessPeriod": 0,
"dataProtection": {
"backup": {"backupPolicyId": "str", "backupVaultId": "str", "policyEnforced": bool},
"replication": {
- "destinationReplications": [
- {"region": "str", "replicationType": "str", "resourceId": "str", "zone": "str"}
- ],
"endpointType": "str",
"remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
@@ -117,13 +114,11 @@ def test_begin_create_or_update(self, resource_group):
"fileAccessLogs": "Disabled",
"fileSystemId": "str",
"id": "str",
- "inheritedSizeInBytes": 0,
"isDefaultQuotaEnabled": False,
"isLargeVolume": False,
"isRestoring": bool,
"kerberosEnabled": False,
"keyVaultPrivateEndpointResourceId": "str",
- "language": "str",
"ldapEnabled": False,
"maximumNumberOfFiles": 0,
"mountTargets": [
@@ -165,7 +160,7 @@ def test_begin_create_or_update(self, resource_group):
"volumeType": "str",
"zones": ["str"],
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -173,7 +168,7 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_volumes_begin_update(self, resource_group):
response = self.client.volumes.begin_update(
resource_group_name=resource_group.name,
account_name="str",
@@ -182,6 +177,7 @@ def test_begin_update(self, resource_group):
body={
"coolAccess": bool,
"coolAccessRetrievalPolicy": "str",
+ "coolAccessTieringPolicy": "str",
"coolnessPeriod": 0,
"dataProtection": {
"backup": {"backupPolicyId": "str", "backupVaultId": "str", "policyEnforced": bool},
@@ -225,7 +221,7 @@ def test_begin_update(self, resource_group):
"unixPermissions": "str",
"usageThreshold": 107374182400,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -233,13 +229,13 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_volumes_begin_delete(self, resource_group):
response = self.client.volumes.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -247,13 +243,13 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_populate_availability_zone(self, resource_group):
+ def test_volumes_begin_populate_availability_zone(self, resource_group):
response = self.client.volumes.begin_populate_availability_zone(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -261,14 +257,14 @@ def test_begin_populate_availability_zone(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_revert(self, resource_group):
+ def test_volumes_begin_revert(self, resource_group):
response = self.client.volumes.begin_revert(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
body={"snapshotId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -276,13 +272,13 @@ def test_begin_revert(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_reset_cifs_password(self, resource_group):
+ def test_volumes_begin_reset_cifs_password(self, resource_group):
response = self.client.volumes.begin_reset_cifs_password(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -290,27 +286,13 @@ def test_begin_reset_cifs_password(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_split_clone_from_parent(self, resource_group):
- response = self.client.volumes.begin_split_clone_from_parent(
- resource_group_name=resource_group.name,
- account_name="str",
- pool_name="str",
- volume_name="str",
- api_version="2024-07-01-preview",
- ).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_break_file_locks(self, resource_group):
+ def test_volumes_begin_break_file_locks(self, resource_group):
response = self.client.volumes.begin_break_file_locks(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -318,28 +300,14 @@ def test_begin_break_file_locks(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_list_get_group_id_list_for_ldap_user(self, resource_group):
+ def test_volumes_begin_list_get_group_id_list_for_ldap_user(self, resource_group):
response = self.client.volumes.begin_list_get_group_id_list_for_ldap_user(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
body={"username": "str"},
- api_version="2024-07-01-preview",
- ).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_list_quota_report(self, resource_group):
- response = self.client.volumes.begin_list_quota_report(
- resource_group_name=resource_group.name,
- account_name="str",
- pool_name="str",
- volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -347,13 +315,13 @@ def test_begin_list_quota_report(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_break_replication(self, resource_group):
+ def test_volumes_begin_break_replication(self, resource_group):
response = self.client.volumes.begin_break_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -361,14 +329,14 @@ def test_begin_break_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_reestablish_replication(self, resource_group):
+ def test_volumes_begin_reestablish_replication(self, resource_group):
response = self.client.volumes.begin_reestablish_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
body={"sourceVolumeId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -376,13 +344,13 @@ def test_begin_reestablish_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_replication_status(self, resource_group):
+ def test_volumes_replication_status(self, resource_group):
response = self.client.volumes.replication_status(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -390,13 +358,13 @@ def test_replication_status(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_replications(self, resource_group):
+ def test_volumes_list_replications(self, resource_group):
response = self.client.volumes.list_replications(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -404,13 +372,13 @@ def test_list_replications(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_resync_replication(self, resource_group):
+ def test_volumes_begin_resync_replication(self, resource_group):
response = self.client.volumes.begin_resync_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -418,13 +386,13 @@ def test_begin_resync_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete_replication(self, resource_group):
+ def test_volumes_begin_delete_replication(self, resource_group):
response = self.client.volumes.begin_delete_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -432,14 +400,14 @@ def test_begin_delete_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_authorize_replication(self, resource_group):
+ def test_volumes_begin_authorize_replication(self, resource_group):
response = self.client.volumes.begin_authorize_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
body={"remoteVolumeResourceId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -447,13 +415,13 @@ def test_begin_authorize_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_re_initialize_replication(self, resource_group):
+ def test_volumes_begin_re_initialize_replication(self, resource_group):
response = self.client.volumes.begin_re_initialize_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -461,14 +429,14 @@ def test_begin_re_initialize_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_peer_external_cluster(self, resource_group):
+ def test_volumes_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-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -476,13 +444,13 @@ def test_begin_peer_external_cluster(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_authorize_external_replication(self, resource_group):
+ def test_volumes_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-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -490,13 +458,13 @@ def test_begin_authorize_external_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_finalize_external_replication(self, resource_group):
+ def test_volumes_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-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -504,13 +472,13 @@ def test_begin_finalize_external_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_perform_replication_transfer(self, resource_group):
+ def test_volumes_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-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -518,14 +486,14 @@ def test_begin_perform_replication_transfer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_pool_change(self, resource_group):
+ def test_volumes_begin_pool_change(self, resource_group):
response = self.client.volumes.begin_pool_change(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
body={"newPoolResourceId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -533,13 +501,13 @@ def test_begin_pool_change(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_relocate(self, resource_group):
+ def test_volumes_begin_relocate(self, resource_group):
response = self.client.volumes.begin_relocate(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -547,13 +515,13 @@ def test_begin_relocate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_finalize_relocation(self, resource_group):
+ def test_volumes_begin_finalize_relocation(self, resource_group):
response = self.client.volumes.begin_finalize_relocation(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
).result() # call '.result()' to poll until service return final result
# please add some check logic here by yourself
@@ -561,13 +529,13 @@ def test_begin_finalize_relocation(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_revert_relocation(self, resource_group):
+ def test_volumes_begin_revert_relocation(self, resource_group):
response = self.client.volumes.begin_revert_relocation(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-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 fc9b924de6d8..581efae5a6d3 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
@@ -21,12 +21,12 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_volumes_list(self, resource_group):
response = self.client.volumes.list(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -34,13 +34,13 @@ async def test_list(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_volumes_get(self, resource_group):
response = await self.client.volumes.get(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -48,7 +48,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update(self, resource_group):
+ async def test_volumes_begin_create_or_update(self, resource_group):
response = await (
await self.client.volumes.begin_create_or_update(
resource_group_name=resource_group.name,
@@ -60,7 +60,6 @@ async def test_begin_create_or_update(self, resource_group):
"location": "str",
"subnetId": "str",
"usageThreshold": 107374182400,
- "acceptGrowCapacityPoolForShortTermCloneSplit": "str",
"actualThroughputMibps": 0.0,
"avsDataStore": "Disabled",
"backupId": "str",
@@ -69,13 +68,11 @@ async def test_begin_create_or_update(self, resource_group):
"cloneProgress": 0,
"coolAccess": False,
"coolAccessRetrievalPolicy": "str",
+ "coolAccessTieringPolicy": "str",
"coolnessPeriod": 0,
"dataProtection": {
"backup": {"backupPolicyId": "str", "backupVaultId": "str", "policyEnforced": bool},
"replication": {
- "destinationReplications": [
- {"region": "str", "replicationType": "str", "resourceId": "str", "zone": "str"}
- ],
"endpointType": "str",
"remotePath": {"externalHostName": "str", "serverName": "str", "volumeName": "str"},
"remoteVolumeRegion": "str",
@@ -119,13 +116,11 @@ async def test_begin_create_or_update(self, resource_group):
"fileAccessLogs": "Disabled",
"fileSystemId": "str",
"id": "str",
- "inheritedSizeInBytes": 0,
"isDefaultQuotaEnabled": False,
"isLargeVolume": False,
"isRestoring": bool,
"kerberosEnabled": False,
"keyVaultPrivateEndpointResourceId": "str",
- "language": "str",
"ldapEnabled": False,
"maximumNumberOfFiles": 0,
"mountTargets": [
@@ -167,7 +162,7 @@ async def test_begin_create_or_update(self, resource_group):
"volumeType": "str",
"zones": ["str"],
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -176,7 +171,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_volumes_begin_update(self, resource_group):
response = await (
await self.client.volumes.begin_update(
resource_group_name=resource_group.name,
@@ -186,6 +181,7 @@ async def test_begin_update(self, resource_group):
body={
"coolAccess": bool,
"coolAccessRetrievalPolicy": "str",
+ "coolAccessTieringPolicy": "str",
"coolnessPeriod": 0,
"dataProtection": {
"backup": {"backupPolicyId": "str", "backupVaultId": "str", "policyEnforced": bool},
@@ -229,7 +225,7 @@ async def test_begin_update(self, resource_group):
"unixPermissions": "str",
"usageThreshold": 107374182400,
},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -238,14 +234,14 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_volumes_begin_delete(self, resource_group):
response = await (
await self.client.volumes.begin_delete(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -254,14 +250,14 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_populate_availability_zone(self, resource_group):
+ async def test_volumes_begin_populate_availability_zone(self, resource_group):
response = await (
await self.client.volumes.begin_populate_availability_zone(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -270,7 +266,7 @@ async def test_begin_populate_availability_zone(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_revert(self, resource_group):
+ async def test_volumes_begin_revert(self, resource_group):
response = await (
await self.client.volumes.begin_revert(
resource_group_name=resource_group.name,
@@ -278,7 +274,7 @@ async def test_begin_revert(self, resource_group):
pool_name="str",
volume_name="str",
body={"snapshotId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -287,14 +283,14 @@ async def test_begin_revert(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_reset_cifs_password(self, resource_group):
+ async def test_volumes_begin_reset_cifs_password(self, resource_group):
response = await (
await self.client.volumes.begin_reset_cifs_password(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -303,30 +299,14 @@ async def test_begin_reset_cifs_password(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_split_clone_from_parent(self, resource_group):
- response = await (
- await self.client.volumes.begin_split_clone_from_parent(
- resource_group_name=resource_group.name,
- account_name="str",
- pool_name="str",
- volume_name="str",
- api_version="2024-07-01-preview",
- )
- ).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_break_file_locks(self, resource_group):
+ async def test_volumes_begin_break_file_locks(self, resource_group):
response = await (
await self.client.volumes.begin_break_file_locks(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -335,7 +315,7 @@ async def test_begin_break_file_locks(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_list_get_group_id_list_for_ldap_user(self, resource_group):
+ async def test_volumes_begin_list_get_group_id_list_for_ldap_user(self, resource_group):
response = await (
await self.client.volumes.begin_list_get_group_id_list_for_ldap_user(
resource_group_name=resource_group.name,
@@ -343,23 +323,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-07-01-preview",
- )
- ).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_list_quota_report(self, resource_group):
- response = await (
- await self.client.volumes.begin_list_quota_report(
- resource_group_name=resource_group.name,
- account_name="str",
- pool_name="str",
- volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -368,14 +332,14 @@ async def test_begin_list_quota_report(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_break_replication(self, resource_group):
+ async def test_volumes_begin_break_replication(self, resource_group):
response = await (
await self.client.volumes.begin_break_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -384,7 +348,7 @@ async def test_begin_break_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_reestablish_replication(self, resource_group):
+ async def test_volumes_begin_reestablish_replication(self, resource_group):
response = await (
await self.client.volumes.begin_reestablish_replication(
resource_group_name=resource_group.name,
@@ -392,7 +356,7 @@ async def test_begin_reestablish_replication(self, resource_group):
pool_name="str",
volume_name="str",
body={"sourceVolumeId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -401,13 +365,13 @@ async def test_begin_reestablish_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_replication_status(self, resource_group):
+ async def test_volumes_replication_status(self, resource_group):
response = await self.client.volumes.replication_status(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
# please add some check logic here by yourself
@@ -415,13 +379,13 @@ async def test_replication_status(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_replications(self, resource_group):
+ async def test_volumes_list_replications(self, resource_group):
response = self.client.volumes.list_replications(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -429,14 +393,14 @@ async def test_list_replications(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_resync_replication(self, resource_group):
+ async def test_volumes_begin_resync_replication(self, resource_group):
response = await (
await self.client.volumes.begin_resync_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -445,14 +409,14 @@ async def test_begin_resync_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete_replication(self, resource_group):
+ async def test_volumes_begin_delete_replication(self, resource_group):
response = await (
await self.client.volumes.begin_delete_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -461,7 +425,7 @@ async def test_begin_delete_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_authorize_replication(self, resource_group):
+ async def test_volumes_begin_authorize_replication(self, resource_group):
response = await (
await self.client.volumes.begin_authorize_replication(
resource_group_name=resource_group.name,
@@ -469,7 +433,7 @@ async def test_begin_authorize_replication(self, resource_group):
pool_name="str",
volume_name="str",
body={"remoteVolumeResourceId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -478,14 +442,14 @@ async def test_begin_authorize_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_re_initialize_replication(self, resource_group):
+ async def test_volumes_begin_re_initialize_replication(self, resource_group):
response = await (
await self.client.volumes.begin_re_initialize_replication(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -494,7 +458,7 @@ async def test_begin_re_initialize_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_peer_external_cluster(self, resource_group):
+ async def test_volumes_begin_peer_external_cluster(self, resource_group):
response = await (
await self.client.volumes.begin_peer_external_cluster(
resource_group_name=resource_group.name,
@@ -502,7 +466,7 @@ async def test_begin_peer_external_cluster(self, resource_group):
pool_name="str",
volume_name="str",
body={"peerIpAddresses": ["str"]},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -511,14 +475,14 @@ async def test_begin_peer_external_cluster(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_authorize_external_replication(self, resource_group):
+ async def test_volumes_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-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -527,14 +491,14 @@ async def test_begin_authorize_external_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_finalize_external_replication(self, resource_group):
+ async def test_volumes_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-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -543,14 +507,14 @@ async def test_begin_finalize_external_replication(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_perform_replication_transfer(self, resource_group):
+ async def test_volumes_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-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -559,7 +523,7 @@ async def test_begin_perform_replication_transfer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_pool_change(self, resource_group):
+ async def test_volumes_begin_pool_change(self, resource_group):
response = await (
await self.client.volumes.begin_pool_change(
resource_group_name=resource_group.name,
@@ -567,7 +531,7 @@ async def test_begin_pool_change(self, resource_group):
pool_name="str",
volume_name="str",
body={"newPoolResourceId": "str"},
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -576,14 +540,14 @@ async def test_begin_pool_change(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_relocate(self, resource_group):
+ async def test_volumes_begin_relocate(self, resource_group):
response = await (
await self.client.volumes.begin_relocate(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -592,14 +556,14 @@ async def test_begin_relocate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_finalize_relocation(self, resource_group):
+ async def test_volumes_begin_finalize_relocation(self, resource_group):
response = await (
await self.client.volumes.begin_finalize_relocation(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
@@ -608,14 +572,14 @@ async def test_begin_finalize_relocation(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_revert_relocation(self, resource_group):
+ async def test_volumes_begin_revert_relocation(self, resource_group):
response = await (
await self.client.volumes.begin_revert_relocation(
resource_group_name=resource_group.name,
account_name="str",
pool_name="str",
volume_name="str",
- api_version="2024-07-01-preview",
+ api_version="2024-09-01",
)
).result() # call '.result()' to poll until service return final result
diff --git a/sdk/netapp/azure-mgmt-netapp/setup.py b/sdk/netapp/azure-mgmt-netapp/setup.py
index 6282a0daf59b..44699ce61cd3 100644
--- a/sdk/netapp/azure-mgmt-netapp/setup.py
+++ b/sdk/netapp/azure-mgmt-netapp/setup.py
@@ -22,11 +22,9 @@
# Version extraction inspired from 'requests'
with open(
- (
- os.path.join(package_folder_path, "version.py")
- if os.path.exists(os.path.join(package_folder_path, "version.py"))
- else os.path.join(package_folder_path, "_version.py")
- ),
+ os.path.join(package_folder_path, "version.py")
+ if os.path.exists(os.path.join(package_folder_path, "version.py"))
+ else os.path.join(package_folder_path, "_version.py"),
"r",
) as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)