From b726e2a74b03f3fdd1a6e65bcae92b2900e9e84d Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 11:25:11 +0800 Subject: [PATCH 01/11] update --- packages/autorest.python/package.json | 2 +- .../specification/azure-mgmt-test/readme.md | 5 +- .../azure-mgmt-test/apiview-properties.json | 11 + .../azure/mgmt/test/__init__.py | 4 +- ...ice.py => _auto_rest_head_test_service.py} | 21 +- .../azure/mgmt/test/_configuration.py | 4 +- .../azure/mgmt/test/aio/__init__.py | 4 +- ...ice.py => _auto_rest_head_test_service.py} | 21 +- .../azure/mgmt/test/aio/_configuration.py | 4 +- .../mgmt/test/aio/operations/__init__.py | 4 +- .../test/aio/operations/_array_operations.py | 4090 ------------- .../operations/_http_success_operations.py | 174 + .../azure/mgmt/test/apiview-properties.json | 148 - .../azure/mgmt/test/models/__init__.py | 38 - ...to_rest_swagger_bat_array_service_enums.py | 34 - .../azure/mgmt/test/models/_models_py3.py | 63 - .../azure/mgmt/test/models/_patch.py | 20 - .../azure/mgmt/test/operations/__init__.py | 4 +- .../mgmt/test/operations/_array_operations.py | 5044 ----------------- .../operations/_http_success_operations.py | 197 + .../generated_samples/http_success_head200.py | 37 + .../generated_samples/http_success_head204.py | 37 + .../generated_samples/http_success_head404.py | 37 + .../mgmt/test/http_success_head200.py | 37 + .../mgmt/test/http_success_head204.py | 37 + .../mgmt/test/http_success_head404.py | 37 + .../generated_tests/conftest.py | 43 + ...ad_test_service_http_success_operations.py | 43 + ...t_service_http_success_operations_async.py | 44 + .../test/azure-mgmt-test/setup.py | 2 +- .../_generated => }/apiview-properties.json | 0 .../sample/v3 => }/apiview-properties.json | 0 .../sample/v1/apiview-properties.json | 19 - .../sample/v2/apiview-properties.json | 17 - pnpm-lock.yaml | 49 +- 35 files changed, 819 insertions(+), 9512 deletions(-) create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/apiview-properties.json rename packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/{_auto_rest_swagger_bat_array_service.py => _auto_rest_head_test_service.py} (85%) rename packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/{_auto_rest_swagger_bat_array_service.py => _auto_rest_head_test_service.py} (85%) delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_array_operations.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_http_success_operations.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/apiview-properties.json delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/__init__.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_auto_rest_swagger_bat_array_service_enums.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_models_py3.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_patch.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_array_operations.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_http_success_operations.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head200.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head204.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head404.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/conftest.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations_async.py rename packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/{test/_generated => }/apiview-properties.json (100%) rename packages/autorest.python/samples/specification/multiapi/generated/{azure/multiapi/sample/v3 => }/apiview-properties.json (100%) delete mode 100644 packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v1/apiview-properties.json delete mode 100644 packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v2/apiview-properties.json diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 9aae5578f7c..3223c05ddd7 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "~0.15.1", + "@typespec/http-client-python": "C:/dev/typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/readme.md b/packages/autorest.python/samples/specification/azure-mgmt-test/readme.md index a3c9a6c246f..753b24381ee 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/readme.md +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/readme.md @@ -5,7 +5,7 @@ This file is to check whether standard [readme.python.md](https://github.com/Azu ### Settings ``` yaml $(python) -input-file: ../../../node_modules/@microsoft.azure/autorest.testserver/swagger/body-array.json +input-file: ../../../node_modules/@microsoft.azure/autorest.testserver/swagger/head.json azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION package-name: azure-mgmt-test @@ -15,6 +15,9 @@ clear-output-folder: true version-tolerant: false package-mode: azure-mgmt keep-setup-py: true +generate-test: true +generate-sample: true +include-x-ms-examples-original-file: true ``` ``` yaml $(python) diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/apiview-properties.json b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/apiview-properties.json new file mode 100644 index 00000000000..94b27fe18a9 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/apiview-properties.json @@ -0,0 +1,11 @@ +{ + "CrossLanguagePackageId": null, + "CrossLanguageDefinitionId": { + "azure.mgmt.test.operations.HttpSuccessOperations.head200": null, + "azure.mgmt.test.aio.operations.HttpSuccessOperations.head200": null, + "azure.mgmt.test.operations.HttpSuccessOperations.head204": null, + "azure.mgmt.test.aio.operations.HttpSuccessOperations.head204": null, + "azure.mgmt.test.operations.HttpSuccessOperations.head404": null, + "azure.mgmt.test.aio.operations.HttpSuccessOperations.head404": null + } +} \ No newline at end of file diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/__init__.py index daab8442211..f5a2ccd3a57 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/__init__.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/__init__.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._auto_rest_swagger_bat_array_service import AutoRestSwaggerBATArrayService # type: ignore +from ._auto_rest_head_test_service import AutoRestHeadTestService # type: ignore from ._version import VERSION __version__ = VERSION @@ -25,7 +25,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "AutoRestSwaggerBATArrayService", + "AutoRestHeadTestService", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_swagger_bat_array_service.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py similarity index 85% rename from packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_swagger_bat_array_service.py rename to packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py index 4b73ea89b78..d2ce059f119 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_swagger_bat_array_service.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING, cast +from typing import Any, Dict, Optional, TYPE_CHECKING, cast from typing_extensions import Self from azure.core.pipeline import policies @@ -17,20 +17,19 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from . import models as _models -from ._configuration import AutoRestSwaggerBATArrayServiceConfiguration +from ._configuration import AutoRestHeadTestServiceConfiguration from ._utils.serialization import Deserializer, Serializer -from .operations import ArrayOperations +from .operations import HttpSuccessOperations if TYPE_CHECKING: from azure.core.credentials import TokenCredential -class AutoRestSwaggerBATArrayService: # pylint: disable=client-accepts-api-version-keyword - """Test Infrastructure for AutoRest Swagger BAT. +class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-keyword + """Test Infrastructure for AutoRest. - :ivar array: ArrayOperations operations - :vartype array: azure.mgmt.test.operations.ArrayOperations + :ivar http_success: HttpSuccessOperations operations + :vartype http_success: azure.mgmt.test.operations.HttpSuccessOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param base_url: Service URL. Default value is None. @@ -43,7 +42,7 @@ def __init__(self, credential: "TokenCredential", base_url: Optional[str] = None if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = AutoRestSwaggerBATArrayServiceConfiguration( + self._config = AutoRestHeadTestServiceConfiguration( credential=credential, credential_scopes=credential_scopes, **kwargs ) @@ -67,11 +66,11 @@ def __init__(self, credential: "TokenCredential", base_url: Optional[str] = None ] self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} + client_models: Dict[str, Any] = {} self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.array = ArrayOperations(self._client, self._config, self._serialize, self._deserialize) + self.http_success = HttpSuccessOperations(self._client, self._config, self._serialize, self._deserialize) def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_configuration.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_configuration.py index 2ad9e5db382..2095a36ecba 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_configuration.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_configuration.py @@ -17,8 +17,8 @@ from azure.core.credentials import TokenCredential -class AutoRestSwaggerBATArrayServiceConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AutoRestSwaggerBATArrayService. +class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance-attributes + """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance attributes. diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/__init__.py index 63b310e4ab4..10d0d22063d 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/__init__.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/__init__.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._auto_rest_swagger_bat_array_service import AutoRestSwaggerBATArrayService # type: ignore +from ._auto_rest_head_test_service import AutoRestHeadTestService # type: ignore try: from ._patch import __all__ as _patch_all @@ -22,7 +22,7 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "AutoRestSwaggerBATArrayService", + "AutoRestHeadTestService", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_swagger_bat_array_service.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_head_test_service.py similarity index 85% rename from packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_swagger_bat_array_service.py rename to packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_head_test_service.py index a751a969089..d3d547f14cc 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_swagger_bat_array_service.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_head_test_service.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING, cast +from typing import Any, Awaitable, Dict, Optional, TYPE_CHECKING, cast from typing_extensions import Self from azure.core.pipeline import policies @@ -17,20 +17,19 @@ from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from .. import models as _models from .._utils.serialization import Deserializer, Serializer -from ._configuration import AutoRestSwaggerBATArrayServiceConfiguration -from .operations import ArrayOperations +from ._configuration import AutoRestHeadTestServiceConfiguration +from .operations import HttpSuccessOperations if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential -class AutoRestSwaggerBATArrayService: # pylint: disable=client-accepts-api-version-keyword - """Test Infrastructure for AutoRest Swagger BAT. +class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-keyword + """Test Infrastructure for AutoRest. - :ivar array: ArrayOperations operations - :vartype array: azure.mgmt.test.aio.operations.ArrayOperations + :ivar http_success: HttpSuccessOperations operations + :vartype http_success: azure.mgmt.test.aio.operations.HttpSuccessOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param base_url: Service URL. Default value is None. @@ -43,7 +42,7 @@ def __init__(self, credential: "AsyncTokenCredential", base_url: Optional[str] = if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) - self._config = AutoRestSwaggerBATArrayServiceConfiguration( + self._config = AutoRestHeadTestServiceConfiguration( credential=credential, credential_scopes=credential_scopes, **kwargs ) @@ -69,11 +68,11 @@ def __init__(self, credential: "AsyncTokenCredential", base_url: Optional[str] = base_url=cast(str, base_url), policies=_policies, **kwargs ) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} + client_models: Dict[str, Any] = {} self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.array = ArrayOperations(self._client, self._config, self._serialize, self._deserialize) + self.http_success = HttpSuccessOperations(self._client, self._config, self._serialize, self._deserialize) def _send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_configuration.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_configuration.py index ce2ad093335..fa12908650b 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_configuration.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_configuration.py @@ -17,8 +17,8 @@ from azure.core.credentials_async import AsyncTokenCredential -class AutoRestSwaggerBATArrayServiceConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AutoRestSwaggerBATArrayService. +class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance-attributes + """Configuration for AutoRestHeadTestService. Note that all parameters used to create this instance are saved as instance attributes. diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/__init__.py index 0c3f05cbc3a..7b17a79c595 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/__init__.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/__init__.py @@ -12,14 +12,14 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._array_operations import ArrayOperations # type: ignore +from ._http_success_operations import HttpSuccessOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ArrayOperations", + "HttpSuccessOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_array_operations.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_array_operations.py deleted file mode 100644 index 64e7eae62e6..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_array_operations.py +++ /dev/null @@ -1,4090 +0,0 @@ -# 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. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -import datetime -from io import IOBase -from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._array_operations import ( - build_get_array_empty_request, - build_get_array_item_empty_request, - build_get_array_item_null_request, - build_get_array_null_request, - build_get_array_valid_request, - build_get_base64_url_request, - build_get_boolean_invalid_null_request, - build_get_boolean_invalid_string_request, - build_get_boolean_tfft_request, - build_get_byte_invalid_null_request, - build_get_byte_valid_request, - build_get_complex_empty_request, - build_get_complex_item_empty_request, - build_get_complex_item_null_request, - build_get_complex_null_request, - build_get_complex_valid_request, - build_get_date_invalid_chars_request, - build_get_date_invalid_null_request, - build_get_date_time_invalid_chars_request, - build_get_date_time_invalid_null_request, - build_get_date_time_rfc1123_valid_request, - build_get_date_time_valid_request, - build_get_date_valid_request, - build_get_dictionary_empty_request, - build_get_dictionary_item_empty_request, - build_get_dictionary_item_null_request, - build_get_dictionary_null_request, - build_get_dictionary_valid_request, - build_get_double_invalid_null_request, - build_get_double_invalid_string_request, - build_get_double_valid_request, - build_get_duration_valid_request, - build_get_empty_request, - build_get_enum_valid_request, - build_get_float_invalid_null_request, - build_get_float_invalid_string_request, - build_get_float_valid_request, - build_get_int_invalid_null_request, - build_get_int_invalid_string_request, - build_get_integer_valid_request, - build_get_invalid_request, - build_get_long_invalid_null_request, - build_get_long_invalid_string_request, - build_get_long_valid_request, - build_get_null_request, - build_get_string_enum_valid_request, - build_get_string_valid_request, - build_get_string_with_invalid_request, - build_get_string_with_null_request, - build_get_uuid_invalid_chars_request, - build_get_uuid_valid_request, - build_put_array_valid_request, - build_put_boolean_tfft_request, - build_put_byte_valid_request, - build_put_complex_valid_request, - build_put_date_time_rfc1123_valid_request, - build_put_date_time_valid_request, - build_put_date_valid_request, - build_put_dictionary_valid_request, - build_put_double_valid_request, - build_put_duration_valid_request, - build_put_empty_request, - build_put_enum_valid_request, - build_put_float_valid_request, - build_put_integer_valid_request, - build_put_long_valid_request, - build_put_string_enum_valid_request, - build_put_string_valid_request, - build_put_uuid_valid_request, -) -from .._configuration import AutoRestSwaggerBATArrayServiceConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ArrayOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.test.aio.AutoRestSwaggerBATArrayService`'s - :attr:`array` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AutoRestSwaggerBATArrayServiceConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get_null(self, **kwargs: Any) -> List[int]: - """Get null array value. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_invalid(self, **kwargs: Any) -> List[int]: - """Get invalid array [1, 2, 3. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_invalid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_empty(self, **kwargs: Any) -> List[int]: - """Get empty array value []. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_empty(self, array_body: List[str], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty []. - - :param array_body: Required. - :type array_body: list[str] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_empty(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty []. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_empty(self, array_body: Union[List[str], IO[bytes]], **kwargs: Any) -> None: - """Set array value empty []. - - :param array_body: Is either a [str] type or a IO[bytes] type. Required. - :type array_body: list[str] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_empty_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: - """Get boolean array value [true, false, false, true]. - - :return: list of bool or the result of cls(response) - :rtype: list[bool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bool]] = kwargs.pop("cls", None) - - _request = build_get_boolean_tfft_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bool]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_boolean_tfft( - self, array_body: List[bool], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [true, false, false, true]. - - :param array_body: Required. - :type array_body: list[bool] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_boolean_tfft( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [true, false, false, true]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_boolean_tfft(self, array_body: Union[List[bool], IO[bytes]], **kwargs: Any) -> None: - """Set array value empty [true, false, false, true]. - - :param array_body: Is either a [bool] type or a IO[bytes] type. Required. - :type array_body: list[bool] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[bool]") - - _request = build_put_boolean_tfft_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: - """Get boolean array value [true, null, false]. - - :return: list of bool or the result of cls(response) - :rtype: list[bool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bool]] = kwargs.pop("cls", None) - - _request = build_get_boolean_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bool]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: - """Get boolean array value [true, 'boolean', false]. - - :return: list of bool or the result of cls(response) - :rtype: list[bool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bool]] = kwargs.pop("cls", None) - - _request = build_get_boolean_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bool]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_integer_valid(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, -1, 3, 300]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_integer_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_integer_valid( - self, array_body: List[int], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: list[int] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_integer_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_integer_valid(self, array_body: Union[List[int], IO[bytes]], **kwargs: Any) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Is either a [int] type or a IO[bytes] type. Required. - :type array_body: list[int] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[int]") - - _request = build_put_integer_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, null, 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_int_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, 'integer', 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_int_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_long_valid(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, -1, 3, 300]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_long_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_long_valid( - self, array_body: List[int], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: list[int] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_long_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_long_valid(self, array_body: Union[List[int], IO[bytes]], **kwargs: Any) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Is either a [int] type or a IO[bytes] type. Required. - :type array_body: list[int] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[int]") - - _request = build_put_long_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: - """Get long array value [1, null, 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_long_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: - """Get long array value [1, 'integer', 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_long_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_float_valid(self, **kwargs: Any) -> List[float]: - """Get float array value [0, -0.01, 1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_float_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_float_valid( - self, array_body: List[float], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: list[float] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_float_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_float_valid(self, array_body: Union[List[float], IO[bytes]], **kwargs: Any) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Is either a [float] type or a IO[bytes] type. Required. - :type array_body: list[float] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[float]") - - _request = build_put_float_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: - """Get float array value [0.0, null, -1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_float_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: - """Get boolean array value [1.0, 'number', 0.0]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_float_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_double_valid(self, **kwargs: Any) -> List[float]: - """Get float array value [0, -0.01, 1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_double_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_double_valid( - self, array_body: List[float], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: list[float] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_double_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_double_valid(self, array_body: Union[List[float], IO[bytes]], **kwargs: Any) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Is either a [float] type or a IO[bytes] type. Required. - :type array_body: list[float] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[float]") - - _request = build_put_double_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: - """Get float array value [0.0, null, -1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_double_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: - """Get boolean array value [1.0, 'number', 0.0]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_double_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_string_valid(self, **kwargs: Any) -> List[str]: - """Get string array value ['foo1', 'foo2', 'foo3']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_string_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_string_valid( - self, array_body: List[str], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: list[str] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_string_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_string_valid(self, array_body: Union[List[str], IO[bytes]], **kwargs: Any) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Is either a [str] type or a IO[bytes] type. Required. - :type array_body: list[str] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_string_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, _models.FooEnum]]: - """Get enum array value ['foo1', 'foo2', 'foo3']. - - :return: list of FooEnum or the result of cls(response) - :rtype: list[str or ~azure.mgmt.test.models.FooEnum] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Union[str, _models.FooEnum]]] = kwargs.pop("cls", None) - - _request = build_get_enum_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_enum_valid( - self, array_body: List[Union[str, _models.FooEnum]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: list[str or ~azure.mgmt.test.models.FooEnum] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_enum_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_enum_valid( - self, array_body: Union[List[Union[str, _models.FooEnum]], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Is either a [Union[str, "_models.FooEnum"]] type or a IO[bytes] type. - Required. - :type array_body: list[str or ~azure.mgmt.test.models.FooEnum] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_enum_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, _models.Enum0]]: - """Get enum array value ['foo1', 'foo2', 'foo3']. - - :return: list of Enum0 or the result of cls(response) - :rtype: list[str or ~azure.mgmt.test.models.Enum0] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Union[str, _models.Enum0]]] = kwargs.pop("cls", None) - - _request = build_get_string_enum_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_string_enum_valid( - self, array_body: List[Union[str, _models.Enum1]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: list[str or ~azure.mgmt.test.models.Enum1] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_string_enum_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_string_enum_valid( - self, array_body: Union[List[Union[str, _models.Enum1]], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Is either a [Union[str, "_models.Enum1"]] type or a IO[bytes] type. - Required. - :type array_body: list[str or ~azure.mgmt.test.models.Enum1] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_string_enum_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_string_with_null(self, **kwargs: Any) -> List[str]: - """Get string array value ['foo', null, 'foo2']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_string_with_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: - """Get string array value ['foo', 123, 'foo2']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_string_with_invalid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_uuid_valid(self, **kwargs: Any) -> List[str]: - """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_uuid_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_uuid_valid( - self, array_body: List[str], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: Required. - :type array_body: list[str] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_uuid_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_uuid_valid(self, array_body: Union[List[str], IO[bytes]], **kwargs: Any) -> None: - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: Is either a [str] type or a IO[bytes] type. Required. - :type array_body: list[str] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_uuid_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: - """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_uuid_invalid_chars_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: - """Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :return: list of date or the result of cls(response) - :rtype: list[~datetime.date] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.date]] = kwargs.pop("cls", None) - - _request = build_get_date_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[date]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_date_valid( - self, array_body: List[datetime.date], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: Required. - :type array_body: list[~datetime.date] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_date_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_date_valid(self, array_body: Union[List[datetime.date], IO[bytes]], **kwargs: Any) -> None: - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: Is either a [datetime.date] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.date] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[date]") - - _request = build_put_date_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: - """Get date array value ['2012-01-01', null, '1776-07-04']. - - :return: list of date or the result of cls(response) - :rtype: list[~datetime.date] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.date]] = kwargs.pop("cls", None) - - _request = build_get_date_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[date]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: - """Get date array value ['2011-03-22', 'date']. - - :return: list of date or the result of cls(response) - :rtype: list[~datetime.date] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.date]] = kwargs.pop("cls", None) - - _request = build_get_date_invalid_chars_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[date]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[iso-8601]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_date_time_valid( - self, array_body: List[datetime.datetime], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: Required. - :type array_body: list[~datetime.datetime] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_date_time_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_date_time_valid(self, array_body: Union[List[datetime.datetime], IO[bytes]], **kwargs: Any) -> None: - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: Is either a [datetime.datetime] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.datetime] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[iso-8601]") - - _request = build_put_date_time_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date array value ['2000-12-01t00:00:01z', null]. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[iso-8601]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date array value ['2000-12-01t00:00:01z', 'date-time']. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_invalid_chars_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[iso-8601]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', - 'Wed, 12 Oct 1492 10:15:01 GMT']. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_rfc1123_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[rfc-1123]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_date_time_rfc1123_valid( - self, array_body: List[datetime.datetime], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: Required. - :type array_body: list[~datetime.datetime] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_date_time_rfc1123_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_date_time_rfc1123_valid( - self, array_body: Union[List[datetime.datetime], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: Is either a [datetime.datetime] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.datetime] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[rfc-1123]") - - _request = build_put_date_time_rfc1123_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: - """Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :return: list of timedelta or the result of cls(response) - :rtype: list[~datetime.timedelta] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.timedelta]] = kwargs.pop("cls", None) - - _request = build_get_duration_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[duration]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_duration_valid( - self, array_body: List[datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: Required. - :type array_body: list[~datetime.timedelta] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_duration_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_duration_valid(self, array_body: Union[List[datetime.timedelta], IO[bytes]], **kwargs: Any) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: Is either a [datetime.timedelta] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.timedelta] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[duration]") - - _request = build_put_duration_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_byte_valid(self, **kwargs: Any) -> List[bytes]: - """Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded - in base64. - - :return: list of bytes or the result of cls(response) - :rtype: list[bytes] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bytes]] = kwargs.pop("cls", None) - - _request = build_get_byte_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bytearray]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_byte_valid( - self, array_body: List[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: Required. - :type array_body: list[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_byte_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_byte_valid(self, array_body: Union[List[bytes], IO[bytes]], **kwargs: Any) -> None: - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: Is either a [bytes] type or a IO[bytes] type. Required. - :type array_body: list[bytes] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[bytearray]") - - _request = build_put_byte_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytes]: - """Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - - :return: list of bytes or the result of cls(response) - :rtype: list[bytes] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bytes]] = kwargs.pop("cls", None) - - _request = build_get_byte_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bytearray]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_base64_url(self, **kwargs: Any) -> List[bytes]: - """Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with - the items base64url encoded. - - :return: list of bytes or the result of cls(response) - :rtype: list[bytes] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bytes]] = kwargs.pop("cls", None) - - _request = build_get_base64_url_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[base64]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_complex_null(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type null value. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_complex_empty(self, **kwargs: Any) -> List[_models.Product]: - """Get empty array of complex type []. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_complex_item_null(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, - 'string': '6'}]. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_item_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_complex_item_empty(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, - 'string': '6'}]. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_item_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_complex_valid(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, - {'integer': 5, 'string': '6'}]. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_complex_valid( - self, array_body: List[_models.Product], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: Required. - :type array_body: list[~azure.mgmt.test.models.Product] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_complex_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_complex_valid(self, array_body: Union[List[_models.Product], IO[bytes]], **kwargs: Any) -> None: - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: Is either a [Product] type or a IO[bytes] type. Required. - :type array_body: list[~azure.mgmt.test.models.Product] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[Product]") - - _request = build_put_complex_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_array_null(self, **kwargs: Any) -> List[List[str]]: - """Get a null array. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: - """Get an empty array []. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: - """Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_item_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: - """Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_item_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: - """Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_array_valid( - self, array_body: List[List[str]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: Required. - :type array_body: list[list[str]] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_array_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_array_valid(self, array_body: Union[List[List[str]], IO[bytes]], **kwargs: Any) -> None: - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: Is either a [[str]] type or a IO[bytes] type. Required. - :type array_body: list[list[str]] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[[str]]") - - _request = build_put_array_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries with value null. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value []. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_item_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_item_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def put_dictionary_valid( - self, array_body: List[Dict[str, str]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: Required. - :type array_body: list[dict[str, str]] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put_dictionary_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def put_dictionary_valid(self, array_body: Union[List[Dict[str, str]], IO[bytes]], **kwargs: Any) -> None: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: Is either a [{str: str}] type or a IO[bytes] type. Required. - :type array_body: list[dict[str, str]] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[{str}]") - - _request = build_put_dictionary_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_http_success_operations.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_http_success_operations.py new file mode 100644 index 00000000000..dbb5e623e19 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_http_success_operations.py @@ -0,0 +1,174 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from collections.abc import MutableMapping +from typing import Any, Callable, Dict, Optional, TypeVar + +from azure.core import AsyncPipelineClient +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ..._utils.serialization import Deserializer, Serializer +from ...operations._http_success_operations import build_head200_request, build_head204_request, build_head404_request +from .._configuration import AutoRestHeadTestServiceConfiguration + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + + +class HttpSuccessOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.test.aio.AutoRestHeadTestService`'s + :attr:`http_success` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: AutoRestHeadTestServiceConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def head200(self, **kwargs: Any) -> bool: + """Return 200 status code if successful. + + :return: bool or the result of cls(response) + :rtype: bool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_head200_request( + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + return 200 <= response.status_code <= 299 + + @distributed_trace_async + async def head204(self, **kwargs: Any) -> bool: + """Return 204 status code if successful. + + :return: bool or the result of cls(response) + :rtype: bool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_head204_request( + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204, 404]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + return 200 <= response.status_code <= 299 + + @distributed_trace_async + async def head404(self, **kwargs: Any) -> bool: + """Return 404 status code if successful. + + :return: bool or the result of cls(response) + :rtype: bool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_head404_request( + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204, 404]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + return 200 <= response.status_code <= 299 diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/apiview-properties.json b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/apiview-properties.json deleted file mode 100644 index 32de3be1ee4..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/apiview-properties.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "azure.mgmt.test.models.Error": null, - "azure.mgmt.test.models.Product": null, - "azure.mgmt.test.models.FooEnum": null, - "azure.mgmt.test.models.Enum0": null, - "azure.mgmt.test.models.Enum1": null, - "azure.mgmt.test.operations.ArrayOperations.get_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_invalid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_invalid": null, - "azure.mgmt.test.operations.ArrayOperations.get_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_empty": null, - "azure.mgmt.test.operations.ArrayOperations.put_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_boolean_tfft": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_boolean_tfft": null, - "azure.mgmt.test.operations.ArrayOperations.put_boolean_tfft": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_boolean_tfft": null, - "azure.mgmt.test.operations.ArrayOperations.get_boolean_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_boolean_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_boolean_invalid_string": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_boolean_invalid_string": null, - "azure.mgmt.test.operations.ArrayOperations.get_integer_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_integer_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_integer_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_integer_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_int_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_int_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_int_invalid_string": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_int_invalid_string": null, - "azure.mgmt.test.operations.ArrayOperations.get_long_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_long_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_long_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_long_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_long_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_long_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_long_invalid_string": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_long_invalid_string": null, - "azure.mgmt.test.operations.ArrayOperations.get_float_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_float_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_float_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_float_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_float_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_float_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_float_invalid_string": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_float_invalid_string": null, - "azure.mgmt.test.operations.ArrayOperations.get_double_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_double_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_double_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_double_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_double_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_double_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_double_invalid_string": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_double_invalid_string": null, - "azure.mgmt.test.operations.ArrayOperations.get_string_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_string_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_string_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_string_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_enum_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_enum_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_enum_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_enum_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_string_enum_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_string_enum_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_string_enum_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_string_enum_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_string_with_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_string_with_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_string_with_invalid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_string_with_invalid": null, - "azure.mgmt.test.operations.ArrayOperations.get_uuid_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_uuid_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_uuid_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_uuid_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_uuid_invalid_chars": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_uuid_invalid_chars": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_date_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_date_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_invalid_chars": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_invalid_chars": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_time_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_time_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_date_time_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_date_time_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_time_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_time_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_time_invalid_chars": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_time_invalid_chars": null, - "azure.mgmt.test.operations.ArrayOperations.get_date_time_rfc1123_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_date_time_rfc1123_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_date_time_rfc1123_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_date_time_rfc1123_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_duration_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_duration_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_duration_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_duration_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_byte_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_byte_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_byte_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_byte_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_byte_invalid_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_byte_invalid_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_base64_url": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_base64_url": null, - "azure.mgmt.test.operations.ArrayOperations.get_complex_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_complex_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_complex_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_complex_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_complex_item_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_complex_item_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_complex_item_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_complex_item_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_complex_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_complex_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_complex_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_complex_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_array_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_array_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_array_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_array_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_array_item_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_array_item_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_array_item_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_array_item_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_array_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_array_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_array_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_array_valid": null, - "azure.mgmt.test.operations.ArrayOperations.get_dictionary_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_dictionary_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_dictionary_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_dictionary_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_dictionary_item_null": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_dictionary_item_null": null, - "azure.mgmt.test.operations.ArrayOperations.get_dictionary_item_empty": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_dictionary_item_empty": null, - "azure.mgmt.test.operations.ArrayOperations.get_dictionary_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.get_dictionary_valid": null, - "azure.mgmt.test.operations.ArrayOperations.put_dictionary_valid": null, - "azure.mgmt.test.aio.operations.ArrayOperations.put_dictionary_valid": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/__init__.py deleted file mode 100644 index d1d939f726a..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=wrong-import-position - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from ._patch import * # pylint: disable=unused-wildcard-import - - -from ._models_py3 import ( # type: ignore - Error, - Product, -) - -from ._auto_rest_swagger_bat_array_service_enums import ( # type: ignore - Enum0, - Enum1, - FooEnum, -) -from ._patch import __all__ as _patch_all -from ._patch import * -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "Error", - "Product", - "Enum0", - "Enum1", - "FooEnum", -] -__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore -_patch_sdk() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_auto_rest_swagger_bat_array_service_enums.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_auto_rest_swagger_bat_array_service_enums.py deleted file mode 100644 index cd601343528..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_auto_rest_swagger_bat_array_service_enums.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class Enum0(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum0.""" - - FOO1 = "foo1" - FOO2 = "foo2" - FOO3 = "foo3" - - -class Enum1(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum1.""" - - FOO1 = "foo1" - FOO2 = "foo2" - FOO3 = "foo3" - - -class FooEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """FooEnum.""" - - FOO1 = "foo1" - FOO2 = "foo2" - FOO3 = "foo3" diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_models_py3.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_models_py3.py deleted file mode 100644 index 35f5e8e8764..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_models_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, Optional - -from .._utils import serialization as _serialization - - -class Error(_serialization.Model): - """Error. - - :ivar status: - :vartype status: int - :ivar message: - :vartype message: str - """ - - _attribute_map = { - "status": {"key": "status", "type": "int"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, status: Optional[int] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword status: - :paramtype status: int - :keyword message: - :paramtype message: str - """ - super().__init__(**kwargs) - self.status = status - self.message = message - - -class Product(_serialization.Model): - """Product. - - :ivar integer: - :vartype integer: int - :ivar string: - :vartype string: str - """ - - _attribute_map = { - "integer": {"key": "integer", "type": "int"}, - "string": {"key": "string", "type": "str"}, - } - - def __init__(self, *, integer: Optional[int] = None, string: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword integer: - :paramtype integer: int - :keyword string: - :paramtype string: str - """ - super().__init__(**kwargs) - self.integer = integer - self.string = string diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_patch.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/__init__.py index 0c3f05cbc3a..7b17a79c595 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/__init__.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/__init__.py @@ -12,14 +12,14 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._array_operations import ArrayOperations # type: ignore +from ._http_success_operations import HttpSuccessOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ArrayOperations", + "HttpSuccessOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_array_operations.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_array_operations.py deleted file mode 100644 index 0cdd630d27b..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_array_operations.py +++ /dev/null @@ -1,5044 +0,0 @@ -# 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. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -import datetime -from io import IOBase -from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import AutoRestSwaggerBATArrayServiceConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/null") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/invalid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/empty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/empty") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_boolean_tfft_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_boolean_tfft_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/boolean/tfft") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_boolean_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/boolean/true.null.false") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_boolean_invalid_string_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/boolean/true.boolean.false") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_integer_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_integer_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/integer/1.-1.3.300") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_int_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/integer/1.null.zero") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_int_invalid_string_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/integer/1.integer.0") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_long_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_long_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/long/1.-1.3.300") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_long_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/long/1.null.zero") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_long_invalid_string_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/long/1.integer.0") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_float_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_float_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/float/0--0.01-1.2e20") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_float_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/float/0.0-null-1.2e20") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_float_invalid_string_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/float/1.number.0") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_double_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_double_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/double/0--0.01-1.2e20") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_double_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/double/0.0-null-1.2e20") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_double_invalid_string_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/double/1.number.0") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_string_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_string_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/string/foo1.foo2.foo3") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_enum_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_enum_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/enum/foo1.foo2.foo3") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_string_enum_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_string_enum_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/string-enum/foo1.foo2.foo3") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_string_with_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/string/foo.null.foo2") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_string_with_invalid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/string/foo.123.foo2") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_uuid_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/uuid/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_uuid_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/uuid/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_uuid_invalid_chars_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/uuid/invalidchars") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_date_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_date_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_date_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date/invalidnull") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_date_invalid_chars_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date/invalidchars") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_date_time_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date-time/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_date_time_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date-time/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_date_time_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date-time/invalidnull") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_date_time_invalid_chars_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date-time/invalidchars") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_date_time_rfc1123_valid_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/date-time-rfc1123/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_duration_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/duration/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_duration_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/duration/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_byte_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/byte/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_byte_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/byte/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_byte_invalid_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/byte/invalidnull") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_base64_url_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/prim/base64url/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_complex_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/complex/null") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_complex_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/complex/empty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_complex_item_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/complex/itemnull") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_complex_item_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/complex/itemempty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_complex_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/complex/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_complex_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/complex/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_array_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/array/null") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_array_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/array/empty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_array_item_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/array/itemnull") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_array_item_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/array/itemempty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_array_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/array/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_array_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/array/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -def build_get_dictionary_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/dictionary/null") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_dictionary_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/dictionary/empty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_dictionary_item_null_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/dictionary/itemnull") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_dictionary_item_empty_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/dictionary/itemempty") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_get_dictionary_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/dictionary/valid") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs) - - -def build_put_dictionary_valid_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/array/dictionary/valid") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) - - -class ArrayOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.test.AutoRestSwaggerBATArrayService`'s - :attr:`array` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AutoRestSwaggerBATArrayServiceConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get_null(self, **kwargs: Any) -> List[int]: - """Get null array value. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_invalid(self, **kwargs: Any) -> List[int]: - """Get invalid array [1, 2, 3. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_invalid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_empty(self, **kwargs: Any) -> List[int]: - """Get empty array value []. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_empty(self, array_body: List[str], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty []. - - :param array_body: Required. - :type array_body: list[str] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_empty(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty []. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_empty( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[str], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value empty []. - - :param array_body: Is either a [str] type or a IO[bytes] type. Required. - :type array_body: list[str] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_empty_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: - """Get boolean array value [true, false, false, true]. - - :return: list of bool or the result of cls(response) - :rtype: list[bool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bool]] = kwargs.pop("cls", None) - - _request = build_get_boolean_tfft_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bool]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_boolean_tfft( - self, array_body: List[bool], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [true, false, false, true]. - - :param array_body: Required. - :type array_body: list[bool] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_boolean_tfft(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty [true, false, false, true]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_boolean_tfft( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[bool], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value empty [true, false, false, true]. - - :param array_body: Is either a [bool] type or a IO[bytes] type. Required. - :type array_body: list[bool] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[bool]") - - _request = build_put_boolean_tfft_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: - """Get boolean array value [true, null, false]. - - :return: list of bool or the result of cls(response) - :rtype: list[bool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bool]] = kwargs.pop("cls", None) - - _request = build_get_boolean_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bool]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: - """Get boolean array value [true, 'boolean', false]. - - :return: list of bool or the result of cls(response) - :rtype: list[bool] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bool]] = kwargs.pop("cls", None) - - _request = build_get_boolean_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bool]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_integer_valid(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, -1, 3, 300]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_integer_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_integer_valid( - self, array_body: List[int], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: list[int] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_integer_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_integer_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[int], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Is either a [int] type or a IO[bytes] type. Required. - :type array_body: list[int] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[int]") - - _request = build_put_integer_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_int_invalid_null(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, null, 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_int_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_int_invalid_string(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, 'integer', 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_int_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_long_valid(self, **kwargs: Any) -> List[int]: - """Get integer array value [1, -1, 3, 300]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_long_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_long_valid(self, array_body: List[int], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: list[int] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_long_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_long_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[int], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value empty [1, -1, 3, 300]. - - :param array_body: Is either a [int] type or a IO[bytes] type. Required. - :type array_body: list[int] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[int]") - - _request = build_put_long_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_long_invalid_null(self, **kwargs: Any) -> List[int]: - """Get long array value [1, null, 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_long_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_long_invalid_string(self, **kwargs: Any) -> List[int]: - """Get long array value [1, 'integer', 0]. - - :return: list of int or the result of cls(response) - :rtype: list[int] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[int]] = kwargs.pop("cls", None) - - _request = build_get_long_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[int]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_float_valid(self, **kwargs: Any) -> List[float]: - """Get float array value [0, -0.01, 1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_float_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_float_valid( - self, array_body: List[float], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: list[float] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_float_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_float_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[float], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Is either a [float] type or a IO[bytes] type. Required. - :type array_body: list[float] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[float]") - - _request = build_put_float_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_float_invalid_null(self, **kwargs: Any) -> List[float]: - """Get float array value [0.0, null, -1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_float_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_float_invalid_string(self, **kwargs: Any) -> List[float]: - """Get boolean array value [1.0, 'number', 0.0]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_float_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_double_valid(self, **kwargs: Any) -> List[float]: - """Get float array value [0, -0.01, 1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_double_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_double_valid( - self, array_body: List[float], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: list[float] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_double_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_double_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[float], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value [0, -0.01, 1.2e20]. - - :param array_body: Is either a [float] type or a IO[bytes] type. Required. - :type array_body: list[float] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[float]") - - _request = build_put_double_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_double_invalid_null(self, **kwargs: Any) -> List[float]: - """Get float array value [0.0, null, -1.2e20]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_double_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_double_invalid_string(self, **kwargs: Any) -> List[float]: - """Get boolean array value [1.0, 'number', 0.0]. - - :return: list of float or the result of cls(response) - :rtype: list[float] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[float]] = kwargs.pop("cls", None) - - _request = build_get_double_invalid_string_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[float]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_string_valid(self, **kwargs: Any) -> List[str]: - """Get string array value ['foo1', 'foo2', 'foo3']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_string_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_string_valid(self, array_body: List[str], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: list[str] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_string_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_string_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[str], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Is either a [str] type or a IO[bytes] type. Required. - :type array_body: list[str] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_string_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_enum_valid(self, **kwargs: Any) -> List[Union[str, _models.FooEnum]]: - """Get enum array value ['foo1', 'foo2', 'foo3']. - - :return: list of FooEnum or the result of cls(response) - :rtype: list[str or ~azure.mgmt.test.models.FooEnum] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Union[str, _models.FooEnum]]] = kwargs.pop("cls", None) - - _request = build_get_enum_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_enum_valid( - self, array_body: List[Union[str, _models.FooEnum]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: list[str or ~azure.mgmt.test.models.FooEnum] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_enum_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_enum_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[Union[str, _models.FooEnum]], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Is either a [Union[str, "_models.FooEnum"]] type or a IO[bytes] type. - Required. - :type array_body: list[str or ~azure.mgmt.test.models.FooEnum] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_enum_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, _models.Enum0]]: - """Get enum array value ['foo1', 'foo2', 'foo3']. - - :return: list of Enum0 or the result of cls(response) - :rtype: list[str or ~azure.mgmt.test.models.Enum0] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Union[str, _models.Enum0]]] = kwargs.pop("cls", None) - - _request = build_get_string_enum_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_string_enum_valid( - self, array_body: List[Union[str, _models.Enum1]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: list[str or ~azure.mgmt.test.models.Enum1] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_string_enum_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_string_enum_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[Union[str, _models.Enum1]], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['foo1', 'foo2', 'foo3']. - - :param array_body: Is either a [Union[str, "_models.Enum1"]] type or a IO[bytes] type. - Required. - :type array_body: list[str or ~azure.mgmt.test.models.Enum1] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_string_enum_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_string_with_null(self, **kwargs: Any) -> List[str]: - """Get string array value ['foo', null, 'foo2']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_string_with_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_string_with_invalid(self, **kwargs: Any) -> List[str]: - """Get string array value ['foo', 123, 'foo2']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_string_with_invalid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_uuid_valid(self, **kwargs: Any) -> List[str]: - """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_uuid_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_uuid_valid(self, array_body: List[str], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: Required. - :type array_body: list[str] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_uuid_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_uuid_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[str], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', - 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. - - :param array_body: Is either a [str] type or a IO[bytes] type. Required. - :type array_body: list[str] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[str]") - - _request = build_put_uuid_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: - """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. - - :return: list of str or the result of cls(response) - :rtype: list[str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[str]] = kwargs.pop("cls", None) - - _request = build_get_uuid_invalid_chars_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[str]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: - """Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :return: list of date or the result of cls(response) - :rtype: list[~datetime.date] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.date]] = kwargs.pop("cls", None) - - _request = build_get_date_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[date]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_date_valid( - self, array_body: List[datetime.date], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: Required. - :type array_body: list[~datetime.date] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_date_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[datetime.date], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. - - :param array_body: Is either a [datetime.date] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.date] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[date]") - - _request = build_put_date_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: - """Get date array value ['2012-01-01', null, '1776-07-04']. - - :return: list of date or the result of cls(response) - :rtype: list[~datetime.date] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.date]] = kwargs.pop("cls", None) - - _request = build_get_date_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[date]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: - """Get date array value ['2011-03-22', 'date']. - - :return: list of date or the result of cls(response) - :rtype: list[~datetime.date] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.date]] = kwargs.pop("cls", None) - - _request = build_get_date_invalid_chars_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[date]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[iso-8601]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_date_time_valid( - self, array_body: List[datetime.datetime], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: Required. - :type array_body: list[~datetime.datetime] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_date_time_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_date_time_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[datetime.datetime], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', - '1492-10-12T10:15:01-08:00']. - - :param array_body: Is either a [datetime.datetime] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.datetime] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[iso-8601]") - - _request = build_put_date_time_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date array value ['2000-12-01t00:00:01z', null]. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[iso-8601]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date array value ['2000-12-01t00:00:01z', 'date-time']. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_invalid_chars_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[iso-8601]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: - """Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', - 'Wed, 12 Oct 1492 10:15:01 GMT']. - - :return: list of datetime or the result of cls(response) - :rtype: list[~datetime.datetime] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.datetime]] = kwargs.pop("cls", None) - - _request = build_get_date_time_rfc1123_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[rfc-1123]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_date_time_rfc1123_valid( - self, array_body: List[datetime.datetime], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: Required. - :type array_body: list[~datetime.datetime] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_date_time_rfc1123_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_date_time_rfc1123_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[datetime.datetime], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 - Oct 1492 10:15:01 GMT']. - - :param array_body: Is either a [datetime.datetime] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.datetime] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[rfc-1123]") - - _request = build_put_date_time_rfc1123_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: - """Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :return: list of timedelta or the result of cls(response) - :rtype: list[~datetime.timedelta] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[datetime.timedelta]] = kwargs.pop("cls", None) - - _request = build_get_duration_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[duration]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_duration_valid( - self, array_body: List[datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: Required. - :type array_body: list[~datetime.timedelta] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_duration_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_duration_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[datetime.timedelta], IO[bytes]], **kwargs: Any - ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. - - :param array_body: Is either a [datetime.timedelta] type or a IO[bytes] type. Required. - :type array_body: list[~datetime.timedelta] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[duration]") - - _request = build_put_duration_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_byte_valid(self, **kwargs: Any) -> List[bytes]: - """Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded - in base64. - - :return: list of bytes or the result of cls(response) - :rtype: list[bytes] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bytes]] = kwargs.pop("cls", None) - - _request = build_get_byte_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bytearray]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_byte_valid(self, array_body: List[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: Required. - :type array_body: list[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_byte_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_byte_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[bytes], IO[bytes]], **kwargs: Any - ) -> None: - """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each - elementencoded in base 64. - - :param array_body: Is either a [bytes] type or a IO[bytes] type. Required. - :type array_body: list[bytes] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[bytearray]") - - _request = build_put_byte_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_byte_invalid_null(self, **kwargs: Any) -> List[bytes]: - """Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. - - :return: list of bytes or the result of cls(response) - :rtype: list[bytes] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bytes]] = kwargs.pop("cls", None) - - _request = build_get_byte_invalid_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[bytearray]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_base64_url(self, **kwargs: Any) -> List[bytes]: - """Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with - the items base64url encoded. - - :return: list of bytes or the result of cls(response) - :rtype: list[bytes] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[bytes]] = kwargs.pop("cls", None) - - _request = build_get_base64_url_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[base64]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_complex_null(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type null value. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_complex_empty(self, **kwargs: Any) -> List[_models.Product]: - """Get empty array of complex type []. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_complex_item_null(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, - 'string': '6'}]. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_item_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_complex_item_empty(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, - 'string': '6'}]. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_item_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_complex_valid(self, **kwargs: Any) -> List[_models.Product]: - """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, - {'integer': 5, 'string': '6'}]. - - :return: list of Product or the result of cls(response) - :rtype: list[~azure.mgmt.test.models.Product] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[_models.Product]] = kwargs.pop("cls", None) - - _request = build_get_complex_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[Product]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_complex_valid( - self, array_body: List[_models.Product], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: Required. - :type array_body: list[~azure.mgmt.test.models.Product] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_complex_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_complex_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[_models.Product], IO[bytes]], **kwargs: Any - ) -> None: - """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, - 'string': '4'}, {'integer': 5, 'string': '6'}]. - - :param array_body: Is either a [Product] type or a IO[bytes] type. Required. - :type array_body: list[~azure.mgmt.test.models.Product] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[Product]") - - _request = build_put_complex_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_array_null(self, **kwargs: Any) -> List[List[str]]: - """Get a null array. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_array_empty(self, **kwargs: Any) -> List[List[str]]: - """Get an empty array []. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: - """Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_item_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: - """Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_item_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_array_valid(self, **kwargs: Any) -> List[List[str]]: - """Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :return: list of list of str or the result of cls(response) - :rtype: list[list[str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[List[str]]] = kwargs.pop("cls", None) - - _request = build_get_array_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[[str]]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_array_valid( - self, array_body: List[List[str]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: Required. - :type array_body: list[list[str]] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_array_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_array_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[List[str]], IO[bytes]], **kwargs: Any - ) -> None: - """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. - - :param array_body: Is either a [[str]] type or a IO[bytes] type. Required. - :type array_body: list[list[str]] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[[str]]") - - _request = build_put_array_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries with value null. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value []. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_item_null_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_item_empty_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :return: list of dict mapping str to str or the result of cls(response) - :rtype: list[dict[str, str]] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[List[Dict[str, str]]] = kwargs.pop("cls", None) - - _request = build_get_dictionary_valid_request( - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("[{str}]", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def put_dictionary_valid( - self, array_body: List[Dict[str, str]], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: Required. - :type array_body: list[dict[str, str]] - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put_dictionary_valid( - self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: Required. - :type array_body: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def put_dictionary_valid( # pylint: disable=inconsistent-return-statements - self, array_body: Union[List[Dict[str, str]], IO[bytes]], **kwargs: Any - ) -> None: - """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': - 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. - - :param array_body: Is either a [{str: str}] type or a IO[bytes] type. Required. - :type array_body: list[dict[str, str]] or IO[bytes] - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(array_body, (IOBase, bytes)): - _content = array_body - else: - _json = self._serialize.body(array_body, "[{str}]") - - _request = build_put_dictionary_valid_request( - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.Error, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_http_success_operations.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_http_success_operations.py new file mode 100644 index 00000000000..b1b62a8b0ff --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_http_success_operations.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from collections.abc import MutableMapping +from typing import Any, Callable, Dict, Optional, TypeVar + +from azure.core import PipelineClient +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.rest import HttpRequest, HttpResponse +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .._configuration import AutoRestHeadTestServiceConfiguration +from .._utils.serialization import Deserializer, Serializer + +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_head200_request(**kwargs: Any) -> HttpRequest: + # Construct URL + _url = kwargs.pop("template_url", "/http/success/200") + + return HttpRequest(method="HEAD", url=_url, **kwargs) + + +def build_head204_request(**kwargs: Any) -> HttpRequest: + # Construct URL + _url = kwargs.pop("template_url", "/http/success/204") + + return HttpRequest(method="HEAD", url=_url, **kwargs) + + +def build_head404_request(**kwargs: Any) -> HttpRequest: + # Construct URL + _url = kwargs.pop("template_url", "/http/success/404") + + return HttpRequest(method="HEAD", url=_url, **kwargs) + + +class HttpSuccessOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.test.AutoRestHeadTestService`'s + :attr:`http_success` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: AutoRestHeadTestServiceConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def head200(self, **kwargs: Any) -> bool: + """Return 200 status code if successful. + + :return: bool or the result of cls(response) + :rtype: bool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_head200_request( + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + return 200 <= response.status_code <= 299 + + @distributed_trace + def head204(self, **kwargs: Any) -> bool: + """Return 204 status code if successful. + + :return: bool or the result of cls(response) + :rtype: bool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_head204_request( + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204, 404]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + return 200 <= response.status_code <= 299 + + @distributed_trace + def head404(self, **kwargs: Any) -> bool: + """Return 404 status code if successful. + + :return: bool or the result of cls(response) + :rtype: bool + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_head404_request( + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204, 404]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + return 200 <= response.status_code <= 299 diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head200.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head200.py new file mode 100644 index 00000000000..d45e1e46672 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head200.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.test import AutoRestHeadTestService + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-test +# USAGE + python http_success_head200.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AutoRestHeadTestService( + credential=DefaultAzureCredential(), + ) + + response = client.http_success.head200() + print(response) + + +if __name__ == "__main__": + main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head204.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head204.py new file mode 100644 index 00000000000..8b1786fbf32 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head204.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.test import AutoRestHeadTestService + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-test +# USAGE + python http_success_head204.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AutoRestHeadTestService( + credential=DefaultAzureCredential(), + ) + + response = client.http_success.head204() + print(response) + + +if __name__ == "__main__": + main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head404.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head404.py new file mode 100644 index 00000000000..7e451b4d724 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/http_success_head404.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.test import AutoRestHeadTestService + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-test +# USAGE + python http_success_head404.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AutoRestHeadTestService( + credential=DefaultAzureCredential(), + ) + + response = client.http_success.head404() + print(response) + + +if __name__ == "__main__": + main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py new file mode 100644 index 00000000000..d45e1e46672 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.test import AutoRestHeadTestService + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-test +# USAGE + python http_success_head200.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AutoRestHeadTestService( + credential=DefaultAzureCredential(), + ) + + response = client.http_success.head200() + print(response) + + +if __name__ == "__main__": + main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py new file mode 100644 index 00000000000..8b1786fbf32 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.test import AutoRestHeadTestService + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-test +# USAGE + python http_success_head204.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AutoRestHeadTestService( + credential=DefaultAzureCredential(), + ) + + response = client.http_success.head204() + print(response) + + +if __name__ == "__main__": + main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py new file mode 100644 index 00000000000..7e451b4d724 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.test import AutoRestHeadTestService + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-test +# USAGE + python http_success_head404.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = AutoRestHeadTestService( + credential=DefaultAzureCredential(), + ) + + response = client.http_success.head404() + print(response) + + +if __name__ == "__main__": + main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/conftest.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/conftest.py new file mode 100644 index 00000000000..c0d4dbcc095 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/conftest.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import os +import pytest +from dotenv import load_dotenv +from devtools_testutils import ( + test_proxy, + add_general_regex_sanitizer, + add_body_key_sanitizer, + add_header_regex_sanitizer, +) + +load_dotenv() + + +# For security, please avoid record sensitive identity information in recordings +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + autorestheadtestservice_subscription_id = os.environ.get( + "AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000" + ) + autorestheadtestservice_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + autorestheadtestservice_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + autorestheadtestservice_client_secret = os.environ.get( + "AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=autorestheadtestservice_subscription_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer(regex=autorestheadtestservice_tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=autorestheadtestservice_client_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer( + regex=autorestheadtestservice_client_secret, value="00000000-0000-0000-0000-000000000000" + ) + + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_body_key_sanitizer(json_path="$..access_token", value="access_token") diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations.py new file mode 100644 index 00000000000..622d5dddc66 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.test import AutoRestHeadTestService + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestAutoRestHeadTestServiceHttpSuccessOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(AutoRestHeadTestService) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_http_success_head200(self, resource_group): + response = self.client.http_success.head200() + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_http_success_head204(self, resource_group): + response = self.client.http_success.head204() + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_http_success_head404(self, resource_group): + response = self.client.http_success.head404() + + # please add some check logic here by yourself + # ... diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations_async.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations_async.py new file mode 100644 index 00000000000..b72085ab870 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_tests/test_auto_rest_head_test_service_http_success_operations_async.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.test.aio import AutoRestHeadTestService + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.skip("you may need to update the auto-generated test case before run it") +class TestAutoRestHeadTestServiceHttpSuccessOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(AutoRestHeadTestService, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_http_success_head200(self, resource_group): + response = await self.client.http_success.head200() + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_http_success_head204(self, resource_group): + response = await self.client.http_success.head204() + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_http_success_head404(self, resource_group): + response = await self.client.http_success.head404() + + # please add some check logic here by yourself + # ... diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/setup.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/setup.py index 9d8eb7c5e3d..e1048961692 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/setup.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/setup.py @@ -13,7 +13,7 @@ PACKAGE_NAME = "azure-mgmt-test" -PACKAGE_PPRINT_NAME = "Azure Mgmt Test" +PACKAGE_PPRINT_NAME = "Test Management" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace("-", "/") diff --git a/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/apiview-properties.json b/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/apiview-properties.json similarity index 100% rename from packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/apiview-properties.json rename to packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/apiview-properties.json diff --git a/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v3/apiview-properties.json b/packages/autorest.python/samples/specification/multiapi/generated/apiview-properties.json similarity index 100% rename from packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v3/apiview-properties.json rename to packages/autorest.python/samples/specification/multiapi/generated/apiview-properties.json diff --git a/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v1/apiview-properties.json b/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v1/apiview-properties.json deleted file mode 100644 index 237149dbc0d..00000000000 --- a/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "azure.multiapi.sample.v1.models.Error": null, - "azure.multiapi.sample.v1.models.PagingResult": null, - "azure.multiapi.sample.v1.models.Product": null, - "azure.multiapi.sample.v1.models.TestLroAndPagingOptions": null, - "azure.multiapi.sample.v1.MultiapiServiceClient.test_one": null, - "azure.multiapi.sample.v1.aio.MultiapiServiceClient.test_one": null, - "azure.multiapi.sample.v1.MultiapiServiceClient.begin_test_lro": null, - "azure.multiapi.sample.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "azure.multiapi.sample.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "azure.multiapi.sample.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "azure.multiapi.sample.v1.MultiapiServiceClient.test_different_calls": null, - "azure.multiapi.sample.v1.aio.MultiapiServiceClient.test_different_calls": null, - "azure.multiapi.sample.v1.operations.OperationGroupOneOperations.test_two": null, - "azure.multiapi.sample.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v2/apiview-properties.json b/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v2/apiview-properties.json deleted file mode 100644 index 616b4235e15..00000000000 --- a/packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "azure.multiapi.sample.v2.models.Error": null, - "azure.multiapi.sample.v2.models.ModelTwo": null, - "azure.multiapi.sample.v2.MultiapiServiceClient.test_one": null, - "azure.multiapi.sample.v2.aio.MultiapiServiceClient.test_one": null, - "azure.multiapi.sample.v2.MultiapiServiceClient.test_different_calls": null, - "azure.multiapi.sample.v2.aio.MultiapiServiceClient.test_different_calls": null, - "azure.multiapi.sample.v2.operations.OperationGroupOneOperations.test_two": null, - "azure.multiapi.sample.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "azure.multiapi.sample.v2.operations.OperationGroupOneOperations.test_three": null, - "azure.multiapi.sample.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "azure.multiapi.sample.v2.operations.OperationGroupTwoOperations.test_four": null, - "azure.multiapi.sample.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9171927061e..eeb078339e7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: ~0.15.1 - version: 0.15.1(6gtvfxfythggrmyik6oqzxhslm) + specifier: C:/dev/typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz + version: file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1696,6 +1696,26 @@ packages: '@typespec/versioning': '>=0.73.0 <1.0.0' '@typespec/xml': '>=0.73.0 <1.0.0' + '@typespec/http-client-python@file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz': + resolution: {integrity: sha512-KRtAr+LUCP+MMJn0Gudfs6r4tLP1hYsNeoPx+ET7O7RYjQDl128v658opFn95TNBSTlHdClD7p+lP/5yNRKVgw==, tarball: file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz} + version: 0.15.2 + engines: {node: '>=20.0.0'} + peerDependencies: + '@azure-tools/typespec-autorest': '>=0.59.0 <1.0.0' + '@azure-tools/typespec-azure-core': '>=0.59.0 <1.0.0' + '@azure-tools/typespec-azure-resource-manager': '>=0.59.0 <1.0.0' + '@azure-tools/typespec-azure-rulesets': '>=0.59.0 <1.0.0' + '@azure-tools/typespec-client-generator-core': '>=0.59.0 <1.0.0' + '@typespec/compiler': ^1.3.0 + '@typespec/events': '>=0.73.0 <1.0.0' + '@typespec/http': ^1.3.0 + '@typespec/openapi': ^1.3.0 + '@typespec/rest': '>=0.73.0 <1.0.0' + '@typespec/sse': '>=0.73.0 <1.0.0' + '@typespec/streams': '>=0.73.0 <1.0.0' + '@typespec/versioning': '>=0.73.0 <1.0.0' + '@typespec/xml': '>=0.73.0 <1.0.0' + '@typespec/http-specs@0.1.0-alpha.25': resolution: {integrity: sha512-3/3uMaWSLjc5wP0gT5K8O7s0bgW/6dJiFpKhFR1HT7y8/rFguVRVXRn/SC43F00ADjE3VVlxWqeSeYK59uuAHw==} engines: {node: '>=16.0.0'} @@ -6484,6 +6504,31 @@ snapshots: - bufferutil - utf-8-validate + '@typespec/http-client-python@file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm)': + dependencies: + '@azure-tools/typespec-autorest': 0.59.0(tlfj6gbglsbr5x2lirzpm33h7y) + '@azure-tools/typespec-azure-core': 0.59.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))) + '@azure-tools/typespec-azure-resource-manager': 0.59.0(egomue5caqif5qoyxrpo53x46e) + '@azure-tools/typespec-azure-rulesets': 0.59.0(@azure-tools/typespec-azure-core@0.59.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.59.0(egomue5caqif5qoyxrpo53x46e))(@azure-tools/typespec-client-generator-core@0.59.0(ethupvbxtb545dqzjqgvsin45a))(@typespec/compiler@1.3.0(@types/node@24.1.0)) + '@azure-tools/typespec-client-generator-core': 0.59.0(ethupvbxtb545dqzjqgvsin45a) + '@typespec/compiler': 1.3.0(@types/node@24.1.0) + '@typespec/events': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) + '@typespec/http': 1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))) + '@typespec/openapi': 1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))) + '@typespec/rest': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))) + '@typespec/sse': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/events@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))) + '@typespec/streams': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) + '@typespec/versioning': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) + '@typespec/xml': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) + js-yaml: 4.1.0 + marked: 15.0.7 + pyodide: 0.26.2 + semver: 7.6.3 + tsx: 4.19.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@typespec/http-specs@0.1.0-alpha.25(@types/node@24.1.0)(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))(@typespec/versioning@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))(@typespec/xml@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))': dependencies: '@typespec/compiler': 1.3.0(@types/node@24.1.0) From e46144c71f29b0c8c8279478827df87e669a7942 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 11:49:49 +0800 Subject: [PATCH 02/11] add test case --- packages/autorest.python/package.json | 2 +- .../test/azure-mgmt-test/azure/__init__.py | 1 - .../azure-mgmt-test/azure/mgmt/__init__.py | 1 - .../azure-mgmt-test/azure/mgmt/test/_patch.py | 9 ++-- .../azure/mgmt/test/aio/_patch.py | 9 ++-- .../azure/mgmt/test/aio/operations/_patch.py | 9 ++-- .../azure/mgmt/test/operations/_patch.py | 9 ++-- .../mgmt/test/http_success_head200.py | 37 ------------- .../mgmt/test/http_success_head204.py | 37 ------------- .../mgmt/test/http_success_head404.py | 37 ------------- .../generated/apiview-properties.json | 22 -------- .../test/unittests/test_samples.py | 52 ++++++++++++------- pnpm-lock.yaml | 49 +---------------- 13 files changed, 55 insertions(+), 219 deletions(-) delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py delete mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py delete mode 100644 packages/autorest.python/samples/specification/multiapi/generated/apiview-properties.json diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 3223c05ddd7..cc344ae102b 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "C:/dev/typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz", + "@typespec/http-client-python": "C:/dev/typespec/packages/http-client-python", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py deleted file mode 100644 index d55ccad1f57..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py deleted file mode 100644 index d55ccad1f57..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_patch.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_patch.py index f7dd3251033..8bcb627aa47 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_patch.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_patch.py @@ -1,7 +1,8 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_patch.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_patch.py index f7dd3251033..8bcb627aa47 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_patch.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_patch.py @@ -1,7 +1,8 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_patch.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_patch.py index f7dd3251033..8bcb627aa47 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_patch.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/operations/_patch.py @@ -1,7 +1,8 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_patch.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_patch.py index f7dd3251033..8bcb627aa47 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_patch.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/operations/_patch.py @@ -1,7 +1,8 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# 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. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py deleted file mode 100644 index d45e1e46672..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head200.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.test import AutoRestHeadTestService - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-test -# USAGE - python http_success_head200.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AutoRestHeadTestService( - credential=DefaultAzureCredential(), - ) - - response = client.http_success.head200() - print(response) - - -if __name__ == "__main__": - main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py deleted file mode 100644 index 8b1786fbf32..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head204.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.test import AutoRestHeadTestService - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-test -# USAGE - python http_success_head204.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AutoRestHeadTestService( - credential=DefaultAzureCredential(), - ) - - response = client.http_success.head204() - print(response) - - -if __name__ == "__main__": - main() diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py deleted file mode 100644 index 7e451b4d724..00000000000 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/generated_samples/mgmt/test/http_success_head404.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.test import AutoRestHeadTestService - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-test -# USAGE - python http_success_head404.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = AutoRestHeadTestService( - credential=DefaultAzureCredential(), - ) - - response = client.http_success.head404() - print(response) - - -if __name__ == "__main__": - main() diff --git a/packages/autorest.python/samples/specification/multiapi/generated/apiview-properties.json b/packages/autorest.python/samples/specification/multiapi/generated/apiview-properties.json deleted file mode 100644 index a2952fef092..00000000000 --- a/packages/autorest.python/samples/specification/multiapi/generated/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "azure.multiapi.sample.v3.models.Error": null, - "azure.multiapi.sample.v3.models.ModelThree": null, - "azure.multiapi.sample.v3.models.PagingResult": null, - "azure.multiapi.sample.v3.models.SourcePath": null, - "azure.multiapi.sample.v3.models.ContentType": null, - "azure.multiapi.sample.v3.MultiapiServiceClient.test_paging": null, - "azure.multiapi.sample.v3.aio.MultiapiServiceClient.test_paging": null, - "azure.multiapi.sample.v3.MultiapiServiceClient.test_different_calls": null, - "azure.multiapi.sample.v3.aio.MultiapiServiceClient.test_different_calls": null, - "azure.multiapi.sample.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "azure.multiapi.sample.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "azure.multiapi.sample.v3.operations.OperationGroupOneOperations.test_two": null, - "azure.multiapi.sample.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "azure.multiapi.sample.v3.operations.OperationGroupTwoOperations.test_four": null, - "azure.multiapi.sample.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "azure.multiapi.sample.v3.operations.OperationGroupTwoOperations.test_five": null, - "azure.multiapi.sample.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/unittests/test_samples.py b/packages/autorest.python/test/unittests/test_samples.py index 0f25523d12f..660f17c0f8c 100644 --- a/packages/autorest.python/test/unittests/test_samples.py +++ b/packages/autorest.python/test/unittests/test_samples.py @@ -3,12 +3,13 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +import os +from pathlib import Path def test_azure_mgmt_test_import(): # just need to check import so that we could make sure the generated code is valid - from azure.mgmt.test import AutoRestSwaggerBATArrayService - from azure.mgmt.test import models + from azure.mgmt.test import AutoRestHeadTestService from azure.mgmt.test import operations @@ -22,9 +23,7 @@ def test_azure_test_import(): def test_package_mode_for_azure_mgmt_test(): - # check whether samples/specification/azure-mgmt-test/test/azure-mgmt-test contains setup.py/CHANGELOG.md - import os - from pathlib import Path + # check whether packaging files are in the right place # Get the path to the samples directory relative to this test file current_dir = Path(__file__).parent @@ -32,18 +31,31 @@ def test_package_mode_for_azure_mgmt_test(): current_dir.parent.parent / "samples" / "specification" / "azure-mgmt-test" / "test" / "azure-mgmt-test" ) - # Check if setup.py exists - setup_py_path = samples_dir / "setup.py" - assert setup_py_path.exists(), f"setup.py not found at {setup_py_path}" - - # Check if CHANGELOG.md exists - changelog_path = samples_dir / "CHANGELOG.md" - assert changelog_path.exists(), f"CHANGELOG.md not found at {changelog_path}" - - # setup.py shall not exist in inner folder - inner_setup_py_path = samples_dir / "azure/mgmt/test/setup.py" - assert not inner_setup_py_path.exists(), f"setup.py should not exist at {inner_setup_py_path}" - - # CHANGELOG.md shall not exist in inner folder - inner_changelog_path = samples_dir / "azure/mgmt/test/CHANGELOG.md" - assert not inner_changelog_path.exists(), f"CHANGELOG.md should not exist at {inner_changelog_path}" + # generated_samples/generated_tests/apiview-properties.json/README.md/LICENSE/dev_requirements.txt/MANIFEST.in + # CHANGELOG.md/setup.py + # shall exist in root folder instead of inner folder + for folder_or_file in [ + "generated_samples", + "generated_tests", + "apiview-properties.json", + "README.md", + "LICENSE", + "dev_requirements.txt", + "MANIFEST.in", + "CHANGELOG.md", + "setup.py", + ]: + assert (samples_dir / folder_or_file).exists(), f"{folder_or_file} not found in {samples_dir}" + assert not ( + samples_dir / "azure/mgmt/test" / folder_or_file + ).exists(), f"{folder_or_file} should not exist in inner folder azure/mgmt/test" + + # py.typed shall exist in inner folder instead of root folder + assert (samples_dir / "azure/mgmt/test/py.typed").exists(), "py.typed should exist in inner folder azure/mgmt/test" + assert not (samples_dir / "py.typed").exists(), "py.typed should not exist in root folder" + + # generated samples/tests file shall be put directly under generated_samples/generted_tests instead of inner folder, + # so there shall be no subfolder + for folder in ["generated_samples", "generated_tests"]: + subdir = [s for s in (samples_dir / folder).iterdir() if s.is_dir()] + assert not subdir, f"Subfolder should not exist in {folder} folder" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eeb078339e7..a197a1bec75 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: C:/dev/typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz - version: file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm) + specifier: C:/dev/typespec/packages/http-client-python + version: link:../../../typespec/packages/http-client-python fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1696,26 +1696,6 @@ packages: '@typespec/versioning': '>=0.73.0 <1.0.0' '@typespec/xml': '>=0.73.0 <1.0.0' - '@typespec/http-client-python@file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz': - resolution: {integrity: sha512-KRtAr+LUCP+MMJn0Gudfs6r4tLP1hYsNeoPx+ET7O7RYjQDl128v658opFn95TNBSTlHdClD7p+lP/5yNRKVgw==, tarball: file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz} - version: 0.15.2 - engines: {node: '>=20.0.0'} - peerDependencies: - '@azure-tools/typespec-autorest': '>=0.59.0 <1.0.0' - '@azure-tools/typespec-azure-core': '>=0.59.0 <1.0.0' - '@azure-tools/typespec-azure-resource-manager': '>=0.59.0 <1.0.0' - '@azure-tools/typespec-azure-rulesets': '>=0.59.0 <1.0.0' - '@azure-tools/typespec-client-generator-core': '>=0.59.0 <1.0.0' - '@typespec/compiler': ^1.3.0 - '@typespec/events': '>=0.73.0 <1.0.0' - '@typespec/http': ^1.3.0 - '@typespec/openapi': ^1.3.0 - '@typespec/rest': '>=0.73.0 <1.0.0' - '@typespec/sse': '>=0.73.0 <1.0.0' - '@typespec/streams': '>=0.73.0 <1.0.0' - '@typespec/versioning': '>=0.73.0 <1.0.0' - '@typespec/xml': '>=0.73.0 <1.0.0' - '@typespec/http-specs@0.1.0-alpha.25': resolution: {integrity: sha512-3/3uMaWSLjc5wP0gT5K8O7s0bgW/6dJiFpKhFR1HT7y8/rFguVRVXRn/SC43F00ADjE3VVlxWqeSeYK59uuAHw==} engines: {node: '>=16.0.0'} @@ -6504,31 +6484,6 @@ snapshots: - bufferutil - utf-8-validate - '@typespec/http-client-python@file:../typespec/packages/http-client-python/typespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm)': - dependencies: - '@azure-tools/typespec-autorest': 0.59.0(tlfj6gbglsbr5x2lirzpm33h7y) - '@azure-tools/typespec-azure-core': 0.59.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))) - '@azure-tools/typespec-azure-resource-manager': 0.59.0(egomue5caqif5qoyxrpo53x46e) - '@azure-tools/typespec-azure-rulesets': 0.59.0(@azure-tools/typespec-azure-core@0.59.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.59.0(egomue5caqif5qoyxrpo53x46e))(@azure-tools/typespec-client-generator-core@0.59.0(ethupvbxtb545dqzjqgvsin45a))(@typespec/compiler@1.3.0(@types/node@24.1.0)) - '@azure-tools/typespec-client-generator-core': 0.59.0(ethupvbxtb545dqzjqgvsin45a) - '@typespec/compiler': 1.3.0(@types/node@24.1.0) - '@typespec/events': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) - '@typespec/http': 1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))) - '@typespec/openapi': 1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))) - '@typespec/rest': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))) - '@typespec/sse': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/events@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))) - '@typespec/streams': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) - '@typespec/versioning': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) - '@typespec/xml': 0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)) - js-yaml: 4.1.0 - marked: 15.0.7 - pyodide: 0.26.2 - semver: 7.6.3 - tsx: 4.19.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - '@typespec/http-specs@0.1.0-alpha.25(@types/node@24.1.0)(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))(@typespec/versioning@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))(@typespec/xml@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))': dependencies: '@typespec/compiler': 1.3.0(@types/node@24.1.0) From e378e17ec05447db442e2146442fa084328970e6 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 13 Aug 2025 03:59:33 +0000 Subject: [PATCH 03/11] Update dependencies --- packages/autorest.python/package.json | 4 ++-- packages/typespec-python/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index cc344ae102b..402ac1dfe71 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "C:/dev/typespec/packages/http-client-python", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} +} \ No newline at end of file diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 1385a38a651..44f948a8311 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.15.1", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file From 5ab7d1fbaf455f5586b02da5ff8d9bb32e7a1f7a Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 13 Aug 2025 04:00:32 +0000 Subject: [PATCH 04/11] Update dependencies (2025-08-13 04:00:32) --- pnpm-lock.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a197a1bec75..f81e26af85f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: C:/dev/typespec/packages/http-client-python - version: link:../../../typespec/packages/http-client-python + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: ~0.15.1 - version: 0.15.1(6gtvfxfythggrmyik6oqzxhslm) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1677,8 +1677,9 @@ packages: peerDependencies: '@typespec/compiler': ^1.3.0 - '@typespec/http-client-python@0.15.1': - resolution: {integrity: sha512-fYoNQ6NgJNweSa0xRzepRdDsWBWS3Sh9vx3aL9KplX/oismlrsVgMxcQ0mBgUjLOrXVO4Q+jBIG2yujcLjFMeg==} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz} + version: 0.15.2 engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.59.0 <1.0.0' @@ -6459,7 +6460,7 @@ snapshots: dependencies: '@typespec/compiler': 1.3.0(@types/node@24.1.0) - '@typespec/http-client-python@0.15.1(6gtvfxfythggrmyik6oqzxhslm)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm)': dependencies: '@azure-tools/typespec-autorest': 0.59.0(tlfj6gbglsbr5x2lirzpm33h7y) '@azure-tools/typespec-azure-core': 0.59.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))) From 52761b04bd8d62f2231c12558e81b2a4bf42c762 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 13 Aug 2025 04:05:30 +0000 Subject: [PATCH 05/11] Regenerate for typespec-python (2025-08-13 04:05:30) --- .../generated/authentication-api-key/pyproject.toml | 4 ++-- .../authentication-http-custom/pyproject.toml | 4 ++-- .../generated/authentication-oauth2/pyproject.toml | 4 ++-- .../generated/authentication-union/pyproject.toml | 4 ++-- .../azure-client-generator-core-access/pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../azure-client-generator-core-usage/pyproject.toml | 4 ++-- .../azure/generated/azure-core-basic/pyproject.toml | 4 ++-- .../azure/generated/azure-core-lro-rpc/pyproject.toml | 4 ++-- .../generated/azure-core-lro-standard/pyproject.toml | 4 ++-- .../azure/generated/azure-core-model/pyproject.toml | 4 ++-- .../azure/generated/azure-core-page/pyproject.toml | 4 ++-- .../azure/generated/azure-core-scalar/pyproject.toml | 4 ++-- .../azure/generated/azure-core-traits/pyproject.toml | 4 ++-- .../generated/azure-encode-duration/pyproject.toml | 4 ++-- .../generated/azure-example-basic/pyproject.toml | 4 ++-- .../generated/azure-payload-pageable/pyproject.toml | 4 ++-- .../pyproject.toml | 6 +++--- .../pyproject.toml | 6 +++--- .../pyproject.toml | 6 +++--- .../pyproject.toml | 6 +++--- .../azure-resource-manager-resources/pyproject.toml | 6 +++--- .../pyproject.toml | 4 ++-- .../azure/generated/client-namespace/pyproject.toml | 4 ++-- .../client-naming-enum-conflict/pyproject.toml | 4 ++-- .../test/azure/generated/client-naming/pyproject.toml | 4 ++-- .../azure/generated/client-overload/pyproject.toml | 4 ++-- .../generated/client-structure-default/pyproject.toml | 4 ++-- .../client-structure-multiclient/pyproject.toml | 4 ++-- .../client-structure-renamedoperation/pyproject.toml | 4 ++-- .../client-structure-twooperationgroup/pyproject.toml | 4 ++-- .../test/azure/generated/encode-bytes/pyproject.toml | 4 ++-- .../azure/generated/encode-datetime/pyproject.toml | 4 ++-- .../azure/generated/encode-duration/pyproject.toml | 4 ++-- .../azure/generated/encode-numeric/pyproject.toml | 4 ++-- .../generation-subdir/apiview-properties.json | 11 +++++++++++ .../azure/generated/generation-subdir/pyproject.toml | 4 ++-- .../azure/generated/headasbooleanfalse/pyproject.toml | 4 ++-- .../azure/generated/headasbooleantrue/pyproject.toml | 4 ++-- .../azure/generated/parameters-basic/pyproject.toml | 4 ++-- .../parameters-body-optionality/pyproject.toml | 4 ++-- .../parameters-collection-format/pyproject.toml | 4 ++-- .../azure/generated/parameters-path/pyproject.toml | 4 ++-- .../azure/generated/parameters-spread/pyproject.toml | 4 ++-- .../payload-content-negotiation/pyproject.toml | 4 ++-- .../generated/payload-json-merge-patch/pyproject.toml | 4 ++-- .../azure/generated/payload-media-type/pyproject.toml | 4 ++-- .../azure/generated/payload-multipart/pyproject.toml | 4 ++-- .../azure/generated/payload-pageable/pyproject.toml | 4 ++-- .../test/azure/generated/payload-xml/pyproject.toml | 4 ++-- .../generated/resiliency-srv-driven1/pyproject.toml | 4 ++-- .../generated/resiliency-srv-driven2/pyproject.toml | 4 ++-- .../response-status-code-range/pyproject.toml | 4 ++-- .../test/azure/generated/routes/pyproject.toml | 4 ++-- .../serialization-encoded-name-json/pyproject.toml | 4 ++-- .../server-endpoint-not-defined/pyproject.toml | 4 ++-- .../generated/server-path-multiple/pyproject.toml | 4 ++-- .../azure/generated/server-path-single/pyproject.toml | 4 ++-- .../server-versions-not-versioned/pyproject.toml | 4 ++-- .../server-versions-versioned/pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../special-headers-repeatability/pyproject.toml | 4 ++-- .../test/azure/generated/special-words/pyproject.toml | 4 ++-- .../azure/generated/streaming-jsonl/pyproject.toml | 4 ++-- .../azure/generated/typetest-array/pyproject.toml | 4 ++-- .../generated/typetest-dictionary/pyproject.toml | 4 ++-- .../generated/typetest-enum-extensible/pyproject.toml | 4 ++-- .../generated/typetest-enum-fixed/pyproject.toml | 4 ++-- .../generated/typetest-model-empty/pyproject.toml | 4 ++-- .../typetest-model-enumdiscriminator/pyproject.toml | 4 ++-- .../typetest-model-nesteddiscriminator/pyproject.toml | 4 ++-- .../typetest-model-notdiscriminated/pyproject.toml | 4 ++-- .../generated/typetest-model-recursive/pyproject.toml | 4 ++-- .../typetest-model-singlediscriminator/pyproject.toml | 4 ++-- .../generated/typetest-model-usage/pyproject.toml | 4 ++-- .../typetest-model-visibility/pyproject.toml | 4 ++-- .../pyproject.toml | 4 ++-- .../typetest-property-nullable/pyproject.toml | 4 ++-- .../typetest-property-optional/pyproject.toml | 4 ++-- .../typetest-property-valuetypes/pyproject.toml | 4 ++-- .../azure/generated/typetest-scalar/pyproject.toml | 4 ++-- .../azure/generated/typetest-union/pyproject.toml | 4 ++-- .../azure/generated/versioning-added/pyproject.toml | 4 ++-- .../generated/versioning-madeoptional/pyproject.toml | 4 ++-- .../azure/generated/versioning-removed/pyproject.toml | 4 ++-- .../generated/versioning-renamedfrom/pyproject.toml | 4 ++-- .../versioning-returntypechangedfrom/pyproject.toml | 4 ++-- .../versioning-typechangedfrom/pyproject.toml | 4 ++-- .../generated/authentication-api-key/pyproject.toml | 2 +- .../authentication-http-custom/pyproject.toml | 2 +- .../generated/authentication-oauth2/pyproject.toml | 2 +- .../generated/authentication-union/pyproject.toml | 2 +- .../unbranded/generated/encode-bytes/pyproject.toml | 2 +- .../generated/encode-datetime/pyproject.toml | 2 +- .../generated/encode-duration/pyproject.toml | 2 +- .../unbranded/generated/encode-numeric/pyproject.toml | 2 +- .../generated/generation-subdir/pyproject.toml | 2 +- .../generated/headasbooleanfalse/pyproject.toml | 2 +- .../generated/headasbooleantrue/pyproject.toml | 2 +- .../generated/parameters-basic/pyproject.toml | 2 +- .../parameters-body-optionality/pyproject.toml | 2 +- .../parameters-collection-format/pyproject.toml | 2 +- .../generated/parameters-path/pyproject.toml | 2 +- .../generated/parameters-spread/pyproject.toml | 2 +- .../payload-content-negotiation/pyproject.toml | 2 +- .../generated/payload-json-merge-patch/pyproject.toml | 2 +- .../generated/payload-media-type/pyproject.toml | 2 +- .../generated/payload-multipart/pyproject.toml | 2 +- .../generated/payload-pageable/pyproject.toml | 2 +- .../unbranded/generated/payload-xml/pyproject.toml | 2 +- .../response-status-code-range/pyproject.toml | 2 +- .../test/unbranded/generated/routes/pyproject.toml | 2 +- .../serialization-encoded-name-json/pyproject.toml | 2 +- .../server-endpoint-not-defined/pyproject.toml | 2 +- .../generated/server-path-multiple/pyproject.toml | 2 +- .../generated/server-path-single/pyproject.toml | 2 +- .../server-versions-not-versioned/pyproject.toml | 2 +- .../server-versions-versioned/pyproject.toml | 2 +- .../pyproject.toml | 2 +- .../special-headers-repeatability/pyproject.toml | 2 +- .../unbranded/generated/special-words/pyproject.toml | 2 +- .../generated/streaming-jsonl/pyproject.toml | 2 +- .../unbranded/generated/typetest-array/pyproject.toml | 2 +- .../generated/typetest-dictionary/pyproject.toml | 2 +- .../generated/typetest-enum-extensible/pyproject.toml | 2 +- .../generated/typetest-enum-fixed/pyproject.toml | 2 +- .../generated/typetest-model-empty/pyproject.toml | 2 +- .../typetest-model-enumdiscriminator/pyproject.toml | 2 +- .../typetest-model-nesteddiscriminator/pyproject.toml | 2 +- .../typetest-model-notdiscriminated/pyproject.toml | 2 +- .../generated/typetest-model-recursive/pyproject.toml | 2 +- .../typetest-model-singlediscriminator/pyproject.toml | 2 +- .../generated/typetest-model-usage/pyproject.toml | 2 +- .../typetest-model-visibility/pyproject.toml | 2 +- .../pyproject.toml | 2 +- .../typetest-property-nullable/pyproject.toml | 2 +- .../typetest-property-optional/pyproject.toml | 2 +- .../typetest-property-valuetypes/pyproject.toml | 2 +- .../generated/typetest-scalar/pyproject.toml | 2 +- .../unbranded/generated/typetest-union/pyproject.toml | 2 +- .../generated/versioning-added/pyproject.toml | 2 +- .../generated/versioning-madeoptional/pyproject.toml | 2 +- .../generated/versioning-removed/pyproject.toml | 2 +- .../generated/versioning-renamedfrom/pyproject.toml | 2 +- .../versioning-returntypechangedfrom/pyproject.toml | 2 +- .../versioning-typechangedfrom/pyproject.toml | 2 +- 153 files changed, 262 insertions(+), 251 deletions(-) create mode 100644 packages/typespec-python/test/azure/generated/generation-subdir/apiview-properties.json diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml index a3cacf4a741..e64a5fbaf0d 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "authentication.apikey._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml index 4a835f70b09..c46a1d37e12 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "authentication.http.custom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml index 11869a90733..7753cdf238e 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "authentication.oauth2._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml b/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml index 42535e68a68..d1a9a1059bd 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "authentication.union._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml index 88f83b43878..8a1276e1148 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.access._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/pyproject.toml index dbfb06d6658..071aef45193 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.alternateapiversion.service.header._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/pyproject.toml index 65495f2f188..636330ba11d 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.alternateapiversion.service.path._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/pyproject.toml index 35652bd75c2..7208cba34b8 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.alternateapiversion.service.query._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml index c20c30ce81b..dcfd892809f 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.clientinitialization._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml index a16fabf3c4e..3bfc121fd55 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.clientlocation._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml index f61389f7beb..c80a457f8a6 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-deserialize-empty-string-as-null/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.emptystring._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml index e2eedf1caa0..8f77e5c6d89 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.flattenproperty._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml index b96d77e34ec..5bf8dd64339 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.override._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml index 4deb28db031..26fe40d21da 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.clientgenerator.core.usage._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml index 531d7bc9362..a4a90605e83 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.basic._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml index 53e187141cb..287610ac853 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.lro.rpc._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml index 4994a3fe57c..b5af20ab51f 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.lro.standard._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml index 9f8523e3f9b..4f7345c67d4 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-model/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.model._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml index 245952d3f5a..d0b633b290f 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-page/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.page._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml index 5cd8bb8653c..106b62d33b3 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-scalar/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.scalar._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml index 2f96a74844e..7ddd19b5d58 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.core.traits._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml index f917bb7d76a..14b067ee3df 100644 --- a/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-encode-duration/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.encode.duration._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml index fc5953b4459..60a18091e74 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.example.basic._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml index 67347bd823d..d5232477e38 100644 --- a/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-payload-pageable/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specs.azure.payload.pageable._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml index 11a19123f33..877e462eac2 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-resourcemanager-commonproperties" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Resourcemanager Commonproperties Client Library for Python" +description = "Microsoft Azure Commonproperties Management Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 4 - Beta", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.resourcemanager.commonproperties._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml index 6999e5fdefa..50966293d55 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-resourcemanager-largeheader" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Resourcemanager Largeheader Client Library for Python" +description = "Microsoft Azure Largeheader Management Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 4 - Beta", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.resourcemanager.largeheader._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml index 2ad8034a1d6..ae4ee04a8a6 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-resourcemanager-nonresource" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Resourcemanager Nonresource Client Library for Python" +description = "Microsoft Azure Nonresource Management Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 4 - Beta", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.resourcemanager.nonresource._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml index 14a309d3210..13ed98b7f82 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-resourcemanager-operationtemplates" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Resourcemanager Operationtemplates Client Library for Python" +description = "Microsoft Azure Operationtemplates Management Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 4 - Beta", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.resourcemanager.operationtemplates._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml index df422150f24..c322f41fb3c 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-resourcemanager-resources" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Resourcemanager Resources Client Library for Python" +description = "Microsoft Azure Resources Management Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 4 - Beta", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.resourcemanager.resources._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml index 450dd544cb3..a69161c043b 100644 --- a/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-special-headers-client-request-id/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.specialheaders.xmsclientrequestid._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml b/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml index eaab29f79c8..30ceb126351 100644 --- a/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.clientnamespace._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/pyproject.toml b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/pyproject.toml index 5823ade48fd..97f6f849ec9 100644 --- a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.naming.enumconflict._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml b/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml index b26f8a88e1f..1d4729e03e9 100644 --- a/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.naming._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-overload/pyproject.toml b/packages/typespec-python/test/azure/generated/client-overload/pyproject.toml index 7d108770067..6babd69cb71 100644 --- a/packages/typespec-python/test/azure/generated/client-overload/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-overload/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.overload._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml index c1bb457fb11..afcd3910fe4 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-default/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.structure.service._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml index 65e6002fed7..43b084b5e35 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.structure.multiclient._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml index 618a7cba4be..994bfe5f79c 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.structure.renamedoperation._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml index aefeac58e69..30e515ff654 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "client.structure.twooperationgroup._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml index 0a19c7f50b5..705e18d73e8 100644 --- a/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "encode.bytes._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml index 48badb503b9..d3dc23e1a5f 100644 --- a/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "encode.datetime._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml index b4a6e299a81..11a3e44c439 100644 --- a/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "encode.duration._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml b/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml index d243a979b22..6b9d6952e06 100644 --- a/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "encode.numeric._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/generation-subdir/apiview-properties.json b/packages/typespec-python/test/azure/generated/generation-subdir/apiview-properties.json new file mode 100644 index 00000000000..46a422c625a --- /dev/null +++ b/packages/typespec-python/test/azure/generated/generation-subdir/apiview-properties.json @@ -0,0 +1,11 @@ +{ + "CrossLanguagePackageId": "Type.Model.Inheritance.Recursive", + "CrossLanguageDefinitionId": { + "generation.subdir.models.Element": "Type.Model.Inheritance.Recursive.Element", + "generation.subdir.models.Extension": "Type.Model.Inheritance.Recursive.Extension", + "generation.subdir.RecursiveClient.put": "Type.Model.Inheritance.Recursive.put", + "generation.subdir.aio.RecursiveClient.put": "Type.Model.Inheritance.Recursive.put", + "generation.subdir.RecursiveClient.get": "Type.Model.Inheritance.Recursive.get", + "generation.subdir.aio.RecursiveClient.get": "Type.Model.Inheritance.Recursive.get" + } +} \ No newline at end of file diff --git a/packages/typespec-python/test/azure/generated/generation-subdir/pyproject.toml b/packages/typespec-python/test/azure/generated/generation-subdir/pyproject.toml index 667e4fa8c15..15b4ddf504b 100644 --- a/packages/typespec-python/test/azure/generated/generation-subdir/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/generation-subdir/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "generation.subdir._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml b/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml index aa1816191d0..08c5a7de16b 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "headasbooleanfalse._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml b/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml index 50200a7f116..cb50ad481ac 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "headasbooleantrue._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml index 93a27814475..4c3fdb3702c 100644 --- a/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "parameters.basic._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml index 07309fb35cd..9650182c546 100644 --- a/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-body-optionality/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "parameters.bodyoptionality._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml index e6be5dc8192..2a8ba32af56 100644 --- a/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-collection-format/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "parameters.collectionformat._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml index df20e61e6cb..c9b61afb757 100644 --- a/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "parameters.path._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml b/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml index f03a137b831..89693a37882 100644 --- a/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "parameters.spread._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml index 2479685a397..3f912a22daf 100644 --- a/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-content-negotiation/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "payload.contentnegotiation._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml index 016c7e3735a..51fb16f1bfe 100644 --- a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "payload.jsonmergepatch._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml index 8c7043e2199..14934d96775 100644 --- a/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-media-type/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "payload.mediatype._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml index 484d6edbd00..2027739d3f6 100644 --- a/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "payload.multipart._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml index f83446daea4..ac74cc09158 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "payload.pageable._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml b/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml index 64c23808b16..69512f93bba 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "payload.xml._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml index 201d1f2cc90..eb7ec7137fc 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "resiliency.srv.driven1._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml index 908a4d9716d..d29025e49a9 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "resiliency.srv.driven2._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml b/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml index 782db3c6228..e4300678432 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "response.statuscoderange._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/routes/pyproject.toml b/packages/typespec-python/test/azure/generated/routes/pyproject.toml index 8686017ec23..dd97483bd25 100644 --- a/packages/typespec-python/test/azure/generated/routes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/routes/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "routes._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml index d7cf30a2472..071e366b3a7 100644 --- a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "serialization.encodedname.json._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml index 04422010b5d..3114bf6ffbe 100644 --- a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "server.endpoint.notdefined._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml b/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml index 25ec5b764c1..556ad25ef0c 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "server.path.multiple._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml b/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml index 909f3c6ad1a..d087c573000 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-path-single/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "server.path.single._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml index 6fdfe6a8079..a9efa2f1711 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "server.versions.notversioned._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml b/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml index bea773e70e9..be1465c20ab 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "server.versions.versioned._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml index 3127799452f..ab1e7699010 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specialheaders.conditionalrequest._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml b/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml index a6b661f2d22..f8fc2bed1c2 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-headers-repeatability/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specialheaders.repeatability._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/special-words/pyproject.toml b/packages/typespec-python/test/azure/generated/special-words/pyproject.toml index 5be797d4976..f6ebd381223 100644 --- a/packages/typespec-python/test/azure/generated/special-words/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-words/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "specialwords._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml b/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml index 920262f2d00..de6631d6638 100644 --- a/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "streaming.jsonl._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml index 5b8d864f70d..4fc8aaeef7d 100644 --- a/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.array._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml index 0647e9ab0e0..0d61eec3e12 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.dictionary._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml index e300a904615..f8ba6b449d6 100644 --- a/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-enum-extensible/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.enum.extensible._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml index e1373f3576e..7133579b4c3 100644 --- a/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-enum-fixed/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.enum.fixed._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml index 5a9f7f3d775..1fd43de5c18 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-empty/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.empty._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml index a84b8988756..71318aad053 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.enumdiscriminator._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml index 816cfcf9278..300aeac9100 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.nesteddiscriminator._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml index 51cf11dffac..c8a5bb99f6f 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.notdiscriminated._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml index 602606e980c..37e8e88542c 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-recursive/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.recursive._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml index a4b3e874c1c..c6a6c5ac4df 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.singlediscriminator._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml index 04102e6110d..eaa91cdd3f6 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-usage/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.usage._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml index 418c8a42972..110db895e43 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-model-visibility/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.model.visibility._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml index 3da4fe9e939..447a83cb6db 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.property.additionalproperties._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml index 5423d08f468..a470e2af451 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-nullable/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.property.nullable._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml index 0c92018b145..8e1e7d1f9c0 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.property.optional._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml index 3408b714841..40787f03ebd 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.property.valuetypes._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml index 43a519c5440..7528a1fd103 100644 --- a/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.scalar._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml b/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml index 47808459e48..74fe0136d0a 100644 --- a/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "typetest.union._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml index 0614ada0b47..2f23f1fc5f0 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "versioning.added._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml index 556b78996fd..b1b012ca6d6 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "versioning.madeoptional._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml index 27ab4394e29..a81c0e17fe4 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "versioning.removed._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml index 941d4352af5..47b3eb3df23 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "versioning.renamedfrom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml index ba08ea80ff0..a1417aebca4 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "versioning.returntypechangedfrom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml index 77fe1868d35..d5a4892887f 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "versioning.typechangedfrom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml index 9d1a19912c9..fc15913e05f 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "authentication.apikey._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml index cbc16bda386..1f99fea00b2 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "authentication.http.custom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml index fbf52b9dd32..8ba2be9cab2 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "authentication.oauth2._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml b/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml index 23b3737ccda..8e8ced831ae 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "authentication.union._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml index e7427787f5e..5da7bb0f54c 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "encode.bytes._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml index 303bea32b95..099b13d4f98 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "encode.datetime._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml index 03aa2285a4b..c3959805b88 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "encode.duration._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml b/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml index 7ec0fdb1e0d..bf553c9a4a0 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "encode.numeric._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/generation-subdir/pyproject.toml b/packages/typespec-python/test/unbranded/generated/generation-subdir/pyproject.toml index 788c37bec66..a4fa2d4dcb3 100644 --- a/packages/typespec-python/test/unbranded/generated/generation-subdir/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/generation-subdir/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "generation.subdir._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml index cbf079106a6..51e5f9c4e2e 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "headasbooleanfalse._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml index d2fa2a96e0f..3769d15c1e2 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "headasbooleantrue._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml index 53773f384b5..d2e7fd1451e 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "parameters.basic._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml index dfad29d3edf..114093bcdb6 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "parameters.bodyoptionality._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml index 25e8731ba75..bf9d1a1d91c 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-collection-format/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "parameters.collectionformat._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml index 8e1a2e6bc91..dbf9a96b786 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "parameters.path._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml b/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml index 94f298f00fa..4071cbf0c90 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "parameters.spread._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml index 78b17705824..d670ed74b70 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "payload.contentnegotiation._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml index ee986bac234..6d0c247c227 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "payload.jsonmergepatch._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml index 06b12d8c2c8..ada434922de 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-media-type/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "payload.mediatype._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml index 53a9096a64f..78379bed916 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "payload.multipart._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml index 8cad1628d26..1432a744ade 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "payload.pageable._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml b/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml index e322970c669..41e6fea6cb5 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "payload.xml._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml b/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml index 736cc50dce7..cb5fb092940 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "response.statuscoderange._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml index 7e1e649e72b..e0f5f6f6a21 100644 --- a/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "routes._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml index 44904af2ef9..72cc3ca28a3 100644 --- a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "serialization.encodedname.json._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml index 603a22ec0ae..0c46a6ffea1 100644 --- a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "server.endpoint.notdefined._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml index 91cea51677f..c9f38b4ff65 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "server.path.multiple._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml index f6429fa52e6..321fbdad5f3 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "server.path.single._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml index 84144e568ed..ef2a0624755 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "server.versions.notversioned._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml index 85c133ce407..b0d6c670737 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "server.versions.versioned._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml index 60950931cfe..94e4044ddfd 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "specialheaders.conditionalrequest._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml b/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml index 9ad71a2fa63..4580c52542d 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-headers-repeatability/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "specialheaders.repeatability._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml b/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml index 5586882eff3..d3032ad194f 100644 --- a/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "specialwords._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml index 3a3e8bfdd0a..5b6a161f9e3 100644 --- a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "streaming.jsonl._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml index 6e81e945094..ea795e387bf 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.array._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml index ecda89bd78e..964ee777040 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.dictionary._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml index 0b37796f564..da6034930d3 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-enum-extensible/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.enum.extensible._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml index e189b50c414..279217be8ca 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-enum-fixed/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.enum.fixed._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml index 3b7d7889bf8..db254f43c5b 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-empty/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.empty._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml index 1ebc822e1a7..812db32fc28 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.enumdiscriminator._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml index 7783ee8e0fb..dcc15aec5ab 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.nesteddiscriminator._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml index a80a568047b..0d49441651b 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.notdiscriminated._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml index e621e78ec94..5711576f845 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.recursive._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml index 8f06a52ad6d..be9570a9123 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.singlediscriminator._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml index bb80d7ebf24..baaea4403f9 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.usage._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml index e387f9ef107..9ef0dc53a2d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.model.visibility._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml index 8cd7b1802ac..c123e00690b 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.property.additionalproperties._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml index 04555582a18..9c701f3a86d 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.property.nullable._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml index 5240ba45435..f8750363c21 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.property.optional._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml index 68851db66ac..f31ef8a56eb 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.property.valuetypes._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml index c613b0cccd3..d6d7464941a 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.scalar._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml b/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml index 3a01447a3b9..911eadb7f5c 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "typetest.union._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml index bfa8eb3ee6d..0695a6052f3 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "versioning.added._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml index 58f1db77e65..d8eedffde81 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "versioning.madeoptional._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml index fa3a4be36f9..5ba79a8bcc0 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "versioning.removed._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml index 8c536efe487..5dc66c298a3 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "versioning.renamedfrom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml index dd80908ed7b..21577e81813 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "versioning.returntypechangedfrom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml index c22d3af1782..8119b4e84d8 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml @@ -34,7 +34,7 @@ dynamic = [ [tool.setuptools.dynamic] version = {attr = "versioning.typechangedfrom._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ From 7d7cee4574280a372d15ff93030316840871d55e Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Wed, 13 Aug 2025 04:21:44 +0000 Subject: [PATCH 06/11] Regenerate for autorest.python (2025-08-13 04:21:44) --- .../PackageModeBatch/pyproject.toml | 6 ++--- .../PackageModeDataPlane/pyproject.toml | 6 ++--- .../PackageModeMgmtPlane/pyproject.toml | 6 ++--- .../multiapi/v0/apiview-properties.json | 10 --------- .../multiapi/v1/apiview-properties.json | 19 ---------------- .../multiapi/v2/apiview-properties.json | 17 -------------- .../multiapi/v3/apiview-properties.json | 22 ------------------- .../v1/apiview-properties.json | 19 ---------------- .../v2/apiview-properties.json | 17 -------------- .../v3/apiview-properties.json | 22 ------------------- .../v1/apiview-properties.json | 8 ------- .../v2/apiview-properties.json | 8 ------- .../v1/apiview-properties.json | 19 ---------------- .../v2/apiview-properties.json | 17 -------------- .../v3/apiview-properties.json | 22 ------------------- .../v1/apiview-properties.json | 19 ---------------- .../v2/apiview-properties.json | 17 -------------- .../v3/apiview-properties.json | 22 ------------------- .../v1/apiview-properties.json | 19 ---------------- .../v2/apiview-properties.json | 17 -------------- .../v3/apiview-properties.json | 22 ------------------- .../v0/apiview-properties.json | 10 --------- .../v1/apiview-properties.json | 19 ---------------- .../submodule/v1/apiview-properties.json | 19 ---------------- .../submodule/v2/apiview-properties.json | 17 -------------- .../submodule/v3/apiview-properties.json | 22 ------------------- .../InternalOperation/pyproject.toml | 4 ++-- .../PackageModeDataPlane/pyproject.toml | 4 ++-- 28 files changed, 13 insertions(+), 416 deletions(-) delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v3/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v0/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/apiview-properties.json delete mode 100644 packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/apiview-properties.json diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml index 809f91c5c2d..b6603e7d3be 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-packagemode-batch" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Package Mode Batch Mgmt Plane Client Library for Python" +description = "Microsoft Azure Azure Package Mode Batch Mgmt Plane Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.packagemode.batch._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml index ce1e890d9de..074f567c5e8 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-packagemode-dataplane" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Package Mode Data Plane Client Library for Python" +description = "Microsoft Azure Azure Package Mode Data Plane Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.packagemode.dataplane._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml index f4e100dd382..b505597c141 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/pyproject.toml @@ -14,7 +14,7 @@ name = "azure-package-mode" authors = [ { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, ] -description = "Microsoft Corporation Azure Package Mode Client Library for Python" +description = "Microsoft Azure Azure Package Mode Client Library for Python" license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "azure.package.mode._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/apiview-properties.json deleted file mode 100644 index 0fc2d90d5ca..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/apiview-properties.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapi.v0.models.Error": null, - "multiapi.v0.models.PagingResult": null, - "multiapi.v0.models.Product": null, - "multiapi.v0.operations.OperationGroupOneOperations.test_two": null, - "multiapi.v0.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/apiview-properties.json deleted file mode 100644 index d71abb978df..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapi.v1.models.Error": null, - "multiapi.v1.models.PagingResult": null, - "multiapi.v1.models.Product": null, - "multiapi.v1.models.TestLroAndPagingOptions": null, - "multiapi.v1.MultiapiServiceClient.test_one": null, - "multiapi.v1.aio.MultiapiServiceClient.test_one": null, - "multiapi.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapi.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapi.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapi.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapi.v1.MultiapiServiceClient.test_different_calls": null, - "multiapi.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapi.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapi.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/apiview-properties.json deleted file mode 100644 index 410ef24eb60..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapi.v2.models.Error": null, - "multiapi.v2.models.ModelTwo": null, - "multiapi.v2.MultiapiServiceClient.test_one": null, - "multiapi.v2.aio.MultiapiServiceClient.test_one": null, - "multiapi.v2.MultiapiServiceClient.test_different_calls": null, - "multiapi.v2.aio.MultiapiServiceClient.test_different_calls": null, - "multiapi.v2.operations.OperationGroupOneOperations.test_two": null, - "multiapi.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapi.v2.operations.OperationGroupOneOperations.test_three": null, - "multiapi.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "multiapi.v2.operations.OperationGroupTwoOperations.test_four": null, - "multiapi.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/apiview-properties.json deleted file mode 100644 index a7486f79000..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapi.v3.models.Error": null, - "multiapi.v3.models.ModelThree": null, - "multiapi.v3.models.PagingResult": null, - "multiapi.v3.models.SourcePath": null, - "multiapi.v3.models.ContentType": null, - "multiapi.v3.MultiapiServiceClient.test_paging": null, - "multiapi.v3.aio.MultiapiServiceClient.test_paging": null, - "multiapi.v3.MultiapiServiceClient.test_different_calls": null, - "multiapi.v3.aio.MultiapiServiceClient.test_different_calls": null, - "multiapi.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapi.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapi.v3.operations.OperationGroupOneOperations.test_two": null, - "multiapi.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapi.v3.operations.OperationGroupTwoOperations.test_four": null, - "multiapi.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "multiapi.v3.operations.OperationGroupTwoOperations.test_five": null, - "multiapi.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/apiview-properties.json deleted file mode 100644 index b5200153332..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapicredentialdefaultpolicy.v1.models.Error": null, - "multiapicredentialdefaultpolicy.v1.models.PagingResult": null, - "multiapicredentialdefaultpolicy.v1.models.Product": null, - "multiapicredentialdefaultpolicy.v1.models.TestLroAndPagingOptions": null, - "multiapicredentialdefaultpolicy.v1.MultiapiServiceClient.test_one": null, - "multiapicredentialdefaultpolicy.v1.aio.MultiapiServiceClient.test_one": null, - "multiapicredentialdefaultpolicy.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapicredentialdefaultpolicy.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapicredentialdefaultpolicy.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapicredentialdefaultpolicy.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapicredentialdefaultpolicy.v1.MultiapiServiceClient.test_different_calls": null, - "multiapicredentialdefaultpolicy.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapicredentialdefaultpolicy.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapicredentialdefaultpolicy.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/apiview-properties.json deleted file mode 100644 index 24e7bfa6c92..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapicredentialdefaultpolicy.v2.models.Error": null, - "multiapicredentialdefaultpolicy.v2.models.ModelTwo": null, - "multiapicredentialdefaultpolicy.v2.MultiapiServiceClient.test_one": null, - "multiapicredentialdefaultpolicy.v2.aio.MultiapiServiceClient.test_one": null, - "multiapicredentialdefaultpolicy.v2.MultiapiServiceClient.test_different_calls": null, - "multiapicredentialdefaultpolicy.v2.aio.MultiapiServiceClient.test_different_calls": null, - "multiapicredentialdefaultpolicy.v2.operations.OperationGroupOneOperations.test_two": null, - "multiapicredentialdefaultpolicy.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapicredentialdefaultpolicy.v2.operations.OperationGroupOneOperations.test_three": null, - "multiapicredentialdefaultpolicy.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "multiapicredentialdefaultpolicy.v2.operations.OperationGroupTwoOperations.test_four": null, - "multiapicredentialdefaultpolicy.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/apiview-properties.json deleted file mode 100644 index 12d8f074b6a..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapicredentialdefaultpolicy.v3.models.Error": null, - "multiapicredentialdefaultpolicy.v3.models.ModelThree": null, - "multiapicredentialdefaultpolicy.v3.models.PagingResult": null, - "multiapicredentialdefaultpolicy.v3.models.SourcePath": null, - "multiapicredentialdefaultpolicy.v3.models.ContentType": null, - "multiapicredentialdefaultpolicy.v3.MultiapiServiceClient.test_paging": null, - "multiapicredentialdefaultpolicy.v3.aio.MultiapiServiceClient.test_paging": null, - "multiapicredentialdefaultpolicy.v3.MultiapiServiceClient.test_different_calls": null, - "multiapicredentialdefaultpolicy.v3.aio.MultiapiServiceClient.test_different_calls": null, - "multiapicredentialdefaultpolicy.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapicredentialdefaultpolicy.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapicredentialdefaultpolicy.v3.operations.OperationGroupOneOperations.test_two": null, - "multiapicredentialdefaultpolicy.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapicredentialdefaultpolicy.v3.operations.OperationGroupTwoOperations.test_four": null, - "multiapicredentialdefaultpolicy.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "multiapicredentialdefaultpolicy.v3.operations.OperationGroupTwoOperations.test_five": null, - "multiapicredentialdefaultpolicy.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/apiview-properties.json deleted file mode 100644 index 40c8c60e076..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/apiview-properties.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapicustombaseurl.v1.models.Error": null, - "multiapicustombaseurl.v1.MultiapiCustomBaseUrlServiceClient.test": null, - "multiapicustombaseurl.v1.aio.MultiapiCustomBaseUrlServiceClient.test": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/apiview-properties.json deleted file mode 100644 index 1736b39690b..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/apiview-properties.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapicustombaseurl.v2.models.Error": null, - "multiapicustombaseurl.v2.MultiapiCustomBaseUrlServiceClient.test": null, - "multiapicustombaseurl.v2.aio.MultiapiCustomBaseUrlServiceClient.test": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/apiview-properties.json deleted file mode 100644 index 8ed165e4110..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapidataplane.v1.models.Error": null, - "multiapidataplane.v1.models.PagingResult": null, - "multiapidataplane.v1.models.Product": null, - "multiapidataplane.v1.models.TestLroAndPagingOptions": null, - "multiapidataplane.v1.MultiapiServiceClient.test_one": null, - "multiapidataplane.v1.aio.MultiapiServiceClient.test_one": null, - "multiapidataplane.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapidataplane.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapidataplane.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapidataplane.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapidataplane.v1.MultiapiServiceClient.test_different_calls": null, - "multiapidataplane.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapidataplane.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapidataplane.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/apiview-properties.json deleted file mode 100644 index af56f9e0c9b..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapidataplane.v2.models.Error": null, - "multiapidataplane.v2.models.ModelTwo": null, - "multiapidataplane.v2.MultiapiServiceClient.test_one": null, - "multiapidataplane.v2.aio.MultiapiServiceClient.test_one": null, - "multiapidataplane.v2.MultiapiServiceClient.test_different_calls": null, - "multiapidataplane.v2.aio.MultiapiServiceClient.test_different_calls": null, - "multiapidataplane.v2.operations.OperationGroupOneOperations.test_two": null, - "multiapidataplane.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapidataplane.v2.operations.OperationGroupOneOperations.test_three": null, - "multiapidataplane.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "multiapidataplane.v2.operations.OperationGroupTwoOperations.test_four": null, - "multiapidataplane.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/apiview-properties.json deleted file mode 100644 index 9240a543d16..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapidataplane.v3.models.Error": null, - "multiapidataplane.v3.models.ModelThree": null, - "multiapidataplane.v3.models.PagingResult": null, - "multiapidataplane.v3.models.SourcePath": null, - "multiapidataplane.v3.models.ContentType": null, - "multiapidataplane.v3.MultiapiServiceClient.test_paging": null, - "multiapidataplane.v3.aio.MultiapiServiceClient.test_paging": null, - "multiapidataplane.v3.MultiapiServiceClient.test_different_calls": null, - "multiapidataplane.v3.aio.MultiapiServiceClient.test_different_calls": null, - "multiapidataplane.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapidataplane.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapidataplane.v3.operations.OperationGroupOneOperations.test_two": null, - "multiapidataplane.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapidataplane.v3.operations.OperationGroupTwoOperations.test_four": null, - "multiapidataplane.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "multiapidataplane.v3.operations.OperationGroupTwoOperations.test_five": null, - "multiapidataplane.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v1/apiview-properties.json deleted file mode 100644 index d3e3f514eb2..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapikeywordonly.v1.models.Error": null, - "multiapikeywordonly.v1.models.PagingResult": null, - "multiapikeywordonly.v1.models.Product": null, - "multiapikeywordonly.v1.models.TestLroAndPagingOptions": null, - "multiapikeywordonly.v1.MultiapiServiceClient.test_one": null, - "multiapikeywordonly.v1.aio.MultiapiServiceClient.test_one": null, - "multiapikeywordonly.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapikeywordonly.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapikeywordonly.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapikeywordonly.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapikeywordonly.v1.MultiapiServiceClient.test_different_calls": null, - "multiapikeywordonly.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapikeywordonly.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapikeywordonly.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v2/apiview-properties.json deleted file mode 100644 index 1a08f77e207..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapikeywordonly.v2.models.Error": null, - "multiapikeywordonly.v2.models.ModelTwo": null, - "multiapikeywordonly.v2.MultiapiServiceClient.test_one": null, - "multiapikeywordonly.v2.aio.MultiapiServiceClient.test_one": null, - "multiapikeywordonly.v2.MultiapiServiceClient.test_different_calls": null, - "multiapikeywordonly.v2.aio.MultiapiServiceClient.test_different_calls": null, - "multiapikeywordonly.v2.operations.OperationGroupOneOperations.test_two": null, - "multiapikeywordonly.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapikeywordonly.v2.operations.OperationGroupOneOperations.test_three": null, - "multiapikeywordonly.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "multiapikeywordonly.v2.operations.OperationGroupTwoOperations.test_four": null, - "multiapikeywordonly.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v3/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v3/apiview-properties.json deleted file mode 100644 index 2ed98f96f9e..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiKeywordOnly/multiapikeywordonly/v3/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapikeywordonly.v3.models.Error": null, - "multiapikeywordonly.v3.models.ModelThree": null, - "multiapikeywordonly.v3.models.PagingResult": null, - "multiapikeywordonly.v3.models.SourcePath": null, - "multiapikeywordonly.v3.models.ContentType": null, - "multiapikeywordonly.v3.MultiapiServiceClient.test_paging": null, - "multiapikeywordonly.v3.aio.MultiapiServiceClient.test_paging": null, - "multiapikeywordonly.v3.MultiapiServiceClient.test_different_calls": null, - "multiapikeywordonly.v3.aio.MultiapiServiceClient.test_different_calls": null, - "multiapikeywordonly.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapikeywordonly.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapikeywordonly.v3.operations.OperationGroupOneOperations.test_two": null, - "multiapikeywordonly.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapikeywordonly.v3.operations.OperationGroupTwoOperations.test_four": null, - "multiapikeywordonly.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "multiapikeywordonly.v3.operations.OperationGroupTwoOperations.test_five": null, - "multiapikeywordonly.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/apiview-properties.json deleted file mode 100644 index 89f4acbf016..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapinoasync.v1.models.Error": null, - "multiapinoasync.v1.models.PagingResult": null, - "multiapinoasync.v1.models.Product": null, - "multiapinoasync.v1.models.TestLroAndPagingOptions": null, - "multiapinoasync.v1.MultiapiServiceClient.test_one": null, - "multiapinoasync.v1.aio.MultiapiServiceClient.test_one": null, - "multiapinoasync.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapinoasync.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapinoasync.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapinoasync.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapinoasync.v1.MultiapiServiceClient.test_different_calls": null, - "multiapinoasync.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapinoasync.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapinoasync.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/apiview-properties.json deleted file mode 100644 index d78340f5d49..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapinoasync.v2.models.Error": null, - "multiapinoasync.v2.models.ModelTwo": null, - "multiapinoasync.v2.MultiapiServiceClient.test_one": null, - "multiapinoasync.v2.aio.MultiapiServiceClient.test_one": null, - "multiapinoasync.v2.MultiapiServiceClient.test_different_calls": null, - "multiapinoasync.v2.aio.MultiapiServiceClient.test_different_calls": null, - "multiapinoasync.v2.operations.OperationGroupOneOperations.test_two": null, - "multiapinoasync.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapinoasync.v2.operations.OperationGroupOneOperations.test_three": null, - "multiapinoasync.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "multiapinoasync.v2.operations.OperationGroupTwoOperations.test_four": null, - "multiapinoasync.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/apiview-properties.json deleted file mode 100644 index c73a759cc46..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapinoasync.v3.models.Error": null, - "multiapinoasync.v3.models.ModelThree": null, - "multiapinoasync.v3.models.PagingResult": null, - "multiapinoasync.v3.models.SourcePath": null, - "multiapinoasync.v3.models.ContentType": null, - "multiapinoasync.v3.MultiapiServiceClient.test_paging": null, - "multiapinoasync.v3.aio.MultiapiServiceClient.test_paging": null, - "multiapinoasync.v3.MultiapiServiceClient.test_different_calls": null, - "multiapinoasync.v3.aio.MultiapiServiceClient.test_different_calls": null, - "multiapinoasync.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapinoasync.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapinoasync.v3.operations.OperationGroupOneOperations.test_two": null, - "multiapinoasync.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapinoasync.v3.operations.OperationGroupTwoOperations.test_four": null, - "multiapinoasync.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "multiapinoasync.v3.operations.OperationGroupTwoOperations.test_five": null, - "multiapinoasync.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v0/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v0/apiview-properties.json deleted file mode 100644 index f8be0161e50..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v0/apiview-properties.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapisecurity.v0.models.Error": null, - "multiapisecurity.v0.models.PagingResult": null, - "multiapisecurity.v0.models.Product": null, - "multiapisecurity.v0.operations.OperationGroupOneOperations.test_two": null, - "multiapisecurity.v0.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v1/apiview-properties.json deleted file mode 100644 index 70aa67a6ee1..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapisecurity.v1.models.Error": null, - "multiapisecurity.v1.models.PagingResult": null, - "multiapisecurity.v1.models.Product": null, - "multiapisecurity.v1.models.TestLroAndPagingOptions": null, - "multiapisecurity.v1.MultiapiServiceClient.test_one": null, - "multiapisecurity.v1.aio.MultiapiServiceClient.test_one": null, - "multiapisecurity.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapisecurity.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapisecurity.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapisecurity.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapisecurity.v1.MultiapiServiceClient.test_different_calls": null, - "multiapisecurity.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapisecurity.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapisecurity.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/apiview-properties.json deleted file mode 100644 index e7f939f4f2f..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/apiview-properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapiwithsubmodule.submodule.v1.models.Error": null, - "multiapiwithsubmodule.submodule.v1.models.PagingResult": null, - "multiapiwithsubmodule.submodule.v1.models.Product": null, - "multiapiwithsubmodule.submodule.v1.models.TestLroAndPagingOptions": null, - "multiapiwithsubmodule.submodule.v1.MultiapiServiceClient.test_one": null, - "multiapiwithsubmodule.submodule.v1.aio.MultiapiServiceClient.test_one": null, - "multiapiwithsubmodule.submodule.v1.MultiapiServiceClient.begin_test_lro": null, - "multiapiwithsubmodule.submodule.v1.aio.MultiapiServiceClient.begin_test_lro": null, - "multiapiwithsubmodule.submodule.v1.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapiwithsubmodule.submodule.v1.aio.MultiapiServiceClient.begin_test_lro_and_paging": null, - "multiapiwithsubmodule.submodule.v1.MultiapiServiceClient.test_different_calls": null, - "multiapiwithsubmodule.submodule.v1.aio.MultiapiServiceClient.test_different_calls": null, - "multiapiwithsubmodule.submodule.v1.operations.OperationGroupOneOperations.test_two": null, - "multiapiwithsubmodule.submodule.v1.aio.operations.OperationGroupOneOperations.test_two": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/apiview-properties.json deleted file mode 100644 index af5cf69d969..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/apiview-properties.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapiwithsubmodule.submodule.v2.models.Error": null, - "multiapiwithsubmodule.submodule.v2.models.ModelTwo": null, - "multiapiwithsubmodule.submodule.v2.MultiapiServiceClient.test_one": null, - "multiapiwithsubmodule.submodule.v2.aio.MultiapiServiceClient.test_one": null, - "multiapiwithsubmodule.submodule.v2.MultiapiServiceClient.test_different_calls": null, - "multiapiwithsubmodule.submodule.v2.aio.MultiapiServiceClient.test_different_calls": null, - "multiapiwithsubmodule.submodule.v2.operations.OperationGroupOneOperations.test_two": null, - "multiapiwithsubmodule.submodule.v2.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapiwithsubmodule.submodule.v2.operations.OperationGroupOneOperations.test_three": null, - "multiapiwithsubmodule.submodule.v2.aio.operations.OperationGroupOneOperations.test_three": null, - "multiapiwithsubmodule.submodule.v2.operations.OperationGroupTwoOperations.test_four": null, - "multiapiwithsubmodule.submodule.v2.aio.operations.OperationGroupTwoOperations.test_four": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/apiview-properties.json b/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/apiview-properties.json deleted file mode 100644 index 5f75db9b8cc..00000000000 --- a/packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/apiview-properties.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "CrossLanguagePackageId": null, - "CrossLanguageDefinitionId": { - "multiapiwithsubmodule.submodule.v3.models.Error": null, - "multiapiwithsubmodule.submodule.v3.models.ModelThree": null, - "multiapiwithsubmodule.submodule.v3.models.PagingResult": null, - "multiapiwithsubmodule.submodule.v3.models.SourcePath": null, - "multiapiwithsubmodule.submodule.v3.models.ContentType": null, - "multiapiwithsubmodule.submodule.v3.MultiapiServiceClient.test_paging": null, - "multiapiwithsubmodule.submodule.v3.aio.MultiapiServiceClient.test_paging": null, - "multiapiwithsubmodule.submodule.v3.MultiapiServiceClient.test_different_calls": null, - "multiapiwithsubmodule.submodule.v3.aio.MultiapiServiceClient.test_different_calls": null, - "multiapiwithsubmodule.submodule.v3.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapiwithsubmodule.submodule.v3.aio.operations.OperationGroupOneOperations.test_operation_group_paging": null, - "multiapiwithsubmodule.submodule.v3.operations.OperationGroupOneOperations.test_two": null, - "multiapiwithsubmodule.submodule.v3.aio.operations.OperationGroupOneOperations.test_two": null, - "multiapiwithsubmodule.submodule.v3.operations.OperationGroupTwoOperations.test_four": null, - "multiapiwithsubmodule.submodule.v3.aio.operations.OperationGroupTwoOperations.test_four": null, - "multiapiwithsubmodule.submodule.v3.operations.OperationGroupTwoOperations.test_five": null, - "multiapiwithsubmodule.submodule.v3.aio.operations.OperationGroupTwoOperations.test_five": null - } -} \ No newline at end of file diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml index 9b2ec0a4be9..a6113f92198 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "internaloperation._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml index 3c701f1d21c..0a1fffc4824 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/pyproject.toml @@ -40,11 +40,11 @@ dynamic = [ ] [project.urls] -repository = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk" +repository = "https://github.com/Azure/azure-sdk-for-python" [tool.setuptools.dynamic] version = {attr = "packagemode._version.VERSION"} -readme = {file = ["README.md"], content-type = "text/markdown"} +readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ From 7defc765a844f0b57aed7fbd5457e76ff132a381 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 12:46:03 +0800 Subject: [PATCH 07/11] add changelog --- ...rosoft-publish-python-2025-08-13-2025-7-13-12-45-34.md | 8 ++++++++ ...rosoft-publish-python-2025-08-13-2025-7-13-12-45-54.md | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 .chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md create mode 100644 .chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md diff --git a/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md b/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md new file mode 100644 index 00000000000..19adfc9d7e8 --- /dev/null +++ b/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +fix generated output folder for packaging files \ No newline at end of file diff --git a/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md b/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md new file mode 100644 index 00000000000..8d000dd1423 --- /dev/null +++ b/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +keep declaration of pyproject.toml same with existing setup.py of ARM SDK \ No newline at end of file From 6389caea9c73707bbd8003db2c15e278dcf51703 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 12:55:25 +0800 Subject: [PATCH 08/11] bump version --- .chronus/changes/add-testcases-2025-7-12-11-57-37.md | 7 ------- ...oft-publish-python-2025-08-13-2025-7-13-12-45-34.md | 8 -------- ...oft-publish-python-2025-08-13-2025-7-13-12-45-54.md | 8 -------- .../changes/update_subdir_test-2025-7-6-16-49-1.md | 7 ------- packages/autorest.python/CHANGELOG.md | 10 +++++++++- packages/autorest.python/package.json | 4 ++-- .../autorest.python/test/unittests/test_samples.py | 2 +- packages/typespec-python/CHANGELOG.md | 8 ++++++++ packages/typespec-python/package.json | 4 ++-- 9 files changed, 22 insertions(+), 36 deletions(-) delete mode 100644 .chronus/changes/add-testcases-2025-7-12-11-57-37.md delete mode 100644 .chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md delete mode 100644 .chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md delete mode 100644 .chronus/changes/update_subdir_test-2025-7-6-16-49-1.md diff --git a/.chronus/changes/add-testcases-2025-7-12-11-57-37.md b/.chronus/changes/add-testcases-2025-7-12-11-57-37.md deleted file mode 100644 index 8b5b1d0ef53..00000000000 --- a/.chronus/changes/add-testcases-2025-7-12-11-57-37.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@azure-tools/typespec-python" ---- - -Add testcases for several spector scenarios \ No newline at end of file diff --git a/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md b/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md deleted file mode 100644 index 19adfc9d7e8..00000000000 --- a/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-34.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: fix -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -fix generated output folder for packaging files \ No newline at end of file diff --git a/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md b/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md deleted file mode 100644 index 8d000dd1423..00000000000 --- a/.chronus/changes/auto-microsoft-publish-python-2025-08-13-2025-7-13-12-45-54.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -changeKind: fix -packages: - - "@autorest/python" - - "@azure-tools/typespec-python" ---- - -keep declaration of pyproject.toml same with existing setup.py of ARM SDK \ No newline at end of file diff --git a/.chronus/changes/update_subdir_test-2025-7-6-16-49-1.md b/.chronus/changes/update_subdir_test-2025-7-6-16-49-1.md deleted file mode 100644 index b96c99c34bb..00000000000 --- a/.chronus/changes/update_subdir_test-2025-7-6-16-49-1.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -changeKind: internal -packages: - - "@azure-tools/typespec-python" ---- - -Update tests \ No newline at end of file diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index 94598c2a9b8..fd0e9c53861 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -1,5 +1,13 @@ # Release +## 6.38.2 + +### Bug Fixes + +- [#3173](https://github.com/Azure/autorest.python/pull/3173) fix generated output folder for packaging files +- [#3173](https://github.com/Azure/autorest.python/pull/3173) keep declaration of pyproject.toml same with existing setup.py of ARM SDK + + ## 6.38.1 ### Bump dependencies @@ -272,7 +280,7 @@ No changes, version bump only. ### Bump dependencies -- [#2965](https://github.com/Azure/autorest.python/pull/2965) Bump `@typespec/*` 0.63.0 and `@azure-tools/*` 0.49.0 +- [#2965](https://github.com/Azure/autorest.python/pull/2965) Bump `@typespec/*` 0.63.0 and `@azure-tools/*` 0.48.2 ## 6.27.0 diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 402ac1dfe71..a4c6320623a 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -1,6 +1,6 @@ { "name": "@autorest/python", - "version": "6.38.1", + "version": "6.38.2", "description": "The Python extension for generators in AutoRest.", "scripts": { "start": "node ./scripts/run-python3.js ./scripts/start.py", @@ -47,4 +47,4 @@ "requirements.txt", "generator/" ] -} \ No newline at end of file +} diff --git a/packages/autorest.python/test/unittests/test_samples.py b/packages/autorest.python/test/unittests/test_samples.py index 660f17c0f8c..ce8c3e8d5b4 100644 --- a/packages/autorest.python/test/unittests/test_samples.py +++ b/packages/autorest.python/test/unittests/test_samples.py @@ -54,7 +54,7 @@ def test_package_mode_for_azure_mgmt_test(): assert (samples_dir / "azure/mgmt/test/py.typed").exists(), "py.typed should exist in inner folder azure/mgmt/test" assert not (samples_dir / "py.typed").exists(), "py.typed should not exist in root folder" - # generated samples/tests file shall be put directly under generated_samples/generted_tests instead of inner folder, + # generated samples/tests file shall be put directly under generated_samples/generated_tests instead of inner folder, # so there shall be no subfolder for folder in ["generated_samples", "generated_tests"]: subdir = [s for s in (samples_dir / folder).iterdir() if s.is_dir()] diff --git a/packages/typespec-python/CHANGELOG.md b/packages/typespec-python/CHANGELOG.md index 58d54014b44..f56e0de8c98 100644 --- a/packages/typespec-python/CHANGELOG.md +++ b/packages/typespec-python/CHANGELOG.md @@ -1,5 +1,13 @@ # Release +## 0.48.2 + +### Bug Fixes + +- [#3173](https://github.com/Azure/autorest.python/pull/3173) fix generated output folder for packaging files +- [#3173](https://github.com/Azure/autorest.python/pull/3173) keep declaration of pyproject.toml same with existing setup.py of ARM SDK + + ## 0.48.1 ### Bump dependencies diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 44f948a8311..c34603ed5e9 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -1,6 +1,6 @@ { "name": "@azure-tools/typespec-python", - "version": "0.48.1", + "version": "0.48.2", "author": "Microsoft Corporation", "description": "TypeSpec emitter for Python SDKs", "homepage": "https://github.com/Azure/autorest.python", @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} \ No newline at end of file +} From 7979d7fea98a8bc46892ed0014cd55eacd330ee5 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 12:57:17 +0800 Subject: [PATCH 09/11] fix --- packages/autorest.python/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/autorest.python/CHANGELOG.md b/packages/autorest.python/CHANGELOG.md index fd0e9c53861..9f50c4c6d25 100644 --- a/packages/autorest.python/CHANGELOG.md +++ b/packages/autorest.python/CHANGELOG.md @@ -280,7 +280,7 @@ No changes, version bump only. ### Bump dependencies -- [#2965](https://github.com/Azure/autorest.python/pull/2965) Bump `@typespec/*` 0.63.0 and `@azure-tools/*` 0.48.2 +- [#2965](https://github.com/Azure/autorest.python/pull/2965) Bump `@typespec/*` 0.63.0 and `@azure-tools/*` 0.49.0 ## 6.27.0 From 66be975537e426917ac9cd12bd6ff0b8d76c195a Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 13:29:33 +0800 Subject: [PATCH 10/11] fix ci --- .../azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py | 1 + .../azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py create mode 100644 packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py new file mode 100644 index 00000000000..d55ccad1f57 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py new file mode 100644 index 00000000000..d55ccad1f57 --- /dev/null +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/__init__.py @@ -0,0 +1 @@ +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore From 75c82e2574b0d2ac2d7544245b9e63215e520140 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 13 Aug 2025 16:25:57 +0800 Subject: [PATCH 11/11] update --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 2 +- pnpm-lock.yaml | 15 +++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index a4c6320623a..4250f73315a 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz", + "@typespec/http-client-python": "~0.15.2", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index c34603ed5e9..1027e4c95cd 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz", + "@typespec/http-client-python": "~0.15.2", "fs-extra": "~11.2.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f81e26af85f..b339ad072a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm) + specifier: ~0.15.2 + version: 0.15.2(6gtvfxfythggrmyik6oqzxhslm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm) + specifier: ~0.15.2 + version: 0.15.2(6gtvfxfythggrmyik6oqzxhslm) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1677,9 +1677,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.3.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz} - version: 0.15.2 + '@typespec/http-client-python@0.15.2': + resolution: {integrity: sha512-tgbdsqB212HYeAjHk+w3wdsZ6wLmvIZbFD92qdZBRovuk6p6bMJAcHFoN17x3NV2T4NTeKWqBpsY9wlj5Cn8gw==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.59.0 <1.0.0' @@ -6460,7 +6459,7 @@ snapshots: dependencies: '@typespec/compiler': 1.3.0(@types/node@24.1.0) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTIxMjc5OS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.15.2.tgz(6gtvfxfythggrmyik6oqzxhslm)': + '@typespec/http-client-python@0.15.2(6gtvfxfythggrmyik6oqzxhslm)': dependencies: '@azure-tools/typespec-autorest': 0.59.0(tlfj6gbglsbr5x2lirzpm33h7y) '@azure-tools/typespec-azure-core': 0.59.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))))(@typespec/rest@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/http@1.3.0(@typespec/compiler@1.3.0(@types/node@24.1.0))(@typespec/streams@0.73.0(@typespec/compiler@1.3.0(@types/node@24.1.0)))))