diff --git a/sdk/billing/azure-mgmt-billing/_meta.json b/sdk/billing/azure-mgmt-billing/_meta.json
index 1124bc537283..d32bdc71bbbb 100644
--- a/sdk/billing/azure-mgmt-billing/_meta.json
+++ b/sdk/billing/azure-mgmt-billing/_meta.json
@@ -1,11 +1,11 @@
{
- "commit": "e79d9ef3e065f2dcb6bd1db51e29c62a99dff5cb",
+ "commit": "55a2b333720e4add2419ba69237e49e9413a8a53",
"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/billing/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
+ "autorest_command": "autorest specification/billing/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/billing/resource-manager/readme.md"
}
\ No newline at end of file
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/__init__.py
index 09499d2e1c56..87e50277ed2c 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/__init__.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/__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 ._billing_management_client import BillingManagementClient
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._billing_management_client import BillingManagementClient # 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__ = [
"BillingManagementClient",
]
-__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/billing/azure-mgmt-billing/azure/mgmt/billing/_billing_management_client.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_billing_management_client.py
index 02d8161fc826..62389703e160 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_billing_management_client.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_billing_management_client.py
@@ -52,11 +52,10 @@
)
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
-class BillingManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
+class BillingManagementClient: # pylint: disable=too-many-instance-attributes
"""Billing Client.
:ivar agreements: AgreementsOperations operations
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_configuration.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_configuration.py
index 76737de104d4..ba2aa71be3eb 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_configuration.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_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 BillingManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
+class BillingManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for BillingManagementClient.
Note that all parameters used to create this instance are saved as instance
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_serialization.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_serialization.py
index 8139854b97bb..b24ab2885450 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_serialization.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_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/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py
index 364f3c906cf9..92721eef7dd5 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "7.0.0"
+VERSION = "0.3.0"
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/__init__.py
index 4dc1c988e7c8..818c4a45283c 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/__init__.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/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 ._billing_management_client import BillingManagementClient
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._billing_management_client import BillingManagementClient # 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__ = [
"BillingManagementClient",
]
-__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/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_billing_management_client.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_billing_management_client.py
index cfe2dd128574..86943fe1d7e5 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_billing_management_client.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_billing_management_client.py
@@ -52,11 +52,10 @@
)
if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
-class BillingManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
+class BillingManagementClient: # pylint: disable=too-many-instance-attributes
"""Billing Client.
:ivar agreements: AgreementsOperations operations
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_configuration.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_configuration.py
index 249ec86d49f8..dbbf8357fd6e 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/_configuration.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/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 BillingManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
+class BillingManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for BillingManagementClient.
Note that all parameters used to create this instance are saved as instance
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/__init__.py
index 5239c254e4be..3dad78203a50 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/__init__.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/__init__.py
@@ -5,40 +5,46 @@
# 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 ._agreements_operations import AgreementsOperations
-from ._associated_tenants_operations import AssociatedTenantsOperations
-from ._available_balances_operations import AvailableBalancesOperations
-from ._billing_accounts_operations import BillingAccountsOperations
-from ._address_operations import AddressOperations
-from ._billing_permissions_operations import BillingPermissionsOperations
-from ._billing_profiles_operations import BillingProfilesOperations
-from ._billing_property_operations import BillingPropertyOperations
-from ._billing_requests_operations import BillingRequestsOperations
-from ._billing_role_assignments_operations import BillingRoleAssignmentsOperations
-from ._billing_role_definition_operations import BillingRoleDefinitionOperations
-from ._savings_plan_orders_operations import SavingsPlanOrdersOperations
-from ._savings_plans_operations import SavingsPlansOperations
-from ._billing_subscriptions_operations import BillingSubscriptionsOperations
-from ._billing_subscriptions_aliases_operations import BillingSubscriptionsAliasesOperations
-from ._customers_operations import CustomersOperations
-from ._departments_operations import DepartmentsOperations
-from ._enrollment_accounts_operations import EnrollmentAccountsOperations
-from ._invoices_operations import InvoicesOperations
-from ._invoice_sections_operations import InvoiceSectionsOperations
-from ._operations import Operations
-from ._payment_methods_operations import PaymentMethodsOperations
-from ._policies_operations import PoliciesOperations
-from ._products_operations import ProductsOperations
-from ._reservations_operations import ReservationsOperations
-from ._reservation_orders_operations import ReservationOrdersOperations
-from ._transactions_operations import TransactionsOperations
-from ._transfers_operations import TransfersOperations
-from ._partner_transfers_operations import PartnerTransfersOperations
-from ._recipient_transfers_operations import RecipientTransfersOperations
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._agreements_operations import AgreementsOperations # type: ignore
+from ._associated_tenants_operations import AssociatedTenantsOperations # type: ignore
+from ._available_balances_operations import AvailableBalancesOperations # type: ignore
+from ._billing_accounts_operations import BillingAccountsOperations # type: ignore
+from ._address_operations import AddressOperations # type: ignore
+from ._billing_permissions_operations import BillingPermissionsOperations # type: ignore
+from ._billing_profiles_operations import BillingProfilesOperations # type: ignore
+from ._billing_property_operations import BillingPropertyOperations # type: ignore
+from ._billing_requests_operations import BillingRequestsOperations # type: ignore
+from ._billing_role_assignments_operations import BillingRoleAssignmentsOperations # type: ignore
+from ._billing_role_definition_operations import BillingRoleDefinitionOperations # type: ignore
+from ._savings_plan_orders_operations import SavingsPlanOrdersOperations # type: ignore
+from ._savings_plans_operations import SavingsPlansOperations # type: ignore
+from ._billing_subscriptions_operations import BillingSubscriptionsOperations # type: ignore
+from ._billing_subscriptions_aliases_operations import BillingSubscriptionsAliasesOperations # type: ignore
+from ._customers_operations import CustomersOperations # type: ignore
+from ._departments_operations import DepartmentsOperations # type: ignore
+from ._enrollment_accounts_operations import EnrollmentAccountsOperations # type: ignore
+from ._invoices_operations import InvoicesOperations # type: ignore
+from ._invoice_sections_operations import InvoiceSectionsOperations # type: ignore
+from ._operations import Operations # type: ignore
+from ._payment_methods_operations import PaymentMethodsOperations # type: ignore
+from ._policies_operations import PoliciesOperations # type: ignore
+from ._products_operations import ProductsOperations # type: ignore
+from ._reservations_operations import ReservationsOperations # type: ignore
+from ._reservation_orders_operations import ReservationOrdersOperations # type: ignore
+from ._transactions_operations import TransactionsOperations # type: ignore
+from ._transfers_operations import TransfersOperations # type: ignore
+from ._partner_transfers_operations import PartnerTransfersOperations # type: ignore
+from ._recipient_transfers_operations import RecipientTransfersOperations # 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__ = [
@@ -73,5 +79,5 @@
"PartnerTransfersOperations",
"RecipientTransfersOperations",
]
-__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/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py
index 74a891dd4634..74e265e11ad6 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -30,7 +29,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]]
@@ -111,7 +110,7 @@ async def validate(
:rtype: ~azure.mgmt.billing.models.AddressValidationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py
index 32284b9fb416..b7b124c705f1 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_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]]
@@ -71,7 +70,7 @@ async def get(self, billing_account_name: str, agreement_name: str, **kwargs: An
:rtype: ~azure.mgmt.billing.models.Agreement
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -136,7 +135,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.AgreementListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_associated_tenants_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_associated_tenants_operations.py
index 897f4b9ba769..3d4c50ff7b6e 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_associated_tenants_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_associated_tenants_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]]
@@ -69,7 +68,7 @@ def __init__(self, *args, **kwargs) -> None:
async def _delete_initial(
self, billing_account_name: str, associated_tenant_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -197,7 +196,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.AssociatedTenant
: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_or_update_initial(
parameters: Union[_models.AssociatedTenant, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -497,7 +496,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.AssociatedTenantListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py
index 6c456c23937b..577926be587a 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_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, Optional, Type, TypeVar
+from typing import Any, Callable, Dict, Optional, TypeVar
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -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]]
@@ -73,7 +72,7 @@ async def get_by_billing_account(self, billing_account_name: str, **kwargs: Any)
:rtype: ~azure.mgmt.billing.models.AvailableBalance
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -134,7 +133,7 @@ async def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.AvailableBalance
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py
index dd2f7f2e227d..294e909f4eb3 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_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.
@@ -9,21 +9,7 @@
import datetime
from io import IOBase
import sys
-from typing import (
- Any,
- AsyncIterable,
- AsyncIterator,
- Callable,
- Dict,
- IO,
- List,
- Optional,
- Type,
- TypeVar,
- Union,
- cast,
- overload,
-)
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -61,7 +47,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 +74,7 @@ def __init__(self, *args, **kwargs) -> None:
async def _add_payment_terms_initial(
self, billing_account_name: str, parameters: Union[List[_models.PaymentTerm], IO[bytes]], **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -279,7 +265,7 @@ def get_long_running_output(pipeline_response):
async def _cancel_payment_terms_initial(
self, billing_account_name: str, parameters: datetime.datetime, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -417,7 +403,7 @@ async def confirm_transition(self, billing_account_name: str, **kwargs: Any) ->
:rtype: ~azure.mgmt.billing.models.TransitionDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -486,7 +472,7 @@ def list_invoice_sections_by_create_subscription_permission( # pylint: disable=
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceSectionWithCreateSubPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -616,7 +602,7 @@ async def validate_payment_terms(
:rtype: ~azure.mgmt.billing.models.PaymentTermsEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -682,7 +668,7 @@ async def get(self, billing_account_name: str, **kwargs: Any) -> _models.Billing
:rtype: ~azure.mgmt.billing.models.BillingAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -726,7 +712,7 @@ async def get(self, billing_account_name: str, **kwargs: Any) -> _models.Billing
async def _update_initial(
self, billing_account_name: str, parameters: Union[_models.BillingAccountPatch, IO[bytes]], **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -990,7 +976,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingAccountListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py
index 8f77557431e7..2df2b52fc99c 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_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, Callable, Dict, IO, List, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -47,7 +47,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 +92,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -176,7 +176,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -322,7 +322,7 @@ async def check_access_by_billing_profile(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -401,7 +401,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -557,7 +557,7 @@ async def check_access_by_customer(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -637,7 +637,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -793,7 +793,7 @@ async def check_access_by_invoice_section(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -915,7 +915,7 @@ async def check_access_by_billing_account(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -991,7 +991,7 @@ def list_by_customer_at_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1076,7 +1076,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1222,7 +1222,7 @@ async def check_access_by_department(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1299,7 +1299,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1445,7 +1445,7 @@ async def check_access_by_enrollment_account(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py
index 63bd1dc55511..bef2084d8209 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_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]]
@@ -85,7 +84,7 @@ async def validate_delete_eligibility(
:rtype: ~azure.mgmt.billing.models.DeleteBillingProfileEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -130,7 +129,7 @@ async def validate_delete_eligibility(
async def _delete_initial(
self, billing_account_name: str, billing_profile_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -258,7 +257,7 @@ async def get(self, billing_account_name: str, billing_profile_name: str, **kwar
:rtype: ~azure.mgmt.billing.models.BillingProfile
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -307,7 +306,7 @@ async def _create_or_update_initial(
parameters: Union[_models.BillingProfile, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -566,7 +565,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingProfileListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py
index b710fc15ee63..bea75452c018 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -30,7 +29,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 @@ async def get(
:rtype: ~azure.mgmt.billing.models.BillingProperty
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -180,7 +179,7 @@ async def update(
:rtype: ~azure.mgmt.billing.models.BillingProperty
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_requests_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_requests_operations.py
index 448adedb7379..c54b8318ba91 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_requests_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_requests_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]]
@@ -120,7 +119,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -242,7 +241,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -365,7 +364,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -482,7 +481,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -562,7 +561,7 @@ async def get(self, billing_request_name: str, **kwargs: Any) -> _models.Billing
:rtype: ~azure.mgmt.billing.models.BillingRequest
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -606,7 +605,7 @@ async def get(self, billing_request_name: str, **kwargs: Any) -> _models.Billing
async def _create_or_update_initial(
self, billing_request_name: str, parameters: Union[_models.BillingRequest, IO[bytes]], **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -833,7 +832,7 @@ def list_by_user(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py
index 22140fc1de55..8cfd77a130b4 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_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
@@ -67,7 +67,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 +92,7 @@ def __init__(self, *args, **kwargs) -> None:
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
@distributed_trace_async
- async def delete_by_billing_profile( # pylint: disable=inconsistent-return-statements
+ async def delete_by_billing_profile(
self, billing_account_name: str, billing_profile_name: str, billing_role_assignment_name: str, **kwargs: Any
) -> None:
"""Deletes a role assignment on a billing profile. The operation is supported for billing accounts
@@ -112,7 +112,7 @@ async def delete_by_billing_profile( # pylint: disable=inconsistent-return-stat
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -173,7 +173,7 @@ async def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -258,7 +258,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -330,7 +330,7 @@ async def _create_by_billing_profile_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -532,7 +532,7 @@ def get_long_running_output(pipeline_response):
)
@distributed_trace_async
- async def delete_by_customer( # pylint: disable=inconsistent-return-statements
+ async def delete_by_customer(
self,
billing_account_name: str,
billing_profile_name: str,
@@ -559,7 +559,7 @@ async def delete_by_customer( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -627,7 +627,7 @@ async def get_by_customer(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -715,7 +715,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -789,7 +789,7 @@ async def _create_by_customer_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1010,7 +1010,7 @@ async def _resolve_by_customer_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1150,7 +1150,7 @@ def get_long_running_output(pipeline_response):
)
@distributed_trace_async
- async def delete_by_invoice_section( # pylint: disable=inconsistent-return-statements
+ async def delete_by_invoice_section(
self,
billing_account_name: str,
billing_profile_name: str,
@@ -1177,7 +1177,7 @@ async def delete_by_invoice_section( # pylint: disable=inconsistent-return-stat
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1245,7 +1245,7 @@ async def get_by_invoice_section(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1333,7 +1333,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1407,7 +1407,7 @@ async def _create_by_invoice_section_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1628,7 +1628,7 @@ async def _resolve_by_invoice_section_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1775,7 +1775,7 @@ async def _resolve_by_billing_profile_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1910,7 +1910,7 @@ def get_long_running_output(pipeline_response):
)
@distributed_trace_async
- async def delete_by_billing_account( # pylint: disable=inconsistent-return-statements
+ async def delete_by_billing_account(
self, billing_account_name: str, billing_role_assignment_name: str, **kwargs: Any
) -> None:
"""Deletes a role assignment on a billing account. The operation is supported for billing accounts
@@ -1929,7 +1929,7 @@ async def delete_by_billing_account( # pylint: disable=inconsistent-return-stat
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1987,7 +1987,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2036,7 +2036,7 @@ async def _create_or_update_by_billing_account_initial( # pylint: disable=name-
parameters: Union[_models.BillingRoleAssignment, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2277,7 +2277,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2347,7 +2347,7 @@ async def _create_by_billing_account_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2533,7 +2533,7 @@ def get_long_running_output(pipeline_response):
)
@distributed_trace_async
- async def delete_by_department( # pylint: disable=inconsistent-return-statements
+ async def delete_by_department(
self, billing_account_name: str, department_name: str, billing_role_assignment_name: str, **kwargs: Any
) -> None:
"""Deletes a role assignment on a department. The operation is supported only for billing accounts
@@ -2553,7 +2553,7 @@ async def delete_by_department( # pylint: disable=inconsistent-return-statement
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2613,7 +2613,7 @@ async def get_by_department(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2664,7 +2664,7 @@ async def _create_or_update_by_department_initial(
parameters: Union[_models.BillingRoleAssignment, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2903,7 +2903,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2966,7 +2966,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
@distributed_trace_async
- async def delete_by_enrollment_account( # pylint: disable=inconsistent-return-statements
+ async def delete_by_enrollment_account(
self, billing_account_name: str, enrollment_account_name: str, billing_role_assignment_name: str, **kwargs: Any
) -> None:
"""Deletes a role assignment on a enrollment Account. The operation is supported only for billing
@@ -2986,7 +2986,7 @@ async def delete_by_enrollment_account( # pylint: disable=inconsistent-return-s
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3046,7 +3046,7 @@ async def get_by_enrollment_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3097,7 +3097,7 @@ async def _create_or_update_by_enrollment_account_initial( # pylint: disable=na
parameters: Union[_models.BillingRoleAssignment, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3336,7 +3336,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3405,7 +3405,7 @@ async def _resolve_by_billing_account_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definition_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definition_operations.py
index fc6fb4a9ee5a..8230ad5784d6 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definition_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definition_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
@@ -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]]
@@ -89,7 +88,7 @@ async def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -159,7 +158,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -248,7 +247,7 @@ async def get_by_customer(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -320,7 +319,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -410,7 +409,7 @@ async def get_by_invoice_section(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -482,7 +481,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -564,7 +563,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -631,7 +630,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -712,7 +711,7 @@ async def get_by_department(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -781,7 +780,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -863,7 +862,7 @@ async def get_by_enrollment_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -932,7 +931,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_aliases_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_aliases_operations.py
index ed10dd47cd26..28edaf2943c8 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_aliases_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_aliases_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
@@ -41,7 +40,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]]
@@ -81,7 +80,7 @@ async def get(self, billing_account_name: str, alias_name: str, **kwargs: Any) -
:rtype: ~azure.mgmt.billing.models.BillingSubscriptionAlias
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -130,7 +129,7 @@ async def _create_or_update_initial(
parameters: Union[_models.BillingSubscriptionAlias, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -386,7 +385,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionAliasListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py
index 96623f0becca..2dd47db362a4 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_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
@@ -53,7 +53,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]]
@@ -105,7 +105,7 @@ async def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingSubscription
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -210,7 +210,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -343,7 +343,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -477,7 +477,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -555,7 +555,7 @@ async def _cancel_initial(
parameters: Union[_models.CancelSubscriptionRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -755,7 +755,7 @@ async def _merge_initial(
parameters: Union[_models.BillingSubscriptionMergeRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -962,7 +962,7 @@ async def _move_initial(
parameters: Union[_models.MoveBillingSubscriptionRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1173,7 +1173,7 @@ async def _split_initial(
parameters: Union[_models.BillingSubscriptionSplitRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1461,7 +1461,7 @@ async def validate_move_eligibility(
:rtype: ~azure.mgmt.billing.models.MoveBillingSubscriptionEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1518,7 +1518,7 @@ async def validate_move_eligibility(
async def _delete_initial(
self, billing_account_name: str, billing_subscription_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1651,7 +1651,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.BillingSubscription
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1701,7 +1701,7 @@ async def _update_initial(
parameters: Union[_models.BillingSubscriptionPatch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1963,7 +1963,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2094,7 +2094,7 @@ def list_by_customer_at_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2216,7 +2216,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py
index 46d8c811cc6a..4704b510be5c 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_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
@@ -37,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, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -81,7 +80,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.Customer
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -179,7 +178,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.CustomerListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -266,7 +265,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.Customer
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -360,7 +359,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.CustomerListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_departments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_departments_operations.py
index 77714e1cd63e..4b7013032bbc 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_departments_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_departments_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]]
@@ -72,7 +71,7 @@ async def get(self, billing_account_name: str, department_name: str, **kwargs: A
:rtype: ~azure.mgmt.billing.models.Department
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -159,7 +158,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.DepartmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py
index f170e44f3f16..d978bdb99b6b 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_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
@@ -37,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, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -81,7 +80,7 @@ async def get_by_department(
:rtype: ~azure.mgmt.billing.models.EnrollmentAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -176,7 +175,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.EnrollmentAccountListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -262,7 +261,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.EnrollmentAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -353,7 +352,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.EnrollmentAccountListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py
index 39fd6367fb0c..af1e01e302dd 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_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]]
@@ -87,7 +86,7 @@ async def validate_delete_eligibility(
:rtype: ~azure.mgmt.billing.models.DeleteInvoiceSectionEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -133,7 +132,7 @@ async def validate_delete_eligibility(
async def _delete_initial(
self, billing_account_name: str, billing_profile_name: str, invoice_section_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -269,7 +268,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.InvoiceSection
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -320,7 +319,7 @@ async def _create_or_update_initial(
parameters: Union[_models.InvoiceSection, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -587,7 +586,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceSectionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py
index 5d3584b57181..2da350e027f9 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_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.
@@ -9,21 +9,7 @@
import datetime
from io import IOBase
import sys
-from typing import (
- Any,
- AsyncIterable,
- AsyncIterator,
- Callable,
- Dict,
- IO,
- List,
- Optional,
- Type,
- TypeVar,
- Union,
- cast,
- overload,
-)
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -65,7 +51,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]]
@@ -150,7 +136,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -226,7 +212,7 @@ async def _download_documents_by_billing_account_initial( # pylint: disable=nam
parameters: Union[List[_models.DocumentDownloadRequest], IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -415,7 +401,7 @@ def get_long_running_output(pipeline_response):
)
async def _amend_initial(self, billing_account_name: str, invoice_name: str, **kwargs: Any) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -527,7 +513,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _download_by_billing_account_initial(
self, billing_account_name: str, invoice_name: str, document_name: Optional[str] = None, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -653,7 +639,7 @@ def get_long_running_output(pipeline_response):
async def _download_summary_by_billing_account_initial( # pylint: disable=name-too-long
self, billing_account_name: str, invoice_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -788,7 +774,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.Invoice
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -887,7 +873,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -959,7 +945,7 @@ async def get_next(next_link=None):
async def _download_documents_by_billing_subscription_initial( # pylint: disable=name-too-long
self, parameters: Union[List[_models.DocumentDownloadRequest], IO[bytes]], **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1139,7 +1125,7 @@ def get_long_running_output(pipeline_response):
async def _download_by_billing_subscription_initial( # pylint: disable=name-too-long
self, invoice_name: str, document_name: Optional[str] = None, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1273,7 +1259,7 @@ async def get_by_billing_subscription(self, invoice_name: str, **kwargs: Any) ->
:rtype: ~azure.mgmt.billing.models.Invoice
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1369,7 +1355,7 @@ def list_by_billing_subscription(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1452,7 +1438,7 @@ async def get(self, invoice_name: str, **kwargs: Any) -> _models.Invoice:
:rtype: ~azure.mgmt.billing.models.Invoice
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py
index eede0b42bab1..059d9c441254 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/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]]
@@ -72,7 +71,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/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_partner_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_partner_transfers_operations.py
index f39a3b2849e9..63fda10fcb64 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_partner_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_partner_transfers_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, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -38,7 +37,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]]
@@ -86,7 +85,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.PartnerTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -229,7 +228,7 @@ async def initiate(
:rtype: ~azure.mgmt.billing.models.PartnerTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -309,7 +308,7 @@ async def cancel(
:rtype: ~azure.mgmt.billing.models.PartnerTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -378,7 +377,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PartnerTransferDetailsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_payment_methods_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_payment_methods_operations.py
index a676e1cb8343..af82b3314cd3 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_payment_methods_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_payment_methods_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
@@ -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]]
@@ -88,7 +87,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PaymentMethodLinksListResult] = 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_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.PaymentMethodLink
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -237,7 +236,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PaymentMethodsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -316,7 +315,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.PaymentMethod
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -375,7 +374,7 @@ def list_by_user(self, **kwargs: Any) -> AsyncIterable["_models.PaymentMethod"]:
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PaymentMethodsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -436,9 +435,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
@distributed_trace_async
- async def delete_by_user( # pylint: disable=inconsistent-return-statements
- self, payment_method_name: str, **kwargs: Any
- ) -> None:
+ async def delete_by_user(self, payment_method_name: str, **kwargs: Any) -> None:
"""Deletes a payment method owned by the caller.
.. seealso::
@@ -450,7 +447,7 @@ async def delete_by_user( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -500,7 +497,7 @@ async def get_by_user(self, payment_method_name: str, **kwargs: Any) -> _models.
:rtype: ~azure.mgmt.billing.models.PaymentMethod
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py
index 2279cbddd5f2..7db6666a3094 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_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, 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,
@@ -44,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]]
@@ -96,7 +96,7 @@ async def get_by_customer(
:rtype: ~azure.mgmt.billing.models.CustomerPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -148,7 +148,7 @@ async def _create_or_update_by_customer_initial(
parameters: Union[_models.CustomerPolicy, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -376,7 +376,7 @@ async def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingProfilePolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -425,7 +425,7 @@ async def _create_or_update_by_billing_profile_initial( # pylint: disable=name-
parameters: Union[_models.BillingProfilePolicy, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -642,7 +642,7 @@ async def get_by_customer_at_billing_account(
:rtype: ~azure.mgmt.billing.models.CustomerPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -691,7 +691,7 @@ async def _create_or_update_by_customer_at_billing_account_initial( # pylint: d
parameters: Union[_models.CustomerPolicy, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -903,7 +903,7 @@ async def get_by_billing_account(self, billing_account_name: str, **kwargs: Any)
:rtype: ~azure.mgmt.billing.models.BillingAccountPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -947,7 +947,7 @@ async def get_by_billing_account(self, billing_account_name: str, **kwargs: Any)
async def _create_or_update_by_billing_account_initial( # pylint: disable=name-too-long
self, billing_account_name: str, parameters: Union[_models.BillingAccountPolicy, IO[bytes]], **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1137,7 +1137,7 @@ async def get_by_subscription(self, **kwargs: Any) -> _models.SubscriptionPolicy
:rtype: ~azure.mgmt.billing.models.SubscriptionPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py
index 6b4eea3c32e0..d4b5d2d39c8e 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_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
@@ -46,7 +46,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]]
@@ -126,7 +126,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -248,7 +248,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -369,7 +369,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -444,7 +444,7 @@ async def _move_initial(
parameters: Union[_models.MoveProductRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -739,7 +739,7 @@ async def validate_move_eligibility(
:rtype: ~azure.mgmt.billing.models.MoveProductEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -809,7 +809,7 @@ async def get(self, billing_account_name: str, product_name: str, **kwargs: Any)
:rtype: ~azure.mgmt.billing.models.Product
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -935,7 +935,7 @@ async def update(
:rtype: ~azure.mgmt.billing.models.Product
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1039,7 +1039,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_recipient_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_recipient_transfers_operations.py
index fc8fe97b9689..67a851351b5f 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_recipient_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_recipient_transfers_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, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -39,7 +38,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]]
@@ -127,7 +126,7 @@ async def accept(
:rtype: ~azure.mgmt.billing.models.RecipientTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -250,7 +249,7 @@ async def validate(
:rtype: ~azure.mgmt.billing.models.ValidateTransferListResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -315,7 +314,7 @@ async def decline(self, transfer_name: str, **kwargs: Any) -> _models.RecipientT
:rtype: ~azure.mgmt.billing.models.RecipientTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -368,7 +367,7 @@ async def get(self, transfer_name: str, **kwargs: Any) -> _models.RecipientTrans
:rtype: ~azure.mgmt.billing.models.RecipientTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -427,7 +426,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.RecipientTransferDetails
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.RecipientTransferDetailsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservation_orders_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservation_orders_operations.py
index a7a99ccfa4c4..606a928f140a 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservation_orders_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservation_orders_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
@@ -35,7 +34,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]]
@@ -78,7 +77,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.ReservationOrder
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -155,7 +154,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationOrderList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py
index 6f3b6be1217c..4126ede6ddcc 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_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]]
@@ -110,7 +109,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -223,7 +222,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -317,7 +316,7 @@ async def get_by_reservation_order(
:rtype: ~azure.mgmt.billing.models.Reservation
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -369,7 +368,7 @@ async def _update_by_billing_account_initial(
body: Union[_models.Patch, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -595,7 +594,7 @@ def list_by_reservation_order(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plan_orders_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plan_orders_operations.py
index e9ef1b9a5437..6bbb7035c9f7 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plan_orders_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plan_orders_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
@@ -35,7 +34,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]]
@@ -75,7 +74,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.SavingsPlanOrderModel
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -152,7 +151,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SavingsPlanOrderModelList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plans_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plans_operations.py
index aa92d18c655e..e902fd988f84 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plans_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_savings_plans_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]]
@@ -87,7 +86,7 @@ def list_by_savings_plan_order(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SavingsPlanModelList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -191,7 +190,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SavingsPlanModelListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -281,7 +280,7 @@ async def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.SavingsPlanModel
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -333,7 +332,7 @@ async def _update_by_billing_account_initial(
body: Union[_models.SavingsPlanUpdateRequest, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -619,7 +618,7 @@ async def validate_update_by_billing_account(
:rtype: ~azure.mgmt.billing.models.SavingsPlanValidateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py
index f418bbd5347a..87b10a1df41a 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_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 @@
# --------------------------------------------------------------------------
import datetime
import sys
-from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, Optional, Type, TypeVar, Union, cast
+from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, Optional, TypeVar, Union, cast
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]]
@@ -137,7 +136,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -278,7 +277,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -416,7 +415,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -539,7 +538,7 @@ def list_by_invoice(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -610,7 +609,7 @@ async def get_next(next_link=None):
async def _transactions_download_by_invoice_initial( # pylint: disable=name-too-long
self, billing_account_name: str, invoice_name: str, **kwargs: Any
) -> AsyncIterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -756,7 +755,7 @@ async def get_transaction_summary_by_invoice(
:rtype: ~azure.mgmt.billing.models.TransactionSummary
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transfers_operations.py
index 41cc008d2b60..84a6f363bf46 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transfers_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, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
+from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -38,7 +37,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]]
@@ -86,7 +85,7 @@ async def get(
:rtype: ~azure.mgmt.billing.models.TransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -229,7 +228,7 @@ async def initiate(
:rtype: ~azure.mgmt.billing.models.TransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -309,7 +308,7 @@ async def cancel(
:rtype: ~azure.mgmt.billing.models.TransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -376,7 +375,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransferDetailsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py
index 61f4b1b3aaf2..f71efc599ca4 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py
@@ -5,332 +5,343 @@
# 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 AcceptTransferRequest
-from ._models_py3 import AddressDetails
-from ._models_py3 import AddressValidationResponse
-from ._models_py3 import Agreement
-from ._models_py3 import AgreementListResult
-from ._models_py3 import AgreementProperties
-from ._models_py3 import Amount
-from ._models_py3 import AppliedScopeProperties
-from ._models_py3 import AssociatedTenant
-from ._models_py3 import AssociatedTenantListResult
-from ._models_py3 import AssociatedTenantProperties
-from ._models_py3 import AvailableBalance
-from ._models_py3 import AvailableBalanceProperties
-from ._models_py3 import AvailableBalancePropertiesAmount
-from ._models_py3 import AvailableBalancePropertiesTotalPaymentsOnAccount
-from ._models_py3 import AzurePlan
-from ._models_py3 import Beneficiary
-from ._models_py3 import BillingAccount
-from ._models_py3 import BillingAccountListResult
-from ._models_py3 import BillingAccountPatch
-from ._models_py3 import BillingAccountPolicy
-from ._models_py3 import BillingAccountPolicyProperties
-from ._models_py3 import BillingAccountPolicyPropertiesEnterpriseAgreementPolicies
-from ._models_py3 import BillingAccountProperties
-from ._models_py3 import BillingAccountPropertiesEnrollmentDetails
-from ._models_py3 import BillingAccountPropertiesRegistrationNumber
-from ._models_py3 import BillingAccountPropertiesSoldTo
-from ._models_py3 import BillingPermission
-from ._models_py3 import BillingPermissionListResult
-from ._models_py3 import BillingPlanInformation
-from ._models_py3 import BillingProfile
-from ._models_py3 import BillingProfileInfo
-from ._models_py3 import BillingProfileListResult
-from ._models_py3 import BillingProfilePolicy
-from ._models_py3 import BillingProfilePolicyProperties
-from ._models_py3 import BillingProfilePolicyPropertiesEnterpriseAgreementPolicies
-from ._models_py3 import BillingProfileProperties
-from ._models_py3 import BillingProfilePropertiesBillTo
-from ._models_py3 import BillingProfilePropertiesCurrentPaymentTerm
-from ._models_py3 import BillingProfilePropertiesIndirectRelationshipInfo
-from ._models_py3 import BillingProfilePropertiesShipTo
-from ._models_py3 import BillingProfilePropertiesSoldTo
-from ._models_py3 import BillingProperty
-from ._models_py3 import BillingPropertyProperties
-from ._models_py3 import BillingPropertyPropertiesEnrollmentDetails
-from ._models_py3 import BillingPropertyPropertiesSubscriptionServiceUsageAddress
-from ._models_py3 import BillingRequest
-from ._models_py3 import BillingRequestListResult
-from ._models_py3 import BillingRequestProperties
-from ._models_py3 import BillingRequestPropertiesCreatedBy
-from ._models_py3 import BillingRequestPropertiesLastUpdatedBy
-from ._models_py3 import BillingRequestPropertiesReviewedBy
-from ._models_py3 import BillingRoleAssignment
-from ._models_py3 import BillingRoleAssignmentListResult
-from ._models_py3 import BillingRoleAssignmentProperties
-from ._models_py3 import BillingRoleDefinition
-from ._models_py3 import BillingRoleDefinitionListResult
-from ._models_py3 import BillingRoleDefinitionProperties
-from ._models_py3 import BillingSubscription
-from ._models_py3 import BillingSubscriptionAlias
-from ._models_py3 import BillingSubscriptionAliasListResult
-from ._models_py3 import BillingSubscriptionAliasProperties
-from ._models_py3 import BillingSubscriptionListResult
-from ._models_py3 import BillingSubscriptionMergeRequest
-from ._models_py3 import BillingSubscriptionPatch
-from ._models_py3 import BillingSubscriptionProperties
-from ._models_py3 import BillingSubscriptionSplitRequest
-from ._models_py3 import BillingSubscriptionStatusDetails
-from ._models_py3 import CancelSubscriptionRequest
-from ._models_py3 import CheckAccessRequest
-from ._models_py3 import CheckAccessResponse
-from ._models_py3 import Commitment
-from ._models_py3 import Customer
-from ._models_py3 import CustomerListResult
-from ._models_py3 import CustomerPolicy
-from ._models_py3 import CustomerPolicyProperties
-from ._models_py3 import CustomerProperties
-from ._models_py3 import DeleteBillingProfileEligibilityDetail
-from ._models_py3 import DeleteBillingProfileEligibilityResult
-from ._models_py3 import DeleteInvoiceSectionEligibilityDetail
-from ._models_py3 import DeleteInvoiceSectionEligibilityResult
-from ._models_py3 import Department
-from ._models_py3 import DepartmentListResult
-from ._models_py3 import DepartmentProperties
-from ._models_py3 import DetailedTransferStatus
-from ._models_py3 import DocumentDownloadRequest
-from ._models_py3 import DocumentDownloadResult
-from ._models_py3 import EnrollmentAccount
-from ._models_py3 import EnrollmentAccountListResult
-from ._models_py3 import EnrollmentAccountProperties
-from ._models_py3 import EnrollmentDetails
-from ._models_py3 import EnrollmentDetailsIndirectRelationshipInfo
-from ._models_py3 import EnterpriseAgreementPolicies
-from ._models_py3 import ErrorAdditionalInfo
-from ._models_py3 import ErrorDetail
-from ._models_py3 import ErrorResponse
-from ._models_py3 import ExtendedStatusDefinitionProperties
-from ._models_py3 import ExtendedStatusInfo
-from ._models_py3 import ExternalReference
-from ._models_py3 import FailedPayment
-from ._models_py3 import IndirectRelationshipInfo
-from ._models_py3 import InitiateTransferRequest
-from ._models_py3 import Invoice
-from ._models_py3 import InvoiceDocument
-from ._models_py3 import InvoiceListResult
-from ._models_py3 import InvoiceProperties
-from ._models_py3 import InvoicePropertiesAmountDue
-from ._models_py3 import InvoicePropertiesAzurePrepaymentApplied
-from ._models_py3 import InvoicePropertiesBilledAmount
-from ._models_py3 import InvoicePropertiesCreditAmount
-from ._models_py3 import InvoicePropertiesFreeAzureCreditApplied
-from ._models_py3 import InvoicePropertiesRebillDetails
-from ._models_py3 import InvoicePropertiesRefundDetails
-from ._models_py3 import InvoicePropertiesSubTotal
-from ._models_py3 import InvoicePropertiesTaxAmount
-from ._models_py3 import InvoicePropertiesTotalAmount
-from ._models_py3 import InvoiceSection
-from ._models_py3 import InvoiceSectionListResult
-from ._models_py3 import InvoiceSectionProperties
-from ._models_py3 import InvoiceSectionWithCreateSubPermission
-from ._models_py3 import InvoiceSectionWithCreateSubPermissionListResult
-from ._models_py3 import MoveBillingSubscriptionEligibilityResult
-from ._models_py3 import MoveBillingSubscriptionErrorDetails
-from ._models_py3 import MoveBillingSubscriptionRequest
-from ._models_py3 import MoveProductEligibilityResult
-from ._models_py3 import MoveProductEligibilityResultErrorDetails
-from ._models_py3 import MoveProductErrorDetails
-from ._models_py3 import MoveProductRequest
-from ._models_py3 import NextBillingCycleDetails
-from ._models_py3 import Operation
-from ._models_py3 import OperationDisplay
-from ._models_py3 import OperationListResult
-from ._models_py3 import Participant
-from ._models_py3 import PartnerInitiateTransferRequest
-from ._models_py3 import PartnerTransferDetails
-from ._models_py3 import PartnerTransferDetailsListResult
-from ._models_py3 import Patch
-from ._models_py3 import Payment
-from ._models_py3 import PaymentAmount
-from ._models_py3 import PaymentDetail
-from ._models_py3 import PaymentMethod
-from ._models_py3 import PaymentMethodLink
-from ._models_py3 import PaymentMethodLinksListResult
-from ._models_py3 import PaymentMethodLogo
-from ._models_py3 import PaymentMethodProperties
-from ._models_py3 import PaymentMethodsListResult
-from ._models_py3 import PaymentOnAccount
-from ._models_py3 import PaymentOnAccountAmount
-from ._models_py3 import PaymentTerm
-from ._models_py3 import PaymentTermsEligibilityDetail
-from ._models_py3 import PaymentTermsEligibilityResult
-from ._models_py3 import PolicySummary
-from ._models_py3 import Price
-from ._models_py3 import Principal
-from ._models_py3 import Product
-from ._models_py3 import ProductDetails
-from ._models_py3 import ProductListResult
-from ._models_py3 import ProductPatch
-from ._models_py3 import ProductProperties
-from ._models_py3 import ProductPropertiesLastCharge
-from ._models_py3 import ProductPropertiesReseller
-from ._models_py3 import ProxyResource
-from ._models_py3 import ProxyResourceWithTags
-from ._models_py3 import PurchaseRequest
-from ._models_py3 import RebillDetails
-from ._models_py3 import RecipientTransferDetails
-from ._models_py3 import RecipientTransferDetailsListResult
-from ._models_py3 import RefundDetailsSummary
-from ._models_py3 import RefundDetailsSummaryAmountRefunded
-from ._models_py3 import RefundDetailsSummaryAmountRequested
-from ._models_py3 import RefundTransactionDetails
-from ._models_py3 import RefundTransactionDetailsAmountRefunded
-from ._models_py3 import RefundTransactionDetailsAmountRequested
-from ._models_py3 import RegistrationNumber
-from ._models_py3 import RenewProperties
-from ._models_py3 import RenewPropertiesResponse
-from ._models_py3 import RenewalTermDetails
-from ._models_py3 import Reseller
-from ._models_py3 import Reservation
-from ._models_py3 import ReservationAppliedScopeProperties
-from ._models_py3 import ReservationExtendedStatusInfo
-from ._models_py3 import ReservationList
-from ._models_py3 import ReservationMergeProperties
-from ._models_py3 import ReservationOrder
-from ._models_py3 import ReservationOrderBillingPlanInformation
-from ._models_py3 import ReservationOrderList
-from ._models_py3 import ReservationPaymentDetail
-from ._models_py3 import ReservationPurchaseRequest
-from ._models_py3 import ReservationSkuProperty
-from ._models_py3 import ReservationSplitProperties
-from ._models_py3 import ReservationSummary
-from ._models_py3 import ReservationSwapProperties
-from ._models_py3 import ReservationUtilizationAggregates
-from ._models_py3 import ReservationsListResult
-from ._models_py3 import Resource
-from ._models_py3 import SavingsPlanModel
-from ._models_py3 import SavingsPlanModelList
-from ._models_py3 import SavingsPlanModelListResult
-from ._models_py3 import SavingsPlanOrderModel
-from ._models_py3 import SavingsPlanOrderModelList
-from ._models_py3 import SavingsPlanSummaryCount
-from ._models_py3 import SavingsPlanUpdateRequest
-from ._models_py3 import SavingsPlanUpdateRequestProperties
-from ._models_py3 import SavingsPlanUpdateValidateRequest
-from ._models_py3 import SavingsPlanValidResponseProperty
-from ._models_py3 import SavingsPlanValidateResponse
-from ._models_py3 import Sku
-from ._models_py3 import SkuName
-from ._models_py3 import SpendingLimitDetails
-from ._models_py3 import SubscriptionEnrollmentDetails
-from ._models_py3 import SubscriptionPolicy
-from ._models_py3 import SubscriptionPolicyProperties
-from ._models_py3 import SystemData
-from ._models_py3 import SystemOverrides
-from ._models_py3 import TaxIdentifier
-from ._models_py3 import Transaction
-from ._models_py3 import TransactionListResult
-from ._models_py3 import TransactionProperties
-from ._models_py3 import TransactionPropertiesAzureCreditApplied
-from ._models_py3 import TransactionPropertiesConsumptionCommitmentDecremented
-from ._models_py3 import TransactionPropertiesEffectivePrice
-from ._models_py3 import TransactionPropertiesMarketPrice
-from ._models_py3 import TransactionPropertiesRefundTransactionDetails
-from ._models_py3 import TransactionPropertiesSubTotal
-from ._models_py3 import TransactionPropertiesTax
-from ._models_py3 import TransactionPropertiesTransactionAmount
-from ._models_py3 import TransactionSummary
-from ._models_py3 import TransferDetails
-from ._models_py3 import TransferDetailsListResult
-from ._models_py3 import TransferError
-from ._models_py3 import TransferItemQueryParameter
-from ._models_py3 import TransitionDetails
-from ._models_py3 import Utilization
-from ._models_py3 import UtilizationAggregates
-from ._models_py3 import ValidateTransferListResponse
-from ._models_py3 import ValidateTransferResponse
-from ._models_py3 import ValidationResultProperties
+from typing import TYPE_CHECKING
-from ._billing_management_client_enums import AcceptanceMode
-from ._billing_management_client_enums import AccessDecision
-from ._billing_management_client_enums import AccountStatus
-from ._billing_management_client_enums import AccountSubType
-from ._billing_management_client_enums import AccountType
-from ._billing_management_client_enums import AddressValidationStatus
-from ._billing_management_client_enums import AgreementType
-from ._billing_management_client_enums import AppliedScopeType
-from ._billing_management_client_enums import AutoRenew
-from ._billing_management_client_enums import BillingAccountStatusReasonCode
-from ._billing_management_client_enums import BillingManagementTenantState
-from ._billing_management_client_enums import BillingPlan
-from ._billing_management_client_enums import BillingProfileStatus
-from ._billing_management_client_enums import BillingProfileStatusReasonCode
-from ._billing_management_client_enums import BillingRelationshipType
-from ._billing_management_client_enums import BillingRequestStatus
-from ._billing_management_client_enums import BillingRequestType
-from ._billing_management_client_enums import BillingSubscriptionOperationStatus
-from ._billing_management_client_enums import BillingSubscriptionStatus
-from ._billing_management_client_enums import Cancellation
-from ._billing_management_client_enums import CancellationReason
-from ._billing_management_client_enums import Category
-from ._billing_management_client_enums import CommitmentGrain
-from ._billing_management_client_enums import CreatedByType
-from ._billing_management_client_enums import CreditType
-from ._billing_management_client_enums import CustomerStatus
-from ._billing_management_client_enums import DeleteBillingProfileEligibilityCode
-from ._billing_management_client_enums import DeleteBillingProfileEligibilityStatus
-from ._billing_management_client_enums import DeleteInvoiceSectionEligibilityCode
-from ._billing_management_client_enums import DeleteInvoiceSectionEligibilityStatus
-from ._billing_management_client_enums import DocumentSource
-from ._billing_management_client_enums import EligibleProductType
-from ._billing_management_client_enums import EnrollmentAccountOwnerViewCharges
-from ._billing_management_client_enums import EnrollmentAuthLevelState
-from ._billing_management_client_enums import EnrollmentDepartmentAdminViewCharges
-from ._billing_management_client_enums import ExtendedTermOption
-from ._billing_management_client_enums import FailedPaymentReason
-from ._billing_management_client_enums import InitiatorCustomerType
-from ._billing_management_client_enums import InstanceFlexibility
-from ._billing_management_client_enums import InvoiceDocumentType
-from ._billing_management_client_enums import InvoiceSectionLabelManagementPolicy
-from ._billing_management_client_enums import InvoiceSectionState
-from ._billing_management_client_enums import InvoiceSectionStateReasonCode
-from ._billing_management_client_enums import InvoiceStatus
-from ._billing_management_client_enums import InvoiceType
-from ._billing_management_client_enums import MarketplacePurchasesPolicy
-from ._billing_management_client_enums import MarkupStatus
-from ._billing_management_client_enums import MoveValidationErrorCode
-from ._billing_management_client_enums import PaymentMethodFamily
-from ._billing_management_client_enums import PaymentMethodStatus
-from ._billing_management_client_enums import PaymentStatus
-from ._billing_management_client_enums import PaymentTermsEligibilityCode
-from ._billing_management_client_enums import PaymentTermsEligibilityStatus
-from ._billing_management_client_enums import PolicyType
-from ._billing_management_client_enums import PrincipalType
-from ._billing_management_client_enums import ProductStatus
-from ._billing_management_client_enums import ProductTransferStatus
-from ._billing_management_client_enums import ProductType
-from ._billing_management_client_enums import ProvisioningState
-from ._billing_management_client_enums import ProvisioningTenantState
-from ._billing_management_client_enums import RefundReasonCode
-from ._billing_management_client_enums import RefundStatus
-from ._billing_management_client_enums import ReservationBillingPlan
-from ._billing_management_client_enums import ReservationPurchasesPolicy
-from ._billing_management_client_enums import ReservationStatusCode
-from ._billing_management_client_enums import SavingsPlanPurchasesPolicy
-from ._billing_management_client_enums import SavingsPlanTerm
-from ._billing_management_client_enums import ServiceDefinedResourceName
-from ._billing_management_client_enums import SpecialTaxationType
-from ._billing_management_client_enums import SpendingLimit
-from ._billing_management_client_enums import SpendingLimitStatus
-from ._billing_management_client_enums import SpendingLimitType
-from ._billing_management_client_enums import SubscriptionBillingType
-from ._billing_management_client_enums import SubscriptionEnrollmentAccountStatus
-from ._billing_management_client_enums import SubscriptionStatusReason
-from ._billing_management_client_enums import SubscriptionTransferValidationErrorCode
-from ._billing_management_client_enums import SubscriptionWorkloadType
-from ._billing_management_client_enums import SupportLevel
-from ._billing_management_client_enums import SupportedAccountType
-from ._billing_management_client_enums import TaxIdentifierStatus
-from ._billing_management_client_enums import TaxIdentifierType
-from ._billing_management_client_enums import TransactionKind
-from ._billing_management_client_enums import TransactionType
-from ._billing_management_client_enums import TransferStatus
-from ._billing_management_client_enums import ViewChargesPolicy
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+
+from ._models_py3 import ( # type: ignore
+ AcceptTransferRequest,
+ AddressDetails,
+ AddressValidationResponse,
+ Agreement,
+ AgreementListResult,
+ AgreementProperties,
+ Amount,
+ AppliedScopeProperties,
+ AssociatedTenant,
+ AssociatedTenantListResult,
+ AssociatedTenantProperties,
+ AvailableBalance,
+ AvailableBalanceProperties,
+ AvailableBalancePropertiesAmount,
+ AvailableBalancePropertiesTotalPaymentsOnAccount,
+ AzurePlan,
+ Beneficiary,
+ BillingAccount,
+ BillingAccountListResult,
+ BillingAccountPatch,
+ BillingAccountPolicy,
+ BillingAccountPolicyProperties,
+ BillingAccountPolicyPropertiesEnterpriseAgreementPolicies,
+ BillingAccountProperties,
+ BillingAccountPropertiesEnrollmentDetails,
+ BillingAccountPropertiesRegistrationNumber,
+ BillingAccountPropertiesSoldTo,
+ BillingPermission,
+ BillingPermissionListResult,
+ BillingPlanInformation,
+ BillingProfile,
+ BillingProfileInfo,
+ BillingProfileListResult,
+ BillingProfilePolicy,
+ BillingProfilePolicyProperties,
+ BillingProfilePolicyPropertiesEnterpriseAgreementPolicies,
+ BillingProfileProperties,
+ BillingProfilePropertiesBillTo,
+ BillingProfilePropertiesCurrentPaymentTerm,
+ BillingProfilePropertiesIndirectRelationshipInfo,
+ BillingProfilePropertiesShipTo,
+ BillingProfilePropertiesSoldTo,
+ BillingProperty,
+ BillingPropertyProperties,
+ BillingPropertyPropertiesEnrollmentDetails,
+ BillingPropertyPropertiesSubscriptionServiceUsageAddress,
+ BillingRequest,
+ BillingRequestListResult,
+ BillingRequestProperties,
+ BillingRequestPropertiesCreatedBy,
+ BillingRequestPropertiesLastUpdatedBy,
+ BillingRequestPropertiesReviewedBy,
+ BillingRoleAssignment,
+ BillingRoleAssignmentListResult,
+ BillingRoleAssignmentProperties,
+ BillingRoleDefinition,
+ BillingRoleDefinitionListResult,
+ BillingRoleDefinitionProperties,
+ BillingSubscription,
+ BillingSubscriptionAlias,
+ BillingSubscriptionAliasListResult,
+ BillingSubscriptionAliasProperties,
+ BillingSubscriptionListResult,
+ BillingSubscriptionMergeRequest,
+ BillingSubscriptionPatch,
+ BillingSubscriptionProperties,
+ BillingSubscriptionSplitRequest,
+ BillingSubscriptionStatusDetails,
+ CancelSubscriptionRequest,
+ CheckAccessRequest,
+ CheckAccessResponse,
+ Commitment,
+ Customer,
+ CustomerListResult,
+ CustomerPolicy,
+ CustomerPolicyProperties,
+ CustomerProperties,
+ DeleteBillingProfileEligibilityDetail,
+ DeleteBillingProfileEligibilityResult,
+ DeleteInvoiceSectionEligibilityDetail,
+ DeleteInvoiceSectionEligibilityResult,
+ Department,
+ DepartmentListResult,
+ DepartmentProperties,
+ DetailedTransferStatus,
+ DocumentDownloadRequest,
+ DocumentDownloadResult,
+ EnrollmentAccount,
+ EnrollmentAccountListResult,
+ EnrollmentAccountProperties,
+ EnrollmentDetails,
+ EnrollmentDetailsIndirectRelationshipInfo,
+ EnterpriseAgreementPolicies,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ ExtendedStatusDefinitionProperties,
+ ExtendedStatusInfo,
+ ExternalReference,
+ FailedPayment,
+ IndirectRelationshipInfo,
+ InitiateTransferRequest,
+ Invoice,
+ InvoiceDocument,
+ InvoiceListResult,
+ InvoiceProperties,
+ InvoicePropertiesAmountDue,
+ InvoicePropertiesAzurePrepaymentApplied,
+ InvoicePropertiesBilledAmount,
+ InvoicePropertiesCreditAmount,
+ InvoicePropertiesFreeAzureCreditApplied,
+ InvoicePropertiesRebillDetails,
+ InvoicePropertiesRefundDetails,
+ InvoicePropertiesSubTotal,
+ InvoicePropertiesTaxAmount,
+ InvoicePropertiesTotalAmount,
+ InvoiceSection,
+ InvoiceSectionListResult,
+ InvoiceSectionProperties,
+ InvoiceSectionWithCreateSubPermission,
+ InvoiceSectionWithCreateSubPermissionListResult,
+ MoveBillingSubscriptionEligibilityResult,
+ MoveBillingSubscriptionErrorDetails,
+ MoveBillingSubscriptionRequest,
+ MoveProductEligibilityResult,
+ MoveProductEligibilityResultErrorDetails,
+ MoveProductErrorDetails,
+ MoveProductRequest,
+ NextBillingCycleDetails,
+ Operation,
+ OperationDisplay,
+ OperationListResult,
+ Participant,
+ PartnerInitiateTransferRequest,
+ PartnerTransferDetails,
+ PartnerTransferDetailsListResult,
+ Patch,
+ Payment,
+ PaymentAmount,
+ PaymentDetail,
+ PaymentMethod,
+ PaymentMethodLink,
+ PaymentMethodLinksListResult,
+ PaymentMethodLogo,
+ PaymentMethodProperties,
+ PaymentMethodsListResult,
+ PaymentOnAccount,
+ PaymentOnAccountAmount,
+ PaymentTerm,
+ PaymentTermsEligibilityDetail,
+ PaymentTermsEligibilityResult,
+ PolicySummary,
+ Price,
+ Principal,
+ Product,
+ ProductDetails,
+ ProductListResult,
+ ProductPatch,
+ ProductProperties,
+ ProductPropertiesLastCharge,
+ ProductPropertiesReseller,
+ ProxyResource,
+ ProxyResourceWithTags,
+ PurchaseRequest,
+ RebillDetails,
+ RecipientTransferDetails,
+ RecipientTransferDetailsListResult,
+ RefundDetailsSummary,
+ RefundDetailsSummaryAmountRefunded,
+ RefundDetailsSummaryAmountRequested,
+ RefundTransactionDetails,
+ RefundTransactionDetailsAmountRefunded,
+ RefundTransactionDetailsAmountRequested,
+ RegistrationNumber,
+ RenewProperties,
+ RenewPropertiesResponse,
+ RenewalTermDetails,
+ Reseller,
+ Reservation,
+ ReservationAppliedScopeProperties,
+ ReservationExtendedStatusInfo,
+ ReservationList,
+ ReservationMergeProperties,
+ ReservationOrder,
+ ReservationOrderBillingPlanInformation,
+ ReservationOrderList,
+ ReservationPaymentDetail,
+ ReservationPurchaseRequest,
+ ReservationSkuProperty,
+ ReservationSplitProperties,
+ ReservationSummary,
+ ReservationSwapProperties,
+ ReservationUtilizationAggregates,
+ ReservationsListResult,
+ Resource,
+ SavingsPlanModel,
+ SavingsPlanModelList,
+ SavingsPlanModelListResult,
+ SavingsPlanOrderModel,
+ SavingsPlanOrderModelList,
+ SavingsPlanSummaryCount,
+ SavingsPlanUpdateRequest,
+ SavingsPlanUpdateRequestProperties,
+ SavingsPlanUpdateValidateRequest,
+ SavingsPlanValidResponseProperty,
+ SavingsPlanValidateResponse,
+ Sku,
+ SkuName,
+ SpendingLimitDetails,
+ SubscriptionEnrollmentDetails,
+ SubscriptionPolicy,
+ SubscriptionPolicyProperties,
+ SystemData,
+ SystemOverrides,
+ TaxIdentifier,
+ Transaction,
+ TransactionListResult,
+ TransactionProperties,
+ TransactionPropertiesAzureCreditApplied,
+ TransactionPropertiesConsumptionCommitmentDecremented,
+ TransactionPropertiesEffectivePrice,
+ TransactionPropertiesMarketPrice,
+ TransactionPropertiesRefundTransactionDetails,
+ TransactionPropertiesSubTotal,
+ TransactionPropertiesTax,
+ TransactionPropertiesTransactionAmount,
+ TransactionSummary,
+ TransferDetails,
+ TransferDetailsListResult,
+ TransferError,
+ TransferItemQueryParameter,
+ TransitionDetails,
+ Utilization,
+ UtilizationAggregates,
+ ValidateTransferListResponse,
+ ValidateTransferResponse,
+ ValidationResultProperties,
+)
+
+from ._billing_management_client_enums import ( # type: ignore
+ AcceptanceMode,
+ AccessDecision,
+ AccountStatus,
+ AccountSubType,
+ AccountType,
+ AddressValidationStatus,
+ AgreementType,
+ AppliedScopeType,
+ AutoRenew,
+ BillingAccountStatusReasonCode,
+ BillingManagementTenantState,
+ BillingPlan,
+ BillingProfileStatus,
+ BillingProfileStatusReasonCode,
+ BillingRelationshipType,
+ BillingRequestStatus,
+ BillingRequestType,
+ BillingSubscriptionOperationStatus,
+ BillingSubscriptionStatus,
+ Cancellation,
+ CancellationReason,
+ Category,
+ CommitmentGrain,
+ CreatedByType,
+ CreditType,
+ CustomerStatus,
+ DeleteBillingProfileEligibilityCode,
+ DeleteBillingProfileEligibilityStatus,
+ DeleteInvoiceSectionEligibilityCode,
+ DeleteInvoiceSectionEligibilityStatus,
+ DocumentSource,
+ EligibleProductType,
+ EnrollmentAccountOwnerViewCharges,
+ EnrollmentAuthLevelState,
+ EnrollmentDepartmentAdminViewCharges,
+ ExtendedTermOption,
+ FailedPaymentReason,
+ InitiatorCustomerType,
+ InstanceFlexibility,
+ InvoiceDocumentType,
+ InvoiceSectionLabelManagementPolicy,
+ InvoiceSectionState,
+ InvoiceSectionStateReasonCode,
+ InvoiceStatus,
+ InvoiceType,
+ MarketplacePurchasesPolicy,
+ MarkupStatus,
+ MoveValidationErrorCode,
+ PaymentMethodFamily,
+ PaymentMethodStatus,
+ PaymentStatus,
+ PaymentTermsEligibilityCode,
+ PaymentTermsEligibilityStatus,
+ PolicyType,
+ PrincipalType,
+ ProductStatus,
+ ProductTransferStatus,
+ ProductType,
+ ProvisioningState,
+ ProvisioningTenantState,
+ RefundReasonCode,
+ RefundStatus,
+ ReservationBillingPlan,
+ ReservationPurchasesPolicy,
+ ReservationStatusCode,
+ SavingsPlanPurchasesPolicy,
+ SavingsPlanTerm,
+ ServiceDefinedResourceName,
+ SpecialTaxationType,
+ SpendingLimit,
+ SpendingLimitStatus,
+ SpendingLimitType,
+ SubscriptionBillingType,
+ SubscriptionEnrollmentAccountStatus,
+ SubscriptionStatusReason,
+ SubscriptionTransferValidationErrorCode,
+ SubscriptionWorkloadType,
+ SupportLevel,
+ SupportedAccountType,
+ TaxIdentifierStatus,
+ TaxIdentifierType,
+ TransactionKind,
+ TransactionType,
+ TransferStatus,
+ ViewChargesPolicy,
+)
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__ = [
@@ -657,5 +668,5 @@
"TransferStatus",
"ViewChargesPolicy",
]
-__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/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py
index ffb355b67e5a..e4d70651f30e 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/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
@@ -37,7 +36,7 @@ def __init__(self, *, product_details: Optional[List["_models.ProductDetails"]]
self.product_details = product_details
-class AddressDetails(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class AddressDetails(_serialization.Model):
"""Address details.
All required parameters must be populated in order to send to server.
@@ -1282,7 +1281,7 @@ class BillingAccountPolicyPropertiesEnterpriseAgreementPolicies(
"""
-class BillingAccountProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BillingAccountProperties(_serialization.Model):
"""A billing account.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -1438,7 +1437,7 @@ def __init__(
self.tax_ids = tax_ids
-class EnrollmentDetails(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class EnrollmentDetails(_serialization.Model):
"""The properties of an enrollment.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -1554,9 +1553,7 @@ def __init__(
self.invoice_recipient = None
-class BillingAccountPropertiesEnrollmentDetails(
- EnrollmentDetails
-): # pylint: disable=too-many-instance-attributes,name-too-long
+class BillingAccountPropertiesEnrollmentDetails(EnrollmentDetails): # pylint: disable=name-too-long
"""The properties of an enrollment.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -1651,7 +1648,7 @@ class BillingAccountPropertiesRegistrationNumber(RegistrationNumber): # pylint:
"""
-class BillingAccountPropertiesSoldTo(AddressDetails): # pylint: disable=too-many-instance-attributes
+class BillingAccountPropertiesSoldTo(AddressDetails):
"""The address of the individual or organization that is responsible for the billing account.
All required parameters must be populated in order to send to server.
@@ -2120,7 +2117,7 @@ class BillingProfilePolicyPropertiesEnterpriseAgreementPolicies(
"""
-class BillingProfileProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BillingProfileProperties(_serialization.Model):
"""A billing profile.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -2314,7 +2311,7 @@ def __init__(
self.other_payment_terms = None
-class BillingProfilePropertiesBillTo(AddressDetails): # pylint: disable=too-many-instance-attributes
+class BillingProfilePropertiesBillTo(AddressDetails):
"""Billing address.
All required parameters must be populated in order to send to server.
@@ -2479,7 +2476,7 @@ class BillingProfilePropertiesIndirectRelationshipInfo(IndirectRelationshipInfo)
"""
-class BillingProfilePropertiesShipTo(AddressDetails): # pylint: disable=too-many-instance-attributes
+class BillingProfilePropertiesShipTo(AddressDetails):
"""The default address where the products are shipped, or the services are being used. If a ship
to is not specified for a product or a subscription, then this address will be used.
@@ -2518,7 +2515,7 @@ class BillingProfilePropertiesShipTo(AddressDetails): # pylint: disable=too-man
"""
-class BillingProfilePropertiesSoldTo(AddressDetails): # pylint: disable=too-many-instance-attributes
+class BillingProfilePropertiesSoldTo(AddressDetails):
"""The address of the individual or organization that is responsible for the billing account.
All required parameters must be populated in order to send to server.
@@ -2615,7 +2612,7 @@ def __init__(
self.properties = properties
-class BillingPropertyProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BillingPropertyProperties(_serialization.Model):
"""A billing property.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -2971,9 +2968,7 @@ class BillingPropertyPropertiesEnrollmentDetails(SubscriptionEnrollmentDetails):
"""
-class BillingPropertyPropertiesSubscriptionServiceUsageAddress(
- AddressDetails
-): # pylint: disable=too-many-instance-attributes,name-too-long
+class BillingPropertyPropertiesSubscriptionServiceUsageAddress(AddressDetails): # pylint: disable=name-too-long
"""The address of the individual or organization where service subscription is being used.
Available for agreement type Microsoft Online Services Program. This property can be updated
via patch.
@@ -3103,7 +3098,7 @@ def __init__(self, **kwargs: Any) -> None:
self.value = None
-class BillingRequestProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BillingRequestProperties(_serialization.Model):
"""A request submitted by a user to manage billing. Users with an owner role on the scope can
approve or decline these requests.
@@ -3482,7 +3477,7 @@ def __init__(self, **kwargs: Any) -> None:
self.value = None
-class BillingRoleAssignmentProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BillingRoleAssignmentProperties(_serialization.Model):
"""The properties of the billing role assignment.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -3819,7 +3814,7 @@ def __init__(self, *, role_name: str, **kwargs: Any) -> None:
self.role_name = role_name
-class BillingSubscription(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class BillingSubscription(ProxyResourceWithTags):
"""The billing properties of a subscription.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -3890,7 +3885,8 @@ class BillingSubscription(ProxyResourceWithTags): # pylint: disable=too-many-in
:ivar next_billing_cycle_details: Next billing cycle details of the subscription.
:vartype next_billing_cycle_details: ~azure.mgmt.billing.models.NextBillingCycleDetails
:ivar offer_id: The offer ID for the subscription. This field is only available for the
- Microsoft Online Services Program billing accounts.
+ Microsoft Online Services Program billing accounts or billing accounts with agreement type
+ Enterprise Agreement.
:vartype offer_id: str
:ivar product_category: The category of the product for which the subscription is purchased.
Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder,
@@ -4173,7 +4169,7 @@ def __init__( # pylint: disable=too-many-locals
self.subscription_enrollment_account_status = None
-class BillingSubscriptionAlias(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class BillingSubscriptionAlias(ProxyResourceWithTags):
"""A billing subscription alias.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4244,7 +4240,8 @@ class BillingSubscriptionAlias(ProxyResourceWithTags): # pylint: disable=too-ma
:ivar next_billing_cycle_details: Next billing cycle details of the subscription.
:vartype next_billing_cycle_details: ~azure.mgmt.billing.models.NextBillingCycleDetails
:ivar offer_id: The offer ID for the subscription. This field is only available for the
- Microsoft Online Services Program billing accounts.
+ Microsoft Online Services Program billing accounts or billing accounts with agreement type
+ Enterprise Agreement.
:vartype offer_id: str
:ivar product_category: The category of the product for which the subscription is purchased.
Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder,
@@ -4560,7 +4557,7 @@ def __init__(self, **kwargs: Any) -> None:
self.value = None
-class BillingSubscriptionProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class BillingSubscriptionProperties(_serialization.Model):
"""The billing properties of a subscription.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4616,7 +4613,8 @@ class BillingSubscriptionProperties(_serialization.Model): # pylint: disable=to
:ivar next_billing_cycle_details: Next billing cycle details of the subscription.
:vartype next_billing_cycle_details: ~azure.mgmt.billing.models.NextBillingCycleDetails
:ivar offer_id: The offer ID for the subscription. This field is only available for the
- Microsoft Online Services Program billing accounts.
+ Microsoft Online Services Program billing accounts or billing accounts with agreement type
+ Enterprise Agreement.
:vartype offer_id: str
:ivar product_category: The category of the product for which the subscription is purchased.
Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder,
@@ -4882,7 +4880,7 @@ def __init__( # pylint: disable=too-many-locals
self.subscription_enrollment_account_status = None
-class BillingSubscriptionAliasProperties(BillingSubscriptionProperties): # pylint: disable=too-many-instance-attributes
+class BillingSubscriptionAliasProperties(BillingSubscriptionProperties):
"""A billing subscription alias.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -4938,7 +4936,8 @@ class BillingSubscriptionAliasProperties(BillingSubscriptionProperties): # pyli
:ivar next_billing_cycle_details: Next billing cycle details of the subscription.
:vartype next_billing_cycle_details: ~azure.mgmt.billing.models.NextBillingCycleDetails
:ivar offer_id: The offer ID for the subscription. This field is only available for the
- Microsoft Online Services Program billing accounts.
+ Microsoft Online Services Program billing accounts or billing accounts with agreement type
+ Enterprise Agreement.
:vartype offer_id: str
:ivar product_category: The category of the product for which the subscription is purchased.
Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder,
@@ -5246,7 +5245,7 @@ def __init__(
self.quantity = quantity
-class BillingSubscriptionPatch(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class BillingSubscriptionPatch(ProxyResourceWithTags):
"""The billing properties of a subscription.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -5317,7 +5316,8 @@ class BillingSubscriptionPatch(ProxyResourceWithTags): # pylint: disable=too-ma
:ivar next_billing_cycle_details: Next billing cycle details of the subscription.
:vartype next_billing_cycle_details: ~azure.mgmt.billing.models.NextBillingCycleDetails
:ivar offer_id: The offer ID for the subscription. This field is only available for the
- Microsoft Online Services Program billing accounts.
+ Microsoft Online Services Program billing accounts or billing accounts with agreement type
+ Enterprise Agreement.
:vartype offer_id: str
:ivar product_category: The category of the product for which the subscription is purchased.
Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder,
@@ -7078,7 +7078,7 @@ def __init__(self, **kwargs: Any) -> None:
self.value = None
-class InvoiceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class InvoiceProperties(_serialization.Model):
"""An invoice.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -8274,7 +8274,7 @@ def __init__(
self.reseller_id = reseller_id
-class PartnerTransferDetails(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class PartnerTransferDetails(ProxyResourceWithTags):
"""Details of the transfer.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -8634,7 +8634,7 @@ def __init__(
self.extended_status_info = None
-class PaymentMethod(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class PaymentMethod(ProxyResourceWithTags):
"""A payment method.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -8741,7 +8741,7 @@ def __init__(
self.status = status
-class PaymentMethodLink(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class PaymentMethodLink(ProxyResourceWithTags):
"""A payment method link.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -9386,7 +9386,7 @@ def __init__(
self.properties = properties
-class ProductProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class ProductProperties(_serialization.Model):
"""A product.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -9679,7 +9679,7 @@ def __init__(
self.applied_scope_properties = applied_scope_properties
-class RecipientTransferDetails(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class RecipientTransferDetails(ProxyResourceWithTags):
"""Details of the transfer.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -10030,7 +10030,7 @@ def __init__(
self.billing_currency_total = billing_currency_total
-class Reservation(ProxyResource): # pylint: disable=too-many-instance-attributes
+class Reservation(ProxyResource):
"""The definition of the reservation.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -10516,7 +10516,7 @@ def __init__(
self.merge_sources = merge_sources
-class ReservationOrder(ProxyResource): # pylint: disable=too-many-instance-attributes
+class ReservationOrder(ProxyResource):
"""Details of a reservation order being returned.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -10864,7 +10864,7 @@ def __init__(
self.extended_status_info = extended_status_info
-class ReservationPurchaseRequest(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class ReservationPurchaseRequest(_serialization.Model):
"""The request for reservation purchase.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -11261,7 +11261,7 @@ def __init__(self, **kwargs: Any) -> None:
self.value_unit = None
-class SavingsPlanModel(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class SavingsPlanModel(ProxyResourceWithTags):
"""Savings plan.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -11560,7 +11560,7 @@ def __init__(
self.summary = summary
-class SavingsPlanOrderModel(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class SavingsPlanOrderModel(ProxyResourceWithTags):
"""Savings plan order.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -12443,7 +12443,7 @@ def __init__(self, **kwargs: Any) -> None:
self.value = None
-class TransactionProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes
+class TransactionProperties(_serialization.Model):
"""A transaction.
:ivar azure_credit_applied: The amount of any Azure credits automatically applied to this
@@ -12933,7 +12933,7 @@ def __init__(self, **kwargs: Any) -> None:
self.total = None
-class TransferDetails(ProxyResourceWithTags): # pylint: disable=too-many-instance-attributes
+class TransferDetails(ProxyResourceWithTags):
"""Details of the transfer.
Variables are only populated by the server, and will be ignored when sending a request.
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/__init__.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/__init__.py
index 5239c254e4be..3dad78203a50 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/__init__.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/__init__.py
@@ -5,40 +5,46 @@
# 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 ._agreements_operations import AgreementsOperations
-from ._associated_tenants_operations import AssociatedTenantsOperations
-from ._available_balances_operations import AvailableBalancesOperations
-from ._billing_accounts_operations import BillingAccountsOperations
-from ._address_operations import AddressOperations
-from ._billing_permissions_operations import BillingPermissionsOperations
-from ._billing_profiles_operations import BillingProfilesOperations
-from ._billing_property_operations import BillingPropertyOperations
-from ._billing_requests_operations import BillingRequestsOperations
-from ._billing_role_assignments_operations import BillingRoleAssignmentsOperations
-from ._billing_role_definition_operations import BillingRoleDefinitionOperations
-from ._savings_plan_orders_operations import SavingsPlanOrdersOperations
-from ._savings_plans_operations import SavingsPlansOperations
-from ._billing_subscriptions_operations import BillingSubscriptionsOperations
-from ._billing_subscriptions_aliases_operations import BillingSubscriptionsAliasesOperations
-from ._customers_operations import CustomersOperations
-from ._departments_operations import DepartmentsOperations
-from ._enrollment_accounts_operations import EnrollmentAccountsOperations
-from ._invoices_operations import InvoicesOperations
-from ._invoice_sections_operations import InvoiceSectionsOperations
-from ._operations import Operations
-from ._payment_methods_operations import PaymentMethodsOperations
-from ._policies_operations import PoliciesOperations
-from ._products_operations import ProductsOperations
-from ._reservations_operations import ReservationsOperations
-from ._reservation_orders_operations import ReservationOrdersOperations
-from ._transactions_operations import TransactionsOperations
-from ._transfers_operations import TransfersOperations
-from ._partner_transfers_operations import PartnerTransfersOperations
-from ._recipient_transfers_operations import RecipientTransfersOperations
+from typing import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from ._patch import * # pylint: disable=unused-wildcard-import
+
+from ._agreements_operations import AgreementsOperations # type: ignore
+from ._associated_tenants_operations import AssociatedTenantsOperations # type: ignore
+from ._available_balances_operations import AvailableBalancesOperations # type: ignore
+from ._billing_accounts_operations import BillingAccountsOperations # type: ignore
+from ._address_operations import AddressOperations # type: ignore
+from ._billing_permissions_operations import BillingPermissionsOperations # type: ignore
+from ._billing_profiles_operations import BillingProfilesOperations # type: ignore
+from ._billing_property_operations import BillingPropertyOperations # type: ignore
+from ._billing_requests_operations import BillingRequestsOperations # type: ignore
+from ._billing_role_assignments_operations import BillingRoleAssignmentsOperations # type: ignore
+from ._billing_role_definition_operations import BillingRoleDefinitionOperations # type: ignore
+from ._savings_plan_orders_operations import SavingsPlanOrdersOperations # type: ignore
+from ._savings_plans_operations import SavingsPlansOperations # type: ignore
+from ._billing_subscriptions_operations import BillingSubscriptionsOperations # type: ignore
+from ._billing_subscriptions_aliases_operations import BillingSubscriptionsAliasesOperations # type: ignore
+from ._customers_operations import CustomersOperations # type: ignore
+from ._departments_operations import DepartmentsOperations # type: ignore
+from ._enrollment_accounts_operations import EnrollmentAccountsOperations # type: ignore
+from ._invoices_operations import InvoicesOperations # type: ignore
+from ._invoice_sections_operations import InvoiceSectionsOperations # type: ignore
+from ._operations import Operations # type: ignore
+from ._payment_methods_operations import PaymentMethodsOperations # type: ignore
+from ._policies_operations import PoliciesOperations # type: ignore
+from ._products_operations import ProductsOperations # type: ignore
+from ._reservations_operations import ReservationsOperations # type: ignore
+from ._reservation_orders_operations import ReservationOrdersOperations # type: ignore
+from ._transactions_operations import TransactionsOperations # type: ignore
+from ._transfers_operations import TransfersOperations # type: ignore
+from ._partner_transfers_operations import PartnerTransfersOperations # type: ignore
+from ._recipient_transfers_operations import RecipientTransfersOperations # 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__ = [
@@ -73,5 +79,5 @@
"PartnerTransfersOperations",
"RecipientTransfersOperations",
]
-__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/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_address_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_address_operations.py
index 93394751345c..6d568a922801 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_address_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_address_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -30,7 +29,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]]
@@ -136,7 +135,7 @@ def validate(
:rtype: ~azure.mgmt.billing.models.AddressValidationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_agreements_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_agreements_operations.py
index d94929e73bd9..30cefbbe0557 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_agreements_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_agreements_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]]
@@ -138,7 +137,7 @@ def get(self, billing_account_name: str, agreement_name: str, **kwargs: Any) ->
:rtype: ~azure.mgmt.billing.models.Agreement
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -203,7 +202,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.AgreementListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_associated_tenants_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_associated_tenants_operations.py
index 20984e99a8a9..1ece9c66d42d 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_associated_tenants_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_associated_tenants_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]]
@@ -239,7 +238,7 @@ def __init__(self, *args, **kwargs):
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
def _delete_initial(self, billing_account_name: str, associated_tenant_name: str, **kwargs: Any) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -363,7 +362,7 @@ def get(self, billing_account_name: str, associated_tenant_name: str, **kwargs:
:rtype: ~azure.mgmt.billing.models.AssociatedTenant
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -412,7 +411,7 @@ def _create_or_update_initial(
parameters: Union[_models.AssociatedTenant, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -663,7 +662,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.AssociatedTenantListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py
index 10df377e8ad2..9cd463e7a6ce 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_available_balances_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, Optional, Type, TypeVar
+from typing import Any, Callable, Dict, Optional, TypeVar
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -29,7 +28,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]]
@@ -141,7 +140,7 @@ def get_by_billing_account(self, billing_account_name: str, **kwargs: Any) -> _m
:rtype: ~azure.mgmt.billing.models.AvailableBalance
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -202,7 +201,7 @@ def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.AvailableBalance
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py
index 7ab06ad69d78..32dcc6ab9c1d 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_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.
@@ -9,7 +9,7 @@
import datetime
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -37,7 +37,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]]
@@ -361,7 +361,7 @@ def __init__(self, *args, **kwargs):
def _add_payment_terms_initial(
self, billing_account_name: str, parameters: Union[List[_models.PaymentTerm], IO[bytes]], **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -552,7 +552,7 @@ def get_long_running_output(pipeline_response):
def _cancel_payment_terms_initial(
self, billing_account_name: str, parameters: datetime.datetime, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -690,7 +690,7 @@ def confirm_transition(self, billing_account_name: str, **kwargs: Any) -> _model
:rtype: ~azure.mgmt.billing.models.TransitionDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -759,7 +759,7 @@ def list_invoice_sections_by_create_subscription_permission( # pylint: disable=
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceSectionWithCreateSubPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -889,7 +889,7 @@ def validate_payment_terms(
:rtype: ~azure.mgmt.billing.models.PaymentTermsEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -955,7 +955,7 @@ def get(self, billing_account_name: str, **kwargs: Any) -> _models.BillingAccoun
:rtype: ~azure.mgmt.billing.models.BillingAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -999,7 +999,7 @@ def get(self, billing_account_name: str, **kwargs: Any) -> _models.BillingAccoun
def _update_initial(
self, billing_account_name: str, parameters: Union[_models.BillingAccountPatch, IO[bytes]], **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1263,7 +1263,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingAccountListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py
index 9152a8cecb06..efef6ffc0f57 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_permissions_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, List, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.exceptions import (
@@ -32,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]]
@@ -567,7 +567,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -651,7 +651,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -797,7 +797,7 @@ def check_access_by_billing_profile(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -876,7 +876,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1032,7 +1032,7 @@ def check_access_by_customer(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1112,7 +1112,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1268,7 +1268,7 @@ def check_access_by_invoice_section(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1390,7 +1390,7 @@ def check_access_by_billing_account(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1466,7 +1466,7 @@ def list_by_customer_at_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1551,7 +1551,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1697,7 +1697,7 @@ def check_access_by_department(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1774,7 +1774,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingPermissionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1920,7 +1920,7 @@ def check_access_by_enrollment_account(
:rtype: list[~azure.mgmt.billing.models.CheckAccessResponse]
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py
index c587239bf6d4..c19f9b4ed807 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_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]]
@@ -282,7 +281,7 @@ def validate_delete_eligibility(
:rtype: ~azure.mgmt.billing.models.DeleteBillingProfileEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -325,7 +324,7 @@ def validate_delete_eligibility(
return deserialized # type: ignore
def _delete_initial(self, billing_account_name: str, billing_profile_name: str, **kwargs: Any) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -451,7 +450,7 @@ def get(self, billing_account_name: str, billing_profile_name: str, **kwargs: An
:rtype: ~azure.mgmt.billing.models.BillingProfile
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -500,7 +499,7 @@ def _create_or_update_initial(
parameters: Union[_models.BillingProfile, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -759,7 +758,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingProfileListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_property_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_property_operations.py
index 086f98520f82..33e850219824 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_property_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_property_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
from azure.core.exceptions import (
ClientAuthenticationError,
@@ -30,7 +29,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]]
@@ -148,7 +147,7 @@ def get(
:rtype: ~azure.mgmt.billing.models.BillingProperty
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -252,7 +251,7 @@ def update(self, parameters: Union[_models.BillingProperty, IO[bytes]], **kwargs
:rtype: ~azure.mgmt.billing.models.BillingProperty
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py
index 0f8b0711c3b4..1e2c3ca180ef 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_requests_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]]
@@ -448,7 +448,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -570,7 +570,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -693,7 +693,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -810,7 +810,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -890,7 +890,7 @@ def get(self, billing_request_name: str, **kwargs: Any) -> _models.BillingReques
:rtype: ~azure.mgmt.billing.models.BillingRequest
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -934,7 +934,7 @@ def get(self, billing_request_name: str, **kwargs: Any) -> _models.BillingReques
def _create_or_update_initial(
self, billing_request_name: str, parameters: Union[_models.BillingRequest, IO[bytes]], **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1161,7 +1161,7 @@ def list_by_user(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRequestListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py
index f3d466758fb3..c665ce301892 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_assignments_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]]
@@ -1362,7 +1362,7 @@ def delete_by_billing_profile( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1423,7 +1423,7 @@ def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1507,7 +1507,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1579,7 +1579,7 @@ def _create_by_billing_profile_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1808,7 +1808,7 @@ def delete_by_customer( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1876,7 +1876,7 @@ def get_by_customer(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1963,7 +1963,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2037,7 +2037,7 @@ def _create_by_customer_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2258,7 +2258,7 @@ def _resolve_by_customer_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2425,7 +2425,7 @@ def delete_by_invoice_section( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2493,7 +2493,7 @@ def get_by_invoice_section(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2580,7 +2580,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2654,7 +2654,7 @@ def _create_by_invoice_section_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2875,7 +2875,7 @@ def _resolve_by_invoice_section_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3022,7 +3022,7 @@ def _resolve_by_billing_profile_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3176,7 +3176,7 @@ def delete_by_billing_account( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3234,7 +3234,7 @@ def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3283,7 +3283,7 @@ def _create_or_update_by_billing_account_initial( # pylint: disable=name-too-lo
parameters: Union[_models.BillingRoleAssignment, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3523,7 +3523,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3593,7 +3593,7 @@ def _create_by_billing_account_initial(
parameters: Union[_models.BillingRoleAssignmentProperties, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3799,7 +3799,7 @@ def delete_by_department( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3859,7 +3859,7 @@ def get_by_department(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -3910,7 +3910,7 @@ def _create_or_update_by_department_initial(
parameters: Union[_models.BillingRoleAssignment, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4148,7 +4148,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4231,7 +4231,7 @@ def delete_by_enrollment_account( # pylint: disable=inconsistent-return-stateme
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4291,7 +4291,7 @@ def get_by_enrollment_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleAssignment
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4342,7 +4342,7 @@ def _create_or_update_by_enrollment_account_initial( # pylint: disable=name-too
parameters: Union[_models.BillingRoleAssignment, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4580,7 +4580,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleAssignmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -4649,7 +4649,7 @@ def _resolve_by_billing_account_initial(
filter: Optional[str] = None,
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py
index 43f9403843d4..b6f082e07452 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_role_definition_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.
@@ -7,7 +7,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 +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, HttpResponse], T, Dict[str, Any]], Any]]
@@ -555,7 +555,7 @@ def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -624,7 +624,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -713,7 +713,7 @@ def get_by_customer(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -784,7 +784,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -874,7 +874,7 @@ def get_by_invoice_section(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -945,7 +945,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1027,7 +1027,7 @@ def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1093,7 +1093,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1174,7 +1174,7 @@ def get_by_department(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1242,7 +1242,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1324,7 +1324,7 @@ def get_by_enrollment_account(
:rtype: ~azure.mgmt.billing.models.BillingRoleDefinition
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1392,7 +1392,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingRoleDefinitionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_aliases_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_aliases_operations.py
index 9083cd014ecf..5101a13cb7f2 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_aliases_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_aliases_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]]
@@ -189,7 +188,7 @@ def get(self, billing_account_name: str, alias_name: str, **kwargs: Any) -> _mod
:rtype: ~azure.mgmt.billing.models.BillingSubscriptionAlias
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -238,7 +237,7 @@ def _create_or_update_initial(
parameters: Union[_models.BillingSubscriptionAlias, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -493,7 +492,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionAliasListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py
index fdccdbd48a82..98c64131a57a 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_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]]
@@ -724,7 +724,7 @@ def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingSubscription
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -829,7 +829,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -962,7 +962,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1096,7 +1096,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1174,7 +1174,7 @@ def _cancel_initial(
parameters: Union[_models.CancelSubscriptionRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1374,7 +1374,7 @@ def _merge_initial(
parameters: Union[_models.BillingSubscriptionMergeRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1581,7 +1581,7 @@ def _move_initial(
parameters: Union[_models.MoveBillingSubscriptionRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1792,7 +1792,7 @@ def _split_initial(
parameters: Union[_models.BillingSubscriptionSplitRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2080,7 +2080,7 @@ def validate_move_eligibility(
:rtype: ~azure.mgmt.billing.models.MoveBillingSubscriptionEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2137,7 +2137,7 @@ def validate_move_eligibility(
def _delete_initial(
self, billing_account_name: str, billing_subscription_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2268,7 +2268,7 @@ def get(
:rtype: ~azure.mgmt.billing.models.BillingSubscription
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2318,7 +2318,7 @@ def _update_initial(
parameters: Union[_models.BillingSubscriptionPatch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2580,7 +2580,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2711,7 +2711,7 @@ def list_by_customer_at_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -2833,7 +2833,7 @@ def list_by_enrollment_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.BillingSubscriptionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py
index e76216c1ec89..76bebb8b74c7 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_customers_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]]
@@ -263,7 +262,7 @@ def get(
:rtype: ~azure.mgmt.billing.models.Customer
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -361,7 +360,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.CustomerListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -446,7 +445,7 @@ def get_by_billing_account(self, billing_account_name: str, customer_name: str,
:rtype: ~azure.mgmt.billing.models.Customer
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -540,7 +539,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.CustomerListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py
index c0ea06a2ed7d..4af2d335f5e9 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_departments_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]]
@@ -154,7 +153,7 @@ def get(self, billing_account_name: str, department_name: str, **kwargs: Any) ->
:rtype: ~azure.mgmt.billing.models.Department
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -241,7 +240,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.DepartmentListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py
index ad55392a68d5..700f17417421 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_enrollment_accounts_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]]
@@ -260,7 +259,7 @@ def get_by_department(
:rtype: ~azure.mgmt.billing.models.EnrollmentAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -355,7 +354,7 @@ def list_by_department(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.EnrollmentAccountListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -439,7 +438,7 @@ def get(self, billing_account_name: str, enrollment_account_name: str, **kwargs:
:rtype: ~azure.mgmt.billing.models.EnrollmentAccount
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -530,7 +529,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.EnrollmentAccountListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py
index e9b0d4a3651b..d691f1928941 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_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]]
@@ -307,7 +306,7 @@ def validate_delete_eligibility(
:rtype: ~azure.mgmt.billing.models.DeleteInvoiceSectionEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -353,7 +352,7 @@ def validate_delete_eligibility(
def _delete_initial(
self, billing_account_name: str, billing_profile_name: str, invoice_section_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -489,7 +488,7 @@ def get(
:rtype: ~azure.mgmt.billing.models.InvoiceSection
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -540,7 +539,7 @@ def _create_or_update_initial(
parameters: Union[_models.InvoiceSection, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -807,7 +806,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceSectionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py
index b05d70fd69a9..ce0697e7814c 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_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.
@@ -9,7 +9,7 @@
import datetime
from io import IOBase
import sys
-from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload
+from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
@@ -37,7 +37,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]]
@@ -634,7 +634,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -710,7 +710,7 @@ def _download_documents_by_billing_account_initial( # pylint: disable=name-too-
parameters: Union[List[_models.DocumentDownloadRequest], IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -899,7 +899,7 @@ def get_long_running_output(pipeline_response):
)
def _amend_initial(self, billing_account_name: str, invoice_name: str, **kwargs: Any) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1011,7 +1011,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
def _download_by_billing_account_initial(
self, billing_account_name: str, invoice_name: str, document_name: Optional[str] = None, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1137,7 +1137,7 @@ def get_long_running_output(pipeline_response):
def _download_summary_by_billing_account_initial( # pylint: disable=name-too-long
self, billing_account_name: str, invoice_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1270,7 +1270,7 @@ def get_by_billing_account(self, billing_account_name: str, invoice_name: str, *
:rtype: ~azure.mgmt.billing.models.Invoice
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1369,7 +1369,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1441,7 +1441,7 @@ def get_next(next_link=None):
def _download_documents_by_billing_subscription_initial( # pylint: disable=name-too-long
self, parameters: Union[List[_models.DocumentDownloadRequest], IO[bytes]], **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1621,7 +1621,7 @@ def get_long_running_output(pipeline_response):
def _download_by_billing_subscription_initial( # pylint: disable=name-too-long
self, invoice_name: str, document_name: Optional[str] = None, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1755,7 +1755,7 @@ def get_by_billing_subscription(self, invoice_name: str, **kwargs: Any) -> _mode
:rtype: ~azure.mgmt.billing.models.Invoice
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1851,7 +1851,7 @@ def list_by_billing_subscription(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.InvoiceListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1934,7 +1934,7 @@ def get(self, invoice_name: str, **kwargs: Any) -> _models.Invoice:
:rtype: ~azure.mgmt.billing.models.Invoice
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_operations.py
index 0b3efbcb00d0..488fa1888c3d 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/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]]
@@ -94,7 +93,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/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py
index 9b0ae9ec1a43..eaf970a770d5 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_partner_transfers_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.exceptions import (
@@ -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, HttpResponse], T, Dict[str, Any]], Any]]
@@ -241,7 +240,7 @@ def get(
:rtype: ~azure.mgmt.billing.models.PartnerTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -384,7 +383,7 @@ def initiate(
:rtype: ~azure.mgmt.billing.models.PartnerTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -464,7 +463,7 @@ def cancel(
:rtype: ~azure.mgmt.billing.models.PartnerTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -532,7 +531,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PartnerTransferDetailsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_payment_methods_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_payment_methods_operations.py
index a29a2ab75baf..883c432c9384 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_payment_methods_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_payment_methods_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]]
@@ -266,7 +265,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PaymentMethodLinksListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -348,7 +347,7 @@ def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.PaymentMethodLink
: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 list_by_billing_account(self, billing_account_name: str, **kwargs: Any) -> I
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PaymentMethodsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -492,7 +491,7 @@ def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.PaymentMethod
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -551,7 +550,7 @@ def list_by_user(self, **kwargs: Any) -> Iterable["_models.PaymentMethod"]:
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.PaymentMethodsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -626,7 +625,7 @@ def delete_by_user( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -676,7 +675,7 @@ def get_by_user(self, payment_method_name: str, **kwargs: Any) -> _models.Paymen
:rtype: ~azure.mgmt.billing.models.PaymentMethod
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py
index abe7cb0faa0b..6913981f5e8f 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_policies_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, 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 +34,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]]
@@ -416,7 +416,7 @@ def get_by_customer(
:rtype: ~azure.mgmt.billing.models.CustomerPolicy
: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 _create_or_update_by_customer_initial(
parameters: Union[_models.CustomerPolicy, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -696,7 +696,7 @@ def get_by_billing_profile(
:rtype: ~azure.mgmt.billing.models.BillingProfilePolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -745,7 +745,7 @@ def _create_or_update_by_billing_profile_initial( # pylint: disable=name-too-lo
parameters: Union[_models.BillingProfilePolicy, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -962,7 +962,7 @@ def get_by_customer_at_billing_account(
:rtype: ~azure.mgmt.billing.models.CustomerPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1011,7 +1011,7 @@ def _create_or_update_by_customer_at_billing_account_initial( # pylint: disable
parameters: Union[_models.CustomerPolicy, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1223,7 +1223,7 @@ def get_by_billing_account(self, billing_account_name: str, **kwargs: Any) -> _m
:rtype: ~azure.mgmt.billing.models.BillingAccountPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1267,7 +1267,7 @@ def get_by_billing_account(self, billing_account_name: str, **kwargs: Any) -> _m
def _create_or_update_by_billing_account_initial( # pylint: disable=name-too-long
self, billing_account_name: str, parameters: Union[_models.BillingAccountPolicy, IO[bytes]], **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1457,7 +1457,7 @@ def get_by_subscription(self, **kwargs: Any) -> _models.SubscriptionPolicy:
:rtype: ~azure.mgmt.billing.models.SubscriptionPolicy
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py
index d1d67c5a133c..76ce716d43c4 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_products_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]]
@@ -492,7 +492,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -614,7 +614,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -735,7 +735,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -810,7 +810,7 @@ def _move_initial(
parameters: Union[_models.MoveProductRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1102,7 +1102,7 @@ def validate_move_eligibility(
:rtype: ~azure.mgmt.billing.models.MoveProductEligibilityResult
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1172,7 +1172,7 @@ def get(self, billing_account_name: str, product_name: str, **kwargs: Any) -> _m
:rtype: ~azure.mgmt.billing.models.Product
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1298,7 +1298,7 @@ def update(
:rtype: ~azure.mgmt.billing.models.Product
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1402,7 +1402,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ProductListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_recipient_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_recipient_transfers_operations.py
index c86ac7527872..21ba5086a2a2 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_recipient_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_recipient_transfers_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.exceptions import (
@@ -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, HttpResponse], T, Dict[str, Any]], Any]]
@@ -244,7 +243,7 @@ def accept(
:rtype: ~azure.mgmt.billing.models.RecipientTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -367,7 +366,7 @@ def validate(
:rtype: ~azure.mgmt.billing.models.ValidateTransferListResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -432,7 +431,7 @@ def decline(self, transfer_name: str, **kwargs: Any) -> _models.RecipientTransfe
:rtype: ~azure.mgmt.billing.models.RecipientTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -485,7 +484,7 @@ def get(self, transfer_name: str, **kwargs: Any) -> _models.RecipientTransferDet
:rtype: ~azure.mgmt.billing.models.RecipientTransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -543,7 +542,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.RecipientTransferDetails"]:
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.RecipientTransferDetailsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservation_orders_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservation_orders_operations.py
index de5aecd10441..d02f984c636d 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservation_orders_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservation_orders_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]]
@@ -158,7 +157,7 @@ def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.ReservationOrder
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -235,7 +234,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationOrderList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py
index bb795e9ea4e5..d7cf1f5d3401 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_reservations_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]]
@@ -332,7 +331,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -445,7 +444,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -539,7 +538,7 @@ def get_by_reservation_order(
:rtype: ~azure.mgmt.billing.models.Reservation
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -591,7 +590,7 @@ def _update_by_billing_account_initial(
body: Union[_models.Patch, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -816,7 +815,7 @@ def list_by_reservation_order(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ReservationList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plan_orders_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plan_orders_operations.py
index 80c9755c013a..abf737f3a5f0 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plan_orders_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plan_orders_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]]
@@ -155,7 +154,7 @@ def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.SavingsPlanOrderModel
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -231,7 +230,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SavingsPlanOrderModelList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plans_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plans_operations.py
index 47548d71bd47..9a53842b842d 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plans_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_savings_plans_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]]
@@ -290,7 +289,7 @@ def list_by_savings_plan_order(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SavingsPlanModelList] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -394,7 +393,7 @@ def list_by_billing_account(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.SavingsPlanModelListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -484,7 +483,7 @@ def get_by_billing_account(
:rtype: ~azure.mgmt.billing.models.SavingsPlanModel
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -536,7 +535,7 @@ def _update_by_billing_account_initial(
body: Union[_models.SavingsPlanUpdateRequest, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -821,7 +820,7 @@ def validate_update_by_billing_account(
:rtype: ~azure.mgmt.billing.models.SavingsPlanValidateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py
index 8742b2da003d..3a22d6a30646 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transactions_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 @@
# --------------------------------------------------------------------------
import datetime
import sys
-from typing import Any, Callable, Dict, Iterable, Iterator, Optional, Type, TypeVar, Union, cast
+from typing import Any, Callable, Dict, Iterable, Iterator, Optional, TypeVar, Union, cast
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]]
@@ -480,7 +480,7 @@ def list_by_customer(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -621,7 +621,7 @@ def list_by_invoice_section(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -759,7 +759,7 @@ def list_by_billing_profile(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -882,7 +882,7 @@ def list_by_invoice(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransactionListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -953,7 +953,7 @@ def get_next(next_link=None):
def _transactions_download_by_invoice_initial( # pylint: disable=name-too-long
self, billing_account_name: str, invoice_name: str, **kwargs: Any
) -> Iterator[bytes]:
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -1099,7 +1099,7 @@ def get_transaction_summary_by_invoice(
:rtype: ~azure.mgmt.billing.models.TransactionSummary
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py
index 411591bdfd08..bbc45bdec650 100644
--- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_transfers_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, Optional, Type, TypeVar, Union, overload
+from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.exceptions import (
@@ -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, HttpResponse], T, Dict[str, Any]], Any]]
@@ -249,7 +248,7 @@ def get(
:rtype: ~azure.mgmt.billing.models.TransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -392,7 +391,7 @@ def initiate(
:rtype: ~azure.mgmt.billing.models.TransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -472,7 +471,7 @@ def cancel(
:rtype: ~azure.mgmt.billing.models.TransferDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
@@ -539,7 +538,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.TransferDetailsListResult] = kwargs.pop("cls", None)
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/conftest.py b/sdk/billing/azure-mgmt-billing/generated_tests/conftest.py
index 0983e431431f..a6cb2273b451 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/conftest.py
+++ b/sdk/billing/azure-mgmt-billing/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):
billingmanagement_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000")
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations.py
index 465ef8a5be6d..651377a5e17f 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate(self, resource_group):
+ def test_address_validate(self, resource_group):
response = self.client.address.validate(
parameters={
"addressLine1": "str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations_async.py
index b5a6e8b670fe..94bfb4fa10bb 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_address_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate(self, resource_group):
+ async def test_address_validate(self, resource_group):
response = await self.client.address.validate(
parameters={
"addressLine1": "str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations.py
index 6eaa737bf5bc..097e03da8929 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_agreements_get(self, resource_group):
response = self.client.agreements.get(
billing_account_name="str",
agreement_name="str",
@@ -32,7 +32,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_agreements_list_by_billing_account(self, resource_group):
response = self.client.agreements.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations_async.py
index 90fd2d50faf5..07c692500d7f 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_agreements_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_agreements_get(self, resource_group):
response = await self.client.agreements.get(
billing_account_name="str",
agreement_name="str",
@@ -33,7 +33,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_agreements_list_by_billing_account(self, resource_group):
response = self.client.agreements.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations.py
index 74ad56e5193a..23a1d1790ff9 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_associated_tenants_begin_delete(self, resource_group):
response = self.client.associated_tenants.begin_delete(
billing_account_name="str",
associated_tenant_name="str",
@@ -32,7 +32,7 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_associated_tenants_get(self, resource_group):
response = self.client.associated_tenants.get(
billing_account_name="str",
associated_tenant_name="str",
@@ -44,7 +44,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_associated_tenants_begin_create_or_update(self, resource_group):
response = self.client.associated_tenants.begin_create_or_update(
billing_account_name="str",
associated_tenant_name="str",
@@ -78,7 +78,7 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_associated_tenants_list_by_billing_account(self, resource_group):
response = self.client.associated_tenants.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations_async.py
index c350e5778aee..17b38612c0ec 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_associated_tenants_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_associated_tenants_begin_delete(self, resource_group):
response = await (
await self.client.associated_tenants.begin_delete(
billing_account_name="str",
@@ -35,7 +35,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_associated_tenants_get(self, resource_group):
response = await self.client.associated_tenants.get(
billing_account_name="str",
associated_tenant_name="str",
@@ -47,7 +47,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_associated_tenants_begin_create_or_update(self, resource_group):
response = await (
await self.client.associated_tenants.begin_create_or_update(
billing_account_name="str",
@@ -83,7 +83,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_associated_tenants_list_by_billing_account(self, resource_group):
response = self.client.associated_tenants.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations.py
index b32a5c605da7..e72c5c734e3e 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_available_balances_get_by_billing_account(self, resource_group):
response = self.client.available_balances.get_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -31,7 +31,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_profile(self, resource_group):
+ def test_available_balances_get_by_billing_profile(self, resource_group):
response = self.client.available_balances.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations_async.py
index fbde62c95abc..66c3948e30e1 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_available_balances_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_available_balances_get_by_billing_account(self, resource_group):
response = await self.client.available_balances.get_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -32,7 +32,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_profile(self, resource_group):
+ async def test_available_balances_get_by_billing_profile(self, resource_group):
response = await self.client.available_balances.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations.py
index f822c04f7bf0..9a7099bdb8ef 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_add_payment_terms(self, resource_group):
+ def test_billing_accounts_begin_add_payment_terms(self, resource_group):
response = self.client.billing_accounts.begin_add_payment_terms(
billing_account_name="str",
parameters=[
@@ -34,7 +34,7 @@ def test_begin_add_payment_terms(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_cancel_payment_terms(self, resource_group):
+ def test_billing_accounts_begin_cancel_payment_terms(self, resource_group):
response = self.client.billing_accounts.begin_cancel_payment_terms(
billing_account_name="str",
parameters="2020-02-20 00:00:00",
@@ -46,7 +46,7 @@ def test_begin_cancel_payment_terms(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_confirm_transition(self, resource_group):
+ def test_billing_accounts_confirm_transition(self, resource_group):
response = self.client.billing_accounts.confirm_transition(
billing_account_name="str",
api_version="2024-04-01",
@@ -57,7 +57,7 @@ def test_confirm_transition(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_invoice_sections_by_create_subscription_permission(self, resource_group):
+ def test_billing_accounts_list_invoice_sections_by_create_subscription_permission(self, resource_group):
response = self.client.billing_accounts.list_invoice_sections_by_create_subscription_permission(
billing_account_name="str",
api_version="2024-04-01",
@@ -68,7 +68,7 @@ def test_list_invoice_sections_by_create_subscription_permission(self, resource_
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate_payment_terms(self, resource_group):
+ def test_billing_accounts_validate_payment_terms(self, resource_group):
response = self.client.billing_accounts.validate_payment_terms(
billing_account_name="str",
parameters=[
@@ -82,7 +82,7 @@ def test_validate_payment_terms(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_billing_accounts_get(self, resource_group):
response = self.client.billing_accounts.get(
billing_account_name="str",
api_version="2024-04-01",
@@ -93,7 +93,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_billing_accounts_begin_update(self, resource_group):
response = self.client.billing_accounts.begin_update(
billing_account_name="str",
parameters={
@@ -173,7 +173,7 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_billing_accounts_list(self, resource_group):
response = self.client.billing_accounts.list(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations_async.py
index b0260ac3af56..72d59fe978ca 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_accounts_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_add_payment_terms(self, resource_group):
+ async def test_billing_accounts_begin_add_payment_terms(self, resource_group):
response = await (
await self.client.billing_accounts.begin_add_payment_terms(
billing_account_name="str",
@@ -42,7 +42,7 @@ async def test_begin_add_payment_terms(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_cancel_payment_terms(self, resource_group):
+ async def test_billing_accounts_begin_cancel_payment_terms(self, resource_group):
response = await (
await self.client.billing_accounts.begin_cancel_payment_terms(
billing_account_name="str",
@@ -56,7 +56,7 @@ async def test_begin_cancel_payment_terms(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_confirm_transition(self, resource_group):
+ async def test_billing_accounts_confirm_transition(self, resource_group):
response = await self.client.billing_accounts.confirm_transition(
billing_account_name="str",
api_version="2024-04-01",
@@ -67,7 +67,7 @@ async def test_confirm_transition(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_invoice_sections_by_create_subscription_permission(self, resource_group):
+ async def test_billing_accounts_list_invoice_sections_by_create_subscription_permission(self, resource_group):
response = self.client.billing_accounts.list_invoice_sections_by_create_subscription_permission(
billing_account_name="str",
api_version="2024-04-01",
@@ -78,7 +78,7 @@ async def test_list_invoice_sections_by_create_subscription_permission(self, res
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate_payment_terms(self, resource_group):
+ async def test_billing_accounts_validate_payment_terms(self, resource_group):
response = await self.client.billing_accounts.validate_payment_terms(
billing_account_name="str",
parameters=[
@@ -92,7 +92,7 @@ async def test_validate_payment_terms(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_billing_accounts_get(self, resource_group):
response = await self.client.billing_accounts.get(
billing_account_name="str",
api_version="2024-04-01",
@@ -103,7 +103,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_billing_accounts_begin_update(self, resource_group):
response = await (
await self.client.billing_accounts.begin_update(
billing_account_name="str",
@@ -185,7 +185,7 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_billing_accounts_list(self, resource_group):
response = self.client.billing_accounts.list(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations.py
index 2f09642d2908..317cdd99142e 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_permissions_list_by_billing_account(self, resource_group):
response = self.client.billing_permissions.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -31,7 +31,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_billing_permissions_list_by_billing_profile(self, resource_group):
response = self.client.billing_permissions.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -43,7 +43,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_access_by_billing_profile(self, resource_group):
+ def test_billing_permissions_check_access_by_billing_profile(self, resource_group):
response = self.client.billing_permissions.check_access_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -56,7 +56,7 @@ def test_check_access_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_billing_permissions_list_by_customer(self, resource_group):
response = self.client.billing_permissions.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -69,7 +69,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_access_by_customer(self, resource_group):
+ def test_billing_permissions_check_access_by_customer(self, resource_group):
response = self.client.billing_permissions.check_access_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -83,7 +83,7 @@ def test_check_access_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_billing_permissions_list_by_invoice_section(self, resource_group):
response = self.client.billing_permissions.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -96,7 +96,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_access_by_invoice_section(self, resource_group):
+ def test_billing_permissions_check_access_by_invoice_section(self, resource_group):
response = self.client.billing_permissions.check_access_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -110,7 +110,7 @@ def test_check_access_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_access_by_billing_account(self, resource_group):
+ def test_billing_permissions_check_access_by_billing_account(self, resource_group):
response = self.client.billing_permissions.check_access_by_billing_account(
billing_account_name="str",
parameters={"actions": ["str"]},
@@ -122,7 +122,7 @@ def test_check_access_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer_at_billing_account(self, resource_group):
+ def test_billing_permissions_list_by_customer_at_billing_account(self, resource_group):
response = self.client.billing_permissions.list_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -134,7 +134,7 @@ def test_list_by_customer_at_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_department(self, resource_group):
+ def test_billing_permissions_list_by_department(self, resource_group):
response = self.client.billing_permissions.list_by_department(
billing_account_name="str",
department_name="str",
@@ -146,7 +146,7 @@ def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_access_by_department(self, resource_group):
+ def test_billing_permissions_check_access_by_department(self, resource_group):
response = self.client.billing_permissions.check_access_by_department(
billing_account_name="str",
department_name="str",
@@ -159,7 +159,7 @@ def test_check_access_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_enrollment_account(self, resource_group):
+ def test_billing_permissions_list_by_enrollment_account(self, resource_group):
response = self.client.billing_permissions.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -171,7 +171,7 @@ def test_list_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_check_access_by_enrollment_account(self, resource_group):
+ def test_billing_permissions_check_access_by_enrollment_account(self, resource_group):
response = self.client.billing_permissions.check_access_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations_async.py
index 690b91035cee..deb8ab454ce8 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_permissions_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_permissions_list_by_billing_account(self, resource_group):
response = self.client.billing_permissions.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -32,7 +32,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_billing_permissions_list_by_billing_profile(self, resource_group):
response = self.client.billing_permissions.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -44,7 +44,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_access_by_billing_profile(self, resource_group):
+ async def test_billing_permissions_check_access_by_billing_profile(self, resource_group):
response = await self.client.billing_permissions.check_access_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -57,7 +57,7 @@ async def test_check_access_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_billing_permissions_list_by_customer(self, resource_group):
response = self.client.billing_permissions.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -70,7 +70,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_access_by_customer(self, resource_group):
+ async def test_billing_permissions_check_access_by_customer(self, resource_group):
response = await self.client.billing_permissions.check_access_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -84,7 +84,7 @@ async def test_check_access_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_billing_permissions_list_by_invoice_section(self, resource_group):
response = self.client.billing_permissions.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -97,7 +97,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_access_by_invoice_section(self, resource_group):
+ async def test_billing_permissions_check_access_by_invoice_section(self, resource_group):
response = await self.client.billing_permissions.check_access_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -111,7 +111,7 @@ async def test_check_access_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_access_by_billing_account(self, resource_group):
+ async def test_billing_permissions_check_access_by_billing_account(self, resource_group):
response = await self.client.billing_permissions.check_access_by_billing_account(
billing_account_name="str",
parameters={"actions": ["str"]},
@@ -123,7 +123,7 @@ async def test_check_access_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer_at_billing_account(self, resource_group):
+ async def test_billing_permissions_list_by_customer_at_billing_account(self, resource_group):
response = self.client.billing_permissions.list_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -135,7 +135,7 @@ async def test_list_by_customer_at_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_department(self, resource_group):
+ async def test_billing_permissions_list_by_department(self, resource_group):
response = self.client.billing_permissions.list_by_department(
billing_account_name="str",
department_name="str",
@@ -147,7 +147,7 @@ async def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_access_by_department(self, resource_group):
+ async def test_billing_permissions_check_access_by_department(self, resource_group):
response = await self.client.billing_permissions.check_access_by_department(
billing_account_name="str",
department_name="str",
@@ -160,7 +160,7 @@ async def test_check_access_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_enrollment_account(self, resource_group):
+ async def test_billing_permissions_list_by_enrollment_account(self, resource_group):
response = self.client.billing_permissions.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -172,7 +172,7 @@ async def test_list_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_check_access_by_enrollment_account(self, resource_group):
+ async def test_billing_permissions_check_access_by_enrollment_account(self, resource_group):
response = await self.client.billing_permissions.check_access_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations.py
index 120d04703c36..e8eac9257f8f 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate_delete_eligibility(self, resource_group):
+ def test_billing_profiles_validate_delete_eligibility(self, resource_group):
response = self.client.billing_profiles.validate_delete_eligibility(
billing_account_name="str",
billing_profile_name="str",
@@ -32,7 +32,7 @@ def test_validate_delete_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_billing_profiles_begin_delete(self, resource_group):
response = self.client.billing_profiles.begin_delete(
billing_account_name="str",
billing_profile_name="str",
@@ -44,7 +44,7 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_billing_profiles_get(self, resource_group):
response = self.client.billing_profiles.get(
billing_account_name="str",
billing_profile_name="str",
@@ -56,7 +56,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_billing_profiles_begin_create_or_update(self, resource_group):
response = self.client.billing_profiles.begin_create_or_update(
billing_account_name="str",
billing_profile_name="str",
@@ -180,7 +180,7 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_profiles_list_by_billing_account(self, resource_group):
response = self.client.billing_profiles.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations_async.py
index c1bb6aa94329..492cb798a0ca 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_profiles_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate_delete_eligibility(self, resource_group):
+ async def test_billing_profiles_validate_delete_eligibility(self, resource_group):
response = await self.client.billing_profiles.validate_delete_eligibility(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ async def test_validate_delete_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_billing_profiles_begin_delete(self, resource_group):
response = await (
await self.client.billing_profiles.begin_delete(
billing_account_name="str",
@@ -47,7 +47,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_billing_profiles_get(self, resource_group):
response = await self.client.billing_profiles.get(
billing_account_name="str",
billing_profile_name="str",
@@ -59,7 +59,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_billing_profiles_begin_create_or_update(self, resource_group):
response = await (
await self.client.billing_profiles.begin_create_or_update(
billing_account_name="str",
@@ -185,7 +185,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_profiles_list_by_billing_account(self, resource_group):
response = self.client.billing_profiles.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations.py
index 9ef1866f7bc2..4382990943da 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_billing_property_get(self, resource_group):
response = self.client.billing_property.get(
api_version="2024-04-01",
)
@@ -30,7 +30,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_update(self, resource_group):
+ def test_billing_property_update(self, resource_group):
response = self.client.billing_property.update(
parameters={
"id": "str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations_async.py
index 34f8f015b4cd..738768ab2af3 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_property_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_billing_property_get(self, resource_group):
response = await self.client.billing_property.get(
api_version="2024-04-01",
)
@@ -31,7 +31,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_update(self, resource_group):
+ async def test_billing_property_update(self, resource_group):
response = await self.client.billing_property.update(
parameters={
"id": "str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations.py
index 4ceea849264d..8b12ab0c4ecb 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_billing_requests_list_by_billing_profile(self, resource_group):
response = self.client.billing_requests.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -32,7 +32,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_billing_requests_list_by_customer(self, resource_group):
response = self.client.billing_requests.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -45,7 +45,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_billing_requests_list_by_invoice_section(self, resource_group):
response = self.client.billing_requests.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -58,7 +58,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_requests_list_by_billing_account(self, resource_group):
response = self.client.billing_requests.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -69,7 +69,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_billing_requests_get(self, resource_group):
response = self.client.billing_requests.get(
billing_request_name="str",
api_version="2024-04-01",
@@ -80,7 +80,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_billing_requests_begin_create_or_update(self, resource_group):
response = self.client.billing_requests.begin_create_or_update(
billing_request_name="str",
parameters={
@@ -139,7 +139,7 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_user(self, resource_group):
+ def test_billing_requests_list_by_user(self, resource_group):
response = self.client.billing_requests.list_by_user(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations_async.py
index 0ff21dac2a32..1e19ae34544a 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_requests_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_billing_requests_list_by_billing_profile(self, resource_group):
response = self.client.billing_requests.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_billing_requests_list_by_customer(self, resource_group):
response = self.client.billing_requests.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_billing_requests_list_by_invoice_section(self, resource_group):
response = self.client.billing_requests.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -59,7 +59,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_requests_list_by_billing_account(self, resource_group):
response = self.client.billing_requests.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -70,7 +70,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_billing_requests_get(self, resource_group):
response = await self.client.billing_requests.get(
billing_request_name="str",
api_version="2024-04-01",
@@ -81,7 +81,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_billing_requests_begin_create_or_update(self, resource_group):
response = await (
await self.client.billing_requests.begin_create_or_update(
billing_request_name="str",
@@ -142,7 +142,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_user(self, resource_group):
+ async def test_billing_requests_list_by_user(self, resource_group):
response = self.client.billing_requests.list_by_user(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations.py
index 29643fa18348..aa255151ad74 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_billing_profile(self, resource_group):
+ def test_billing_role_assignments_delete_by_billing_profile(self, resource_group):
response = self.client.billing_role_assignments.delete_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ def test_delete_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_profile(self, resource_group):
+ def test_billing_role_assignments_get_by_billing_profile(self, resource_group):
response = self.client.billing_role_assignments.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_billing_role_assignments_list_by_billing_profile(self, resource_group):
response = self.client.billing_role_assignments.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -58,7 +58,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_by_billing_profile(self, resource_group):
+ def test_billing_role_assignments_begin_create_by_billing_profile(self, resource_group):
response = self.client.billing_role_assignments.begin_create_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -102,7 +102,7 @@ def test_begin_create_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_customer(self, resource_group):
+ def test_billing_role_assignments_delete_by_customer(self, resource_group):
response = self.client.billing_role_assignments.delete_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -116,7 +116,7 @@ def test_delete_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_customer(self, resource_group):
+ def test_billing_role_assignments_get_by_customer(self, resource_group):
response = self.client.billing_role_assignments.get_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -130,7 +130,7 @@ def test_get_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_billing_role_assignments_list_by_customer(self, resource_group):
response = self.client.billing_role_assignments.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -143,7 +143,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_by_customer(self, resource_group):
+ def test_billing_role_assignments_begin_create_by_customer(self, resource_group):
response = self.client.billing_role_assignments.begin_create_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -188,7 +188,7 @@ def test_begin_create_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_resolve_by_customer(self, resource_group):
+ def test_billing_role_assignments_begin_resolve_by_customer(self, resource_group):
response = self.client.billing_role_assignments.begin_resolve_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -201,7 +201,7 @@ def test_begin_resolve_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_invoice_section(self, resource_group):
+ def test_billing_role_assignments_delete_by_invoice_section(self, resource_group):
response = self.client.billing_role_assignments.delete_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -215,7 +215,7 @@ def test_delete_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_invoice_section(self, resource_group):
+ def test_billing_role_assignments_get_by_invoice_section(self, resource_group):
response = self.client.billing_role_assignments.get_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -229,7 +229,7 @@ def test_get_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_billing_role_assignments_list_by_invoice_section(self, resource_group):
response = self.client.billing_role_assignments.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -242,7 +242,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_by_invoice_section(self, resource_group):
+ def test_billing_role_assignments_begin_create_by_invoice_section(self, resource_group):
response = self.client.billing_role_assignments.begin_create_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -287,7 +287,7 @@ def test_begin_create_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_resolve_by_invoice_section(self, resource_group):
+ def test_billing_role_assignments_begin_resolve_by_invoice_section(self, resource_group):
response = self.client.billing_role_assignments.begin_resolve_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -300,7 +300,7 @@ def test_begin_resolve_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_resolve_by_billing_profile(self, resource_group):
+ def test_billing_role_assignments_begin_resolve_by_billing_profile(self, resource_group):
response = self.client.billing_role_assignments.begin_resolve_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -312,7 +312,7 @@ def test_begin_resolve_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_billing_account(self, resource_group):
+ def test_billing_role_assignments_delete_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.delete_by_billing_account(
billing_account_name="str",
billing_role_assignment_name="str",
@@ -324,7 +324,7 @@ def test_delete_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_billing_role_assignments_get_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.get_by_billing_account(
billing_account_name="str",
billing_role_assignment_name="str",
@@ -336,7 +336,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_billing_account(self, resource_group):
+ def test_billing_role_assignments_begin_create_or_update_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.begin_create_or_update_by_billing_account(
billing_account_name="str",
billing_role_assignment_name="str",
@@ -394,7 +394,7 @@ def test_begin_create_or_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_role_assignments_list_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -405,7 +405,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_by_billing_account(self, resource_group):
+ def test_billing_role_assignments_begin_create_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.begin_create_by_billing_account(
billing_account_name="str",
parameters={
@@ -448,7 +448,7 @@ def test_begin_create_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_department(self, resource_group):
+ def test_billing_role_assignments_delete_by_department(self, resource_group):
response = self.client.billing_role_assignments.delete_by_department(
billing_account_name="str",
department_name="str",
@@ -461,7 +461,7 @@ def test_delete_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_department(self, resource_group):
+ def test_billing_role_assignments_get_by_department(self, resource_group):
response = self.client.billing_role_assignments.get_by_department(
billing_account_name="str",
department_name="str",
@@ -474,7 +474,7 @@ def test_get_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_department(self, resource_group):
+ def test_billing_role_assignments_begin_create_or_update_by_department(self, resource_group):
response = self.client.billing_role_assignments.begin_create_or_update_by_department(
billing_account_name="str",
department_name="str",
@@ -533,7 +533,7 @@ def test_begin_create_or_update_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_department(self, resource_group):
+ def test_billing_role_assignments_list_by_department(self, resource_group):
response = self.client.billing_role_assignments.list_by_department(
billing_account_name="str",
department_name="str",
@@ -545,7 +545,7 @@ def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_enrollment_account(self, resource_group):
+ def test_billing_role_assignments_delete_by_enrollment_account(self, resource_group):
response = self.client.billing_role_assignments.delete_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -558,7 +558,7 @@ def test_delete_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_enrollment_account(self, resource_group):
+ def test_billing_role_assignments_get_by_enrollment_account(self, resource_group):
response = self.client.billing_role_assignments.get_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -571,7 +571,7 @@ def test_get_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_enrollment_account(self, resource_group):
+ def test_billing_role_assignments_begin_create_or_update_by_enrollment_account(self, resource_group):
response = self.client.billing_role_assignments.begin_create_or_update_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -630,7 +630,7 @@ def test_begin_create_or_update_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_enrollment_account(self, resource_group):
+ def test_billing_role_assignments_list_by_enrollment_account(self, resource_group):
response = self.client.billing_role_assignments.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -642,7 +642,7 @@ def test_list_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_resolve_by_billing_account(self, resource_group):
+ def test_billing_role_assignments_begin_resolve_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.begin_resolve_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations_async.py
index abe3997b5c0c..b5e45e5a0231 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_assignments_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_billing_profile(self, resource_group):
+ async def test_billing_role_assignments_delete_by_billing_profile(self, resource_group):
response = await self.client.billing_role_assignments.delete_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ async def test_delete_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_profile(self, resource_group):
+ async def test_billing_role_assignments_get_by_billing_profile(self, resource_group):
response = await self.client.billing_role_assignments.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -47,7 +47,7 @@ async def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_billing_role_assignments_list_by_billing_profile(self, resource_group):
response = self.client.billing_role_assignments.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -59,7 +59,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_by_billing_profile(self, resource_group):
+ async def test_billing_role_assignments_begin_create_by_billing_profile(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_by_billing_profile(
billing_account_name="str",
@@ -105,7 +105,7 @@ async def test_begin_create_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_customer(self, resource_group):
+ async def test_billing_role_assignments_delete_by_customer(self, resource_group):
response = await self.client.billing_role_assignments.delete_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -119,7 +119,7 @@ async def test_delete_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_customer(self, resource_group):
+ async def test_billing_role_assignments_get_by_customer(self, resource_group):
response = await self.client.billing_role_assignments.get_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -133,7 +133,7 @@ async def test_get_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_billing_role_assignments_list_by_customer(self, resource_group):
response = self.client.billing_role_assignments.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -146,7 +146,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_by_customer(self, resource_group):
+ async def test_billing_role_assignments_begin_create_by_customer(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_by_customer(
billing_account_name="str",
@@ -193,7 +193,7 @@ async def test_begin_create_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_resolve_by_customer(self, resource_group):
+ async def test_billing_role_assignments_begin_resolve_by_customer(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_resolve_by_customer(
billing_account_name="str",
@@ -208,7 +208,7 @@ async def test_begin_resolve_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_invoice_section(self, resource_group):
+ async def test_billing_role_assignments_delete_by_invoice_section(self, resource_group):
response = await self.client.billing_role_assignments.delete_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -222,7 +222,7 @@ async def test_delete_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_invoice_section(self, resource_group):
+ async def test_billing_role_assignments_get_by_invoice_section(self, resource_group):
response = await self.client.billing_role_assignments.get_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -236,7 +236,7 @@ async def test_get_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_billing_role_assignments_list_by_invoice_section(self, resource_group):
response = self.client.billing_role_assignments.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -249,7 +249,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_by_invoice_section(self, resource_group):
+ async def test_billing_role_assignments_begin_create_by_invoice_section(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_by_invoice_section(
billing_account_name="str",
@@ -296,7 +296,7 @@ async def test_begin_create_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_resolve_by_invoice_section(self, resource_group):
+ async def test_billing_role_assignments_begin_resolve_by_invoice_section(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_resolve_by_invoice_section(
billing_account_name="str",
@@ -311,7 +311,7 @@ async def test_begin_resolve_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_resolve_by_billing_profile(self, resource_group):
+ async def test_billing_role_assignments_begin_resolve_by_billing_profile(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_resolve_by_billing_profile(
billing_account_name="str",
@@ -325,7 +325,7 @@ async def test_begin_resolve_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_billing_account(self, resource_group):
+ async def test_billing_role_assignments_delete_by_billing_account(self, resource_group):
response = await self.client.billing_role_assignments.delete_by_billing_account(
billing_account_name="str",
billing_role_assignment_name="str",
@@ -337,7 +337,7 @@ async def test_delete_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_billing_role_assignments_get_by_billing_account(self, resource_group):
response = await self.client.billing_role_assignments.get_by_billing_account(
billing_account_name="str",
billing_role_assignment_name="str",
@@ -349,7 +349,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_billing_account(self, resource_group):
+ async def test_billing_role_assignments_begin_create_or_update_by_billing_account(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_or_update_by_billing_account(
billing_account_name="str",
@@ -409,7 +409,7 @@ async def test_begin_create_or_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_role_assignments_list_by_billing_account(self, resource_group):
response = self.client.billing_role_assignments.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -420,7 +420,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_by_billing_account(self, resource_group):
+ async def test_billing_role_assignments_begin_create_by_billing_account(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_by_billing_account(
billing_account_name="str",
@@ -465,7 +465,7 @@ async def test_begin_create_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_department(self, resource_group):
+ async def test_billing_role_assignments_delete_by_department(self, resource_group):
response = await self.client.billing_role_assignments.delete_by_department(
billing_account_name="str",
department_name="str",
@@ -478,7 +478,7 @@ async def test_delete_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_department(self, resource_group):
+ async def test_billing_role_assignments_get_by_department(self, resource_group):
response = await self.client.billing_role_assignments.get_by_department(
billing_account_name="str",
department_name="str",
@@ -491,7 +491,7 @@ async def test_get_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_department(self, resource_group):
+ async def test_billing_role_assignments_begin_create_or_update_by_department(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_or_update_by_department(
billing_account_name="str",
@@ -552,7 +552,7 @@ async def test_begin_create_or_update_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_department(self, resource_group):
+ async def test_billing_role_assignments_list_by_department(self, resource_group):
response = self.client.billing_role_assignments.list_by_department(
billing_account_name="str",
department_name="str",
@@ -564,7 +564,7 @@ async def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_enrollment_account(self, resource_group):
+ async def test_billing_role_assignments_delete_by_enrollment_account(self, resource_group):
response = await self.client.billing_role_assignments.delete_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -577,7 +577,7 @@ async def test_delete_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_enrollment_account(self, resource_group):
+ async def test_billing_role_assignments_get_by_enrollment_account(self, resource_group):
response = await self.client.billing_role_assignments.get_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -590,7 +590,7 @@ async def test_get_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_enrollment_account(self, resource_group):
+ async def test_billing_role_assignments_begin_create_or_update_by_enrollment_account(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_create_or_update_by_enrollment_account(
billing_account_name="str",
@@ -651,7 +651,7 @@ async def test_begin_create_or_update_by_enrollment_account(self, resource_group
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_enrollment_account(self, resource_group):
+ async def test_billing_role_assignments_list_by_enrollment_account(self, resource_group):
response = self.client.billing_role_assignments.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -663,7 +663,7 @@ async def test_list_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_resolve_by_billing_account(self, resource_group):
+ async def test_billing_role_assignments_begin_resolve_by_billing_account(self, resource_group):
response = await (
await self.client.billing_role_assignments.begin_resolve_by_billing_account(
billing_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations.py
index 64d941e5ac51..f200a339f016 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_profile(self, resource_group):
+ def test_billing_role_definition_get_by_billing_profile(self, resource_group):
response = self.client.billing_role_definition.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_billing_role_definition_list_by_billing_profile(self, resource_group):
response = self.client.billing_role_definition.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -45,7 +45,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_customer(self, resource_group):
+ def test_billing_role_definition_get_by_customer(self, resource_group):
response = self.client.billing_role_definition.get_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -59,7 +59,7 @@ def test_get_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_billing_role_definition_list_by_customer(self, resource_group):
response = self.client.billing_role_definition.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -72,7 +72,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_invoice_section(self, resource_group):
+ def test_billing_role_definition_get_by_invoice_section(self, resource_group):
response = self.client.billing_role_definition.get_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -86,7 +86,7 @@ def test_get_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_billing_role_definition_list_by_invoice_section(self, resource_group):
response = self.client.billing_role_definition.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -99,7 +99,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_billing_role_definition_get_by_billing_account(self, resource_group):
response = self.client.billing_role_definition.get_by_billing_account(
billing_account_name="str",
role_definition_name="str",
@@ -111,7 +111,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_role_definition_list_by_billing_account(self, resource_group):
response = self.client.billing_role_definition.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -122,7 +122,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_department(self, resource_group):
+ def test_billing_role_definition_get_by_department(self, resource_group):
response = self.client.billing_role_definition.get_by_department(
billing_account_name="str",
department_name="str",
@@ -135,7 +135,7 @@ def test_get_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_department(self, resource_group):
+ def test_billing_role_definition_list_by_department(self, resource_group):
response = self.client.billing_role_definition.list_by_department(
billing_account_name="str",
department_name="str",
@@ -147,7 +147,7 @@ def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_enrollment_account(self, resource_group):
+ def test_billing_role_definition_get_by_enrollment_account(self, resource_group):
response = self.client.billing_role_definition.get_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -160,7 +160,7 @@ def test_get_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_enrollment_account(self, resource_group):
+ def test_billing_role_definition_list_by_enrollment_account(self, resource_group):
response = self.client.billing_role_definition.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations_async.py
index b4a293a27c5f..60805b869895 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_role_definition_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_profile(self, resource_group):
+ async def test_billing_role_definition_get_by_billing_profile(self, resource_group):
response = await self.client.billing_role_definition.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ async def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_billing_role_definition_list_by_billing_profile(self, resource_group):
response = self.client.billing_role_definition.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_customer(self, resource_group):
+ async def test_billing_role_definition_get_by_customer(self, resource_group):
response = await self.client.billing_role_definition.get_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -60,7 +60,7 @@ async def test_get_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_billing_role_definition_list_by_customer(self, resource_group):
response = self.client.billing_role_definition.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -73,7 +73,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_invoice_section(self, resource_group):
+ async def test_billing_role_definition_get_by_invoice_section(self, resource_group):
response = await self.client.billing_role_definition.get_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -87,7 +87,7 @@ async def test_get_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_billing_role_definition_list_by_invoice_section(self, resource_group):
response = self.client.billing_role_definition.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -100,7 +100,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_billing_role_definition_get_by_billing_account(self, resource_group):
response = await self.client.billing_role_definition.get_by_billing_account(
billing_account_name="str",
role_definition_name="str",
@@ -112,7 +112,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_role_definition_list_by_billing_account(self, resource_group):
response = self.client.billing_role_definition.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -123,7 +123,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_department(self, resource_group):
+ async def test_billing_role_definition_get_by_department(self, resource_group):
response = await self.client.billing_role_definition.get_by_department(
billing_account_name="str",
department_name="str",
@@ -136,7 +136,7 @@ async def test_get_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_department(self, resource_group):
+ async def test_billing_role_definition_list_by_department(self, resource_group):
response = self.client.billing_role_definition.list_by_department(
billing_account_name="str",
department_name="str",
@@ -148,7 +148,7 @@ async def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_enrollment_account(self, resource_group):
+ async def test_billing_role_definition_get_by_enrollment_account(self, resource_group):
response = await self.client.billing_role_definition.get_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
@@ -161,7 +161,7 @@ async def test_get_by_enrollment_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_enrollment_account(self, resource_group):
+ async def test_billing_role_definition_list_by_enrollment_account(self, resource_group):
response = self.client.billing_role_definition.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations.py
index bdd90d445a7f..36d98bd934ec 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_billing_subscriptions_aliases_get(self, resource_group):
response = self.client.billing_subscriptions_aliases.get(
billing_account_name="str",
alias_name="str",
@@ -32,7 +32,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_billing_subscriptions_aliases_begin_create_or_update(self, resource_group):
response = self.client.billing_subscriptions_aliases.begin_create_or_update(
billing_account_name="str",
alias_name="str",
@@ -112,7 +112,7 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_subscriptions_aliases_list_by_billing_account(self, resource_group):
response = self.client.billing_subscriptions_aliases.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations_async.py
index 8eb20d371076..87dc3fff4be0 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_aliases_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_billing_subscriptions_aliases_get(self, resource_group):
response = await self.client.billing_subscriptions_aliases.get(
billing_account_name="str",
alias_name="str",
@@ -33,7 +33,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_billing_subscriptions_aliases_begin_create_or_update(self, resource_group):
response = await (
await self.client.billing_subscriptions_aliases.begin_create_or_update(
billing_account_name="str",
@@ -115,7 +115,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_subscriptions_aliases_list_by_billing_account(self, resource_group):
response = self.client.billing_subscriptions_aliases.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations.py
index 922221ecb7e4..785c6377babb 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_profile(self, resource_group):
+ def test_billing_subscriptions_get_by_billing_profile(self, resource_group):
response = self.client.billing_subscriptions.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_billing_subscriptions_list_by_billing_profile(self, resource_group):
response = self.client.billing_subscriptions.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -45,7 +45,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_billing_subscriptions_list_by_customer(self, resource_group):
response = self.client.billing_subscriptions.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -58,7 +58,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_billing_subscriptions_list_by_invoice_section(self, resource_group):
response = self.client.billing_subscriptions.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -71,7 +71,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_cancel(self, resource_group):
+ def test_billing_subscriptions_begin_cancel(self, resource_group):
response = self.client.billing_subscriptions.begin_cancel(
billing_account_name="str",
billing_subscription_name="str",
@@ -84,7 +84,7 @@ def test_begin_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_merge(self, resource_group):
+ def test_billing_subscriptions_begin_merge(self, resource_group):
response = self.client.billing_subscriptions.begin_merge(
billing_account_name="str",
billing_subscription_name="str",
@@ -97,7 +97,7 @@ def test_begin_merge(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_move(self, resource_group):
+ def test_billing_subscriptions_begin_move(self, resource_group):
response = self.client.billing_subscriptions.begin_move(
billing_account_name="str",
billing_subscription_name="str",
@@ -110,7 +110,7 @@ def test_begin_move(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_split(self, resource_group):
+ def test_billing_subscriptions_begin_split(self, resource_group):
response = self.client.billing_subscriptions.begin_split(
billing_account_name="str",
billing_subscription_name="str",
@@ -129,7 +129,7 @@ def test_begin_split(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate_move_eligibility(self, resource_group):
+ def test_billing_subscriptions_validate_move_eligibility(self, resource_group):
response = self.client.billing_subscriptions.validate_move_eligibility(
billing_account_name="str",
billing_subscription_name="str",
@@ -142,7 +142,7 @@ def test_validate_move_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_billing_subscriptions_begin_delete(self, resource_group):
response = self.client.billing_subscriptions.begin_delete(
billing_account_name="str",
billing_subscription_name="str",
@@ -154,7 +154,7 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_billing_subscriptions_get(self, resource_group):
response = self.client.billing_subscriptions.get(
billing_account_name="str",
billing_subscription_name="str",
@@ -166,7 +166,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update(self, resource_group):
+ def test_billing_subscriptions_begin_update(self, resource_group):
response = self.client.billing_subscriptions.begin_update(
billing_account_name="str",
billing_subscription_name="str",
@@ -245,7 +245,7 @@ def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_billing_subscriptions_list_by_billing_account(self, resource_group):
response = self.client.billing_subscriptions.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -256,7 +256,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer_at_billing_account(self, resource_group):
+ def test_billing_subscriptions_list_by_customer_at_billing_account(self, resource_group):
response = self.client.billing_subscriptions.list_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -268,7 +268,7 @@ def test_list_by_customer_at_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_enrollment_account(self, resource_group):
+ def test_billing_subscriptions_list_by_enrollment_account(self, resource_group):
response = self.client.billing_subscriptions.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations_async.py
index 4a4e19375128..b60676f0d47c 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_billing_subscriptions_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_profile(self, resource_group):
+ async def test_billing_subscriptions_get_by_billing_profile(self, resource_group):
response = await self.client.billing_subscriptions.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ async def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_billing_subscriptions_list_by_billing_profile(self, resource_group):
response = self.client.billing_subscriptions.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_billing_subscriptions_list_by_customer(self, resource_group):
response = self.client.billing_subscriptions.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -59,7 +59,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_billing_subscriptions_list_by_invoice_section(self, resource_group):
response = self.client.billing_subscriptions.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -72,7 +72,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_cancel(self, resource_group):
+ async def test_billing_subscriptions_begin_cancel(self, resource_group):
response = await (
await self.client.billing_subscriptions.begin_cancel(
billing_account_name="str",
@@ -87,7 +87,7 @@ async def test_begin_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_merge(self, resource_group):
+ async def test_billing_subscriptions_begin_merge(self, resource_group):
response = await (
await self.client.billing_subscriptions.begin_merge(
billing_account_name="str",
@@ -102,7 +102,7 @@ async def test_begin_merge(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_move(self, resource_group):
+ async def test_billing_subscriptions_begin_move(self, resource_group):
response = await (
await self.client.billing_subscriptions.begin_move(
billing_account_name="str",
@@ -117,7 +117,7 @@ async def test_begin_move(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_split(self, resource_group):
+ async def test_billing_subscriptions_begin_split(self, resource_group):
response = await (
await self.client.billing_subscriptions.begin_split(
billing_account_name="str",
@@ -138,7 +138,7 @@ async def test_begin_split(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate_move_eligibility(self, resource_group):
+ async def test_billing_subscriptions_validate_move_eligibility(self, resource_group):
response = await self.client.billing_subscriptions.validate_move_eligibility(
billing_account_name="str",
billing_subscription_name="str",
@@ -151,7 +151,7 @@ async def test_validate_move_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_billing_subscriptions_begin_delete(self, resource_group):
response = await (
await self.client.billing_subscriptions.begin_delete(
billing_account_name="str",
@@ -165,7 +165,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_billing_subscriptions_get(self, resource_group):
response = await self.client.billing_subscriptions.get(
billing_account_name="str",
billing_subscription_name="str",
@@ -177,7 +177,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update(self, resource_group):
+ async def test_billing_subscriptions_begin_update(self, resource_group):
response = await (
await self.client.billing_subscriptions.begin_update(
billing_account_name="str",
@@ -258,7 +258,7 @@ async def test_begin_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_billing_subscriptions_list_by_billing_account(self, resource_group):
response = self.client.billing_subscriptions.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -269,7 +269,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer_at_billing_account(self, resource_group):
+ async def test_billing_subscriptions_list_by_customer_at_billing_account(self, resource_group):
response = self.client.billing_subscriptions.list_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -281,7 +281,7 @@ async def test_list_by_customer_at_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_enrollment_account(self, resource_group):
+ async def test_billing_subscriptions_list_by_enrollment_account(self, resource_group):
response = self.client.billing_subscriptions.list_by_enrollment_account(
billing_account_name="str",
enrollment_account_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations.py
index c5c3eecfbd5a..3ecabe4038af 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_customers_get(self, resource_group):
response = self.client.customers.get(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_customers_list_by_billing_profile(self, resource_group):
response = self.client.customers.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -45,7 +45,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_customers_get_by_billing_account(self, resource_group):
response = self.client.customers.get_by_billing_account(
billing_account_name="str",
customer_name="str",
@@ -57,7 +57,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_customers_list_by_billing_account(self, resource_group):
response = self.client.customers.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations_async.py
index 8347d58c43fb..01d36570cf02 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_customers_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_customers_get(self, resource_group):
response = await self.client.customers.get(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_customers_list_by_billing_profile(self, resource_group):
response = self.client.customers.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_customers_get_by_billing_account(self, resource_group):
response = await self.client.customers.get_by_billing_account(
billing_account_name="str",
customer_name="str",
@@ -58,7 +58,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_customers_list_by_billing_account(self, resource_group):
response = self.client.customers.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations.py
index 4811eba46811..9d31d28e7ac3 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_departments_get(self, resource_group):
response = self.client.departments.get(
billing_account_name="str",
department_name="str",
@@ -32,7 +32,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_departments_list_by_billing_account(self, resource_group):
response = self.client.departments.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations_async.py
index 1eca690c3e69..038a4e4a079b 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_departments_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_departments_get(self, resource_group):
response = await self.client.departments.get(
billing_account_name="str",
department_name="str",
@@ -33,7 +33,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_departments_list_by_billing_account(self, resource_group):
response = self.client.departments.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations.py
index 5b0bca524218..637c5c8bbb6f 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_department(self, resource_group):
+ def test_enrollment_accounts_get_by_department(self, resource_group):
response = self.client.enrollment_accounts.get_by_department(
billing_account_name="str",
department_name="str",
@@ -33,7 +33,7 @@ def test_get_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_department(self, resource_group):
+ def test_enrollment_accounts_list_by_department(self, resource_group):
response = self.client.enrollment_accounts.list_by_department(
billing_account_name="str",
department_name="str",
@@ -45,7 +45,7 @@ def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_enrollment_accounts_get(self, resource_group):
response = self.client.enrollment_accounts.get(
billing_account_name="str",
enrollment_account_name="str",
@@ -57,7 +57,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_enrollment_accounts_list_by_billing_account(self, resource_group):
response = self.client.enrollment_accounts.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations_async.py
index ad850cbcfab4..17c8560871c5 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_enrollment_accounts_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_department(self, resource_group):
+ async def test_enrollment_accounts_get_by_department(self, resource_group):
response = await self.client.enrollment_accounts.get_by_department(
billing_account_name="str",
department_name="str",
@@ -34,7 +34,7 @@ async def test_get_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_department(self, resource_group):
+ async def test_enrollment_accounts_list_by_department(self, resource_group):
response = self.client.enrollment_accounts.list_by_department(
billing_account_name="str",
department_name="str",
@@ -46,7 +46,7 @@ async def test_list_by_department(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_enrollment_accounts_get(self, resource_group):
response = await self.client.enrollment_accounts.get(
billing_account_name="str",
enrollment_account_name="str",
@@ -58,7 +58,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_enrollment_accounts_list_by_billing_account(self, resource_group):
response = self.client.enrollment_accounts.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations.py
index 5a2b2ad14a60..49e855bb84d1 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate_delete_eligibility(self, resource_group):
+ def test_invoice_sections_validate_delete_eligibility(self, resource_group):
response = self.client.invoice_sections.validate_delete_eligibility(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ def test_validate_delete_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_delete(self, resource_group):
+ def test_invoice_sections_begin_delete(self, resource_group):
response = self.client.invoice_sections.begin_delete(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_invoice_sections_get(self, resource_group):
response = self.client.invoice_sections.get(
billing_account_name="str",
billing_profile_name="str",
@@ -59,7 +59,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_invoice_sections_begin_create_or_update(self, resource_group):
response = self.client.invoice_sections.begin_create_or_update(
billing_account_name="str",
billing_profile_name="str",
@@ -95,7 +95,7 @@ def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_invoice_sections_list_by_billing_profile(self, resource_group):
response = self.client.invoice_sections.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations_async.py
index e5c1fe1e112c..eb3ffb9b1499 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoice_sections_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate_delete_eligibility(self, resource_group):
+ async def test_invoice_sections_validate_delete_eligibility(self, resource_group):
response = await self.client.invoice_sections.validate_delete_eligibility(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ async def test_validate_delete_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_delete(self, resource_group):
+ async def test_invoice_sections_begin_delete(self, resource_group):
response = await (
await self.client.invoice_sections.begin_delete(
billing_account_name="str",
@@ -49,7 +49,7 @@ async def test_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_invoice_sections_get(self, resource_group):
response = await self.client.invoice_sections.get(
billing_account_name="str",
billing_profile_name="str",
@@ -62,7 +62,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_invoice_sections_begin_create_or_update(self, resource_group):
response = await (
await self.client.invoice_sections.begin_create_or_update(
billing_account_name="str",
@@ -100,7 +100,7 @@ async def test_begin_create_or_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_invoice_sections_list_by_billing_profile(self, resource_group):
response = self.client.invoice_sections.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations.py
index ef5816bd643f..1629e580c5b6 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_invoices_list_by_billing_profile(self, resource_group):
response = self.client.invoices.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -32,7 +32,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_download_documents_by_billing_account(self, resource_group):
+ def test_invoices_begin_download_documents_by_billing_account(self, resource_group):
response = self.client.invoices.begin_download_documents_by_billing_account(
billing_account_name="str",
parameters=[{"documentName": "str", "invoiceName": "str"}],
@@ -44,7 +44,7 @@ def test_begin_download_documents_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_amend(self, resource_group):
+ def test_invoices_begin_amend(self, resource_group):
response = self.client.invoices.begin_amend(
billing_account_name="str",
invoice_name="str",
@@ -56,7 +56,7 @@ def test_begin_amend(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_download_by_billing_account(self, resource_group):
+ def test_invoices_begin_download_by_billing_account(self, resource_group):
response = self.client.invoices.begin_download_by_billing_account(
billing_account_name="str",
invoice_name="str",
@@ -68,7 +68,7 @@ def test_begin_download_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_download_summary_by_billing_account(self, resource_group):
+ def test_invoices_begin_download_summary_by_billing_account(self, resource_group):
response = self.client.invoices.begin_download_summary_by_billing_account(
billing_account_name="str",
invoice_name="str",
@@ -80,7 +80,7 @@ def test_begin_download_summary_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_invoices_get_by_billing_account(self, resource_group):
response = self.client.invoices.get_by_billing_account(
billing_account_name="str",
invoice_name="str",
@@ -92,7 +92,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_invoices_list_by_billing_account(self, resource_group):
response = self.client.invoices.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -103,7 +103,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_download_documents_by_billing_subscription(self, resource_group):
+ def test_invoices_begin_download_documents_by_billing_subscription(self, resource_group):
response = self.client.invoices.begin_download_documents_by_billing_subscription(
parameters=[{"documentName": "str", "invoiceName": "str"}],
api_version="2024-04-01",
@@ -114,7 +114,7 @@ def test_begin_download_documents_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_download_by_billing_subscription(self, resource_group):
+ def test_invoices_begin_download_by_billing_subscription(self, resource_group):
response = self.client.invoices.begin_download_by_billing_subscription(
invoice_name="str",
api_version="2024-04-01",
@@ -125,7 +125,7 @@ def test_begin_download_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_subscription(self, resource_group):
+ def test_invoices_get_by_billing_subscription(self, resource_group):
response = self.client.invoices.get_by_billing_subscription(
invoice_name="str",
api_version="2024-04-01",
@@ -136,7 +136,7 @@ def test_get_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_subscription(self, resource_group):
+ def test_invoices_list_by_billing_subscription(self, resource_group):
response = self.client.invoices.list_by_billing_subscription(
api_version="2024-04-01",
)
@@ -146,7 +146,7 @@ def test_list_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_invoices_get(self, resource_group):
response = self.client.invoices.get(
invoice_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations_async.py
index 4fd7b66662da..6cc72f2664bf 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_invoices_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_invoices_list_by_billing_profile(self, resource_group):
response = self.client.invoices.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_download_documents_by_billing_account(self, resource_group):
+ async def test_invoices_begin_download_documents_by_billing_account(self, resource_group):
response = await (
await self.client.invoices.begin_download_documents_by_billing_account(
billing_account_name="str",
@@ -47,7 +47,7 @@ async def test_begin_download_documents_by_billing_account(self, resource_group)
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_amend(self, resource_group):
+ async def test_invoices_begin_amend(self, resource_group):
response = await (
await self.client.invoices.begin_amend(
billing_account_name="str",
@@ -61,7 +61,7 @@ async def test_begin_amend(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_download_by_billing_account(self, resource_group):
+ async def test_invoices_begin_download_by_billing_account(self, resource_group):
response = await (
await self.client.invoices.begin_download_by_billing_account(
billing_account_name="str",
@@ -75,7 +75,7 @@ async def test_begin_download_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_download_summary_by_billing_account(self, resource_group):
+ async def test_invoices_begin_download_summary_by_billing_account(self, resource_group):
response = await (
await self.client.invoices.begin_download_summary_by_billing_account(
billing_account_name="str",
@@ -89,7 +89,7 @@ async def test_begin_download_summary_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_invoices_get_by_billing_account(self, resource_group):
response = await self.client.invoices.get_by_billing_account(
billing_account_name="str",
invoice_name="str",
@@ -101,7 +101,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_invoices_list_by_billing_account(self, resource_group):
response = self.client.invoices.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -112,7 +112,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_download_documents_by_billing_subscription(self, resource_group):
+ async def test_invoices_begin_download_documents_by_billing_subscription(self, resource_group):
response = await (
await self.client.invoices.begin_download_documents_by_billing_subscription(
parameters=[{"documentName": "str", "invoiceName": "str"}],
@@ -125,7 +125,7 @@ async def test_begin_download_documents_by_billing_subscription(self, resource_g
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_download_by_billing_subscription(self, resource_group):
+ async def test_invoices_begin_download_by_billing_subscription(self, resource_group):
response = await (
await self.client.invoices.begin_download_by_billing_subscription(
invoice_name="str",
@@ -138,7 +138,7 @@ async def test_begin_download_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_subscription(self, resource_group):
+ async def test_invoices_get_by_billing_subscription(self, resource_group):
response = await self.client.invoices.get_by_billing_subscription(
invoice_name="str",
api_version="2024-04-01",
@@ -149,7 +149,7 @@ async def test_get_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_subscription(self, resource_group):
+ async def test_invoices_list_by_billing_subscription(self, resource_group):
response = self.client.invoices.list_by_billing_subscription(
api_version="2024-04-01",
)
@@ -159,7 +159,7 @@ async def test_list_by_billing_subscription(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_invoices_get(self, resource_group):
response = await self.client.invoices.get(
invoice_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations.py
index c5cedb9989cf..4c1c5f3405dc 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations.py
@@ -20,7 +20,7 @@ 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-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations_async.py
index 5620a2ec1245..032d43dc87fb 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_operations_async.py
@@ -21,7 +21,7 @@ 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-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations.py
index 44fdf0939d5a..4676739d8d92 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_partner_transfers_get(self, resource_group):
response = self.client.partner_transfers.get(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_initiate(self, resource_group):
+ def test_partner_transfers_initiate(self, resource_group):
response = self.client.partner_transfers.initiate(
billing_account_name="str",
billing_profile_name="str",
@@ -49,7 +49,7 @@ def test_initiate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_cancel(self, resource_group):
+ def test_partner_transfers_cancel(self, resource_group):
response = self.client.partner_transfers.cancel(
billing_account_name="str",
billing_profile_name="str",
@@ -63,7 +63,7 @@ def test_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_partner_transfers_list(self, resource_group):
response = self.client.partner_transfers.list(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations_async.py
index 10330b9511b9..365870627942 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_partner_transfers_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_partner_transfers_get(self, resource_group):
response = await self.client.partner_transfers.get(
billing_account_name="str",
billing_profile_name="str",
@@ -35,7 +35,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_initiate(self, resource_group):
+ async def test_partner_transfers_initiate(self, resource_group):
response = await self.client.partner_transfers.initiate(
billing_account_name="str",
billing_profile_name="str",
@@ -50,7 +50,7 @@ async def test_initiate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_cancel(self, resource_group):
+ async def test_partner_transfers_cancel(self, resource_group):
response = await self.client.partner_transfers.cancel(
billing_account_name="str",
billing_profile_name="str",
@@ -64,7 +64,7 @@ async def test_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_partner_transfers_list(self, resource_group):
response = self.client.partner_transfers.list(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations.py
index c62066146e20..5e6d4e0ebd0e 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_payment_methods_list_by_billing_profile(self, resource_group):
response = self.client.payment_methods.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -32,7 +32,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_profile(self, resource_group):
+ def test_payment_methods_get_by_billing_profile(self, resource_group):
response = self.client.payment_methods.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -45,7 +45,7 @@ def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_payment_methods_list_by_billing_account(self, resource_group):
response = self.client.payment_methods.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -56,7 +56,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_payment_methods_get_by_billing_account(self, resource_group):
response = self.client.payment_methods.get_by_billing_account(
billing_account_name="str",
payment_method_name="str",
@@ -68,7 +68,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_user(self, resource_group):
+ def test_payment_methods_list_by_user(self, resource_group):
response = self.client.payment_methods.list_by_user(
api_version="2024-04-01",
)
@@ -78,7 +78,7 @@ def test_list_by_user(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_delete_by_user(self, resource_group):
+ def test_payment_methods_delete_by_user(self, resource_group):
response = self.client.payment_methods.delete_by_user(
payment_method_name="str",
api_version="2024-04-01",
@@ -89,7 +89,7 @@ def test_delete_by_user(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_user(self, resource_group):
+ def test_payment_methods_get_by_user(self, resource_group):
response = self.client.payment_methods.get_by_user(
payment_method_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations_async.py
index e2c39b8a6c21..102878c34a3a 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_payment_methods_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_payment_methods_list_by_billing_profile(self, resource_group):
response = self.client.payment_methods.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_profile(self, resource_group):
+ async def test_payment_methods_get_by_billing_profile(self, resource_group):
response = await self.client.payment_methods.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ async def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_payment_methods_list_by_billing_account(self, resource_group):
response = self.client.payment_methods.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -57,7 +57,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_payment_methods_get_by_billing_account(self, resource_group):
response = await self.client.payment_methods.get_by_billing_account(
billing_account_name="str",
payment_method_name="str",
@@ -69,7 +69,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_user(self, resource_group):
+ async def test_payment_methods_list_by_user(self, resource_group):
response = self.client.payment_methods.list_by_user(
api_version="2024-04-01",
)
@@ -79,7 +79,7 @@ async def test_list_by_user(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_delete_by_user(self, resource_group):
+ async def test_payment_methods_delete_by_user(self, resource_group):
response = await self.client.payment_methods.delete_by_user(
payment_method_name="str",
api_version="2024-04-01",
@@ -90,7 +90,7 @@ async def test_delete_by_user(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_user(self, resource_group):
+ async def test_payment_methods_get_by_user(self, resource_group):
response = await self.client.payment_methods.get_by_user(
payment_method_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations.py
index 3c953572ad9e..f35ceafb72f9 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_customer(self, resource_group):
+ def test_policies_get_by_customer(self, resource_group):
response = self.client.policies.get_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ def test_get_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_customer(self, resource_group):
+ def test_policies_begin_create_or_update_by_customer(self, resource_group):
response = self.client.policies.begin_create_or_update_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -66,7 +66,7 @@ def test_begin_create_or_update_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_profile(self, resource_group):
+ def test_policies_get_by_billing_profile(self, resource_group):
response = self.client.policies.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -78,7 +78,7 @@ def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_billing_profile(self, resource_group):
+ def test_policies_begin_create_or_update_by_billing_profile(self, resource_group):
response = self.client.policies.begin_create_or_update_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -118,7 +118,7 @@ def test_begin_create_or_update_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_customer_at_billing_account(self, resource_group):
+ def test_policies_get_by_customer_at_billing_account(self, resource_group):
response = self.client.policies.get_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -130,7 +130,7 @@ def test_get_by_customer_at_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_customer_at_billing_account(self, resource_group):
+ def test_policies_begin_create_or_update_by_customer_at_billing_account(self, resource_group):
response = self.client.policies.begin_create_or_update_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -161,7 +161,7 @@ def test_begin_create_or_update_by_customer_at_billing_account(self, resource_gr
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_policies_get_by_billing_account(self, resource_group):
response = self.client.policies.get_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -172,7 +172,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_create_or_update_by_billing_account(self, resource_group):
+ def test_policies_begin_create_or_update_by_billing_account(self, resource_group):
response = self.client.policies.begin_create_or_update_by_billing_account(
billing_account_name="str",
parameters={
@@ -209,7 +209,7 @@ def test_begin_create_or_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_subscription(self, resource_group):
+ def test_policies_get_by_subscription(self, resource_group):
response = self.client.policies.get_by_subscription(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations_async.py
index ffd95719302c..de4336493e29 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_policies_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_customer(self, resource_group):
+ async def test_policies_get_by_customer(self, resource_group):
response = await self.client.policies.get_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -35,7 +35,7 @@ async def test_get_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_customer(self, resource_group):
+ async def test_policies_begin_create_or_update_by_customer(self, resource_group):
response = await (
await self.client.policies.begin_create_or_update_by_customer(
billing_account_name="str",
@@ -69,7 +69,7 @@ async def test_begin_create_or_update_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_profile(self, resource_group):
+ async def test_policies_get_by_billing_profile(self, resource_group):
response = await self.client.policies.get_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -81,7 +81,7 @@ async def test_get_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_billing_profile(self, resource_group):
+ async def test_policies_begin_create_or_update_by_billing_profile(self, resource_group):
response = await (
await self.client.policies.begin_create_or_update_by_billing_profile(
billing_account_name="str",
@@ -123,7 +123,7 @@ async def test_begin_create_or_update_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_customer_at_billing_account(self, resource_group):
+ async def test_policies_get_by_customer_at_billing_account(self, resource_group):
response = await self.client.policies.get_by_customer_at_billing_account(
billing_account_name="str",
customer_name="str",
@@ -135,7 +135,7 @@ async def test_get_by_customer_at_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_customer_at_billing_account(self, resource_group):
+ async def test_policies_begin_create_or_update_by_customer_at_billing_account(self, resource_group):
response = await (
await self.client.policies.begin_create_or_update_by_customer_at_billing_account(
billing_account_name="str",
@@ -168,7 +168,7 @@ async def test_begin_create_or_update_by_customer_at_billing_account(self, resou
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_policies_get_by_billing_account(self, resource_group):
response = await self.client.policies.get_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -179,7 +179,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_create_or_update_by_billing_account(self, resource_group):
+ async def test_policies_begin_create_or_update_by_billing_account(self, resource_group):
response = await (
await self.client.policies.begin_create_or_update_by_billing_account(
billing_account_name="str",
@@ -218,7 +218,7 @@ async def test_begin_create_or_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_subscription(self, resource_group):
+ async def test_policies_get_by_subscription(self, resource_group):
response = await self.client.policies.get_by_subscription(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations.py
index 8d1cad280775..f1fd59bac048 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_products_list_by_invoice_section(self, resource_group):
response = self.client.products.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -33,7 +33,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_products_list_by_billing_profile(self, resource_group):
response = self.client.products.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -45,7 +45,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_products_list_by_customer(self, resource_group):
response = self.client.products.list_by_customer(
billing_account_name="str",
customer_name="str",
@@ -57,7 +57,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_move(self, resource_group):
+ def test_products_begin_move(self, resource_group):
response = self.client.products.begin_move(
billing_account_name="str",
product_name="str",
@@ -70,7 +70,7 @@ def test_begin_move(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate_move_eligibility(self, resource_group):
+ def test_products_validate_move_eligibility(self, resource_group):
response = self.client.products.validate_move_eligibility(
billing_account_name="str",
product_name="str",
@@ -83,7 +83,7 @@ def test_validate_move_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_products_get(self, resource_group):
response = self.client.products.get(
billing_account_name="str",
product_name="str",
@@ -95,7 +95,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_update(self, resource_group):
+ def test_products_update(self, resource_group):
response = self.client.products.update(
billing_account_name="str",
product_name="str",
@@ -145,7 +145,7 @@ def test_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_products_list_by_billing_account(self, resource_group):
response = self.client.products.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations_async.py
index 8092cdfa122c..48babcea83ea 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_products_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_products_list_by_invoice_section(self, resource_group):
response = self.client.products.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_products_list_by_billing_profile(self, resource_group):
response = self.client.products.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -46,7 +46,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_products_list_by_customer(self, resource_group):
response = self.client.products.list_by_customer(
billing_account_name="str",
customer_name="str",
@@ -58,7 +58,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_move(self, resource_group):
+ async def test_products_begin_move(self, resource_group):
response = await (
await self.client.products.begin_move(
billing_account_name="str",
@@ -73,7 +73,7 @@ async def test_begin_move(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate_move_eligibility(self, resource_group):
+ async def test_products_validate_move_eligibility(self, resource_group):
response = await self.client.products.validate_move_eligibility(
billing_account_name="str",
product_name="str",
@@ -86,7 +86,7 @@ async def test_validate_move_eligibility(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_products_get(self, resource_group):
response = await self.client.products.get(
billing_account_name="str",
product_name="str",
@@ -98,7 +98,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_update(self, resource_group):
+ async def test_products_update(self, resource_group):
response = await self.client.products.update(
billing_account_name="str",
product_name="str",
@@ -148,7 +148,7 @@ async def test_update(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_products_list_by_billing_account(self, resource_group):
response = self.client.products.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations.py
index aeeefd0fe741..dea7abf30740 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_accept(self, resource_group):
+ def test_recipient_transfers_accept(self, resource_group):
response = self.client.recipient_transfers.accept(
transfer_name="str",
parameters={"productDetails": [{"productId": "str", "productType": "str"}]},
@@ -32,7 +32,7 @@ def test_accept(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate(self, resource_group):
+ def test_recipient_transfers_validate(self, resource_group):
response = self.client.recipient_transfers.validate(
transfer_name="str",
parameters={"productDetails": [{"productId": "str", "productType": "str"}]},
@@ -44,7 +44,7 @@ def test_validate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_decline(self, resource_group):
+ def test_recipient_transfers_decline(self, resource_group):
response = self.client.recipient_transfers.decline(
transfer_name="str",
api_version="2024-04-01",
@@ -55,7 +55,7 @@ def test_decline(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_recipient_transfers_get(self, resource_group):
response = self.client.recipient_transfers.get(
transfer_name="str",
api_version="2024-04-01",
@@ -66,7 +66,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_recipient_transfers_list(self, resource_group):
response = self.client.recipient_transfers.list(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations_async.py
index fdc9aba80781..efc795bc6ac7 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_recipient_transfers_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_accept(self, resource_group):
+ async def test_recipient_transfers_accept(self, resource_group):
response = await self.client.recipient_transfers.accept(
transfer_name="str",
parameters={"productDetails": [{"productId": "str", "productType": "str"}]},
@@ -33,7 +33,7 @@ async def test_accept(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate(self, resource_group):
+ async def test_recipient_transfers_validate(self, resource_group):
response = await self.client.recipient_transfers.validate(
transfer_name="str",
parameters={"productDetails": [{"productId": "str", "productType": "str"}]},
@@ -45,7 +45,7 @@ async def test_validate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_decline(self, resource_group):
+ async def test_recipient_transfers_decline(self, resource_group):
response = await self.client.recipient_transfers.decline(
transfer_name="str",
api_version="2024-04-01",
@@ -56,7 +56,7 @@ async def test_decline(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_recipient_transfers_get(self, resource_group):
response = await self.client.recipient_transfers.get(
transfer_name="str",
api_version="2024-04-01",
@@ -67,7 +67,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_recipient_transfers_list(self, resource_group):
response = self.client.recipient_transfers.list(
api_version="2024-04-01",
)
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations.py
index 40f8b960fee7..14600480794e 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_reservation_orders_get_by_billing_account(self, resource_group):
response = self.client.reservation_orders.get_by_billing_account(
billing_account_name="str",
reservation_order_id="str",
@@ -32,7 +32,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_reservation_orders_list_by_billing_account(self, resource_group):
response = self.client.reservation_orders.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations_async.py
index bdbc7f3ae7e6..728e5f2e8c77 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservation_orders_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_reservation_orders_get_by_billing_account(self, resource_group):
response = await self.client.reservation_orders.get_by_billing_account(
billing_account_name="str",
reservation_order_id="str",
@@ -33,7 +33,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_reservation_orders_list_by_billing_account(self, resource_group):
response = self.client.reservation_orders.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations.py
index 2051747f1de8..f6be97a0e101 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_reservations_list_by_billing_account(self, resource_group):
response = self.client.reservations.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -31,7 +31,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_reservations_list_by_billing_profile(self, resource_group):
response = self.client.reservations.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -43,7 +43,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_reservation_order(self, resource_group):
+ def test_reservations_get_by_reservation_order(self, resource_group):
response = self.client.reservations.get_by_reservation_order(
billing_account_name="str",
reservation_order_id="str",
@@ -56,7 +56,7 @@ def test_get_by_reservation_order(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update_by_billing_account(self, resource_group):
+ def test_reservations_begin_update_by_billing_account(self, resource_group):
response = self.client.reservations.begin_update_by_billing_account(
billing_account_name="str",
reservation_order_id="str",
@@ -107,7 +107,7 @@ def test_begin_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_reservation_order(self, resource_group):
+ def test_reservations_list_by_reservation_order(self, resource_group):
response = self.client.reservations.list_by_reservation_order(
billing_account_name="str",
reservation_order_id="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations_async.py
index 90639f313958..9a5d0bebc044 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_reservations_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_reservations_list_by_billing_account(self, resource_group):
response = self.client.reservations.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -32,7 +32,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_reservations_list_by_billing_profile(self, resource_group):
response = self.client.reservations.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -44,7 +44,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_reservation_order(self, resource_group):
+ async def test_reservations_get_by_reservation_order(self, resource_group):
response = await self.client.reservations.get_by_reservation_order(
billing_account_name="str",
reservation_order_id="str",
@@ -57,7 +57,7 @@ async def test_get_by_reservation_order(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update_by_billing_account(self, resource_group):
+ async def test_reservations_begin_update_by_billing_account(self, resource_group):
response = await (
await self.client.reservations.begin_update_by_billing_account(
billing_account_name="str",
@@ -110,7 +110,7 @@ async def test_begin_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_reservation_order(self, resource_group):
+ async def test_reservations_list_by_reservation_order(self, resource_group):
response = self.client.reservations.list_by_reservation_order(
billing_account_name="str",
reservation_order_id="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations.py
index ce9d8c94d243..718a38ecc02e 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_savings_plan_orders_get_by_billing_account(self, resource_group):
response = self.client.savings_plan_orders.get_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
@@ -32,7 +32,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_savings_plan_orders_list_by_billing_account(self, resource_group):
response = self.client.savings_plan_orders.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations_async.py
index 558c9d2d8b7d..65d14e4f049f 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plan_orders_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_savings_plan_orders_get_by_billing_account(self, resource_group):
response = await self.client.savings_plan_orders.get_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
@@ -33,7 +33,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_savings_plan_orders_list_by_billing_account(self, resource_group):
response = self.client.savings_plan_orders.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations.py
index 885ea3925037..abab30e8d601 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_savings_plan_order(self, resource_group):
+ def test_savings_plans_list_by_savings_plan_order(self, resource_group):
response = self.client.savings_plans.list_by_savings_plan_order(
billing_account_name="str",
savings_plan_order_id="str",
@@ -32,7 +32,7 @@ def test_list_by_savings_plan_order(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_account(self, resource_group):
+ def test_savings_plans_list_by_billing_account(self, resource_group):
response = self.client.savings_plans.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -43,7 +43,7 @@ def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_by_billing_account(self, resource_group):
+ def test_savings_plans_get_by_billing_account(self, resource_group):
response = self.client.savings_plans.get_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
@@ -56,7 +56,7 @@ def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_update_by_billing_account(self, resource_group):
+ def test_savings_plans_begin_update_by_billing_account(self, resource_group):
response = self.client.savings_plans.begin_update_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
@@ -104,7 +104,7 @@ def test_begin_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_validate_update_by_billing_account(self, resource_group):
+ def test_savings_plans_validate_update_by_billing_account(self, resource_group):
response = self.client.savings_plans.validate_update_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations_async.py
index f0f529f4817e..f5f25cddd7a2 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_savings_plans_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_savings_plan_order(self, resource_group):
+ async def test_savings_plans_list_by_savings_plan_order(self, resource_group):
response = self.client.savings_plans.list_by_savings_plan_order(
billing_account_name="str",
savings_plan_order_id="str",
@@ -33,7 +33,7 @@ async def test_list_by_savings_plan_order(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_account(self, resource_group):
+ async def test_savings_plans_list_by_billing_account(self, resource_group):
response = self.client.savings_plans.list_by_billing_account(
billing_account_name="str",
api_version="2024-04-01",
@@ -44,7 +44,7 @@ async def test_list_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_by_billing_account(self, resource_group):
+ async def test_savings_plans_get_by_billing_account(self, resource_group):
response = await self.client.savings_plans.get_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
@@ -57,7 +57,7 @@ async def test_get_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_update_by_billing_account(self, resource_group):
+ async def test_savings_plans_begin_update_by_billing_account(self, resource_group):
response = await (
await self.client.savings_plans.begin_update_by_billing_account(
billing_account_name="str",
@@ -107,7 +107,7 @@ async def test_begin_update_by_billing_account(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_validate_update_by_billing_account(self, resource_group):
+ async def test_savings_plans_validate_update_by_billing_account(self, resource_group):
response = await self.client.savings_plans.validate_update_by_billing_account(
billing_account_name="str",
savings_plan_order_id="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations.py
index 4d775af78eb6..f9daf1850186 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_customer(self, resource_group):
+ def test_transactions_list_by_customer(self, resource_group):
response = self.client.transactions.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -36,7 +36,7 @@ def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice_section(self, resource_group):
+ def test_transactions_list_by_invoice_section(self, resource_group):
response = self.client.transactions.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -52,7 +52,7 @@ def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_billing_profile(self, resource_group):
+ def test_transactions_list_by_billing_profile(self, resource_group):
response = self.client.transactions.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -67,7 +67,7 @@ def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list_by_invoice(self, resource_group):
+ def test_transactions_list_by_invoice(self, resource_group):
response = self.client.transactions.list_by_invoice(
billing_account_name="str",
invoice_name="str",
@@ -79,7 +79,7 @@ def test_list_by_invoice(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_begin_transactions_download_by_invoice(self, resource_group):
+ def test_transactions_begin_transactions_download_by_invoice(self, resource_group):
response = self.client.transactions.begin_transactions_download_by_invoice(
billing_account_name="str",
invoice_name="str",
@@ -91,7 +91,7 @@ def test_begin_transactions_download_by_invoice(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get_transaction_summary_by_invoice(self, resource_group):
+ def test_transactions_get_transaction_summary_by_invoice(self, resource_group):
response = self.client.transactions.get_transaction_summary_by_invoice(
billing_account_name="str",
invoice_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations_async.py
index bed203e4169e..b3d212b50394 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transactions_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_customer(self, resource_group):
+ async def test_transactions_list_by_customer(self, resource_group):
response = self.client.transactions.list_by_customer(
billing_account_name="str",
billing_profile_name="str",
@@ -37,7 +37,7 @@ async def test_list_by_customer(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice_section(self, resource_group):
+ async def test_transactions_list_by_invoice_section(self, resource_group):
response = self.client.transactions.list_by_invoice_section(
billing_account_name="str",
billing_profile_name="str",
@@ -53,7 +53,7 @@ async def test_list_by_invoice_section(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_billing_profile(self, resource_group):
+ async def test_transactions_list_by_billing_profile(self, resource_group):
response = self.client.transactions.list_by_billing_profile(
billing_account_name="str",
billing_profile_name="str",
@@ -68,7 +68,7 @@ async def test_list_by_billing_profile(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list_by_invoice(self, resource_group):
+ async def test_transactions_list_by_invoice(self, resource_group):
response = self.client.transactions.list_by_invoice(
billing_account_name="str",
invoice_name="str",
@@ -80,7 +80,7 @@ async def test_list_by_invoice(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_begin_transactions_download_by_invoice(self, resource_group):
+ async def test_transactions_begin_transactions_download_by_invoice(self, resource_group):
response = await (
await self.client.transactions.begin_transactions_download_by_invoice(
billing_account_name="str",
@@ -94,7 +94,7 @@ async def test_begin_transactions_download_by_invoice(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get_transaction_summary_by_invoice(self, resource_group):
+ async def test_transactions_get_transaction_summary_by_invoice(self, resource_group):
response = await self.client.transactions.get_transaction_summary_by_invoice(
billing_account_name="str",
invoice_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations.py
index eb30fd968a1c..56448a783ee7 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations.py
@@ -20,7 +20,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_get(self, resource_group):
+ def test_transfers_get(self, resource_group):
response = self.client.transfers.get(
billing_account_name="str",
billing_profile_name="str",
@@ -34,7 +34,7 @@ def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_initiate(self, resource_group):
+ def test_transfers_initiate(self, resource_group):
response = self.client.transfers.initiate(
billing_account_name="str",
billing_profile_name="str",
@@ -49,7 +49,7 @@ def test_initiate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_cancel(self, resource_group):
+ def test_transfers_cancel(self, resource_group):
response = self.client.transfers.cancel(
billing_account_name="str",
billing_profile_name="str",
@@ -63,7 +63,7 @@ def test_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_list(self, resource_group):
+ def test_transfers_list(self, resource_group):
response = self.client.transfers.list(
billing_account_name="str",
billing_profile_name="str",
diff --git a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations_async.py b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations_async.py
index bec2b12b1941..7d3643c0b5b9 100644
--- a/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations_async.py
+++ b/sdk/billing/azure-mgmt-billing/generated_tests/test_billing_management_transfers_operations_async.py
@@ -21,7 +21,7 @@ def setup_method(self, method):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_get(self, resource_group):
+ async def test_transfers_get(self, resource_group):
response = await self.client.transfers.get(
billing_account_name="str",
billing_profile_name="str",
@@ -35,7 +35,7 @@ async def test_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_initiate(self, resource_group):
+ async def test_transfers_initiate(self, resource_group):
response = await self.client.transfers.initiate(
billing_account_name="str",
billing_profile_name="str",
@@ -50,7 +50,7 @@ async def test_initiate(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_cancel(self, resource_group):
+ async def test_transfers_cancel(self, resource_group):
response = await self.client.transfers.cancel(
billing_account_name="str",
billing_profile_name="str",
@@ -64,7 +64,7 @@ async def test_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_list(self, resource_group):
+ async def test_transfers_list(self, resource_group):
response = self.client.transfers.list(
billing_account_name="str",
billing_profile_name="str",