From ffa50aca7b965765ac1c9b7a772226079bdb164c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 8 Jul 2026 06:28:38 +0000 Subject: [PATCH] [typespec-python] Regenerate tests from microsoft/typespec PR #11178 --- .../core/hierarchybuilding/models/_models.py | 2 +- .../core/hierarchybuilding/types.py | 2 +- .../generated_samples/basic.py | 4 +- .../spread/aio/operations/_operations.py | 6 +- .../spread/operations/_operations.py | 6 +- .../payload/pageable/models/_models.py | 6 +- .../payload-xml/payload/xml/models/_models.py | 156 +++++++++--------- .../test_nested_discriminator.py | 4 +- .../test_nested_discriminator_async.py | 4 +- .../nesteddiscriminator/models/_models.py | 4 +- .../model/nesteddiscriminator/types.py | 4 +- .../test_single_discriminator.py | 4 +- .../test_single_discriminator_async.py | 4 +- .../typeddict/models/_models.py | 2 +- .../singlediscriminator/typeddict/types.py | 2 +- .../test_single_discriminator.py | 4 +- .../test_single_discriminator_async.py | 4 +- .../singlediscriminator/models/_models.py | 2 +- .../model/singlediscriminator/types.py | 2 +- .../noauth/union/_configuration.py | 2 +- .../noauth/union/aio/_configuration.py | 2 +- .../authentication/oauth2/_configuration.py | 2 +- .../oauth2/aio/_configuration.py | 2 +- .../authentication/union/_configuration.py | 2 +- .../union/aio/_configuration.py | 2 +- .../alias/aio/operations/_operations.py | 6 +- .../spread/alias/operations/_operations.py | 6 +- .../payload/pageable/models/_models.py | 6 +- .../payload-xml/payload/xml/models/_models.py | 156 +++++++++--------- .../authentication/union/_configuration.py | 2 +- .../union/aio/_configuration.py | 2 +- .../nesteddiscriminator/models/_models.py | 4 +- .../model/nesteddiscriminator/types.py | 4 +- .../typeddict/models/_models.py | 2 +- .../singlediscriminator/typeddict/types.py | 2 +- .../singlediscriminator/models/_models.py | 2 +- .../model/singlediscriminator/types.py | 2 +- 37 files changed, 214 insertions(+), 214 deletions(-) diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py index df042fdee4a6..be7a3b74715b 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py @@ -17,7 +17,7 @@ class Animal(_Model): """Animal. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Dog, Pet + Pet, Dog :ivar kind: The kind of animal. Required. Default value is None. :vartype kind: str diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/types.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/types.py index c9ea3d12d7ae..f66f2f4fc31d 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/types.py @@ -34,4 +34,4 @@ class Dog(TypedDict, total=False): Pet = Union[Dog] -Animal = Union[Dog, Pet] +Animal = Union[Pet, Dog] diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-example-basic/generated_samples/basic.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-example-basic/generated_samples/basic.py index 8fc737423438..a1f85bfe2003 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-example-basic/generated_samples/basic.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/azure-example-basic/generated_samples/basic.py @@ -21,10 +21,10 @@ def main(): response = client.basic_action( body={ + "stringProperty": "text", + "modelProperty": {"int32Property": 1, "float32Property": 1.5, "enumProperty": "EnumValue1"}, "arrayProperty": ["item"], - "modelProperty": {"enumProperty": "EnumValue1", "float32Property": 1.5, "int32Property": 1}, "recordProperty": {"record": "value"}, - "stringProperty": "text", }, query_param="query", header_param="header", diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/aio/operations/_operations.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/aio/operations/_operations.py index e104d992eace..c4266c598101 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/aio/operations/_operations.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/aio/operations/_operations.py @@ -1176,10 +1176,10 @@ async def spread_with_multiple_parameters( if required_int_list is _Unset: raise TypeError("missing required argument: required_int_list") body = { + "requiredString": required_string, "optionalInt": optional_int, - "optionalStringList": optional_string_list, "requiredIntList": required_int_list, - "requiredString": required_string, + "optionalStringList": optional_string_list, } body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" @@ -1338,7 +1338,7 @@ async def spread_parameter_with_inner_alias( raise TypeError("missing required argument: name") if age is _Unset: raise TypeError("missing required argument: age") - body = {"age": age, "name": name} + body = {"name": name, "age": age} body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" _content = None diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/operations/_operations.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/operations/_operations.py index 9b21c38f9aad..e269dd3b2991 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/operations/_operations.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/parameters-spread/parameters/spread/operations/_operations.py @@ -1360,10 +1360,10 @@ def spread_with_multiple_parameters( # pylint: disable=inconsistent-return-stat if required_int_list is _Unset: raise TypeError("missing required argument: required_int_list") body = { + "requiredString": required_string, "optionalInt": optional_int, - "optionalStringList": optional_string_list, "requiredIntList": required_int_list, - "requiredString": required_string, + "optionalStringList": optional_string_list, } body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" @@ -1522,7 +1522,7 @@ def spread_parameter_with_inner_alias( # pylint: disable=inconsistent-return-st raise TypeError("missing required argument: name") if age is _Unset: raise TypeError("missing required argument: age") - body = {"age": age, "name": name} + body = {"name": name, "age": age} body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" _content = None diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-pageable/payload/pageable/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-pageable/payload/pageable/models/_models.py index 6e16a3aa49df..36c16c7f0944 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-pageable/payload/pageable/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-pageable/payload/pageable/models/_models.py @@ -56,18 +56,18 @@ class XmlPet(_Model): id: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "Id", "text": False, "unwrapped": False}, + xml={"name": "Id", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" name: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "Name", "text": False, "unwrapped": False}, + xml={"name": "Name", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "Pet", "text": False, "unwrapped": False} + _xml = {"name": "Pet", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-xml/payload/xml/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-xml/payload/xml/models/_models.py index 309420a63a06..5a32650958fc 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-xml/payload/xml/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/payload-xml/payload/xml/models/_models.py @@ -37,12 +37,12 @@ class Author(_Model): name: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "name", "text": False, "unwrapped": False}, + xml={"name": "name", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "XmlAuthor", "text": False, "unwrapped": False} + _xml = {"name": "XmlAuthor", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -71,12 +71,12 @@ class Book(_Model): title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "title", "text": False, "unwrapped": False}, + xml={"name": "title", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "XmlBook", "text": False, "unwrapped": False} + _xml = {"name": "XmlBook", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -106,12 +106,12 @@ class ModelWithArrayOfModel(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "SimpleModel", "name": "items", "text": False, "unwrapped": False}, + xml={"name": "items", "attribute": False, "unwrapped": False, "text": False, "itemsName": "SimpleModel"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithArrayOfModel", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithArrayOfModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -144,24 +144,24 @@ class ModelWithAttributes(_Model): id1: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "id1", "text": False, "unwrapped": False}, + xml={"name": "id1", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" id2: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "id2", "text": False, "unwrapped": False}, + xml={"name": "id2", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" enabled: bool = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "enabled", "text": False, "unwrapped": False}, + xml={"name": "enabled", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_bool, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithAttributes", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithAttributes", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -195,19 +195,19 @@ class ModelWithDatetime(_Model): rfc3339: datetime.datetime = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc3339", - xml={"attribute": False, "name": "rfc3339", "text": False, "unwrapped": False}, + xml={"name": "rfc3339", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_datetime, ) """DateTime value with rfc3339 encoding. Required.""" rfc7231: datetime.datetime = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc7231", - xml={"attribute": False, "name": "rfc7231", "text": False, "unwrapped": False}, + xml={"name": "rfc7231", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_datetime_rfc7231, ) """DateTime value with rfc7231 encoding. Required.""" - _xml = {"attribute": False, "name": "ModelWithDatetime", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithDatetime", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -237,11 +237,11 @@ class ModelWithDictionary(_Model): metadata: dict[str, str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "metadata", "text": False, "unwrapped": False}, + xml={"name": "metadata", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithDictionary", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithDictionary", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -271,12 +271,12 @@ class ModelWithEmptyArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "SimpleModel", "name": "items", "text": False, "unwrapped": False}, + xml={"name": "items", "attribute": False, "unwrapped": False, "text": False, "itemsName": "SimpleModel"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithEmptyArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithEmptyArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -308,16 +308,16 @@ class ModelWithEncodedNames(_Model): model_data: "_models.SimpleModel" = rest_field( name="modelData", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "SimpleModelData", "text": False, "unwrapped": False}, + xml={"name": "SimpleModelData", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "string", "name": "PossibleColors", "text": False, "unwrapped": False}, + xml={"name": "PossibleColors", "attribute": False, "unwrapped": False, "text": False, "itemsName": "string"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithEncodedNamesSrc", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithEncodedNamesSrc", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -347,12 +347,12 @@ class ModelWithEnum(_Model): status: Union[str, "_models.Status"] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "status", "text": False, "unwrapped": False}, + xml={"name": "status", "attribute": False, "unwrapped": False, "text": False}, deserializer=functools.partial(_xml_deser_enum_or_str, Status), ) """Required. Known values are: \"pending\", \"success\", and \"error\".""" - _xml = {"attribute": False, "name": "ModelWithEnum", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithEnum", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -383,24 +383,24 @@ class ModelWithNamespace(_Model): id: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "id", "text": False, "unwrapped": False}, + xml={"name": "id", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "title", "text": False, "unwrapped": False}, + xml={"name": "title", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" _xml = { - "attribute": False, "name": "ModelWithNamespace", "namespace": "http://example.com/schema", "prefix": "smp", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, } @overload @@ -435,19 +435,19 @@ class ModelWithNamespaceOnProperties(_Model): id: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "id", "text": False, "unwrapped": False}, + xml={"name": "id", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={ - "attribute": False, "name": "title", "namespace": "http://example.com/schema", "prefix": "smp", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, }, deserializer=_xml_deser_str, ) @@ -455,24 +455,24 @@ class ModelWithNamespaceOnProperties(_Model): author: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={ - "attribute": False, "name": "author", "namespace": "http://example.com/ns2", "prefix": "ns2", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, }, deserializer=_xml_deser_str, ) """Required.""" _xml = { - "attribute": False, "name": "ModelWithNamespaceOnProperties", "namespace": "http://example.com/schema", "prefix": "smp", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, } @overload @@ -504,11 +504,11 @@ class ModelWithNestedModel(_Model): nested: "_models.SimpleModel" = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "nested", "text": False, "unwrapped": False}, + xml={"name": "nested", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithNestedModel", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithNestedModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -539,17 +539,17 @@ class ModelWithOptionalField(_Model): item: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "item", "text": False, "unwrapped": False}, + xml={"name": "item", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" value: Optional[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "value", "text": False, "unwrapped": False}, + xml={"name": "value", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) - _xml = {"attribute": False, "name": "ModelWithOptionalField", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithOptionalField", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -582,16 +582,16 @@ class ModelWithRenamedArrays(_Model): colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "Colors", "name": "Colors", "text": False, "unwrapped": True}, + xml={"name": "Colors", "attribute": False, "unwrapped": True, "text": False, "itemsName": "Colors"}, ) """Required.""" counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "int32", "name": "Counts", "text": False, "unwrapped": False}, + xml={"name": "Counts", "attribute": False, "unwrapped": False, "text": False, "itemsName": "int32"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedArrays", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedArrays", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -625,24 +625,24 @@ class ModelWithRenamedAttribute(_Model): id: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "xml-id", "text": False, "unwrapped": False}, + xml={"name": "xml-id", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "title", "text": False, "unwrapped": False}, + xml={"name": "title", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" author: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "author", "text": False, "unwrapped": False}, + xml={"name": "author", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedAttribute", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedAttribute", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -676,17 +676,17 @@ class ModelWithRenamedFields(_Model): input_data: "_models.SimpleModel" = rest_field( name="inputData", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "InputData", "text": False, "unwrapped": False}, + xml={"name": "InputData", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" output_data: "_models.SimpleModel" = rest_field( name="outputData", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "OutputData", "text": False, "unwrapped": False}, + xml={"name": "OutputData", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedFieldsSrc", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedFieldsSrc", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -716,11 +716,11 @@ class ModelWithRenamedNestedModel(_Model): author: "_models.Author" = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "author", "text": False, "unwrapped": False}, + xml={"name": "author", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedNestedModel", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedNestedModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -751,18 +751,18 @@ class ModelWithRenamedProperty(_Model): title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "renamedTitle", "text": False, "unwrapped": False}, + xml={"name": "renamedTitle", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" author: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "author", "text": False, "unwrapped": False}, + xml={"name": "author", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedProperty", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedProperty", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -793,12 +793,12 @@ class ModelWithRenamedUnwrappedModelArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "ModelItem", "name": "ModelItem", "text": False, "unwrapped": True}, + xml={"name": "ModelItem", "attribute": False, "unwrapped": True, "text": False, "itemsName": "ModelItem"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedUnwrappedModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedUnwrappedModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -827,11 +827,11 @@ class ModelWithRenamedWrappedAndItemModelArray(_Model): books: list["_models.Book"] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "XmlBook", "name": "AllBooks", "text": False, "unwrapped": False}, + xml={"name": "AllBooks", "attribute": False, "unwrapped": False, "text": False, "itemsName": "XmlBook"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedWrappedAndItemModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedWrappedAndItemModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -861,12 +861,12 @@ class ModelWithRenamedWrappedModelArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "SimpleModel", "name": "AllItems", "text": False, "unwrapped": False}, + xml={"name": "AllItems", "attribute": False, "unwrapped": False, "text": False, "itemsName": "SimpleModel"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedWrappedModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedWrappedModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -897,16 +897,16 @@ class ModelWithSimpleArrays(_Model): colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "string", "name": "colors", "text": False, "unwrapped": False}, + xml={"name": "colors", "attribute": False, "unwrapped": False, "text": False, "itemsName": "string"}, ) """Required.""" counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, + xml={"name": "counts", "attribute": False, "unwrapped": False, "text": False, "itemsName": "int32"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithSimpleArrays", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithSimpleArrays", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -938,18 +938,18 @@ class ModelWithText(_Model): language: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "language", "text": False, "unwrapped": False}, + xml={"name": "language", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" content: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "content", "text": True, "unwrapped": False}, + xml={"name": "content", "attribute": False, "unwrapped": False, "text": True}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithText", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithText", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -981,16 +981,16 @@ class ModelWithUnwrappedArray(_Model): colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "colors", "name": "colors", "text": False, "unwrapped": True}, + xml={"name": "colors", "attribute": False, "unwrapped": True, "text": False, "itemsName": "colors"}, ) """Required.""" counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, + xml={"name": "counts", "attribute": False, "unwrapped": False, "text": False, "itemsName": "int32"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithUnwrappedArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithUnwrappedArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1021,12 +1021,12 @@ class ModelWithUnwrappedModelArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "items", "name": "items", "text": False, "unwrapped": True}, + xml={"name": "items", "attribute": False, "unwrapped": True, "text": False, "itemsName": "items"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithUnwrappedModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithUnwrappedModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1055,11 +1055,11 @@ class ModelWithWrappedPrimitiveCustomItemNames(_Model): tags: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "ItemName", "name": "ItemsTags", "text": False, "unwrapped": False}, + xml={"name": "ItemsTags", "attribute": False, "unwrapped": False, "text": False, "itemsName": "ItemName"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithWrappedPrimitiveCustomItemNames", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithWrappedPrimitiveCustomItemNames", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1090,18 +1090,18 @@ class SimpleModel(_Model): name: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "name", "text": False, "unwrapped": False}, + xml={"name": "name", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" age: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "age", "text": False, "unwrapped": False}, + xml={"name": "age", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" - _xml = {"attribute": False, "name": "SimpleModel", "text": False, "unwrapped": False} + _xml = {"name": "SimpleModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1133,18 +1133,18 @@ class XmlErrorBody(_Model): message: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "message", "text": False, "unwrapped": False}, + xml={"name": "message", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" code: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "code", "text": False, "unwrapped": False}, + xml={"name": "code", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" - _xml = {"attribute": False, "name": "XmlErrorBody", "text": False, "unwrapped": False} + _xml = {"name": "XmlErrorBody", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator.py index 76206b37b92a..011850aa89fc 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator.py @@ -26,7 +26,7 @@ def test_get_model(self, nesteddiscriminator_endpoint): def test_put_model(self, nesteddiscriminator_endpoint): client = self.create_client(endpoint=nesteddiscriminator_endpoint) response = client.put_model( - input={"age": 0, "kind": "salmon", "friends": ["fish"], "hate": {"str": "fish"}, "partner": "fish"}, + input={"age": 0, "kind": "saw"}, ) # please add some check logic here by yourself @@ -46,7 +46,7 @@ def test_get_recursive_model(self, nesteddiscriminator_endpoint): def test_put_recursive_model(self, nesteddiscriminator_endpoint): client = self.create_client(endpoint=nesteddiscriminator_endpoint) response = client.put_recursive_model( - input={"age": 0, "kind": "salmon", "friends": ["fish"], "hate": {"str": "fish"}, "partner": "fish"}, + input={"age": 0, "kind": "saw"}, ) # please add some check logic here by yourself diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator_async.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator_async.py index 08270488ab82..09f2d14b4241 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator_async.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/generated_tests/test_nested_discriminator_async.py @@ -27,7 +27,7 @@ async def test_get_model(self, nesteddiscriminator_endpoint): async def test_put_model(self, nesteddiscriminator_endpoint): client = self.create_async_client(endpoint=nesteddiscriminator_endpoint) response = await client.put_model( - input={"age": 0, "kind": "salmon", "friends": ["fish"], "hate": {"str": "fish"}, "partner": "fish"}, + input={"age": 0, "kind": "saw"}, ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ async def test_get_recursive_model(self, nesteddiscriminator_endpoint): async def test_put_recursive_model(self, nesteddiscriminator_endpoint): client = self.create_async_client(endpoint=nesteddiscriminator_endpoint) response = await client.put_recursive_model( - input={"age": 0, "kind": "salmon", "friends": ["fish"], "hate": {"str": "fish"}, "partner": "fish"}, + input={"age": 0, "kind": "saw"}, ) # please add some check logic here by yourself diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py index 5ac00184b206..464e8fc37149 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py @@ -20,7 +20,7 @@ class Fish(_Model): """This is base model for polymorphic multiple levels inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Salmon, Shark + Shark, Salmon :ivar kind: Discriminator property for Fish. Required. Default value is None. :vartype kind: str @@ -58,7 +58,7 @@ class Shark(Fish, discriminator="shark"): discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - GoblinShark, SawShark + SawShark, GoblinShark :ivar age: Required. :vartype age: int diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py index bb86039e44a3..33ccefe5c75a 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py @@ -73,5 +73,5 @@ class SawShark(TypedDict, total=False): """Required. Default value is \"saw\".""" -Shark = Union[GoblinShark, SawShark] -Fish = Union[Salmon, Shark] +Shark = Union[SawShark, GoblinShark] +Fish = Union[Shark, Salmon] diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator.py index f7e9308eda90..7009254fc5a7 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator.py @@ -26,7 +26,7 @@ def test_get_model(self, singlediscriminator_endpoint): def test_put_model(self, singlediscriminator_endpoint): client = self.create_client(endpoint=singlediscriminator_endpoint) response = client.put_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself @@ -46,7 +46,7 @@ def test_get_recursive_model(self, singlediscriminator_endpoint): def test_put_recursive_model(self, singlediscriminator_endpoint): client = self.create_client(endpoint=singlediscriminator_endpoint) response = client.put_recursive_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator_async.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator_async.py index 3dc0ab48e048..6d89070a9391 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator_async.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/generated_tests/test_single_discriminator_async.py @@ -27,7 +27,7 @@ async def test_get_model(self, singlediscriminator_endpoint): async def test_put_model(self, singlediscriminator_endpoint): client = self.create_async_client(endpoint=singlediscriminator_endpoint) response = await client.put_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ async def test_get_recursive_model(self, singlediscriminator_endpoint): async def test_put_recursive_model(self, singlediscriminator_endpoint): client = self.create_async_client(endpoint=singlediscriminator_endpoint) response = await client.put_recursive_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py index 59b84682a81f..a22f0c287cfb 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py @@ -20,7 +20,7 @@ class Bird(_Model): """This is base model for polymorphic single level inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Eagle, Goose, SeaGull, Sparrow + SeaGull, Sparrow, Goose, Eagle :ivar kind: Required. Default value is None. :vartype kind: str diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py index d8602e6ed87c..5794ee3bc04b 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py @@ -96,4 +96,4 @@ class Sparrow(TypedDict, total=False): """Required. Default value is \"sparrow\".""" -Bird = Union[Eagle, Goose, SeaGull, Sparrow] +Bird = Union[SeaGull, Sparrow, Goose, Eagle] diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator.py index f7e9308eda90..7009254fc5a7 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator.py @@ -26,7 +26,7 @@ def test_get_model(self, singlediscriminator_endpoint): def test_put_model(self, singlediscriminator_endpoint): client = self.create_client(endpoint=singlediscriminator_endpoint) response = client.put_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself @@ -46,7 +46,7 @@ def test_get_recursive_model(self, singlediscriminator_endpoint): def test_put_recursive_model(self, singlediscriminator_endpoint): client = self.create_client(endpoint=singlediscriminator_endpoint) response = client.put_recursive_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator_async.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator_async.py index 3dc0ab48e048..6d89070a9391 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator_async.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/generated_tests/test_single_discriminator_async.py @@ -27,7 +27,7 @@ async def test_get_model(self, singlediscriminator_endpoint): async def test_put_model(self, singlediscriminator_endpoint): client = self.create_async_client(endpoint=singlediscriminator_endpoint) response = await client.put_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself @@ -47,7 +47,7 @@ async def test_get_recursive_model(self, singlediscriminator_endpoint): async def test_put_recursive_model(self, singlediscriminator_endpoint): client = self.create_async_client(endpoint=singlediscriminator_endpoint) response = await client.put_recursive_model( - input={"kind": "eagle", "wingspan": 0, "friends": ["bird"], "hate": {"str": "bird"}, "partner": "bird"}, + input={"kind": "seagull", "wingspan": 0}, ) # please add some check logic here by yourself diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py index 34686e567023..dfa6cca63162 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py @@ -20,7 +20,7 @@ class Bird(_Model): """This is base model for polymorphic single level inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Eagle, Goose, SeaGull, Sparrow + SeaGull, Sparrow, Goose, Eagle :ivar kind: Required. Default value is None. :vartype kind: str diff --git a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py index d8602e6ed87c..5794ee3bc04b 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/azure/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py @@ -96,4 +96,4 @@ class Sparrow(TypedDict, total=False): """Required. Default value is \"sparrow\".""" -Bird = Union[Eagle, Goose, SeaGull, Sparrow] +Bird = Union[SeaGull, Sparrow, Goose, Eagle] diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/_configuration.py index 8c28855073f1..1ed48aa754ae 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/_configuration.py @@ -47,9 +47,9 @@ def _configure(self, **kwargs: Any) -> None: *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/aio/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/aio/_configuration.py index fde03d1073ec..6580400d7b3b 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/aio/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-noauth-union/authentication/noauth/union/aio/_configuration.py @@ -50,9 +50,9 @@ def _configure(self, **kwargs: Any) -> None: *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/_configuration.py index 23d1550888fd..7057a89aafc9 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/_configuration.py @@ -46,9 +46,9 @@ def _configure(self, **kwargs: Any) -> None: *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/aio/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/aio/_configuration.py index f386cafb4730..564c09683912 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/aio/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-oauth2/authentication/oauth2/aio/_configuration.py @@ -48,9 +48,9 @@ def _configure(self, **kwargs: Any) -> None: *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/_configuration.py index 91799250df12..e8251022b7cb 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/_configuration.py @@ -50,9 +50,9 @@ def _infer_policy(self, **kwargs): *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs, diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/aio/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/aio/_configuration.py index 8d6587ad78c4..9a44a6e491cc 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/aio/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/authentication-union/authentication/union/aio/_configuration.py @@ -50,9 +50,9 @@ def _infer_policy(self, **kwargs): *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs, diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/aio/operations/_operations.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/aio/operations/_operations.py index ecee0c8c7981..980165496957 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/aio/operations/_operations.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/aio/operations/_operations.py @@ -582,10 +582,10 @@ async def spread_with_multiple_parameters( if required_int_list is _Unset: raise TypeError("missing required argument: required_int_list") body = { + "requiredString": required_string, "optionalInt": optional_int, - "optionalStringList": optional_string_list, "requiredIntList": required_int_list, - "requiredString": required_string, + "optionalStringList": optional_string_list, } body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" @@ -741,7 +741,7 @@ async def spread_parameter_with_inner_alias( raise TypeError("missing required argument: name") if age is _Unset: raise TypeError("missing required argument: age") - body = {"age": age, "name": name} + body = {"name": name, "age": age} body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" _content = None diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/operations/_operations.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/operations/_operations.py index 9298b4b13b48..891cd709e932 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/operations/_operations.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/parameters-spread/parameters/spread/alias/operations/_operations.py @@ -678,10 +678,10 @@ def spread_with_multiple_parameters( # pylint: disable=inconsistent-return-stat if required_int_list is _Unset: raise TypeError("missing required argument: required_int_list") body = { + "requiredString": required_string, "optionalInt": optional_int, - "optionalStringList": optional_string_list, "requiredIntList": required_int_list, - "requiredString": required_string, + "optionalStringList": optional_string_list, } body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" @@ -837,7 +837,7 @@ def spread_parameter_with_inner_alias( # pylint: disable=inconsistent-return-st raise TypeError("missing required argument: name") if age is _Unset: raise TypeError("missing required argument: age") - body = {"age": age, "name": name} + body = {"name": name, "age": age} body = {k: v for k, v in body.items() if v is not None} content_type = content_type or "application/json" _content = None diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-pageable/payload/pageable/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-pageable/payload/pageable/models/_models.py index 31d78047c4a1..b3ce46dabc7f 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-pageable/payload/pageable/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-pageable/payload/pageable/models/_models.py @@ -50,18 +50,18 @@ class XmlPet(_Model): id: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "Id", "text": False, "unwrapped": False}, + xml={"name": "Id", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" name: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "Name", "text": False, "unwrapped": False}, + xml={"name": "Name", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "Pet", "text": False, "unwrapped": False} + _xml = {"name": "Pet", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-xml/payload/xml/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-xml/payload/xml/models/_models.py index e4c63fdd83b3..26adf3996e94 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-xml/payload/xml/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/payload-xml/payload/xml/models/_models.py @@ -31,12 +31,12 @@ class Author(_Model): name: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "name", "text": False, "unwrapped": False}, + xml={"name": "name", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "XmlAuthor", "text": False, "unwrapped": False} + _xml = {"name": "XmlAuthor", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -65,12 +65,12 @@ class Book(_Model): title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "title", "text": False, "unwrapped": False}, + xml={"name": "title", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "XmlBook", "text": False, "unwrapped": False} + _xml = {"name": "XmlBook", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -100,12 +100,12 @@ class ModelWithArrayOfModel(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "SimpleModel", "name": "items", "text": False, "unwrapped": False}, + xml={"name": "items", "attribute": False, "unwrapped": False, "text": False, "itemsName": "SimpleModel"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithArrayOfModel", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithArrayOfModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -138,24 +138,24 @@ class ModelWithAttributes(_Model): id1: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "id1", "text": False, "unwrapped": False}, + xml={"name": "id1", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" id2: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "id2", "text": False, "unwrapped": False}, + xml={"name": "id2", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" enabled: bool = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "enabled", "text": False, "unwrapped": False}, + xml={"name": "enabled", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_bool, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithAttributes", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithAttributes", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -189,19 +189,19 @@ class ModelWithDatetime(_Model): rfc3339: datetime.datetime = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc3339", - xml={"attribute": False, "name": "rfc3339", "text": False, "unwrapped": False}, + xml={"name": "rfc3339", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_datetime, ) """DateTime value with rfc3339 encoding. Required.""" rfc7231: datetime.datetime = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc7231", - xml={"attribute": False, "name": "rfc7231", "text": False, "unwrapped": False}, + xml={"name": "rfc7231", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_datetime_rfc7231, ) """DateTime value with rfc7231 encoding. Required.""" - _xml = {"attribute": False, "name": "ModelWithDatetime", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithDatetime", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -231,11 +231,11 @@ class ModelWithDictionary(_Model): metadata: dict[str, str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "metadata", "text": False, "unwrapped": False}, + xml={"name": "metadata", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithDictionary", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithDictionary", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -265,12 +265,12 @@ class ModelWithEmptyArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "SimpleModel", "name": "items", "text": False, "unwrapped": False}, + xml={"name": "items", "attribute": False, "unwrapped": False, "text": False, "itemsName": "SimpleModel"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithEmptyArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithEmptyArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -302,16 +302,16 @@ class ModelWithEncodedNames(_Model): model_data: "_models.SimpleModel" = rest_field( name="modelData", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "SimpleModelData", "text": False, "unwrapped": False}, + xml={"name": "SimpleModelData", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "string", "name": "PossibleColors", "text": False, "unwrapped": False}, + xml={"name": "PossibleColors", "attribute": False, "unwrapped": False, "text": False, "itemsName": "string"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithEncodedNamesSrc", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithEncodedNamesSrc", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -341,12 +341,12 @@ class ModelWithEnum(_Model): status: Union[str, "_models.Status"] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "status", "text": False, "unwrapped": False}, + xml={"name": "status", "attribute": False, "unwrapped": False, "text": False}, deserializer=functools.partial(_xml_deser_enum_or_str, Status), ) """Required. Known values are: \"pending\", \"success\", and \"error\".""" - _xml = {"attribute": False, "name": "ModelWithEnum", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithEnum", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -377,24 +377,24 @@ class ModelWithNamespace(_Model): id: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "id", "text": False, "unwrapped": False}, + xml={"name": "id", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "title", "text": False, "unwrapped": False}, + xml={"name": "title", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" _xml = { - "attribute": False, "name": "ModelWithNamespace", "namespace": "http://example.com/schema", "prefix": "smp", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, } @overload @@ -429,19 +429,19 @@ class ModelWithNamespaceOnProperties(_Model): id: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "id", "text": False, "unwrapped": False}, + xml={"name": "id", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={ - "attribute": False, "name": "title", "namespace": "http://example.com/schema", "prefix": "smp", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, }, deserializer=_xml_deser_str, ) @@ -449,24 +449,24 @@ class ModelWithNamespaceOnProperties(_Model): author: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={ - "attribute": False, "name": "author", "namespace": "http://example.com/ns2", "prefix": "ns2", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, }, deserializer=_xml_deser_str, ) """Required.""" _xml = { - "attribute": False, "name": "ModelWithNamespaceOnProperties", "namespace": "http://example.com/schema", "prefix": "smp", - "text": False, + "attribute": False, "unwrapped": False, + "text": False, } @overload @@ -498,11 +498,11 @@ class ModelWithNestedModel(_Model): nested: "_models.SimpleModel" = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "nested", "text": False, "unwrapped": False}, + xml={"name": "nested", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithNestedModel", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithNestedModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -533,17 +533,17 @@ class ModelWithOptionalField(_Model): item: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "item", "text": False, "unwrapped": False}, + xml={"name": "item", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" value: Optional[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "value", "text": False, "unwrapped": False}, + xml={"name": "value", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) - _xml = {"attribute": False, "name": "ModelWithOptionalField", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithOptionalField", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -576,16 +576,16 @@ class ModelWithRenamedArrays(_Model): colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "Colors", "name": "Colors", "text": False, "unwrapped": True}, + xml={"name": "Colors", "attribute": False, "unwrapped": True, "text": False, "itemsName": "Colors"}, ) """Required.""" counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "int32", "name": "Counts", "text": False, "unwrapped": False}, + xml={"name": "Counts", "attribute": False, "unwrapped": False, "text": False, "itemsName": "int32"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedArrays", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedArrays", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -619,24 +619,24 @@ class ModelWithRenamedAttribute(_Model): id: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "xml-id", "text": False, "unwrapped": False}, + xml={"name": "xml-id", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "title", "text": False, "unwrapped": False}, + xml={"name": "title", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" author: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "author", "text": False, "unwrapped": False}, + xml={"name": "author", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedAttribute", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedAttribute", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -670,17 +670,17 @@ class ModelWithRenamedFields(_Model): input_data: "_models.SimpleModel" = rest_field( name="inputData", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "InputData", "text": False, "unwrapped": False}, + xml={"name": "InputData", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" output_data: "_models.SimpleModel" = rest_field( name="outputData", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "OutputData", "text": False, "unwrapped": False}, + xml={"name": "OutputData", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedFieldsSrc", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedFieldsSrc", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -710,11 +710,11 @@ class ModelWithRenamedNestedModel(_Model): author: "_models.Author" = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "author", "text": False, "unwrapped": False}, + xml={"name": "author", "attribute": False, "unwrapped": False, "text": False}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedNestedModel", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedNestedModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -745,18 +745,18 @@ class ModelWithRenamedProperty(_Model): title: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "renamedTitle", "text": False, "unwrapped": False}, + xml={"name": "renamedTitle", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" author: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "author", "text": False, "unwrapped": False}, + xml={"name": "author", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedProperty", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedProperty", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -787,12 +787,12 @@ class ModelWithRenamedUnwrappedModelArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "ModelItem", "name": "ModelItem", "text": False, "unwrapped": True}, + xml={"name": "ModelItem", "attribute": False, "unwrapped": True, "text": False, "itemsName": "ModelItem"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedUnwrappedModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedUnwrappedModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -821,11 +821,11 @@ class ModelWithRenamedWrappedAndItemModelArray(_Model): books: list["_models.Book"] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "XmlBook", "name": "AllBooks", "text": False, "unwrapped": False}, + xml={"name": "AllBooks", "attribute": False, "unwrapped": False, "text": False, "itemsName": "XmlBook"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedWrappedAndItemModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedWrappedAndItemModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -855,12 +855,12 @@ class ModelWithRenamedWrappedModelArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "SimpleModel", "name": "AllItems", "text": False, "unwrapped": False}, + xml={"name": "AllItems", "attribute": False, "unwrapped": False, "text": False, "itemsName": "SimpleModel"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithRenamedWrappedModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithRenamedWrappedModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -891,16 +891,16 @@ class ModelWithSimpleArrays(_Model): colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "string", "name": "colors", "text": False, "unwrapped": False}, + xml={"name": "colors", "attribute": False, "unwrapped": False, "text": False, "itemsName": "string"}, ) """Required.""" counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, + xml={"name": "counts", "attribute": False, "unwrapped": False, "text": False, "itemsName": "int32"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithSimpleArrays", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithSimpleArrays", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -932,18 +932,18 @@ class ModelWithText(_Model): language: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": True, "name": "language", "text": False, "unwrapped": False}, + xml={"name": "language", "attribute": True, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" content: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "content", "text": True, "unwrapped": False}, + xml={"name": "content", "attribute": False, "unwrapped": False, "text": True}, deserializer=_xml_deser_str, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithText", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithText", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -975,16 +975,16 @@ class ModelWithUnwrappedArray(_Model): colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "colors", "name": "colors", "text": False, "unwrapped": True}, + xml={"name": "colors", "attribute": False, "unwrapped": True, "text": False, "itemsName": "colors"}, ) """Required.""" counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, + xml={"name": "counts", "attribute": False, "unwrapped": False, "text": False, "itemsName": "int32"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithUnwrappedArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithUnwrappedArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1015,12 +1015,12 @@ class ModelWithUnwrappedModelArray(_Model): items_property: list["_models.SimpleModel"] = rest_field( name="items", visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "items", "name": "items", "text": False, "unwrapped": True}, + xml={"name": "items", "attribute": False, "unwrapped": True, "text": False, "itemsName": "items"}, original_tsp_name="items", ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithUnwrappedModelArray", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithUnwrappedModelArray", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1049,11 +1049,11 @@ class ModelWithWrappedPrimitiveCustomItemNames(_Model): tags: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "itemsName": "ItemName", "name": "ItemsTags", "text": False, "unwrapped": False}, + xml={"name": "ItemsTags", "attribute": False, "unwrapped": False, "text": False, "itemsName": "ItemName"}, ) """Required.""" - _xml = {"attribute": False, "name": "ModelWithWrappedPrimitiveCustomItemNames", "text": False, "unwrapped": False} + _xml = {"name": "ModelWithWrappedPrimitiveCustomItemNames", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1084,18 +1084,18 @@ class SimpleModel(_Model): name: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "name", "text": False, "unwrapped": False}, + xml={"name": "name", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" age: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "age", "text": False, "unwrapped": False}, + xml={"name": "age", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" - _xml = {"attribute": False, "name": "SimpleModel", "text": False, "unwrapped": False} + _xml = {"name": "SimpleModel", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( @@ -1127,18 +1127,18 @@ class XmlErrorBody(_Model): message: str = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "message", "text": False, "unwrapped": False}, + xml={"name": "message", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_str, ) """Required.""" code: int = rest_field( visibility=["read", "create", "update", "delete", "query"], - xml={"attribute": False, "name": "code", "text": False, "unwrapped": False}, + xml={"name": "code", "attribute": False, "unwrapped": False, "text": False}, deserializer=_xml_deser_int, ) """Required.""" - _xml = {"attribute": False, "name": "XmlErrorBody", "text": False, "unwrapped": False} + _xml = {"name": "XmlErrorBody", "attribute": False, "unwrapped": False, "text": False} @overload def __init__( diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/_configuration.py index 06a2a17ea738..62dac67422f7 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/_configuration.py @@ -50,9 +50,9 @@ def _infer_policy(self, **kwargs): *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs, diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py index a3de317a4f4c..b768e88142de 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py @@ -50,9 +50,9 @@ def _infer_policy(self, **kwargs): *self.credential_scopes, auth_flows=[ { + "type": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": [{"value": "https://security.microsoft.com/.default"}], - "type": "implicit", } ], **kwargs, diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py index d38b44fcb132..588686521156 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py @@ -14,7 +14,7 @@ class Fish(_Model): """This is base model for polymorphic multiple levels inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Salmon, Shark + Shark, Salmon :ivar kind: Discriminator property for Fish. Required. Default value is None. :vartype kind: str @@ -52,7 +52,7 @@ class Shark(Fish, discriminator="shark"): discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - GoblinShark, SawShark + SawShark, GoblinShark :ivar age: Required. :vartype age: int diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py index f199a109c3ae..2de0e609fba6 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/types.py @@ -67,5 +67,5 @@ class SawShark(TypedDict, total=False): """Required. Default value is \"saw\".""" -Shark = Union[GoblinShark, SawShark] -Fish = Union[Salmon, Shark] +Shark = Union[SawShark, GoblinShark] +Fish = Union[Shark, Salmon] diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py index 7b4553c02cc7..aa065383b82f 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/models/_models.py @@ -14,7 +14,7 @@ class Bird(_Model): """This is base model for polymorphic single level inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Eagle, Goose, SeaGull, Sparrow + SeaGull, Sparrow, Goose, Eagle :ivar kind: Required. Default value is None. :vartype kind: str diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py index 59547a197b36..c592cd1a2251 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator-typeddict/typetest/model/singlediscriminator/typeddict/types.py @@ -90,4 +90,4 @@ class Sparrow(TypedDict, total=False): """Required. Default value is \"sparrow\".""" -Bird = Union[Eagle, Goose, SeaGull, Sparrow] +Bird = Union[SeaGull, Sparrow, Goose, Eagle] diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py index 5b2301b58c83..1e032d1fd10c 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py @@ -14,7 +14,7 @@ class Bird(_Model): """This is base model for polymorphic single level inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Eagle, Goose, SeaGull, Sparrow + SeaGull, Sparrow, Goose, Eagle :ivar kind: Required. Default value is None. :vartype kind: str diff --git a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py index 59547a197b36..c592cd1a2251 100644 --- a/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py +++ b/eng/tools/azure-sdk-tools/emitter/generated/unbranded/typetest-model-singlediscriminator/typetest/model/singlediscriminator/types.py @@ -90,4 +90,4 @@ class Sparrow(TypedDict, total=False): """Required. Default value is \"sparrow\".""" -Bird = Union[Eagle, Goose, SeaGull, Sparrow] +Bird = Union[SeaGull, Sparrow, Goose, Eagle]