diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 99272f54792..4edfce3077f 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.19.0", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.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/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_configuration.py b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_configuration.py index 284c1eed0ea..98392c7830d 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_configuration.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_configuration.py @@ -27,7 +27,7 @@ class PyprojectMgmtClientConfiguration: # pylint: disable=too-many-instance-att :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_pyproject_mgmt_client.py b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_pyproject_mgmt_client.py index b27694f1f11..5451603f47d 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_pyproject_mgmt_client.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_pyproject_mgmt_client.py @@ -40,7 +40,7 @@ class PyprojectMgmtClient: # pylint: disable=client-accepts-api-version-keyword :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_configuration.py b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_configuration.py index f720f76db82..4614d5a4a90 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_configuration.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_configuration.py @@ -27,7 +27,7 @@ class PyprojectMgmtClientConfiguration: # pylint: disable=too-many-instance-att :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_pyproject_mgmt_client.py b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_pyproject_mgmt_client.py index 32866d55e4c..f63ae14a053 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_pyproject_mgmt_client.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_pyproject_mgmt_client.py @@ -40,7 +40,7 @@ class PyprojectMgmtClient: # pylint: disable=client-accepts-api-version-keyword :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/pyproject.toml b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/pyproject.toml index 8d58b78f4fd..85dad5ef3bb 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/pyproject.toml +++ b/packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.mgmt", diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py index a6ef89375de..f17811582f9 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py +++ b/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ 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 b5b100d0f4a..e669386cbba 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 @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_head_test_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 index 2d3478de43d..08682ea099e 100644 --- a/packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_head_test_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 @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ 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 5409de5ca62..61666025c8c 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 @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/aio/operations/_operations.py b/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/aio/operations/_operations.py index c2389c35795..1bb43aef3ba 100644 --- a/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/aio/operations/_operations.py +++ b/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/aio/operations/_operations.py @@ -1980,7 +1980,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str :rtype: list[str] @@ -2028,8 +2028,8 @@ async def get_uuid_valid(self, **kwargs: Any) -> list[str]: 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']. + """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] @@ -2045,8 +2045,8 @@ async def put_uuid_valid( 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']. + """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] @@ -2060,8 +2060,8 @@ async def put_uuid_valid( @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']. + """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] @@ -2211,7 +2211,7 @@ async def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -2227,7 +2227,7 @@ async def put_date_valid( 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -2241,7 +2241,7 @@ async def put_date_valid( @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']. + """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] @@ -2390,7 +2390,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -2438,8 +2438,8 @@ async def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -2455,8 +2455,8 @@ async def put_date_time_valid( 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']. + """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] @@ -2470,8 +2470,8 @@ async def put_date_time_valid( @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']. + """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] @@ -2620,7 +2620,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.date @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -2668,8 +2668,8 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.date 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']. + """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] @@ -2685,8 +2685,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -2702,8 +2702,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -2807,7 +2807,7 @@ async def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: 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']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -2823,7 +2823,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -2837,7 +2837,7 @@ async def put_duration_valid( @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']. + """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] @@ -2894,7 +2894,7 @@ async def put_duration_valid(self, array_body: Union[list[datetime.timedelta], I @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. + in base64. :return: list of bytes :rtype: list[bytes] @@ -2943,7 +2943,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -2960,7 +2960,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -2975,7 +2975,7 @@ async def put_byte_valid( @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. + 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] @@ -3078,7 +3078,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes :rtype: list[bytes] @@ -3217,7 +3217,7 @@ async def get_complex_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product :rtype: list[~azure.test.models.Product] @@ -3264,7 +3264,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product :rtype: list[~azure.test.models.Product] @@ -3311,7 +3311,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + {'integer': 5, 'string': '6'}]. :return: list of Product :rtype: list[~azure.test.models.Product] @@ -3360,7 +3360,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[~azure.test.models.Product] @@ -3377,7 +3377,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -3392,7 +3392,7 @@ async def put_complex_valid( @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'}]. + '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.test.models.Product] or IO[bytes] @@ -3859,7 +3859,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -3906,7 +3906,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -3953,7 +3953,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]] @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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4002,7 +4002,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4019,7 +4019,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4034,7 +4034,7 @@ async def put_dictionary_valid( @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'}]. + '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] diff --git a/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/operations/_operations.py b/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/operations/_operations.py index 66ac0cf3992..d7cc356eef5 100644 --- a/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/operations/_operations.py +++ b/packages/autorest.python/samples/specification/azure-test/test/azure-test/azure/test/_generated/operations/_operations.py @@ -2930,7 +2930,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str :rtype: list[str] @@ -2976,8 +2976,8 @@ def get_uuid_valid(self, **kwargs: Any) -> list[str]: @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']. + """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] @@ -2991,8 +2991,8 @@ def put_uuid_valid(self, array_body: list[str], *, content_type: str = "applicat @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']. + """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] @@ -3008,8 +3008,8 @@ def put_uuid_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3159,7 +3159,7 @@ def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -3173,7 +3173,7 @@ def put_date_valid( @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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -3189,7 +3189,7 @@ def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3338,7 +3338,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -3386,8 +3386,8 @@ def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3403,8 +3403,8 @@ def put_date_time_valid( 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']. + """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] @@ -3420,8 +3420,8 @@ def put_date_time_valid( 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']. + """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] @@ -3570,7 +3570,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.datetime]: @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -3618,8 +3618,8 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3635,8 +3635,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -3652,8 +3652,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -3757,7 +3757,7 @@ def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: def put_duration_valid( self, array_body: list[datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -3773,7 +3773,7 @@ def put_duration_valid( def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -3789,7 +3789,7 @@ def put_duration_valid( 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']. + """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] @@ -3846,7 +3846,7 @@ def put_duration_valid( # pylint: disable=inconsistent-return-statements @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. + in base64. :return: list of bytes :rtype: list[bytes] @@ -3893,7 +3893,7 @@ def get_byte_valid(self, **kwargs: Any) -> list[bytes]: @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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -3908,7 +3908,7 @@ def put_byte_valid(self, array_body: list[bytes], *, content_type: str = "applic @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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3925,7 +3925,7 @@ 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. + 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] @@ -4028,7 +4028,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes :rtype: list[bytes] @@ -4167,7 +4167,7 @@ def get_complex_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product :rtype: list[~azure.test.models.Product] @@ -4214,7 +4214,7 @@ def get_complex_item_null(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product :rtype: list[~azure.test.models.Product] @@ -4261,7 +4261,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + {'integer': 5, 'string': '6'}]. :return: list of Product :rtype: list[~azure.test.models.Product] @@ -4310,7 +4310,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[~azure.test.models.Product] @@ -4327,7 +4327,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4344,7 +4344,7 @@ 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'}]. + '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.test.models.Product] or IO[bytes] @@ -4811,7 +4811,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4858,7 +4858,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4905,7 +4905,7 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4954,7 +4954,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4971,7 +4971,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4988,7 +4988,7 @@ 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'}]. + '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] diff --git a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_client.py b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_client.py index 2419c98e18e..74935e29475 100644 --- a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_client.py +++ b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_client.py @@ -25,7 +25,7 @@ class PollingPagingExample(_PollingPagingExampleOperationsMixin): # pylint: dis :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_operations/_operations.py b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_operations/_operations.py index e0a09d02889..e2422fb496e 100644 --- a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_operations/_operations.py +++ b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/_operations/_operations.py @@ -156,18 +156,18 @@ def begin_basic_polling( # JSON input template you can fill out and use as your body input. product = { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -191,10 +191,10 @@ def begin_basic_polling( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -216,18 +216,18 @@ def begin_basic_polling( # JSON input template you can fill out and use as your body input. product = { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -289,10 +289,10 @@ def basic_paging(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_client.py b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_client.py index 3a08c9ade76..2c799e08705 100644 --- a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_client.py +++ b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_client.py @@ -25,7 +25,7 @@ class PollingPagingExample(_PollingPagingExampleOperationsMixin): # pylint: dis :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_operations/_operations.py b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_operations/_operations.py index 62fc6acaa8a..1460d71e4e2 100644 --- a/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_operations/_operations.py +++ b/packages/autorest.python/samples/specification/directives/generated/azure/directives/sample/aio/_operations/_operations.py @@ -127,18 +127,18 @@ async def begin_basic_polling( # JSON input template you can fill out and use as your body input. product = { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -162,10 +162,10 @@ async def begin_basic_polling( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -187,18 +187,18 @@ async def begin_basic_polling( # JSON input template you can fill out and use as your body input. product = { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -264,10 +264,10 @@ def basic_paging(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py index 38d921db511..43089dd5f36 100644 --- a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py +++ b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_configuration.py b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_configuration.py index 677a58e8001..549da63b39a 100644 --- a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_configuration.py +++ b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py index 71a00770540..cb210469df5 100644 --- a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py +++ b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py index b7740b4d87b..c66c1c3a32f 100644 --- a/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py +++ b/packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py index a66b5b9f520..90479e71691 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py @@ -370,7 +370,7 @@ async def post_shared_parameter_group_object( @distributed_trace_async async def group_with_constant(self, grouper: Optional[_models.Grouper] = None, **kwargs: Any) -> None: """Parameter group with a constant. Pass in 'foo' for groupedConstant and 'bar' for - groupedParameter. + groupedParameter. :param grouper: Parameter group. Default value is None. :type grouper: ~azureparametergrouping.models.Grouper diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py index 86c897799a9..1dfb566c00f 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/operations/_parameter_grouping_operations.py @@ -516,7 +516,7 @@ def group_with_constant( # pylint: disable=inconsistent-return-statements self, grouper: Optional[_models.Grouper] = None, **kwargs: Any ) -> None: """Parameter group with a constant. Pass in 'foo' for groupedConstant and 'bar' for - groupedParameter. + groupedParameter. :param grouper: Parameter group. Default value is None. :type grouper: ~azureparametergrouping.models.Grouper diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py index 66a2fcf5af4..13e96a3c8af 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_auto_rest_azure_special_parameters_test_client.py @@ -44,10 +44,10 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :vartype xms_client_request_id: azurespecialproperties.operations.XMsClientRequestIdOperations :ivar subscription_in_credentials: SubscriptionInCredentialsOperations operations :vartype subscription_in_credentials: - azurespecialproperties.operations.SubscriptionInCredentialsOperations + azurespecialproperties.operations.SubscriptionInCredentialsOperations :ivar subscription_in_method: SubscriptionInMethodOperations operations :vartype subscription_in_method: - azurespecialproperties.operations.SubscriptionInMethodOperations + azurespecialproperties.operations.SubscriptionInMethodOperations :ivar api_version_default: ApiVersionDefaultOperations operations :vartype api_version_default: azurespecialproperties.operations.ApiVersionDefaultOperations :ivar api_version_local: ApiVersionLocalOperations operations @@ -61,15 +61,15 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py index a1761360da7..21285151041 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/_configuration.py @@ -28,13 +28,13 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py index eaf20e116ba..509c72963a1 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_auto_rest_azure_special_parameters_test_client.py @@ -42,13 +42,13 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :ivar xms_client_request_id: XMsClientRequestIdOperations operations :vartype xms_client_request_id: - azurespecialproperties.aio.operations.XMsClientRequestIdOperations + azurespecialproperties.aio.operations.XMsClientRequestIdOperations :ivar subscription_in_credentials: SubscriptionInCredentialsOperations operations :vartype subscription_in_credentials: - azurespecialproperties.aio.operations.SubscriptionInCredentialsOperations + azurespecialproperties.aio.operations.SubscriptionInCredentialsOperations :ivar subscription_in_method: SubscriptionInMethodOperations operations :vartype subscription_in_method: - azurespecialproperties.aio.operations.SubscriptionInMethodOperations + azurespecialproperties.aio.operations.SubscriptionInMethodOperations :ivar api_version_default: ApiVersionDefaultOperations operations :vartype api_version_default: azurespecialproperties.aio.operations.ApiVersionDefaultOperations :ivar api_version_local: ApiVersionLocalOperations operations @@ -62,15 +62,15 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py index ce5f3c36856..6c5370d2371 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/_configuration.py @@ -28,13 +28,13 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py index 30203d7f213..33d04b71c34 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py @@ -61,7 +61,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get_method_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -105,7 +105,7 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def get_method_local_null(self, api_version: Optional[str] = None, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = null to succeed. + """Get method with api-version modeled in the method. pass in api-version = null to succeed. :param api_version: This should appear as a method parameter, use value null, this should result in no serialized parameter. Default value is None. @@ -151,7 +151,7 @@ async def get_method_local_null(self, api_version: Optional[str] = None, **kwarg @distributed_trace_async async def get_path_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -195,7 +195,7 @@ async def get_path_local_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def get_swagger_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py index 0e9501d49b1..5a37a213d2d 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py @@ -113,7 +113,7 @@ async def custom_named_request_id_param_grouping( **kwargs: Any ) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, - via a parameter group. + via a parameter group. :param header_custom_named_request_id_param_grouping_parameters: Parameter group. Required. :type header_custom_named_request_id_param_grouping_parameters: diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py index 1187e2c6be4..4d3ffb889c4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py @@ -62,8 +62,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def post_method_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -106,8 +106,8 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_method_global_null(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - null, and client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + null, and client-side validation should prevent you from making this call. :return: None or the result of cls(response) :rtype: None @@ -150,8 +150,8 @@ async def post_method_global_null(self, **kwargs: Any) -> None: @distributed_trace_async async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -196,8 +196,8 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_path_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -240,8 +240,8 @@ async def post_path_global_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_swagger_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py index 6f9094f11e7..d2de5bb5744 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py @@ -60,8 +60,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: This should appear as a method parameter, use value '1234-5678-9012-3456'. Required. @@ -107,8 +107,8 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> @distributed_trace_async async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = null, - client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in the method. pass in subscription id = null, + client-side validation should prevent you from making this call. :param subscription_id: This should appear as a method parameter, use value null, client-side validation should prvenet the call. Required. @@ -154,8 +154,8 @@ async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N @distributed_trace_async async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: Should appear as a method parameter -use value '1234-5678-9012-3456'. Required. @@ -201,8 +201,8 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No @distributed_trace_async async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: The subscriptionId, which appears in the path, the value is always '1234-5678-9012-3456'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py index 041f1e6e6d2..e7d439fc493 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get(self, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None or the result of cls(response) :rtype: None @@ -98,7 +98,7 @@ async def get(self, **kwargs: Any) -> None: @distributed_trace_async async def param_get(self, x_ms_client_request_id: str, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :param x_ms_client_request_id: This should appear as a method parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py index f721fd236d0..9c082978488 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_api_version_local_operations.py @@ -133,7 +133,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_method_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -179,7 +179,7 @@ def get_method_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inco def get_method_local_null( # pylint: disable=inconsistent-return-statements self, api_version: Optional[str] = None, **kwargs: Any ) -> None: - """Get method with api-version modeled in the method. pass in api-version = null to succeed. + """Get method with api-version modeled in the method. pass in api-version = null to succeed. :param api_version: This should appear as a method parameter, use value null, this should result in no serialized parameter. Default value is None. @@ -225,7 +225,7 @@ def get_method_local_null( # pylint: disable=inconsistent-return-statements @distributed_trace def get_path_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -269,7 +269,7 @@ def get_path_local_valid(self, **kwargs: Any) -> None: # pylint: disable=incons @distributed_trace def get_swagger_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py index 74d8d4e9a53..fec447b9f78 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_header_operations.py @@ -162,7 +162,7 @@ def custom_named_request_id_param_grouping( # pylint: disable=inconsistent-retu **kwargs: Any ) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, - via a parameter group. + via a parameter group. :param header_custom_named_request_id_param_grouping_parameters: Parameter group. Required. :type header_custom_named_request_id_param_grouping_parameters: diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py index 4e9bc01921c..c4efbcd704a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_credentials_operations.py @@ -173,8 +173,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def post_method_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -217,8 +217,8 @@ def post_method_global_valid(self, **kwargs: Any) -> None: # pylint: disable=in @distributed_trace def post_method_global_null(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - null, and client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + null, and client-side validation should prevent you from making this call. :return: None or the result of cls(response) :rtype: None @@ -263,8 +263,8 @@ def post_method_global_null(self, **kwargs: Any) -> None: # pylint: disable=inc def post_method_global_not_provided_valid( # pylint: disable=inconsistent-return-statements self, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -309,8 +309,8 @@ def post_method_global_not_provided_valid( # pylint: disable=inconsistent-retur @distributed_trace def post_path_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -353,8 +353,8 @@ def post_path_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inco @distributed_trace def post_swagger_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py index bcd96469b90..52e2f3bb317 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_subscription_in_method_operations.py @@ -145,8 +145,8 @@ def __init__(self, *args, **kwargs) -> None: def post_method_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: This should appear as a method parameter, use value '1234-5678-9012-3456'. Required. @@ -194,8 +194,8 @@ def post_method_local_valid( # pylint: disable=inconsistent-return-statements def post_method_local_null( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = null, - client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in the method. pass in subscription id = null, + client-side validation should prevent you from making this call. :param subscription_id: This should appear as a method parameter, use value null, client-side validation should prvenet the call. Required. @@ -243,8 +243,8 @@ def post_method_local_null( # pylint: disable=inconsistent-return-statements def post_path_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: Should appear as a method parameter -use value '1234-5678-9012-3456'. Required. @@ -292,8 +292,8 @@ def post_path_local_valid( # pylint: disable=inconsistent-return-statements def post_swagger_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: The subscriptionId, which appears in the path, the value is always '1234-5678-9012-3456'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py index d2110790aaf..c98042dfdca 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/operations/_xms_client_request_id_operations.py @@ -80,7 +80,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None or the result of cls(response) :rtype: None @@ -124,7 +124,7 @@ def param_get( # pylint: disable=inconsistent-return-statements self, x_ms_client_request_id: str, **kwargs: Any ) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :param x_ms_client_request_id: This should appear as a method parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py index d2692fca2fb..c8e2ee91461 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py @@ -27,7 +27,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurl.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py index f131bf97599..c941f96fc66 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py index 01cd11b1690..5eccc985be5 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py @@ -27,7 +27,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurl.aio.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py index b59e4785d7b..238b10238d7 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py index 8c1d0fb691b..2e4f70e2045 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_auto_rest_paging_test_service.py @@ -37,13 +37,13 @@ class AutoRestPagingTestService: :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py index cc6dca82ec0..dcd62514ee4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/_configuration.py @@ -27,10 +27,10 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py index f2f080f5411..946720caaef 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_auto_rest_paging_test_service.py @@ -37,13 +37,13 @@ class AutoRestPagingTestService: :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py index 02da144482c..34e5660582e 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/_configuration.py @@ -27,10 +27,10 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py index ca52d5be750..0bd70002793 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py @@ -455,7 +455,7 @@ async def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~custompollerpager.models.Product] @@ -616,7 +616,7 @@ async def get_next(next_link=None): @distributed_trace def get_with_query_params(self, required_query_parameter: int, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :param required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -688,8 +688,8 @@ async def get_next(next_link=None): @distributed_trace def duplicate_params(self, filter: Optional[str] = None, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :param filter: OData filter options. Pass in 'foo'. Default value is None. :type filter: str @@ -1022,7 +1022,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~custompollerpager.models.Product] @@ -1094,7 +1094,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~custompollerpager.models.Product] @@ -1724,7 +1724,7 @@ async def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~custompollerpager.models.Product] @@ -1798,7 +1798,7 @@ async def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~custompollerpager.models.Product] @@ -1874,7 +1874,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> AsyncItemPaged["_models.Product"]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~custompollerpager.models.Product] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py index 27801180d2d..e1b43a852e7 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/operations/_paging_operations.py @@ -915,7 +915,7 @@ def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~custompollerpager.models.Product] @@ -1076,7 +1076,7 @@ def get_next(next_link=None): @distributed_trace def get_with_query_params(self, required_query_parameter: int, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :param required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -1148,8 +1148,8 @@ def get_next(next_link=None): @distributed_trace def duplicate_params(self, filter: Optional[str] = None, **kwargs: Any) -> ItemPaged["_models.Product"]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :param filter: OData filter options. Pass in 'foo'. Default value is None. :type filter: str @@ -1480,7 +1480,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~custompollerpager.models.Product] @@ -1552,7 +1552,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~custompollerpager.models.Product] @@ -2182,7 +2182,7 @@ def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~custompollerpager.models.Product] @@ -2256,7 +2256,7 @@ def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~custompollerpager.models.Product] @@ -2332,7 +2332,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> ItemPaged["_models.Product"]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~custompollerpager.models.Product] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py index 09d8154a67a..b242f520934 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_auto_rest_parameterized_host_test_paging_client.py @@ -26,7 +26,7 @@ class AutoRestParameterizedHostTestPagingClient: # pylint: disable=client-accep :ivar paging: PagingOperations operations :vartype paging: custombaseurlpaging.operations.PagingOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py index 6350252f834..6e91367a173 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/_configuration.py @@ -21,7 +21,7 @@ class AutoRestParameterizedHostTestPagingClientConfiguration: # pylint: disable attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client.py index f1f554c5a80..f80f90f6927 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_auto_rest_parameterized_host_test_paging_client.py @@ -26,7 +26,7 @@ class AutoRestParameterizedHostTestPagingClient: # pylint: disable=client-accep :ivar paging: PagingOperations operations :vartype paging: custombaseurlpaging.aio.operations.PagingOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py index c372d0e339f..9c135c3203a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/_configuration.py @@ -21,7 +21,7 @@ class AutoRestParameterizedHostTestPagingClientConfiguration: # pylint: disable attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py index 66f6a7e4313..487e8bde9bd 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py @@ -59,7 +59,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that combines custom url, paging and partial URL and expect to concat after - host. + host. :param account_name: Account Name. Required. :type account_name: str diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py index bd911e8de5b..e6ccfe21bc4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/operations/_paging_operations.py @@ -107,7 +107,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that combines custom url, paging and partial URL and expect to concat after - host. + host. :param account_name: Account Name. Required. :type account_name: str diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py index 8494e25bb6a..7f7a864457d 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py index 7ad8b0dfc42..4acd7ca0995 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py index 606cc43c987..22a00afa484 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py index 14bf0aa529e..84b0332597a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Head/head/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py index afab653986e..9eaa5c45426 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_auto_rest_head_exception_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadExceptionTestService: # pylint: disable=client-accepts-api-ve :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py index 956101ececd..1753bbffc85 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadExceptionTestServiceConfiguration: # pylint: disable=too-many :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py index 2eefca13d96..9e7e1c14c7a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_auto_rest_head_exception_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadExceptionTestService: # pylint: disable=client-accepts-api-ve :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py index 3aad28df5d1..3fa04d9a00b 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadExceptionTestServiceConfiguration: # pylint: disable=too-many :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py index c8fe2946868..aacaa3fc2d4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py index 47826d6bd7c..25341dabcba 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py index 51365652edf..4f4a6ff42a6 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_auto_rest_long_running_operation_test_service.py @@ -43,10 +43,10 @@ class AutoRestLongRunningOperationTestService: # pylint: disable=client-accepts :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py index 126e5bfc2e2..8ec964e907b 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/_configuration.py @@ -28,7 +28,7 @@ class AutoRestLongRunningOperationTestServiceConfiguration: # pylint: disable=t :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py index f1b2cbaf73c..646f2b22876 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_auto_rest_long_running_operation_test_service.py @@ -43,10 +43,10 @@ class AutoRestLongRunningOperationTestService: # pylint: disable=client-accepts :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py index ab1a4368190..e01e85365df 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/_configuration.py @@ -28,7 +28,7 @@ class AutoRestLongRunningOperationTestServiceConfiguration: # pylint: disable=t :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py index b0cf4a08f42..ccac46e5796 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py @@ -136,9 +136,9 @@ async def begin_put_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -156,9 +156,9 @@ async def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -176,9 +176,9 @@ async def begin_put_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -306,9 +306,9 @@ async def begin_put201_creating_succeeded200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -326,9 +326,9 @@ async def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -346,9 +346,9 @@ async def begin_put201_creating_succeeded200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -472,8 +472,8 @@ async def begin_post202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -490,8 +490,8 @@ async def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -508,8 +508,8 @@ async def begin_post202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -631,9 +631,9 @@ async def begin_post_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -650,9 +650,9 @@ async def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -669,9 +669,9 @@ async def begin_post_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py index c00de64c928..aca843e5bda 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py @@ -132,8 +132,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -151,8 +151,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -170,8 +170,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -298,8 +298,8 @@ async def begin_put_async_relative_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -317,8 +317,8 @@ async def begin_put_async_relative_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -336,8 +336,8 @@ async def begin_put_async_relative_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -453,9 +453,9 @@ async def _delete_provisioning202_accepted200_succeeded_initial( # pylint: disa async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name-too-long self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: - """Long running delete request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + """Long running delete request, service returns a 500, then a 202 to the initial request, with an + entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -549,7 +549,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> AsyncIterator[byte @distributed_trace_async async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Polls - return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -645,7 +645,7 @@ async def begin_delete_async_relative_retry_succeeded( # pylint: disable=name-t self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -754,7 +754,7 @@ async def begin_post202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -771,7 +771,7 @@ async def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -788,7 +788,7 @@ async def begin_post202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -910,8 +910,8 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -928,8 +928,8 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -946,8 +946,8 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py index 808304664f7..c00a4ec7e97 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py @@ -170,7 +170,7 @@ async def begin_put200_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -188,7 +188,7 @@ async def begin_put200_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -206,7 +206,7 @@ async def begin_put200_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -331,7 +331,7 @@ async def begin_patch200_succeeded_ignore_headers( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: ~lro.models.Product @@ -349,7 +349,7 @@ async def begin_patch200_succeeded_ignore_headers( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -367,7 +367,7 @@ async def begin_patch200_succeeded_ignore_headers( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Is either a Product type or a IO[bytes] type. Default value is None. @@ -659,7 +659,7 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: ~lro.models.Product @@ -677,7 +677,7 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -695,7 +695,7 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Is either a Product type or a IO[bytes] type. Default value is None. @@ -815,7 +815,7 @@ async def begin_put201_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -833,7 +833,7 @@ async def begin_put201_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -851,7 +851,7 @@ async def begin_put201_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -958,7 +958,7 @@ async def _post202_list_initial(self, **kwargs: Any) -> AsyncIterator[bytes]: @distributed_trace_async async def begin_post202_list(self, **kwargs: Any) -> AsyncLROPoller[list[_models.Product]]: """Long running put request, service returns a 202 with empty body to first request, returns a 200 - with body [{ 'id': '100', 'name': 'foo' }]. + with body [{ 'id': '100', 'name': 'foo' }]. :return: An instance of AsyncLROPoller that returns either list of Product or the result of cls(response) @@ -1068,7 +1068,7 @@ async def begin_put200_succeeded_no_state( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1086,7 +1086,7 @@ async def begin_put200_succeeded_no_state( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1104,7 +1104,7 @@ async def begin_put200_succeeded_no_state( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1224,8 +1224,8 @@ async def begin_put202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1243,8 +1243,8 @@ async def begin_put202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1262,8 +1262,8 @@ async def begin_put202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1383,8 +1383,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1402,8 +1402,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1421,8 +1421,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1542,8 +1542,8 @@ async def begin_put200_updating_succeeded204( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1561,8 +1561,8 @@ async def begin_put200_updating_succeeded204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1580,8 +1580,8 @@ async def begin_put200_updating_succeeded204( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1701,8 +1701,8 @@ async def begin_put201_creating_failed200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1720,8 +1720,8 @@ async def begin_put201_creating_failed200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1739,8 +1739,8 @@ async def begin_put201_creating_failed200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1860,8 +1860,8 @@ async def begin_put200_acceptedcanceled200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1879,8 +1879,8 @@ async def begin_put200_acceptedcanceled200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1898,8 +1898,8 @@ async def begin_put200_acceptedcanceled200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2022,7 +2022,7 @@ async def begin_put_no_header_in_retry( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2040,7 +2040,7 @@ async def begin_put_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2058,7 +2058,7 @@ async def begin_put_no_header_in_retry( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2189,8 +2189,8 @@ async def begin_put_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2208,8 +2208,8 @@ async def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2227,8 +2227,8 @@ async def begin_put_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2362,8 +2362,8 @@ async def begin_put_async_no_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2381,8 +2381,8 @@ async def begin_put_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2400,8 +2400,8 @@ async def begin_put_async_no_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2535,8 +2535,8 @@ async def begin_put_async_retry_failed( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2554,8 +2554,8 @@ async def begin_put_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2573,8 +2573,8 @@ async def begin_put_async_retry_failed( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2708,8 +2708,8 @@ async def begin_put_async_no_retrycanceled( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2727,8 +2727,8 @@ async def begin_put_async_no_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2746,8 +2746,8 @@ async def begin_put_async_no_retrycanceled( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2879,8 +2879,8 @@ async def begin_put_async_no_header_in_retry( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2898,8 +2898,8 @@ async def begin_put_async_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2917,8 +2917,8 @@ async def begin_put_async_no_header_in_retry( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3541,8 +3541,8 @@ async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -3641,8 +3641,8 @@ async def begin_delete_provisioning202_deleting_failed200( # pylint: disable=na self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -3741,8 +3741,8 @@ async def begin_delete_provisioning202_deletingcanceled200( # pylint: disable=n self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -3921,7 +3921,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> AsyncIterator[byte @distributed_trace_async async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -4016,7 +4016,7 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> AsyncIterator[b @distributed_trace_async async def begin_delete202_no_retry204(self, **kwargs: Any) -> AsyncLROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -4110,7 +4110,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> AsyncIterat @distributed_trace_async async def begin_delete_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a location header in the initial request. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4199,7 +4199,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> Async @distributed_trace_async async def begin_delete_async_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns an Azure-AsyncOperation header in the initial - request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. + request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4291,7 +4291,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> AsyncIte @distributed_trace_async async def begin_delete_async_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4383,7 +4383,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> Async @distributed_trace_async async def begin_delete_async_no_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4475,7 +4475,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> AsyncIterat @distributed_trace_async async def begin_delete_async_retry_failed(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4567,7 +4567,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> AsyncItera @distributed_trace_async async def begin_delete_async_retrycanceled(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4652,7 +4652,7 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> AsyncIterator[by @distributed_trace_async async def begin_post200_with_payload(self, **kwargs: Any) -> AsyncLROPoller[_models.Sku]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header. Poll returns a 200 with a response body after success. + header. Poll returns a 200 with a response body after success. :return: An instance of AsyncLROPoller that returns either Sku or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[~lro.models.Sku] @@ -4765,7 +4765,7 @@ async def begin_post202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -4782,7 +4782,7 @@ async def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4799,7 +4799,7 @@ async def begin_post202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -4918,7 +4918,7 @@ async def begin_post202_no_retry204( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -4936,7 +4936,7 @@ async def begin_post202_no_retry204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4954,7 +4954,7 @@ async def begin_post202_no_retry204( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -5063,8 +5063,8 @@ async def begin_post_double_headers_final_location_get( # pylint: disable=name- self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final - object. + Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final + object. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -5160,8 +5160,8 @@ async def begin_post_double_headers_final_azure_header_get( # pylint: disable=n self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -5258,8 +5258,8 @@ async def begin_post_double_headers_final_azure_header_get_default( # pylint: d self, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object if you support initial Autorest behavior. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object if you support initial Autorest behavior. :return: An instance of AsyncLROPoller that returns either Product or the result of cls(response) @@ -5377,8 +5377,8 @@ async def begin_post_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5396,8 +5396,8 @@ async def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5415,8 +5415,8 @@ async def begin_post_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -5544,8 +5544,8 @@ async def begin_post_async_no_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5563,8 +5563,8 @@ async def begin_post_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5582,8 +5582,8 @@ async def begin_post_async_no_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -5710,8 +5710,8 @@ async def begin_post_async_retry_failed( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5728,8 +5728,8 @@ async def begin_post_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5746,8 +5746,8 @@ async def begin_post_async_retry_failed( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -5869,8 +5869,8 @@ async def begin_post_async_retrycanceled( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5887,8 +5887,8 @@ async def begin_post_async_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5905,8 +5905,8 @@ async def begin_post_async_retrycanceled( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py index aef98521201..8a4c1fb14bd 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py @@ -305,7 +305,7 @@ async def begin_put_non_retry201_creating400( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -323,7 +323,7 @@ async def begin_put_non_retry201_creating400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -341,7 +341,7 @@ async def begin_put_non_retry201_creating400( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -461,7 +461,7 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -479,7 +479,7 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -497,7 +497,7 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -624,7 +624,7 @@ async def begin_put_async_relative_retry400( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -642,7 +642,7 @@ async def begin_put_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -660,7 +660,7 @@ async def begin_put_async_relative_retry400( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -951,7 +951,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> AsyncI @distributed_trace_async async def begin_delete_async_relative_retry400(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -1363,7 +1363,7 @@ async def begin_post_async_relative_retry400( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1380,7 +1380,7 @@ async def begin_post_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1397,7 +1397,7 @@ async def begin_post_async_relative_retry400( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1672,8 +1672,8 @@ async def begin_put_async_relative_retry_no_status( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1691,8 +1691,8 @@ async def begin_put_async_relative_retry_no_status( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1710,8 +1710,8 @@ async def begin_put_async_relative_retry_no_status( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1846,8 +1846,8 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1865,8 +1865,8 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1884,8 +1884,8 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2088,7 +2088,7 @@ async def begin_delete_async_relative_retry_no_status( # pylint: disable=name-t self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -2197,7 +2197,7 @@ async def begin_post202_no_location( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2214,7 +2214,7 @@ async def begin_post202_no_location( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2231,7 +2231,7 @@ async def begin_post202_no_location( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2353,8 +2353,8 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2371,8 +2371,8 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2389,8 +2389,8 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2505,7 +2505,7 @@ async def begin_put200_invalid_json( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2523,7 +2523,7 @@ async def begin_put200_invalid_json( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2541,7 +2541,7 @@ async def begin_put200_invalid_json( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2668,8 +2668,8 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2687,8 +2687,8 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2706,8 +2706,8 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2842,8 +2842,8 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2861,8 +2861,8 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2880,8 +2880,8 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2993,7 +2993,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> AsyncI @distributed_trace_async async def begin_delete202_retry_invalid_header(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request receing a reponse - with an invalid 'Location' and 'Retry-After' headers. + with an invalid 'Location' and 'Retry-After' headers. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -3089,7 +3089,7 @@ async def begin_delete_async_relative_retry_invalid_header( # pylint: disable=n self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. The endpoint - indicated in the Azure-AsyncOperation header is invalid. + indicated in the Azure-AsyncOperation header is invalid. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -3185,7 +3185,7 @@ async def begin_delete_async_relative_retry_invalid_json_polling( # pylint: dis self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -3294,7 +3294,7 @@ async def begin_post202_retry_invalid_header( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3311,7 +3311,7 @@ async def begin_post202_retry_invalid_header( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3328,7 +3328,7 @@ async def begin_post202_retry_invalid_header( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3450,8 +3450,8 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3468,8 +3468,8 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3486,8 +3486,8 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3609,8 +3609,8 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3627,8 +3627,8 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3645,8 +3645,8 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py index dd168754dc8..f007112a839 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lr_os_custom_header_operations.py @@ -201,9 +201,9 @@ def begin_put_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -220,9 +220,9 @@ def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -239,9 +239,9 @@ def begin_put_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -368,9 +368,9 @@ def begin_put201_creating_succeeded200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -387,9 +387,9 @@ def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -406,9 +406,9 @@ def begin_put201_creating_succeeded200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -531,8 +531,8 @@ def begin_post202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -549,8 +549,8 @@ def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -567,8 +567,8 @@ def begin_post202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -690,9 +690,9 @@ def begin_post_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -709,9 +709,9 @@ def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -728,9 +728,9 @@ def begin_post_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py index b74eb3c10c5..ba2643bd6d1 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lro_retrys_operations.py @@ -239,8 +239,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -257,8 +257,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -275,8 +275,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -402,8 +402,8 @@ def begin_put_async_relative_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -420,8 +420,8 @@ def begin_put_async_relative_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -438,8 +438,8 @@ def begin_put_async_relative_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -554,9 +554,9 @@ def _delete_provisioning202_accepted200_succeeded_initial( # pylint: disable=na def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name-too-long self, **kwargs: Any ) -> LROPoller[_models.Product]: - """Long running delete request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + """Long running delete request, service returns a 500, then a 202 to the initial request, with an + entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -649,7 +649,7 @@ def _delete202_retry200_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete202_retry200(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Polls - return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -745,7 +745,7 @@ def begin_delete_async_relative_retry_succeeded( # pylint: disable=name-too-lon self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -854,7 +854,7 @@ def begin_post202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -871,7 +871,7 @@ def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -888,7 +888,7 @@ def begin_post202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1010,8 +1010,8 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1028,8 +1028,8 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1046,8 +1046,8 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py index c5f271521b7..1518bc348d6 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lros_operations.py @@ -836,7 +836,7 @@ def begin_put200_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -853,7 +853,7 @@ def begin_put200_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -870,7 +870,7 @@ def begin_put200_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -994,7 +994,7 @@ def begin_patch200_succeeded_ignore_headers( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: ~lro.models.Product @@ -1011,7 +1011,7 @@ def begin_patch200_succeeded_ignore_headers( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -1028,7 +1028,7 @@ def begin_patch200_succeeded_ignore_headers( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1316,7 +1316,7 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: ~lro.models.Product @@ -1333,7 +1333,7 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -1350,7 +1350,7 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1469,7 +1469,7 @@ def begin_put201_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1486,7 +1486,7 @@ def begin_put201_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1503,7 +1503,7 @@ def begin_put201_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1609,7 +1609,7 @@ def _post202_list_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_post202_list(self, **kwargs: Any) -> LROPoller[list[_models.Product]]: """Long running put request, service returns a 202 with empty body to first request, returns a 200 - with body [{ 'id': '100', 'name': 'foo' }]. + with body [{ 'id': '100', 'name': 'foo' }]. :return: An instance of LROPoller that returns either list of Product or the result of cls(response) @@ -1717,7 +1717,7 @@ def begin_put200_succeeded_no_state( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1734,7 +1734,7 @@ def begin_put200_succeeded_no_state( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1751,7 +1751,7 @@ def begin_put200_succeeded_no_state( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1870,8 +1870,8 @@ def begin_put202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1888,8 +1888,8 @@ def begin_put202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1906,8 +1906,8 @@ def begin_put202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2026,8 +2026,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2044,8 +2044,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2062,8 +2062,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2182,8 +2182,8 @@ def begin_put200_updating_succeeded204( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2200,8 +2200,8 @@ def begin_put200_updating_succeeded204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2218,8 +2218,8 @@ def begin_put200_updating_succeeded204( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2338,8 +2338,8 @@ def begin_put201_creating_failed200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2356,8 +2356,8 @@ def begin_put201_creating_failed200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2374,8 +2374,8 @@ def begin_put201_creating_failed200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2494,8 +2494,8 @@ def begin_put200_acceptedcanceled200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2512,8 +2512,8 @@ def begin_put200_acceptedcanceled200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2530,8 +2530,8 @@ def begin_put200_acceptedcanceled200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2653,7 +2653,7 @@ def begin_put_no_header_in_retry( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2670,7 +2670,7 @@ def begin_put_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2687,7 +2687,7 @@ def begin_put_no_header_in_retry( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2817,8 +2817,8 @@ def begin_put_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2835,8 +2835,8 @@ def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2853,8 +2853,8 @@ def begin_put_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2987,8 +2987,8 @@ def begin_put_async_no_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3005,8 +3005,8 @@ def begin_put_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3023,8 +3023,8 @@ def begin_put_async_no_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3157,8 +3157,8 @@ def begin_put_async_retry_failed( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3175,8 +3175,8 @@ def begin_put_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3193,8 +3193,8 @@ def begin_put_async_retry_failed( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3327,8 +3327,8 @@ def begin_put_async_no_retrycanceled( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3345,8 +3345,8 @@ def begin_put_async_no_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3363,8 +3363,8 @@ def begin_put_async_no_retrycanceled( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3495,8 +3495,8 @@ def begin_put_async_no_header_in_retry( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3513,8 +3513,8 @@ def begin_put_async_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3531,8 +3531,8 @@ def begin_put_async_no_header_in_retry( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -4146,8 +4146,8 @@ def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name- self, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -4245,8 +4245,8 @@ def begin_delete_provisioning202_deleting_failed200( # pylint: disable=name-too self, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -4344,8 +4344,8 @@ def begin_delete_provisioning202_deletingcanceled200( # pylint: disable=name-to self, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -4523,7 +4523,7 @@ def _delete202_retry200_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete202_retry200(self, **kwargs: Any) -> LROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -4617,7 +4617,7 @@ def _delete202_no_retry204_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete202_no_retry204(self, **kwargs: Any) -> LROPoller[_models.Product]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -4710,7 +4710,7 @@ def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete_no_header_in_retry(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a location header in the initial request. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -4799,7 +4799,7 @@ def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> Iterator[by @distributed_trace def begin_delete_async_no_header_in_retry(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns an Azure-AsyncOperation header in the initial - request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. + request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -4891,7 +4891,7 @@ def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> Iterator[bytes @distributed_trace def begin_delete_async_retry_succeeded(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -4983,7 +4983,7 @@ def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> Iterator[by @distributed_trace def begin_delete_async_no_retry_succeeded(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -5075,7 +5075,7 @@ def _delete_async_retry_failed_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete_async_retry_failed(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -5167,7 +5167,7 @@ def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete_async_retrycanceled(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -5252,7 +5252,7 @@ def _post200_with_payload_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_post200_with_payload(self, **kwargs: Any) -> LROPoller[_models.Sku]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header. Poll returns a 200 with a response body after success. + header. Poll returns a 200 with a response body after success. :return: An instance of LROPoller that returns either Sku or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Sku] @@ -5363,7 +5363,7 @@ def begin_post202_retry200( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5380,7 +5380,7 @@ def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5397,7 +5397,7 @@ def begin_post202_retry200( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -5516,7 +5516,7 @@ def begin_post202_no_retry204( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5533,7 +5533,7 @@ def begin_post202_no_retry204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5550,7 +5550,7 @@ def begin_post202_no_retry204( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -5658,8 +5658,8 @@ def begin_post_double_headers_final_location_get( # pylint: disable=name-too-lo self, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final - object. + Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final + object. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -5754,8 +5754,8 @@ def begin_post_double_headers_final_azure_header_get( # pylint: disable=name-to self, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -5850,8 +5850,8 @@ def begin_post_double_headers_final_azure_header_get_default( # pylint: disable self, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object if you support initial Autorest behavior. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object if you support initial Autorest behavior. :return: An instance of LROPoller that returns either Product or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[~lro.models.Product] @@ -5968,8 +5968,8 @@ def begin_post_async_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -5986,8 +5986,8 @@ def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -6004,8 +6004,8 @@ def begin_post_async_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -6132,8 +6132,8 @@ def begin_post_async_no_retry_succeeded( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -6150,8 +6150,8 @@ def begin_post_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -6168,8 +6168,8 @@ def begin_post_async_no_retry_succeeded( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -6295,8 +6295,8 @@ def begin_post_async_retry_failed( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -6313,8 +6313,8 @@ def begin_post_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -6331,8 +6331,8 @@ def begin_post_async_retry_failed( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -6454,8 +6454,8 @@ def begin_post_async_retrycanceled( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -6472,8 +6472,8 @@ def begin_post_async_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -6490,8 +6490,8 @@ def begin_post_async_retrycanceled( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py index 74d97e40196..46330f8ea97 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/operations/_lrosads_operations.py @@ -713,7 +713,7 @@ def begin_put_non_retry201_creating400( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -730,7 +730,7 @@ def begin_put_non_retry201_creating400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -747,7 +747,7 @@ def begin_put_non_retry201_creating400( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -866,7 +866,7 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -883,7 +883,7 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -900,7 +900,7 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1026,7 +1026,7 @@ def begin_put_async_relative_retry400( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1043,7 +1043,7 @@ def begin_put_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1060,7 +1060,7 @@ def begin_put_async_relative_retry400( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -1350,7 +1350,7 @@ def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> Iterator[byt @distributed_trace def begin_delete_async_relative_retry400(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -1762,7 +1762,7 @@ def begin_post_async_relative_retry400( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -1779,7 +1779,7 @@ def begin_post_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1796,7 +1796,7 @@ def begin_post_async_relative_retry400( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2068,8 +2068,8 @@ def begin_put_async_relative_retry_no_status( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2086,8 +2086,8 @@ def begin_put_async_relative_retry_no_status( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2104,8 +2104,8 @@ def begin_put_async_relative_retry_no_status( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2239,8 +2239,8 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2257,8 +2257,8 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2275,8 +2275,8 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2478,7 +2478,7 @@ def begin_delete_async_relative_retry_no_status( # pylint: disable=name-too-lon self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -2587,7 +2587,7 @@ def begin_post202_no_location( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2604,7 +2604,7 @@ def begin_post202_no_location( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2621,7 +2621,7 @@ def begin_post202_no_location( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2743,8 +2743,8 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2761,8 +2761,8 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2779,8 +2779,8 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -2895,7 +2895,7 @@ def begin_put200_invalid_json( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -2912,7 +2912,7 @@ def begin_put200_invalid_json( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2929,7 +2929,7 @@ def begin_put200_invalid_json( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3055,8 +3055,8 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3073,8 +3073,8 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3091,8 +3091,8 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3226,8 +3226,8 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3244,8 +3244,8 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3262,8 +3262,8 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[_models.Product]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3374,7 +3374,7 @@ def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> Iterator[byt @distributed_trace def begin_delete202_retry_invalid_header(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request receing a reponse - with an invalid 'Location' and 'Retry-After' headers. + with an invalid 'Location' and 'Retry-After' headers. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -3470,7 +3470,7 @@ def begin_delete_async_relative_retry_invalid_header( # pylint: disable=name-to self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. The endpoint - indicated in the Azure-AsyncOperation header is invalid. + indicated in the Azure-AsyncOperation header is invalid. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -3566,7 +3566,7 @@ def begin_delete_async_relative_retry_invalid_json_polling( # pylint: disable=n self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -3675,7 +3675,7 @@ def begin_post202_retry_invalid_header( self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3692,7 +3692,7 @@ def begin_post202_retry_invalid_header( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3709,7 +3709,7 @@ def begin_post202_retry_invalid_header( self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3831,8 +3831,8 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -3849,8 +3849,8 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3867,8 +3867,8 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. @@ -3990,8 +3990,8 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam self, product: Optional[_models.Product] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: ~lro.models.Product @@ -4008,8 +4008,8 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4026,8 +4026,8 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam self, product: Optional[Union[_models.Product, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a Product type or a IO[bytes] type. Default value is None. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py index de0cddc6338..6353b42b6d7 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_configuration.py @@ -20,7 +20,7 @@ class LROWithParamaterizedEndpointsConfiguration: # pylint: disable=too-many-in attributes. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_lro_with_paramaterized_endpoints.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_lro_with_paramaterized_endpoints.py index f45d0e2a9ed..2fbff23a507 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_lro_with_paramaterized_endpoints.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/_lro_with_paramaterized_endpoints.py @@ -26,10 +26,10 @@ class LROWithParamaterizedEndpoints( """Test Infrastructure for AutoRest. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py index 52cb22468ca..bd305be25dc 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_configuration.py @@ -20,7 +20,7 @@ class LROWithParamaterizedEndpointsConfiguration: # pylint: disable=too-many-in attributes. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_lro_with_paramaterized_endpoints.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_lro_with_paramaterized_endpoints.py index 1b0af4cb569..eb36b601273 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_lro_with_paramaterized_endpoints.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_lro_with_paramaterized_endpoints.py @@ -26,10 +26,10 @@ class LROWithParamaterizedEndpoints( """Test Infrastructure for AutoRest. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_configuration.py index 033b04e43c9..2a699f287f2 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_configuration.py @@ -25,7 +25,7 @@ class MixedApiVersionClientConfiguration: # pylint: disable=too-many-instance-a :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_mixed_api_version_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_mixed_api_version_client.py index 3cd26ec240d..e730a018150 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_mixed_api_version_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/_mixed_api_version_client.py @@ -42,7 +42,7 @@ class MixedApiVersionClient: # pylint: disable=client-accepts-api-version-keywo :vartype xms_client_request_id: mixedapiversion.operations.XMsClientRequestIdOperations :ivar subscription_in_credentials: SubscriptionInCredentialsOperations operations :vartype subscription_in_credentials: - mixedapiversion.operations.SubscriptionInCredentialsOperations + mixedapiversion.operations.SubscriptionInCredentialsOperations :ivar subscription_in_method: SubscriptionInMethodOperations operations :vartype subscription_in_method: mixedapiversion.operations.SubscriptionInMethodOperations :ivar api_version_default: ApiVersionDefaultOperations operations @@ -58,7 +58,7 @@ class MixedApiVersionClient: # pylint: disable=client-accepts-api-version-keywo :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_configuration.py index c232c7a9f51..23a949640c4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_configuration.py @@ -25,7 +25,7 @@ class MixedApiVersionClientConfiguration: # pylint: disable=too-many-instance-a :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_mixed_api_version_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_mixed_api_version_client.py index 9607a275dd6..d71c7afcdb0 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_mixed_api_version_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/_mixed_api_version_client.py @@ -42,7 +42,7 @@ class MixedApiVersionClient: # pylint: disable=client-accepts-api-version-keywo :vartype xms_client_request_id: mixedapiversion.aio.operations.XMsClientRequestIdOperations :ivar subscription_in_credentials: SubscriptionInCredentialsOperations operations :vartype subscription_in_credentials: - mixedapiversion.aio.operations.SubscriptionInCredentialsOperations + mixedapiversion.aio.operations.SubscriptionInCredentialsOperations :ivar subscription_in_method: SubscriptionInMethodOperations operations :vartype subscription_in_method: mixedapiversion.aio.operations.SubscriptionInMethodOperations :ivar api_version_default: ApiVersionDefaultOperations operations @@ -58,7 +58,7 @@ class MixedApiVersionClient: # pylint: disable=client-accepts-api-version-keywo :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_api_version_local_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_api_version_local_operations.py index b2ce6d96903..0d14bcb1831 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_api_version_local_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_api_version_local_operations.py @@ -57,7 +57,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get_method_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -101,7 +101,7 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def get_method_local_null(self, api_version: Optional[str] = None, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = null to succeed. + """Get method with api-version modeled in the method. pass in api-version = null to succeed. :param api_version: This should appear as a method parameter, use value null, this should result in no serialized parameter. Default value is None. @@ -147,7 +147,7 @@ async def get_method_local_null(self, api_version: Optional[str] = None, **kwarg @distributed_trace_async async def get_path_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -191,7 +191,7 @@ async def get_path_local_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def get_swagger_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_header_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_header_operations.py index e748534a5ec..283a02539a5 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_header_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_header_operations.py @@ -109,7 +109,7 @@ async def custom_named_request_id_param_grouping( **kwargs: Any ) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, - via a parameter group. + via a parameter group. :param header_custom_named_request_id_param_grouping_parameters: Parameter group. Required. :type header_custom_named_request_id_param_grouping_parameters: diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_credentials_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_credentials_operations.py index 0d436696d3a..99e69678960 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_credentials_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_credentials_operations.py @@ -58,8 +58,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def post_method_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -102,8 +102,8 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_method_global_null(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - null, and client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + null, and client-side validation should prevent you from making this call. :return: None or the result of cls(response) :rtype: None @@ -146,8 +146,8 @@ async def post_method_global_null(self, **kwargs: Any) -> None: @distributed_trace_async async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -192,8 +192,8 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_path_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -236,8 +236,8 @@ async def post_path_global_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_swagger_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_method_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_method_operations.py index 8fc164456e0..c4d7df229fb 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_method_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_subscription_in_method_operations.py @@ -56,8 +56,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: This should appear as a method parameter, use value '1234-5678-9012-3456'. Required. @@ -103,8 +103,8 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> @distributed_trace_async async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = null, - client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in the method. pass in subscription id = null, + client-side validation should prevent you from making this call. :param subscription_id: This should appear as a method parameter, use value null, client-side validation should prvenet the call. Required. @@ -150,8 +150,8 @@ async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N @distributed_trace_async async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: Should appear as a method parameter -use value '1234-5678-9012-3456'. Required. @@ -197,8 +197,8 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No @distributed_trace_async async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: The subscriptionId, which appears in the path, the value is always '1234-5678-9012-3456'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_xms_client_request_id_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_xms_client_request_id_operations.py index 74694f8c85b..645f9fcdaa9 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_xms_client_request_id_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/aio/operations/_xms_client_request_id_operations.py @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get(self, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None or the result of cls(response) :rtype: None @@ -94,7 +94,7 @@ async def get(self, **kwargs: Any) -> None: @distributed_trace_async async def param_get(self, x_ms_client_request_id: str, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :param x_ms_client_request_id: This should appear as a method parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_api_version_local_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_api_version_local_operations.py index 28de863fbe9..1683df21ea0 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_api_version_local_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_api_version_local_operations.py @@ -130,7 +130,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_method_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -176,7 +176,7 @@ def get_method_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inco def get_method_local_null( # pylint: disable=inconsistent-return-statements self, api_version: Optional[str] = None, **kwargs: Any ) -> None: - """Get method with api-version modeled in the method. pass in api-version = null to succeed. + """Get method with api-version modeled in the method. pass in api-version = null to succeed. :param api_version: This should appear as a method parameter, use value null, this should result in no serialized parameter. Default value is None. @@ -222,7 +222,7 @@ def get_method_local_null( # pylint: disable=inconsistent-return-statements @distributed_trace def get_path_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None @@ -266,7 +266,7 @@ def get_path_local_valid(self, **kwargs: Any) -> None: # pylint: disable=incons @distributed_trace def get_swagger_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_header_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_header_operations.py index 041bae8b162..c74d55a95ce 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_header_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_header_operations.py @@ -159,7 +159,7 @@ def custom_named_request_id_param_grouping( # pylint: disable=inconsistent-retu **kwargs: Any ) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, - via a parameter group. + via a parameter group. :param header_custom_named_request_id_param_grouping_parameters: Parameter group. Required. :type header_custom_named_request_id_param_grouping_parameters: diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_credentials_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_credentials_operations.py index f6f3fc1ab6c..0d4b360f638 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_credentials_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_credentials_operations.py @@ -170,8 +170,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def post_method_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -214,8 +214,8 @@ def post_method_global_valid(self, **kwargs: Any) -> None: # pylint: disable=in @distributed_trace def post_method_global_null(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - null, and client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + null, and client-side validation should prevent you from making this call. :return: None or the result of cls(response) :rtype: None @@ -260,8 +260,8 @@ def post_method_global_null(self, **kwargs: Any) -> None: # pylint: disable=inc def post_method_global_not_provided_valid( # pylint: disable=inconsistent-return-statements self, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -306,8 +306,8 @@ def post_method_global_not_provided_valid( # pylint: disable=inconsistent-retur @distributed_trace def post_path_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None @@ -350,8 +350,8 @@ def post_path_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inco @distributed_trace def post_swagger_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_method_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_method_operations.py index 125f2efda2c..27092050e79 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_method_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_subscription_in_method_operations.py @@ -142,8 +142,8 @@ def __init__(self, *args, **kwargs) -> None: def post_method_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: This should appear as a method parameter, use value '1234-5678-9012-3456'. Required. @@ -191,8 +191,8 @@ def post_method_local_valid( # pylint: disable=inconsistent-return-statements def post_method_local_null( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = null, - client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in the method. pass in subscription id = null, + client-side validation should prevent you from making this call. :param subscription_id: This should appear as a method parameter, use value null, client-side validation should prvenet the call. Required. @@ -240,8 +240,8 @@ def post_method_local_null( # pylint: disable=inconsistent-return-statements def post_path_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: Should appear as a method parameter -use value '1234-5678-9012-3456'. Required. @@ -289,8 +289,8 @@ def post_path_local_valid( # pylint: disable=inconsistent-return-statements def post_swagger_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: The subscriptionId, which appears in the path, the value is always '1234-5678-9012-3456'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_xms_client_request_id_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_xms_client_request_id_operations.py index 95736d63dea..90971cc0674 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_xms_client_request_id_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/MixedApiVersion/mixedapiversion/operations/_xms_client_request_id_operations.py @@ -77,7 +77,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None or the result of cls(response) :rtype: None @@ -121,7 +121,7 @@ def param_get( # pylint: disable=inconsistent-return-statements self, x_ms_client_request_id: str, **kwargs: Any ) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :param x_ms_client_request_id: This should appear as a method parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0'. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_configuration.py index f0006b316a7..3eab4903973 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_configuration.py @@ -27,7 +27,7 @@ class HeadClientConfiguration: # pylint: disable=too-many-instance-attributes :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_head_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_head_client.py index 5b1a6a62912..f7d2b465e49 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_head_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/_head_client.py @@ -36,7 +36,7 @@ class HeadClient: # pylint: disable=client-accepts-api-version-keyword :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_configuration.py index 89a14ca49df..a5062d928d8 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_configuration.py @@ -27,7 +27,7 @@ class HeadClientConfiguration: # pylint: disable=too-many-instance-attributes :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_head_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_head_client.py index 73811936d0d..47fb3134777 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_head_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/head/aio/_head_client.py @@ -36,7 +36,7 @@ class HeadClient: # pylint: disable=client-accepts-api-version-keyword :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py index 8cdce7c64e2..2c75c69e7fd 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_configuration.py @@ -27,10 +27,10 @@ class PagingClientConfiguration: # pylint: disable=too-many-instance-attributes :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py index cd9ffc20c42..ad37ea44dda 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/_paging_client.py @@ -37,13 +37,13 @@ class PagingClient: :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py index 11621c87aa4..bdb0d005385 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_configuration.py @@ -27,10 +27,10 @@ class PagingClientConfiguration: # pylint: disable=too-many-instance-attributes :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py index a06c44003ea..cf78bcbd268 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/_paging_client.py @@ -37,13 +37,13 @@ class PagingClient: :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/operations/_paging_operations.py index 74e39e66610..7e028795f7e 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/aio/operations/_paging_operations.py @@ -453,7 +453,7 @@ async def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -614,7 +614,7 @@ async def get_next(next_link=None): @distributed_trace def get_with_query_params(self, required_query_parameter: int, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :param required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -686,8 +686,8 @@ async def get_next(next_link=None): @distributed_trace def duplicate_params(self, filter: Optional[str] = None, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :param filter: OData filter options. Pass in 'foo'. Default value is None. :type filter: str @@ -1020,7 +1020,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -1092,7 +1092,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -1722,7 +1722,7 @@ async def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -1796,7 +1796,7 @@ async def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -1872,7 +1872,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> AsyncItemPaged["_models.Product"]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.packagemode.batch.paging.models.Product] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/operations/_paging_operations.py index 10497c69211..94338405d8d 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/operations/_paging_operations.py @@ -913,7 +913,7 @@ def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -1074,7 +1074,7 @@ def get_next(next_link=None): @distributed_trace def get_with_query_params(self, required_query_parameter: int, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :param required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -1146,8 +1146,8 @@ def get_next(next_link=None): @distributed_trace def duplicate_params(self, filter: Optional[str] = None, **kwargs: Any) -> ItemPaged["_models.Product"]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :param filter: OData filter options. Pass in 'foo'. Default value is None. :type filter: str @@ -1478,7 +1478,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -1550,7 +1550,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -2180,7 +2180,7 @@ def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -2254,7 +2254,7 @@ def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.packagemode.batch.paging.models.Product] @@ -2330,7 +2330,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> ItemPaged["_models.Product"]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.packagemode.batch.paging.models.Product] 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 51714be29c1..8638f1c622c 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.packagemode", diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_auto_rest_head_test_service.py index 47e5d5d5b09..aaec2bba5c9 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_configuration.py index 439399e4cb2..64918e74d3d 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_auto_rest_head_test_service.py index addb5dea692..4d682ba8c8a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_configuration.py index 5437f111234..1037ceb883b 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeCustomize/azure/packagemode/customize/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_auto_rest_head_test_service.py index f886afb3de3..db56b58fc06 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_configuration.py index 53b2f7478bf..f81d667a6ce 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_auto_rest_head_test_service.py index 8ca36706322..87087367fe2 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_configuration.py index 6df230433fe..121170b9ed1 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeDataPlane/azure/packagemode/dataplane/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ 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 3f47d3a715e..2ae89c82cf3 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.packagemode", diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_auto_rest_head_test_service.py index 2c64aac7aa4..abecb3f1b5f 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_configuration.py index ed06ffe54c2..3bf52557545 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_auto_rest_head_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_auto_rest_head_test_service.py index 8c4b5155266..7b387db1cfb 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_auto_rest_head_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_auto_rest_head_test_service.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_configuration.py index df5ff01a7a4..20bcf4fd205 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeMgmtPlane/azure/package/mode/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ 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 b8d198cf461..ed1bdd05e55 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.package", diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py index 1e0ae3ec7bb..7922f8beb1c 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_auto_rest_paging_test_service.py @@ -28,10 +28,10 @@ class AutoRestPagingTestService: :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py index 2a82930bf24..af0d78545c4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/_configuration.py @@ -20,7 +20,7 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan attributes. :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py index 3f47c456bb3..3303671b665 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_auto_rest_paging_test_service.py @@ -28,10 +28,10 @@ class AutoRestPagingTestService: :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py index 3b70fdd7d9e..9182b96596d 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan attributes. :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py index b62851ad959..0bde29e5dbb 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py @@ -452,7 +452,7 @@ async def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~paging.models.Product] @@ -612,7 +612,7 @@ async def get_next(next_link=None): @distributed_trace def get_with_query_params(self, required_query_parameter: int, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :param required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -684,8 +684,8 @@ async def get_next(next_link=None): @distributed_trace def duplicate_params(self, filter: Optional[str] = None, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :param filter: OData filter options. Pass in 'foo'. Default value is None. :type filter: str @@ -1018,7 +1018,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~paging.models.Product] @@ -1090,7 +1090,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~paging.models.Product] @@ -1719,7 +1719,7 @@ async def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~paging.models.Product] @@ -1793,7 +1793,7 @@ async def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~paging.models.Product] @@ -1869,7 +1869,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> AsyncItemPaged["_models.Product"]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~paging.models.Product] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py index c1901841c04..54b87ccedd9 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/operations/_paging_operations.py @@ -912,7 +912,7 @@ def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~paging.models.Product] @@ -1072,7 +1072,7 @@ def get_next(next_link=None): @distributed_trace def get_with_query_params(self, required_query_parameter: int, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :param required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -1144,8 +1144,8 @@ def get_next(next_link=None): @distributed_trace def duplicate_params(self, filter: Optional[str] = None, **kwargs: Any) -> ItemPaged["_models.Product"]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :param filter: OData filter options. Pass in 'foo'. Default value is None. :type filter: str @@ -1476,7 +1476,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~paging.models.Product] @@ -1548,7 +1548,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~paging.models.Product] @@ -2176,7 +2176,7 @@ def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~paging.models.Product] @@ -2250,7 +2250,7 @@ def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> ItemPaged["_models.Product"]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~paging.models.Product] @@ -2326,7 +2326,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> ItemPaged["_models.Product"]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of either Product or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~paging.models.Product] diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_autorest_security_aad.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_autorest_security_aad.py index 89b9fa90f21..2a6c3997beb 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_autorest_security_aad.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_autorest_security_aad.py @@ -34,7 +34,7 @@ class AutorestSecurityAad(_AutorestSecurityAadOperationsMixin): # pylint: disab :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_configuration.py index ea55fa94e06..00e178e17b7 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/_configuration.py @@ -27,7 +27,7 @@ class AutorestSecurityAadConfiguration: # pylint: disable=too-many-instance-att :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_autorest_security_aad.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_autorest_security_aad.py index 12a442b0dc9..d59e9e16c3e 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_autorest_security_aad.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_autorest_security_aad.py @@ -34,7 +34,7 @@ class AutorestSecurityAad(_AutorestSecurityAadOperationsMixin): # pylint: disab :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_configuration.py index 16e63aa3882..66633f6db5a 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityAadSwagger/securityaadswagger/aio/_configuration.py @@ -27,7 +27,7 @@ class AutorestSecurityAadConfiguration: # pylint: disable=too-many-instance-att :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_autorest_security_key.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_autorest_security_key.py index d1f7c10170c..7714c457449 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_autorest_security_key.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_autorest_security_key.py @@ -34,7 +34,7 @@ class AutorestSecurityKey(_AutorestSecurityKeyOperationsMixin): # pylint: disab :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_configuration.py index 6d472378b3d..32e3e461a90 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/_configuration.py @@ -27,7 +27,7 @@ class AutorestSecurityKeyConfiguration: # pylint: disable=too-many-instance-att :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_autorest_security_key.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_autorest_security_key.py index bf89fc6de3b..48bae7a47be 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_autorest_security_key.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_autorest_security_key.py @@ -34,7 +34,7 @@ class AutorestSecurityKey(_AutorestSecurityKeyOperationsMixin): # pylint: disab :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_configuration.py index 923c358c467..407188f5c16 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SecurityKeySwagger/securitykeyswagger/aio/_configuration.py @@ -27,7 +27,7 @@ class AutorestSecurityKeyConfiguration: # pylint: disable=too-many-instance-att :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py index 46ba93135a4..dd68d230d2e 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_configuration.py @@ -27,13 +27,13 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py index bf87208ffa5..2ee7e3b2f62 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/_storage_management_client.py @@ -37,18 +37,18 @@ class StorageManagementClient: :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py index f75b7c08f6b..c2fb6b66038 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_configuration.py @@ -27,13 +27,13 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py index 4d61da0999f..2c043ac29b1 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/_storage_management_client.py @@ -37,18 +37,18 @@ class StorageManagementClient: :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py index 9a1f4860a04..4205c53ba35 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py @@ -254,9 +254,9 @@ async def begin_create( **kwargs: Any ) -> AsyncLROPoller[_models.StorageAccount]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -287,9 +287,9 @@ async def begin_create( **kwargs: Any ) -> AsyncLROPoller[_models.StorageAccount]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -318,9 +318,9 @@ async def begin_create( **kwargs: Any ) -> AsyncLROPoller[_models.StorageAccount]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -442,8 +442,8 @@ async def get_properties( self, resource_group_name: str, account_name: str, **kwargs: Any ) -> _models.StorageAccount: """Returns the properties for the specified storage account including but not limited to name, - account type, location, and account status. The ListKeys operation should be used to retrieve - storage keys. + account type, location, and account status. The ListKeys operation should be used to retrieve + storage keys. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -509,12 +509,12 @@ async def update( **kwargs: Any ) -> _models.StorageAccount: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -545,12 +545,12 @@ async def update( **kwargs: Any ) -> _models.StorageAccount: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -579,12 +579,12 @@ async def update( **kwargs: Any ) -> _models.StorageAccount: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -713,7 +713,7 @@ async def list_keys(self, resource_group_name: str, account_name: str, **kwargs: @distributed_trace def list(self, **kwargs: Any) -> AsyncItemPaged["_models.StorageAccount"]: """Lists all the storage accounts available under the subscription. Note that storage keys are not - returned; use the ListKeys operation for this. + returned; use the ListKeys operation for this. :return: An iterator like instance of either StorageAccount or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~storage.models.StorageAccount] @@ -790,7 +790,7 @@ def list_by_resource_group( self, resource_group_name: str, **kwargs: Any ) -> AsyncItemPaged["_models.StorageAccount"]: """Lists all the storage accounts available under the given resource group. Note that storage keys - are not returned; use the ListKeys operation for this. + are not returned; use the ListKeys operation for this. :param resource_group_name: The name of the resource group within the user’s subscription. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py index f5703be81fe..48ae0715226 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/operations/_storage_accounts_operations.py @@ -516,9 +516,9 @@ def begin_create( **kwargs: Any ) -> LROPoller[_models.StorageAccount]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -549,9 +549,9 @@ def begin_create( **kwargs: Any ) -> LROPoller[_models.StorageAccount]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -580,9 +580,9 @@ def begin_create( **kwargs: Any ) -> LROPoller[_models.StorageAccount]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -704,8 +704,8 @@ def delete( # pylint: disable=inconsistent-return-statements @distributed_trace def get_properties(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _models.StorageAccount: """Returns the properties for the specified storage account including but not limited to name, - account type, location, and account status. The ListKeys operation should be used to retrieve - storage keys. + account type, location, and account status. The ListKeys operation should be used to retrieve + storage keys. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -771,12 +771,12 @@ def update( **kwargs: Any ) -> _models.StorageAccount: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -807,12 +807,12 @@ def update( **kwargs: Any ) -> _models.StorageAccount: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -841,12 +841,12 @@ def update( **kwargs: Any ) -> _models.StorageAccount: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -975,7 +975,7 @@ def list_keys(self, resource_group_name: str, account_name: str, **kwargs: Any) @distributed_trace def list(self, **kwargs: Any) -> ItemPaged["_models.StorageAccount"]: """Lists all the storage accounts available under the subscription. Note that storage keys are not - returned; use the ListKeys operation for this. + returned; use the ListKeys operation for this. :return: An iterator like instance of either StorageAccount or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~storage.models.StorageAccount] @@ -1050,7 +1050,7 @@ def get_next(next_link=None): @distributed_trace def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.StorageAccount"]: """Lists all the storage accounts available under the given resource group. Note that storage keys - are not returned; use the ListKeys operation for this. + are not returned; use the ListKeys operation for this. :param resource_group_name: The name of the resource group within the user’s subscription. Required. diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py index 89f496c149c..6f793bc3453 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_configuration.py @@ -29,10 +29,10 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param subscription_id: Subscription Id. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py index 6c368a24c08..36f85cf825c 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/_microsoft_azure_test_url.py @@ -39,10 +39,10 @@ class MicrosoftAzureTestUrl: :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py index 89257c5a9af..49eda9cc3cb 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_configuration.py @@ -29,10 +29,10 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param subscription_id: Subscription Id. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py index 7fab7b52430..ebe264ff1ef 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/_microsoft_azure_test_url.py @@ -39,10 +39,10 @@ class MicrosoftAzureTestUrl: :param base_url: Service URL. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/_client.py index 9100ccf7808..62306a886c0 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/_client.py @@ -24,7 +24,7 @@ class AutoRestParameterGroupingTestService: # pylint: disable=client-accepts-ap :ivar parameter_grouping: ParameterGroupingOperations operations :vartype parameter_grouping: - azureparametergroupingversiontolerant.operations.ParameterGroupingOperations + azureparametergroupingversiontolerant.operations.ParameterGroupingOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/_client.py index d6f1e2eee31..7c7467c71e2 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/_client.py @@ -24,7 +24,7 @@ class AutoRestParameterGroupingTestService: # pylint: disable=client-accepts-ap :ivar parameter_grouping: ParameterGroupingOperations operations :vartype parameter_grouping: - azureparametergroupingversiontolerant.aio.operations.ParameterGroupingOperations + azureparametergroupingversiontolerant.aio.operations.ParameterGroupingOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py index 523525ea5f5..f725e386827 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/aio/operations/_operations.py @@ -332,7 +332,7 @@ async def group_with_constant( **kwargs: Any ) -> None: """Parameter group with a constant. Pass in 'foo' for groupedConstant and 'bar' for - groupedParameter. + groupedParameter. :keyword grouped_constant: A grouped parameter that is a constant. Known values are "foo" and None. Default value is None. diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py index 608901dcece..78c7bdbfc66 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureParameterGroupingVersionTolerant/azureparametergroupingversiontolerant/operations/_operations.py @@ -475,7 +475,7 @@ def group_with_constant( # pylint: disable=inconsistent-return-statements **kwargs: Any ) -> None: """Parameter group with a constant. Pass in 'foo' for groupedConstant and 'bar' for - groupedParameter. + groupedParameter. :keyword grouped_constant: A grouped parameter that is a constant. Known values are "foo" and None. Default value is None. diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py index 6ccc68ab16e..4625998ab1f 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/_operations/_operations.py @@ -75,7 +75,7 @@ def get_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) -> dict[ # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/_operations/_operations.py index 1d94912920b..db824599ffd 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureReportVersionTolerant/azurereportversiontolerant/aio/_operations/_operations.py @@ -51,7 +51,7 @@ async def get_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) -> # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py index 4e7ee92c7d1..0a4b8a97ee4 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_client.py @@ -40,22 +40,22 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :ivar xms_client_request_id: XMsClientRequestIdOperations operations :vartype xms_client_request_id: - azurespecialpropertiesversiontolerant.operations.XMsClientRequestIdOperations + azurespecialpropertiesversiontolerant.operations.XMsClientRequestIdOperations :ivar subscription_in_credentials: SubscriptionInCredentialsOperations operations :vartype subscription_in_credentials: - azurespecialpropertiesversiontolerant.operations.SubscriptionInCredentialsOperations + azurespecialpropertiesversiontolerant.operations.SubscriptionInCredentialsOperations :ivar subscription_in_method: SubscriptionInMethodOperations operations :vartype subscription_in_method: - azurespecialpropertiesversiontolerant.operations.SubscriptionInMethodOperations + azurespecialpropertiesversiontolerant.operations.SubscriptionInMethodOperations :ivar api_version_default: ApiVersionDefaultOperations operations :vartype api_version_default: - azurespecialpropertiesversiontolerant.operations.ApiVersionDefaultOperations + azurespecialpropertiesversiontolerant.operations.ApiVersionDefaultOperations :ivar api_version_local: ApiVersionLocalOperations operations :vartype api_version_local: - azurespecialpropertiesversiontolerant.operations.ApiVersionLocalOperations + azurespecialpropertiesversiontolerant.operations.ApiVersionLocalOperations :ivar skip_url_encoding: SkipUrlEncodingOperations operations :vartype skip_url_encoding: - azurespecialpropertiesversiontolerant.operations.SkipUrlEncodingOperations + azurespecialpropertiesversiontolerant.operations.SkipUrlEncodingOperations :ivar odata: OdataOperations operations :vartype odata: azurespecialpropertiesversiontolerant.operations.OdataOperations :ivar header: HeaderOperations operations @@ -63,15 +63,15 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py index a1761360da7..21285151041 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/_configuration.py @@ -28,13 +28,13 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py index e5bfc8e1929..bf7dfeb5804 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_client.py @@ -40,22 +40,22 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :ivar xms_client_request_id: XMsClientRequestIdOperations operations :vartype xms_client_request_id: - azurespecialpropertiesversiontolerant.aio.operations.XMsClientRequestIdOperations + azurespecialpropertiesversiontolerant.aio.operations.XMsClientRequestIdOperations :ivar subscription_in_credentials: SubscriptionInCredentialsOperations operations :vartype subscription_in_credentials: - azurespecialpropertiesversiontolerant.aio.operations.SubscriptionInCredentialsOperations + azurespecialpropertiesversiontolerant.aio.operations.SubscriptionInCredentialsOperations :ivar subscription_in_method: SubscriptionInMethodOperations operations :vartype subscription_in_method: - azurespecialpropertiesversiontolerant.aio.operations.SubscriptionInMethodOperations + azurespecialpropertiesversiontolerant.aio.operations.SubscriptionInMethodOperations :ivar api_version_default: ApiVersionDefaultOperations operations :vartype api_version_default: - azurespecialpropertiesversiontolerant.aio.operations.ApiVersionDefaultOperations + azurespecialpropertiesversiontolerant.aio.operations.ApiVersionDefaultOperations :ivar api_version_local: ApiVersionLocalOperations operations :vartype api_version_local: - azurespecialpropertiesversiontolerant.aio.operations.ApiVersionLocalOperations + azurespecialpropertiesversiontolerant.aio.operations.ApiVersionLocalOperations :ivar skip_url_encoding: SkipUrlEncodingOperations operations :vartype skip_url_encoding: - azurespecialpropertiesversiontolerant.aio.operations.SkipUrlEncodingOperations + azurespecialpropertiesversiontolerant.aio.operations.SkipUrlEncodingOperations :ivar odata: OdataOperations operations :vartype odata: azurespecialpropertiesversiontolerant.aio.operations.OdataOperations :ivar header: HeaderOperations operations @@ -63,15 +63,15 @@ class AutoRestAzureSpecialParametersTestClient: # pylint: disable=too-many-inst :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py index ce5f3c36856..6c5370d2371 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/_configuration.py @@ -28,13 +28,13 @@ class AutoRestAzureSpecialParametersTestClientConfiguration: # pylint: disable= :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription id, which appears in the path, always modeled in - credentials. The value is always '1234-5678-9012-3456'. Required. + credentials. The value is always '1234-5678-9012-3456'. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-07-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py index bd4aea63b5d..5a21e85d25d 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/aio/operations/_operations.py @@ -85,7 +85,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get(self, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None :rtype: None @@ -127,7 +127,7 @@ async def get(self, **kwargs: Any) -> None: @distributed_trace_async async def param_get(self, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None :rtype: None @@ -188,8 +188,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def post_method_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -231,8 +231,8 @@ async def post_method_global_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_method_global_null(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - null, and client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + null, and client-side validation should prevent you from making this call. :return: None :rtype: None @@ -274,8 +274,8 @@ async def post_method_global_null(self, **kwargs: Any) -> None: @distributed_trace_async async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -318,8 +318,8 @@ async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_path_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -361,8 +361,8 @@ async def post_path_global_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def post_swagger_global_valid(self, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -424,8 +424,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: This should appear as a method parameter, use value '1234-5678-9012-3456'. Required. @@ -470,8 +470,8 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> @distributed_trace_async async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = null, - client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in the method. pass in subscription id = null, + client-side validation should prevent you from making this call. :param subscription_id: This should appear as a method parameter, use value null, client-side validation should prvenet the call. Required. @@ -516,8 +516,8 @@ async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> N @distributed_trace_async async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: Should appear as a method parameter -use value '1234-5678-9012-3456'. Required. @@ -562,8 +562,8 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> No @distributed_trace_async async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: The subscriptionId, which appears in the path, the value is always '1234-5678-9012-3456'. Required. @@ -816,7 +816,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get_method_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None :rtype: None @@ -859,7 +859,7 @@ async def get_method_local_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def get_method_local_null(self, *, api_version: Optional[str] = None, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = null to succeed. + """Get method with api-version modeled in the method. pass in api-version = null to succeed. :keyword api_version: This should appear as a method parameter, use value null, this should result in no serialized parameter. Default value is None. @@ -904,7 +904,7 @@ async def get_method_local_null(self, *, api_version: Optional[str] = None, **kw @distributed_trace_async async def get_path_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None :rtype: None @@ -947,7 +947,7 @@ async def get_path_local_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def get_swagger_local_valid(self, **kwargs: Any) -> None: - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None :rtype: None @@ -1457,7 +1457,7 @@ async def custom_named_request_id(self, *, foo_client_request_id: str, **kwargs: @distributed_trace_async async def custom_named_request_id_param_grouping(self, *, foo_client_request_id: str, **kwargs: Any) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, - via a parameter group. + via a parameter group. :keyword foo_client_request_id: The fooRequestId. Required. :paramtype foo_client_request_id: str diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py index c34949616e3..a0a75a6c89b 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/AzureSpecialsVersionTolerant/azurespecialpropertiesversiontolerant/operations/_operations.py @@ -661,7 +661,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None :rtype: None @@ -703,7 +703,7 @@ def get(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-sta @distributed_trace def param_get(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. :return: None :rtype: None @@ -764,8 +764,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def post_method_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -807,8 +807,8 @@ def post_method_global_valid(self, **kwargs: Any) -> None: # pylint: disable=in @distributed_trace def post_method_global_null(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - null, and client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + null, and client-side validation should prevent you from making this call. :return: None :rtype: None @@ -852,8 +852,8 @@ def post_method_global_null(self, **kwargs: Any) -> None: # pylint: disable=inc def post_method_global_not_provided_valid( # pylint: disable=inconsistent-return-statements self, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -896,8 +896,8 @@ def post_method_global_not_provided_valid( # pylint: disable=inconsistent-retur @distributed_trace def post_path_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -939,8 +939,8 @@ def post_path_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inco @distributed_trace def post_swagger_global_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to + '1234-5678-9012-3456' to succeed. :return: None :rtype: None @@ -1004,8 +1004,8 @@ def __init__(self, *args, **kwargs) -> None: def post_method_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: This should appear as a method parameter, use value '1234-5678-9012-3456'. Required. @@ -1052,8 +1052,8 @@ def post_method_local_valid( # pylint: disable=inconsistent-return-statements def post_method_local_null( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = null, - client-side validation should prevent you from making this call. + """POST method with subscriptionId modeled in the method. pass in subscription id = null, + client-side validation should prevent you from making this call. :param subscription_id: This should appear as a method parameter, use value null, client-side validation should prvenet the call. Required. @@ -1100,8 +1100,8 @@ def post_method_local_null( # pylint: disable=inconsistent-return-statements def post_path_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: Should appear as a method parameter -use value '1234-5678-9012-3456'. Required. @@ -1148,8 +1148,8 @@ def post_path_local_valid( # pylint: disable=inconsistent-return-statements def post_swagger_local_valid( # pylint: disable=inconsistent-return-statements self, subscription_id: str, **kwargs: Any ) -> None: - """POST method with subscriptionId modeled in the method. pass in subscription id = - '1234-5678-9012-3456' to succeed. + """POST method with subscriptionId modeled in the method. pass in subscription id = + '1234-5678-9012-3456' to succeed. :param subscription_id: The subscriptionId, which appears in the path, the value is always '1234-5678-9012-3456'. Required. @@ -1404,7 +1404,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_method_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None :rtype: None @@ -1449,7 +1449,7 @@ def get_method_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inco def get_method_local_null( # pylint: disable=inconsistent-return-statements self, *, api_version: Optional[str] = None, **kwargs: Any ) -> None: - """Get method with api-version modeled in the method. pass in api-version = null to succeed. + """Get method with api-version modeled in the method. pass in api-version = null to succeed. :keyword api_version: This should appear as a method parameter, use value null, this should result in no serialized parameter. Default value is None. @@ -1494,7 +1494,7 @@ def get_method_local_null( # pylint: disable=inconsistent-return-statements @distributed_trace def get_path_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None :rtype: None @@ -1537,7 +1537,7 @@ def get_path_local_valid(self, **kwargs: Any) -> None: # pylint: disable=incons @distributed_trace def get_swagger_local_valid(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. + """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :return: None :rtype: None @@ -2059,7 +2059,7 @@ def custom_named_request_id_param_grouping( # pylint: disable=inconsistent-retu self, *, foo_client_request_id: str, **kwargs: Any ) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, - via a parameter group. + via a parameter group. :keyword foo_client_request_id: The fooRequestId. Required. :paramtype foo_client_request_id: str diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py index ef2e3db6534..a3672c287b5 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py @@ -25,7 +25,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurlversiontolerant.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py index f131bf97599..c941f96fc66 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py index 0c857272e94..23558c10b44 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py @@ -25,7 +25,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurlversiontolerant.aio.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py index b59e4785d7b..238b10238d7 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py index 486e6914cc3..32b8425f78d 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_client.py @@ -36,13 +36,13 @@ class AutoRestPagingTestService: :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py index e1507c767de..f2cd47e33c8 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/_configuration.py @@ -27,10 +27,10 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py index c87e33316bc..76cbd611eaf 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_client.py @@ -36,13 +36,13 @@ class AutoRestPagingTestService: :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py index e3278422326..61a1ede41a4 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/_configuration.py @@ -27,10 +27,10 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py index 766ece3bb55..8a7f1e1df92 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/aio/operations/_operations.py @@ -100,10 +100,10 @@ def get_no_item_name_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -182,10 +182,10 @@ def get_empty_next_link_name_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -264,10 +264,10 @@ def get_null_next_link_name_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -346,10 +346,10 @@ def get_single_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -435,15 +435,15 @@ def get_single_pages_with_body_params( # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -467,10 +467,10 @@ def get_single_pages_with_body_params( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -492,15 +492,15 @@ def get_single_pages_with_body_params( # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -580,7 +580,7 @@ async def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -591,10 +591,10 @@ def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -681,10 +681,10 @@ def get_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -755,7 +755,7 @@ async def get_next(next_link=None): @distributed_trace def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :keyword required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -769,10 +769,10 @@ def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -838,8 +838,8 @@ async def get_next(next_link=None): @distributed_trace def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> AsyncItemPaged[JSON]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :keyword filter: OData filter options. Pass in 'foo'. Default value is None. :paramtype filter: str @@ -852,10 +852,10 @@ def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> As # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -935,10 +935,10 @@ def page_with_max_page_size(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1027,10 +1027,10 @@ def get_odata_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1121,10 +1121,10 @@ def get_multiple_pages_with_offset( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1196,7 +1196,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1207,10 +1207,10 @@ def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1279,7 +1279,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1290,10 +1290,10 @@ def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged[JSON] # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1372,10 +1372,10 @@ def get_single_pages_failure(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1454,10 +1454,10 @@ def get_multiple_pages_failure(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1536,10 +1536,10 @@ def get_multiple_pages_failure_uri(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1624,10 +1624,10 @@ def get_multiple_pages_fragment_next_link( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1710,10 +1710,10 @@ def get_multiple_pages_fragment_with_grouping_next_link( # pylint: disable=name # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1845,10 +1845,10 @@ async def begin_get_multiple_pages_lro( # response body for status code(s): 202 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -1958,7 +1958,7 @@ async def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1969,10 +1969,10 @@ def append_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2042,7 +2042,7 @@ async def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -2053,10 +2053,10 @@ def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2128,7 +2128,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> AsyncItemPaged[JSON]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -2139,10 +2139,10 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py index 4bcc8a2b3a0..c1d066fc854 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/custompollerpagerversiontolerant/operations/_operations.py @@ -555,10 +555,10 @@ def get_no_item_name_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -637,10 +637,10 @@ def get_empty_next_link_name_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -719,10 +719,10 @@ def get_null_next_link_name_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -801,10 +801,10 @@ def get_single_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -890,15 +890,15 @@ def get_single_pages_with_body_params( # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -922,10 +922,10 @@ def get_single_pages_with_body_params( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -945,15 +945,15 @@ def get_single_pages_with_body_params(self, parameters: Union[JSON, IO[bytes]], # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1033,7 +1033,7 @@ def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1044,10 +1044,10 @@ def first_response_empty(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1134,10 +1134,10 @@ def get_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1208,7 +1208,7 @@ def get_next(next_link=None): @distributed_trace def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :keyword required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -1222,10 +1222,10 @@ def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1291,8 +1291,8 @@ def get_next(next_link=None): @distributed_trace def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> ItemPaged[JSON]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :keyword filter: OData filter options. Pass in 'foo'. Default value is None. :paramtype filter: str @@ -1305,10 +1305,10 @@ def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> It # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1388,10 +1388,10 @@ def page_with_max_page_size(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1480,10 +1480,10 @@ def get_odata_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1574,10 +1574,10 @@ def get_multiple_pages_with_offset( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1649,7 +1649,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1660,10 +1660,10 @@ def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1732,7 +1732,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1743,10 +1743,10 @@ def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1825,10 +1825,10 @@ def get_single_pages_failure(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1907,10 +1907,10 @@ def get_multiple_pages_failure(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1989,10 +1989,10 @@ def get_multiple_pages_failure_uri(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2075,10 +2075,10 @@ def get_multiple_pages_fragment_next_link(self, tenant: str, *, api_version: str # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2161,10 +2161,10 @@ def get_multiple_pages_fragment_with_grouping_next_link( # pylint: disable=name # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2295,10 +2295,10 @@ def begin_get_multiple_pages_lro( # response body for status code(s): 202 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -2408,7 +2408,7 @@ def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -2419,10 +2419,10 @@ def append_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2492,7 +2492,7 @@ def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -2503,10 +2503,10 @@ def replace_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2578,7 +2578,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> ItemPaged[JSON]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -2589,10 +2589,10 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_client.py index fee40a61362..c0e315a50cb 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_client.py @@ -25,7 +25,7 @@ class AutoRestParameterizedHostTestPagingClient: # pylint: disable=client-accep :ivar paging: PagingOperations operations :vartype paging: custombaseurlpagingversiontolerant.operations.PagingOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py index 6350252f834..6e91367a173 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/_configuration.py @@ -21,7 +21,7 @@ class AutoRestParameterizedHostTestPagingClientConfiguration: # pylint: disable attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_client.py index 109050b717c..a6c6cf0803f 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_client.py @@ -25,7 +25,7 @@ class AutoRestParameterizedHostTestPagingClient: # pylint: disable=client-accep :ivar paging: PagingOperations operations :vartype paging: custombaseurlpagingversiontolerant.aio.operations.PagingOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_configuration.py index c372d0e339f..9c135c3203a 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/_configuration.py @@ -21,7 +21,7 @@ class AutoRestParameterizedHostTestPagingClientConfiguration: # pylint: disable attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py index 98d730cc719..fced3e4bc54 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/aio/operations/_operations.py @@ -57,7 +57,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that combines custom url, paging and partial URL and expect to concat after - host. + host. :param account_name: Account Name. Required. :type account_name: str @@ -70,10 +70,10 @@ def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> AsyncItemPa # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -151,10 +151,10 @@ def get_pages_partial_url_operation(self, account_name: str, **kwargs: Any) -> A # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py index cfcce5be89e..833a59554ff 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/CustomUrlPagingVersionTolerant/custombaseurlpagingversiontolerant/operations/_operations.py @@ -105,7 +105,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that combines custom url, paging and partial URL and expect to concat after - host. + host. :param account_name: Account Name. Required. :type account_name: str @@ -118,10 +118,10 @@ def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> ItemPaged[J # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -199,10 +199,10 @@ def get_pages_partial_url_operation(self, account_name: str, **kwargs: Any) -> I # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_client.py index 067102ab946..ae52ca1fcc8 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_client.py @@ -36,7 +36,7 @@ class AutoRestHeadExceptionTestService: # pylint: disable=client-accepts-api-ve :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_configuration.py index 956101ececd..1753bbffc85 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadExceptionTestServiceConfiguration: # pylint: disable=too-many :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_client.py index cef620dd951..74fe0731373 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_client.py @@ -36,7 +36,7 @@ class AutoRestHeadExceptionTestService: # pylint: disable=client-accepts-api-ve :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_configuration.py index 3aad28df5d1..3fa04d9a00b 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadExceptionsVersionTolerant/headexceptionsversiontolerant/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadExceptionTestServiceConfiguration: # pylint: disable=too-many :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_client.py index 980357592a2..29abdc18a81 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_client.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_configuration.py index 7ad8b0dfc42..4acd7ca0995 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_client.py index ed9ba128bf6..3555d472a6e 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_client.py @@ -36,7 +36,7 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_configuration.py index 14bf0aa529e..84b0332597a 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/HeadVersionTolerant/headversiontolerant/aio/_configuration.py @@ -27,7 +27,7 @@ class AutoRestHeadTestServiceConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py index 6614ebf22b3..e8e622e1455 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_client.py @@ -21,18 +21,18 @@ class LroPagingClient: """The language service API is a suite of natural language processing (NLP) skills built with - best-in-class Microsoft machine learning algorithms. + best-in-class Microsoft machine learning algorithms. :ivar question_answering_projects: QuestionAnsweringProjectsOperations operations :vartype question_answering_projects: - lropagingversiontolerant.operations.QuestionAnsweringProjectsOperations + lropagingversiontolerant.operations.QuestionAnsweringProjectsOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py index 8c9e40b43d7..87c9f1660e5 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class LroPagingClientConfiguration: # pylint: disable=too-many-instance-attribu attributes. :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py index f67a7bde5c9..894ee7729f0 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_client.py @@ -21,18 +21,18 @@ class LroPagingClient: """The language service API is a suite of natural language processing (NLP) skills built with - best-in-class Microsoft machine learning algorithms. + best-in-class Microsoft machine learning algorithms. :ivar question_answering_projects: QuestionAnsweringProjectsOperations operations :vartype question_answering_projects: - lropagingversiontolerant.aio.operations.QuestionAnsweringProjectsOperations + lropagingversiontolerant.aio.operations.QuestionAnsweringProjectsOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py index a1c30c82c8b..81270cdcae3 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class LroPagingClientConfiguration: # pylint: disable=too-many-instance-attribu attributes. :keyword api_version: Api Version. Default value is "2021-10-01". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/operations/_operations.py index 596c75d87ca..4979dccc92a 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/aio/operations/_operations.py @@ -92,63 +92,62 @@ def get_qnas( # response body for status code(s): 200 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -309,104 +308,103 @@ async def begin_update_qnas( # JSON input template you can fill out and use as your body input. body = [ - { - "op": "str", - "value": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": ..., - "qnaId": 0 - } - ] - }, - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - } - } + { + "op": "str", + "value": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": ..., + "qnaId": 0 + } + ] + }, + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + } + } ] # response body for status code(s): 200, 202 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ @@ -434,63 +432,62 @@ async def begin_update_qnas( # response body for status code(s): 200, 202 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ @@ -516,63 +513,62 @@ async def begin_update_qnas( # response body for status code(s): 200, 202 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/operations/_operations.py index 639c43ee3d6..33908ff33e5 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroPagingVersionTolerant/lropagingversiontolerant/operations/_operations.py @@ -159,63 +159,62 @@ def get_qnas( # response body for status code(s): 200 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -376,104 +375,103 @@ def begin_update_qnas( # JSON input template you can fill out and use as your body input. body = [ - { - "op": "str", - "value": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": ..., - "qnaId": 0 - } - ] - }, - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - } - } + { + "op": "str", + "value": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": ..., + "qnaId": 0 + } + ] + }, + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + } + } ] # response body for status code(s): 200, 202 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ @@ -501,63 +499,62 @@ def begin_update_qnas( # response body for status code(s): 200, 202 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ @@ -583,63 +580,62 @@ def begin_update_qnas( # response body for status code(s): 200, 202 response == { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { - "autoSuggestedCount": 0, - "question": "str", - "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": { - "isContextOnly": bool, - "prompts": [ - { - "displayOrder": 0, - "displayText": "str", - "qna": { - "activeLearningSuggestions": [ - { - "clusterHead": "str", - "suggestedQuestions": [ - { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { + "autoSuggestedCount": 0, + "question": "str", + "userSuggestedCount": 0 + } + ] + } + ], + "answer": "str", + "dialog": { + "isContextOnly": bool, + "prompts": [ + { + "displayOrder": 0, + "displayText": "str", + "qna": { + "activeLearningSuggestions": [ + { + "clusterHead": "str", + "suggestedQuestions": [ + { "autoSuggestedCount": 0, - "question": - "str", + "question": "str", "userSuggestedCount": 0 - } - ] - } - ], - "answer": "str", - "dialog": ..., - "id": 0, - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" - }, - "qnaId": 0 - } - ] - }, - "id": 0, - "lastUpdatedDateTime": "2020-02-20 00:00:00", - "metadata": { - "str": "str" - }, - "questions": [ - "str" - ], - "source": "str" + } + ] + } + ], + "answer": "str", + "dialog": ..., + "id": 0, + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" + }, + "qnaId": 0 + } + ] + }, + "id": 0, + "lastUpdatedDateTime": "2020-02-20 00:00:00", + "metadata": { + "str": "str" + }, + "questions": [ + "str" + ], + "source": "str" } """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_client.py index ba9159c596a..cbade1bc68c 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_client.py @@ -42,10 +42,10 @@ class AutoRestLongRunningOperationTestService: # pylint: disable=client-accepts :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_configuration.py index 126e5bfc2e2..8ec964e907b 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/_configuration.py @@ -28,7 +28,7 @@ class AutoRestLongRunningOperationTestServiceConfiguration: # pylint: disable=t :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_client.py index f546bb81163..7c758f2b652 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_client.py @@ -42,10 +42,10 @@ class AutoRestLongRunningOperationTestService: # pylint: disable=client-accepts :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py index ab1a4368190..e01e85365df 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/_configuration.py @@ -28,7 +28,7 @@ class AutoRestLongRunningOperationTestServiceConfiguration: # pylint: disable=t :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py index 3c9ef16ccfc..a6ce03630a0 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/aio/operations/_operations.py @@ -204,7 +204,7 @@ async def begin_put200_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -220,32 +220,32 @@ async def begin_put200_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -254,7 +254,7 @@ async def begin_put200_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -270,17 +270,17 @@ async def begin_put200_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -289,7 +289,7 @@ async def begin_put200_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -303,32 +303,32 @@ async def begin_put200_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -447,7 +447,7 @@ async def begin_patch200_succeeded_ignore_headers( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: JSON @@ -463,32 +463,32 @@ async def begin_patch200_succeeded_ignore_headers( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -497,7 +497,7 @@ async def begin_patch200_succeeded_ignore_headers( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -513,17 +513,17 @@ async def begin_patch200_succeeded_ignore_headers( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -532,7 +532,7 @@ async def begin_patch200_succeeded_ignore_headers( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -546,32 +546,32 @@ async def begin_patch200_succeeded_ignore_headers( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -711,32 +711,32 @@ async def begin_patch201_retry_with_async_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -760,17 +760,17 @@ async def begin_patch201_retry_with_async_header( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -792,32 +792,32 @@ async def begin_patch201_retry_with_async_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -938,7 +938,7 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: JSON @@ -954,32 +954,32 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -988,7 +988,7 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -1004,17 +1004,17 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1023,7 +1023,7 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1037,32 +1037,32 @@ async def begin_patch202_retry_with_async_and_location_header( # pylint: disabl # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1176,7 +1176,7 @@ async def begin_put201_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -1192,32 +1192,32 @@ async def begin_put201_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1226,7 +1226,7 @@ async def begin_put201_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1242,17 +1242,17 @@ async def begin_put201_succeeded( # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1261,7 +1261,7 @@ async def begin_put201_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1275,32 +1275,32 @@ async def begin_put201_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1401,7 +1401,7 @@ async def _post202_list_initial(self, **kwargs: Any) -> AsyncIterator[bytes]: @distributed_trace_async async def begin_post202_list(self, **kwargs: Any) -> AsyncLROPoller[list[JSON]]: """Long running put request, service returns a 202 with empty body to first request, returns a 200 - with body [{ 'id': '100', 'name': 'foo' }]. + with body [{ 'id': '100', 'name': 'foo' }]. :return: An instance of AsyncLROPoller that returns list of JSON object :rtype: ~azure.core.polling.AsyncLROPoller[list[JSON]] @@ -1412,19 +1412,19 @@ async def begin_post202_list(self, **kwargs: Any) -> AsyncLROPoller[list[JSON]]: # response body for status code(s): 200 response == [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } ] """ _headers = kwargs.pop("headers", {}) or {} @@ -1533,7 +1533,7 @@ async def begin_put200_succeeded_no_state( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -1549,32 +1549,32 @@ async def begin_put200_succeeded_no_state( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1583,7 +1583,7 @@ async def begin_put200_succeeded_no_state( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1599,17 +1599,17 @@ async def begin_put200_succeeded_no_state( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1618,7 +1618,7 @@ async def begin_put200_succeeded_no_state( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1632,32 +1632,32 @@ async def begin_put200_succeeded_no_state( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1771,8 +1771,8 @@ async def begin_put202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: JSON @@ -1788,32 +1788,32 @@ async def begin_put202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1822,8 +1822,8 @@ async def begin_put202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1839,17 +1839,17 @@ async def begin_put202_retry200( # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1858,8 +1858,8 @@ async def begin_put202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1873,32 +1873,32 @@ async def begin_put202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2012,8 +2012,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -2029,32 +2029,32 @@ async def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2063,8 +2063,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2080,17 +2080,17 @@ async def begin_put201_creating_succeeded200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2099,8 +2099,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2114,32 +2114,32 @@ async def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2253,8 +2253,8 @@ async def begin_put200_updating_succeeded204( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -2270,32 +2270,32 @@ async def begin_put200_updating_succeeded204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2304,8 +2304,8 @@ async def begin_put200_updating_succeeded204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2321,17 +2321,17 @@ async def begin_put200_updating_succeeded204( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2340,8 +2340,8 @@ async def begin_put200_updating_succeeded204( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2355,32 +2355,32 @@ async def begin_put200_updating_succeeded204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2494,8 +2494,8 @@ async def begin_put201_creating_failed200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: JSON @@ -2511,32 +2511,32 @@ async def begin_put201_creating_failed200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2545,8 +2545,8 @@ async def begin_put201_creating_failed200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2562,17 +2562,17 @@ async def begin_put201_creating_failed200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2581,8 +2581,8 @@ async def begin_put201_creating_failed200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2596,32 +2596,32 @@ async def begin_put201_creating_failed200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2735,8 +2735,8 @@ async def begin_put200_acceptedcanceled200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: JSON @@ -2752,32 +2752,32 @@ async def begin_put200_acceptedcanceled200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2786,8 +2786,8 @@ async def begin_put200_acceptedcanceled200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2803,17 +2803,17 @@ async def begin_put200_acceptedcanceled200( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2822,8 +2822,8 @@ async def begin_put200_acceptedcanceled200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2837,32 +2837,32 @@ async def begin_put200_acceptedcanceled200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2979,7 +2979,7 @@ async def begin_put_no_header_in_retry( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: JSON @@ -2995,32 +2995,32 @@ async def begin_put_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3029,7 +3029,7 @@ async def begin_put_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3045,17 +3045,17 @@ async def begin_put_no_header_in_retry( # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3064,7 +3064,7 @@ async def begin_put_no_header_in_retry( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3078,32 +3078,32 @@ async def begin_put_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3227,8 +3227,8 @@ async def begin_put_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -3244,32 +3244,32 @@ async def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3278,8 +3278,8 @@ async def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3295,17 +3295,17 @@ async def begin_put_async_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3314,8 +3314,8 @@ async def begin_put_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3329,32 +3329,32 @@ async def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3481,8 +3481,8 @@ async def begin_put_async_no_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -3498,32 +3498,32 @@ async def begin_put_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3532,8 +3532,8 @@ async def begin_put_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3549,17 +3549,17 @@ async def begin_put_async_no_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3568,8 +3568,8 @@ async def begin_put_async_no_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3583,32 +3583,32 @@ async def begin_put_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3735,8 +3735,8 @@ async def begin_put_async_retry_failed( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -3752,32 +3752,32 @@ async def begin_put_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3786,8 +3786,8 @@ async def begin_put_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3803,17 +3803,17 @@ async def begin_put_async_retry_failed( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3822,8 +3822,8 @@ async def begin_put_async_retry_failed( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3837,32 +3837,32 @@ async def begin_put_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3989,8 +3989,8 @@ async def begin_put_async_no_retrycanceled( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -4006,32 +4006,32 @@ async def begin_put_async_no_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4040,8 +4040,8 @@ async def begin_put_async_no_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4057,17 +4057,17 @@ async def begin_put_async_no_retrycanceled( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4076,8 +4076,8 @@ async def begin_put_async_no_retrycanceled( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -4091,32 +4091,32 @@ async def begin_put_async_no_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4241,8 +4241,8 @@ async def begin_put_async_no_header_in_retry( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: JSON @@ -4258,32 +4258,32 @@ async def begin_put_async_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4292,8 +4292,8 @@ async def begin_put_async_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4309,17 +4309,17 @@ async def begin_put_async_no_header_in_retry( # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4328,8 +4328,8 @@ async def begin_put_async_no_header_in_retry( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -4343,32 +4343,32 @@ async def begin_put_async_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4502,14 +4502,14 @@ async def begin_put_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -4533,8 +4533,8 @@ async def begin_put_non_resource( # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -4555,14 +4555,14 @@ async def begin_put_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4686,14 +4686,14 @@ async def begin_put_async_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -4717,8 +4717,8 @@ async def begin_put_async_non_resource( # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -4739,14 +4739,14 @@ async def begin_put_async_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4870,20 +4870,20 @@ async def begin_put_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -4907,11 +4907,11 @@ async def begin_put_sub_resource( # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -4933,20 +4933,20 @@ async def begin_put_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -5075,20 +5075,20 @@ async def begin_put_async_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -5112,11 +5112,11 @@ async def begin_put_async_sub_resource( # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -5138,20 +5138,20 @@ async def begin_put_async_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -5254,8 +5254,8 @@ async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable self, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -5266,17 +5266,17 @@ async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -5372,8 +5372,8 @@ async def begin_delete_provisioning202_deleting_failed200( # pylint: disable=na self, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -5384,17 +5384,17 @@ async def begin_delete_provisioning202_deleting_failed200( # pylint: disable=na # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -5490,8 +5490,8 @@ async def begin_delete_provisioning202_deletingcanceled200( # pylint: disable=n self, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -5502,17 +5502,17 @@ async def begin_delete_provisioning202_deletingcanceled200( # pylint: disable=n # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -5687,7 +5687,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> AsyncIterator[byte @distributed_trace_async async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -5698,17 +5698,17 @@ async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[JSON]: # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -5800,7 +5800,7 @@ async def _delete202_no_retry204_initial(self, **kwargs: Any) -> AsyncIterator[b @distributed_trace_async async def begin_delete202_no_retry204(self, **kwargs: Any) -> AsyncLROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -5811,17 +5811,17 @@ async def begin_delete202_no_retry204(self, **kwargs: Any) -> AsyncLROPoller[JSO # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -5912,7 +5912,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> AsyncIterat @distributed_trace_async async def begin_delete_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a location header in the initial request. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -6000,7 +6000,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> Async @distributed_trace_async async def begin_delete_async_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns an Azure-AsyncOperation header in the initial - request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. + request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -6091,7 +6091,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> AsyncIte @distributed_trace_async async def begin_delete_async_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -6182,7 +6182,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> Async @distributed_trace_async async def begin_delete_async_no_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -6273,7 +6273,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> AsyncIterat @distributed_trace_async async def begin_delete_async_retry_failed(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -6364,7 +6364,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> AsyncItera @distributed_trace_async async def begin_delete_async_retrycanceled(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -6448,7 +6448,7 @@ async def _post200_with_payload_initial(self, **kwargs: Any) -> AsyncIterator[by @distributed_trace_async async def begin_post200_with_payload(self, **kwargs: Any) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header. Poll returns a 200 with a response body after success. + header. Poll returns a 200 with a response body after success. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -6459,8 +6459,8 @@ async def begin_post200_with_payload(self, **kwargs: Any) -> AsyncLROPoller[JSON # response body for status code(s): 200, 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -6571,7 +6571,7 @@ async def begin_post202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -6587,17 +6587,17 @@ async def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -6606,7 +6606,7 @@ async def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -6623,7 +6623,7 @@ async def begin_post202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -6637,17 +6637,17 @@ async def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -6759,7 +6759,7 @@ async def begin_post202_no_retry204( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -6775,32 +6775,32 @@ async def begin_post202_no_retry204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -6809,7 +6809,7 @@ async def begin_post202_no_retry204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -6825,17 +6825,17 @@ async def begin_post202_no_retry204( # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -6844,7 +6844,7 @@ async def begin_post202_no_retry204( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -6858,32 +6858,32 @@ async def begin_post202_no_retry204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -6985,8 +6985,8 @@ async def begin_post_double_headers_final_location_get( # pylint: disable=name- self, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final - object. + Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final + object. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -6997,17 +6997,17 @@ async def begin_post_double_headers_final_location_get( # pylint: disable=name- # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -7100,8 +7100,8 @@ async def begin_post_double_headers_final_azure_header_get( # pylint: disable=n self, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -7112,17 +7112,17 @@ async def begin_post_double_headers_final_azure_header_get( # pylint: disable=n # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -7216,8 +7216,8 @@ async def begin_post_double_headers_final_azure_header_get_default( # pylint: d self, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object if you support initial Autorest behavior. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object if you support initial Autorest behavior. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -7228,17 +7228,17 @@ async def begin_post_double_headers_final_azure_header_get_default( # pylint: d # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -7353,8 +7353,8 @@ async def begin_post_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -7370,32 +7370,32 @@ async def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -7404,8 +7404,8 @@ async def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -7421,17 +7421,17 @@ async def begin_post_async_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -7440,8 +7440,8 @@ async def begin_post_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -7455,32 +7455,32 @@ async def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -7602,8 +7602,8 @@ async def begin_post_async_no_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -7619,32 +7619,32 @@ async def begin_post_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -7653,8 +7653,8 @@ async def begin_post_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -7670,17 +7670,17 @@ async def begin_post_async_no_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -7689,8 +7689,8 @@ async def begin_post_async_no_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -7704,32 +7704,32 @@ async def begin_post_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -7850,8 +7850,8 @@ async def begin_post_async_retry_failed( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -7867,17 +7867,17 @@ async def begin_post_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -7886,8 +7886,8 @@ async def begin_post_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -7904,8 +7904,8 @@ async def begin_post_async_retry_failed( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -7919,17 +7919,17 @@ async def begin_post_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8044,8 +8044,8 @@ async def begin_post_async_retrycanceled( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -8061,17 +8061,17 @@ async def begin_post_async_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8080,8 +8080,8 @@ async def begin_post_async_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -8098,8 +8098,8 @@ async def begin_post_async_retrycanceled( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -8113,17 +8113,17 @@ async def begin_post_async_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8251,8 +8251,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -8268,32 +8268,32 @@ async def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8302,8 +8302,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -8319,17 +8319,17 @@ async def begin_put201_creating_succeeded200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8338,8 +8338,8 @@ async def begin_put201_creating_succeeded200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -8353,32 +8353,32 @@ async def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8499,8 +8499,8 @@ async def begin_put_async_relative_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -8516,32 +8516,32 @@ async def begin_put_async_relative_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8550,8 +8550,8 @@ async def begin_put_async_relative_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -8567,17 +8567,17 @@ async def begin_put_async_relative_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8586,8 +8586,8 @@ async def begin_put_async_relative_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -8601,32 +8601,32 @@ async def begin_put_async_relative_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8735,9 +8735,9 @@ async def _delete_provisioning202_accepted200_succeeded_initial( # pylint: disa async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name-too-long self, **kwargs: Any ) -> AsyncLROPoller[JSON]: - """Long running delete request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + """Long running delete request, service returns a 500, then a 202 to the initial request, with an + entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns JSON object :rtype: ~azure.core.polling.AsyncLROPoller[JSON] @@ -8748,17 +8748,17 @@ async def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -8849,7 +8849,7 @@ async def _delete202_retry200_initial(self, **kwargs: Any) -> AsyncIterator[byte @distributed_trace_async async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Polls - return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -8944,7 +8944,7 @@ async def begin_delete_async_relative_retry_succeeded( # pylint: disable=name-t self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -9052,7 +9052,7 @@ async def begin_post202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -9068,17 +9068,17 @@ async def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9087,7 +9087,7 @@ async def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9104,7 +9104,7 @@ async def begin_post202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9118,17 +9118,17 @@ async def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9243,8 +9243,8 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -9260,17 +9260,17 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9279,8 +9279,8 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9297,8 +9297,8 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9312,17 +9312,17 @@ async def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9465,32 +9465,32 @@ async def begin_put_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9514,17 +9514,17 @@ async def begin_put_non_retry400( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9546,32 +9546,32 @@ async def begin_put_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9685,7 +9685,7 @@ async def begin_put_non_retry201_creating400( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: JSON @@ -9701,32 +9701,32 @@ async def begin_put_non_retry201_creating400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9735,7 +9735,7 @@ async def begin_put_non_retry201_creating400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9751,17 +9751,17 @@ async def begin_put_non_retry201_creating400( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9770,7 +9770,7 @@ async def begin_put_non_retry201_creating400( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9784,32 +9784,32 @@ async def begin_put_non_retry201_creating400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9923,7 +9923,7 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: JSON @@ -9939,32 +9939,32 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9973,7 +9973,7 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9989,17 +9989,17 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10008,7 +10008,7 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -10022,32 +10022,32 @@ async def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=na # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -10168,7 +10168,7 @@ async def begin_put_async_relative_retry400( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -10184,32 +10184,32 @@ async def begin_put_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10218,7 +10218,7 @@ async def begin_put_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -10234,17 +10234,17 @@ async def begin_put_async_relative_retry400( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10253,7 +10253,7 @@ async def begin_put_async_relative_retry400( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -10267,32 +10267,32 @@ async def begin_put_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -10574,7 +10574,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> AsyncI @distributed_trace_async async def begin_delete_async_relative_retry400(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -10697,17 +10697,17 @@ async def begin_post_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10745,17 +10745,17 @@ async def begin_post_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -10882,17 +10882,17 @@ async def begin_post202_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10930,17 +10930,17 @@ async def begin_post202_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11055,7 +11055,7 @@ async def begin_post_async_relative_retry400( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -11071,17 +11071,17 @@ async def begin_post_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11090,7 +11090,7 @@ async def begin_post_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -11107,7 +11107,7 @@ async def begin_post_async_relative_retry400( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -11121,17 +11121,17 @@ async def begin_post_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11254,32 +11254,32 @@ async def begin_put_error201_no_provisioning_state_payload( # pylint: disable=n # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11303,17 +11303,17 @@ async def begin_put_error201_no_provisioning_state_payload( # pylint: disable=n # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11335,32 +11335,32 @@ async def begin_put_error201_no_provisioning_state_payload( # pylint: disable=n # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11481,8 +11481,8 @@ async def begin_put_async_relative_retry_no_status( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -11498,32 +11498,32 @@ async def begin_put_async_relative_retry_no_status( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11532,8 +11532,8 @@ async def begin_put_async_relative_retry_no_status( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -11549,17 +11549,17 @@ async def begin_put_async_relative_retry_no_status( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11568,8 +11568,8 @@ async def begin_put_async_relative_retry_no_status( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -11583,32 +11583,32 @@ async def begin_put_async_relative_retry_no_status( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11736,8 +11736,8 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -11753,32 +11753,32 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11787,8 +11787,8 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -11804,17 +11804,17 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11823,8 +11823,8 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -11838,32 +11838,32 @@ async def begin_put_async_relative_retry_no_status_payload( # pylint: disable=n # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12058,7 +12058,7 @@ async def begin_delete_async_relative_retry_no_status( # pylint: disable=name-t self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -12166,7 +12166,7 @@ async def begin_post202_no_location( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: JSON @@ -12182,17 +12182,17 @@ async def begin_post202_no_location( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12201,7 +12201,7 @@ async def begin_post202_no_location( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -12218,7 +12218,7 @@ async def begin_post202_no_location( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -12232,17 +12232,17 @@ async def begin_post202_no_location( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12357,8 +12357,8 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -12374,17 +12374,17 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12393,8 +12393,8 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -12411,8 +12411,8 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -12426,17 +12426,17 @@ async def begin_post_async_relative_retry_no_payload( # pylint: disable=name-to # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12544,7 +12544,7 @@ async def begin_put200_invalid_json( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: JSON @@ -12560,32 +12560,32 @@ async def begin_put200_invalid_json( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12594,7 +12594,7 @@ async def begin_put200_invalid_json( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -12610,17 +12610,17 @@ async def begin_put200_invalid_json( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12629,7 +12629,7 @@ async def begin_put200_invalid_json( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -12643,32 +12643,32 @@ async def begin_put200_invalid_json( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12789,8 +12789,8 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: JSON @@ -12806,32 +12806,32 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12840,8 +12840,8 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -12857,17 +12857,17 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12876,8 +12876,8 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -12891,32 +12891,32 @@ async def begin_put_async_relative_retry_invalid_header( # pylint: disable=name # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13044,8 +13044,8 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -13061,32 +13061,32 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13095,8 +13095,8 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13112,17 +13112,17 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13131,8 +13131,8 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13146,32 +13146,32 @@ async def begin_put_async_relative_retry_invalid_json_polling( # pylint: disabl # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13276,7 +13276,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> AsyncI @distributed_trace_async async def begin_delete202_retry_invalid_header(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request receing a reponse - with an invalid 'Location' and 'Retry-After' headers. + with an invalid 'Location' and 'Retry-After' headers. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -13371,7 +13371,7 @@ async def begin_delete_async_relative_retry_invalid_header( # pylint: disable=n self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. The endpoint - indicated in the Azure-AsyncOperation header is invalid. + indicated in the Azure-AsyncOperation header is invalid. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -13466,7 +13466,7 @@ async def begin_delete_async_relative_retry_invalid_json_polling( # pylint: dis self, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -13574,7 +13574,7 @@ async def begin_post202_retry_invalid_header( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: JSON @@ -13590,17 +13590,17 @@ async def begin_post202_retry_invalid_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13609,7 +13609,7 @@ async def begin_post202_retry_invalid_header( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13626,7 +13626,7 @@ async def begin_post202_retry_invalid_header( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13640,17 +13640,17 @@ async def begin_post202_retry_invalid_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13765,8 +13765,8 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: JSON @@ -13782,17 +13782,17 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13801,8 +13801,8 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13819,8 +13819,8 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13834,17 +13834,17 @@ async def begin_post_async_relative_retry_invalid_header( # pylint: disable=nam # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13959,8 +13959,8 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -13976,17 +13976,17 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13995,8 +13995,8 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14013,8 +14013,8 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14028,17 +14028,17 @@ async def begin_post_async_relative_retry_invalid_json_polling( # pylint: disab # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14173,9 +14173,9 @@ async def begin_put_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -14191,32 +14191,32 @@ async def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14225,9 +14225,9 @@ async def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14243,17 +14243,17 @@ async def begin_put_async_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14262,9 +14262,9 @@ async def begin_put_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14278,32 +14278,32 @@ async def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14424,9 +14424,9 @@ async def begin_put201_creating_succeeded200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -14442,32 +14442,32 @@ async def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14476,9 +14476,9 @@ async def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14494,17 +14494,17 @@ async def begin_put201_creating_succeeded200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14513,9 +14513,9 @@ async def begin_put201_creating_succeeded200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14529,32 +14529,32 @@ async def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14672,8 +14672,8 @@ async def begin_post202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -14689,17 +14689,17 @@ async def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14708,8 +14708,8 @@ async def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14726,8 +14726,8 @@ async def begin_post202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14741,17 +14741,17 @@ async def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14866,9 +14866,9 @@ async def begin_post_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -14884,17 +14884,17 @@ async def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14903,9 +14903,9 @@ async def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14922,9 +14922,9 @@ async def begin_post_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14938,17 +14938,17 @@ async def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py index 4c9408a7c35..c047a2ccd13 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroVersionTolerant/lroversiontolerant/operations/_operations.py @@ -1471,7 +1471,7 @@ def begin_put200_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -1487,32 +1487,32 @@ def begin_put200_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1521,7 +1521,7 @@ def begin_put200_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -1537,17 +1537,17 @@ def begin_put200_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1556,7 +1556,7 @@ def begin_put200_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1570,32 +1570,32 @@ def begin_put200_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1714,7 +1714,7 @@ def begin_patch200_succeeded_ignore_headers( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: JSON @@ -1730,32 +1730,32 @@ def begin_patch200_succeeded_ignore_headers( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1764,7 +1764,7 @@ def begin_patch200_succeeded_ignore_headers( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -1780,17 +1780,17 @@ def begin_patch200_succeeded_ignore_headers( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1799,7 +1799,7 @@ def begin_patch200_succeeded_ignore_headers( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request with location header. We - should not have any subsequent calls after receiving this first response. + should not have any subsequent calls after receiving this first response. :param product: Product to patch. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1813,32 +1813,32 @@ def begin_patch200_succeeded_ignore_headers( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1978,32 +1978,32 @@ def begin_patch201_retry_with_async_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2027,17 +2027,17 @@ def begin_patch201_retry_with_async_header( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2059,32 +2059,32 @@ def begin_patch201_retry_with_async_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2205,7 +2205,7 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: JSON @@ -2221,32 +2221,32 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2255,7 +2255,7 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Default value is None. :type product: IO[bytes] @@ -2271,17 +2271,17 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2290,7 +2290,7 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running patch request, service returns a 202 to the initial request with async and - location header. + location header. :param product: Product to patch. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2304,32 +2304,32 @@ def begin_patch202_retry_with_async_and_location_header( # pylint: disable=name # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2443,7 +2443,7 @@ def begin_put201_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -2459,32 +2459,32 @@ def begin_put201_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2493,7 +2493,7 @@ def begin_put201_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2509,17 +2509,17 @@ def begin_put201_succeeded( # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2528,7 +2528,7 @@ def begin_put201_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Succeeded’. + contains ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2542,32 +2542,32 @@ def begin_put201_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -2668,7 +2668,7 @@ def _post202_list_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_post202_list(self, **kwargs: Any) -> LROPoller[list[JSON]]: """Long running put request, service returns a 202 with empty body to first request, returns a 200 - with body [{ 'id': '100', 'name': 'foo' }]. + with body [{ 'id': '100', 'name': 'foo' }]. :return: An instance of LROPoller that returns list of JSON object :rtype: ~azure.core.polling.LROPoller[list[JSON]] @@ -2679,19 +2679,19 @@ def begin_post202_list(self, **kwargs: Any) -> LROPoller[list[JSON]]: # response body for status code(s): 200 response == [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } ] """ _headers = kwargs.pop("headers", {}) or {} @@ -2796,7 +2796,7 @@ def begin_put200_succeeded_no_state( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -2812,32 +2812,32 @@ def begin_put200_succeeded_no_state( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2846,7 +2846,7 @@ def begin_put200_succeeded_no_state( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -2862,17 +2862,17 @@ def begin_put200_succeeded_no_state( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -2881,7 +2881,7 @@ def begin_put200_succeeded_no_state( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - does not contain ProvisioningState=’Succeeded’. + does not contain ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -2895,32 +2895,32 @@ def begin_put200_succeeded_no_state( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3034,8 +3034,8 @@ def begin_put202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: JSON @@ -3051,32 +3051,32 @@ def begin_put202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3085,8 +3085,8 @@ def begin_put202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3102,25 +3102,25 @@ def begin_put202_retry200( # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @distributed_trace def begin_put202_retry200(self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request, with a location header - that points to a polling URL that returns a 200 and an entity that doesn't contains - ProvisioningState. + that points to a polling URL that returns a 200 and an entity that doesn't contains + ProvisioningState. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3134,32 +3134,32 @@ def begin_put202_retry200(self, product: Optional[Union[JSON, IO[bytes]]] = None # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3273,8 +3273,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -3290,32 +3290,32 @@ def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3324,8 +3324,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3341,17 +3341,17 @@ def begin_put201_creating_succeeded200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3360,8 +3360,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3375,32 +3375,32 @@ def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3514,8 +3514,8 @@ def begin_put200_updating_succeeded204( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -3531,32 +3531,32 @@ def begin_put200_updating_succeeded204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3565,8 +3565,8 @@ def begin_put200_updating_succeeded204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3582,17 +3582,17 @@ def begin_put200_updating_succeeded204( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3601,8 +3601,8 @@ def begin_put200_updating_succeeded204( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3616,32 +3616,32 @@ def begin_put200_updating_succeeded204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3755,8 +3755,8 @@ def begin_put201_creating_failed200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: JSON @@ -3772,32 +3772,32 @@ def begin_put201_creating_failed200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3806,8 +3806,8 @@ def begin_put201_creating_failed200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -3823,17 +3823,17 @@ def begin_put201_creating_failed200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -3842,8 +3842,8 @@ def begin_put201_creating_failed200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Created’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Created’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -3857,32 +3857,32 @@ def begin_put201_creating_failed200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -3996,8 +3996,8 @@ def begin_put200_acceptedcanceled200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: JSON @@ -4013,32 +4013,32 @@ def begin_put200_acceptedcanceled200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4047,8 +4047,8 @@ def begin_put200_acceptedcanceled200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4064,17 +4064,17 @@ def begin_put200_acceptedcanceled200( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4083,8 +4083,8 @@ def begin_put200_acceptedcanceled200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -4098,32 +4098,32 @@ def begin_put200_acceptedcanceled200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4240,7 +4240,7 @@ def begin_put_no_header_in_retry( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: JSON @@ -4256,32 +4256,32 @@ def begin_put_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4290,7 +4290,7 @@ def begin_put_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4306,17 +4306,17 @@ def begin_put_no_header_in_retry( # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4325,7 +4325,7 @@ def begin_put_no_header_in_retry( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with location header. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -4339,32 +4339,32 @@ def begin_put_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4488,8 +4488,8 @@ def begin_put_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -4505,32 +4505,32 @@ def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4539,8 +4539,8 @@ def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4556,17 +4556,17 @@ def begin_put_async_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4575,8 +4575,8 @@ def begin_put_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -4590,32 +4590,32 @@ def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4742,8 +4742,8 @@ def begin_put_async_no_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -4759,32 +4759,32 @@ def begin_put_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4793,8 +4793,8 @@ def begin_put_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -4810,17 +4810,17 @@ def begin_put_async_no_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -4829,8 +4829,8 @@ def begin_put_async_no_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -4844,32 +4844,32 @@ def begin_put_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -4996,8 +4996,8 @@ def begin_put_async_retry_failed( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -5013,32 +5013,32 @@ def begin_put_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -5047,8 +5047,8 @@ def begin_put_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5064,17 +5064,17 @@ def begin_put_async_retry_failed( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -5083,8 +5083,8 @@ def begin_put_async_retry_failed( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -5098,32 +5098,32 @@ def begin_put_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -5250,8 +5250,8 @@ def begin_put_async_no_retrycanceled( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -5267,32 +5267,32 @@ def begin_put_async_no_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -5301,8 +5301,8 @@ def begin_put_async_no_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5318,17 +5318,17 @@ def begin_put_async_no_retrycanceled( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -5337,8 +5337,8 @@ def begin_put_async_no_retrycanceled( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -5352,32 +5352,32 @@ def begin_put_async_no_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -5502,8 +5502,8 @@ def begin_put_async_no_header_in_retry( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: JSON @@ -5519,32 +5519,32 @@ def begin_put_async_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -5553,8 +5553,8 @@ def begin_put_async_no_header_in_retry( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -5570,17 +5570,17 @@ def begin_put_async_no_header_in_retry( # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -5589,8 +5589,8 @@ def begin_put_async_no_header_in_retry( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 202 to the initial request with - Azure-AsyncOperation header. Subsequent calls to operation status do not contain - Azure-AsyncOperation header. + Azure-AsyncOperation header. Subsequent calls to operation status do not contain + Azure-AsyncOperation header. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -5604,32 +5604,32 @@ def begin_put_async_no_header_in_retry( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -5761,14 +5761,14 @@ def begin_put_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -5792,8 +5792,8 @@ def begin_put_non_resource( # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -5812,14 +5812,14 @@ def begin_put_non_resource(self, sku: Optional[Union[JSON, IO[bytes]]] = None, * # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -5943,14 +5943,14 @@ def begin_put_async_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -5974,8 +5974,8 @@ def begin_put_async_non_resource( # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ @@ -5996,14 +5996,14 @@ def begin_put_async_non_resource( # JSON input template you can fill out and use as your body input. sku = { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } # response body for status code(s): 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -6127,20 +6127,20 @@ def begin_put_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -6164,11 +6164,11 @@ def begin_put_sub_resource( # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -6190,20 +6190,20 @@ def begin_put_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -6332,20 +6332,20 @@ def begin_put_async_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -6369,11 +6369,11 @@ def begin_put_async_sub_resource( # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ @@ -6395,20 +6395,20 @@ def begin_put_async_sub_resource( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } # response body for status code(s): 202 response == { - "id": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - } + "id": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -6511,8 +6511,8 @@ def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name- self, **kwargs: Any ) -> LROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Succeeded’. + contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -6523,17 +6523,17 @@ def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name- # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -6629,8 +6629,8 @@ def begin_delete_provisioning202_deleting_failed200( # pylint: disable=name-too self, **kwargs: Any ) -> LROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Failed’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Failed’. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -6641,17 +6641,17 @@ def begin_delete_provisioning202_deleting_failed200( # pylint: disable=name-too # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -6747,8 +6747,8 @@ def begin_delete_provisioning202_deletingcanceled200( # pylint: disable=name-to self, **kwargs: Any ) -> LROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a - ‘200’ with ProvisioningState=’Canceled’. + contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a + ‘200’ with ProvisioningState=’Canceled’. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -6759,17 +6759,17 @@ def begin_delete_provisioning202_deletingcanceled200( # pylint: disable=name-to # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -6944,7 +6944,7 @@ def _delete202_retry200_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete202_retry200(self, **kwargs: Any) -> LROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -6955,17 +6955,17 @@ def begin_delete202_retry200(self, **kwargs: Any) -> LROPoller[JSON]: # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -7057,7 +7057,7 @@ def _delete202_no_retry204_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete202_no_retry204(self, **kwargs: Any) -> LROPoller[JSON]: """Long running delete request, service returns a 202 to the initial request. Polls return this - value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -7068,17 +7068,17 @@ def begin_delete202_no_retry204(self, **kwargs: Any) -> LROPoller[JSON]: # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -7169,7 +7169,7 @@ def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete_no_header_in_retry(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a location header in the initial request. - Subsequent calls to operation status do not contain location header. + Subsequent calls to operation status do not contain location header. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -7257,7 +7257,7 @@ def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> Iterator[by @distributed_trace def begin_delete_async_no_header_in_retry(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns an Azure-AsyncOperation header in the initial - request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. + request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -7348,7 +7348,7 @@ def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> Iterator[bytes @distributed_trace def begin_delete_async_retry_succeeded(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -7439,7 +7439,7 @@ def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> Iterator[by @distributed_trace def begin_delete_async_no_retry_succeeded(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -7530,7 +7530,7 @@ def _delete_async_retry_failed_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete_async_retry_failed(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -7621,7 +7621,7 @@ def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete_async_retrycanceled(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -7705,7 +7705,7 @@ def _post200_with_payload_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_post200_with_payload(self, **kwargs: Any) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header. Poll returns a 200 with a response body after success. + header. Poll returns a 200 with a response body after success. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -7716,8 +7716,8 @@ def begin_post200_with_payload(self, **kwargs: Any) -> LROPoller[JSON]: # response body for status code(s): 200, 202 response == { - "id": "str", - "name": "str" + "id": "str", + "name": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -7828,7 +7828,7 @@ def begin_post202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -7844,17 +7844,17 @@ def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -7863,7 +7863,7 @@ def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -7880,7 +7880,7 @@ def begin_post202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -7894,17 +7894,17 @@ def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8016,7 +8016,7 @@ def begin_post202_no_retry204( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -8032,32 +8032,32 @@ def begin_post202_no_retry204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8066,7 +8066,7 @@ def begin_post202_no_retry204( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -8082,17 +8082,17 @@ def begin_post202_no_retry204( # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8101,7 +8101,7 @@ def begin_post202_no_retry204( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with 'Location' - header, 204 with noresponse body after success. + header, 204 with noresponse body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -8115,32 +8115,32 @@ def begin_post202_no_retry204( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8242,8 +8242,8 @@ def begin_post_double_headers_final_location_get( # pylint: disable=name-too-lo self, **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final - object. + Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final + object. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -8254,17 +8254,17 @@ def begin_post_double_headers_final_location_get( # pylint: disable=name-too-lo # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -8357,8 +8357,8 @@ def begin_post_double_headers_final_azure_header_get( # pylint: disable=name-to self, **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -8369,17 +8369,17 @@ def begin_post_double_headers_final_azure_header_get( # pylint: disable=name-to # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -8472,8 +8472,8 @@ def begin_post_double_headers_final_azure_header_get_default( # pylint: disable self, **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request with both Location and - Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the - final object if you support initial Autorest behavior. + Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the + final object if you support initial Autorest behavior. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -8484,17 +8484,17 @@ def begin_post_double_headers_final_azure_header_get_default( # pylint: disable # response body for status code(s): 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -8609,8 +8609,8 @@ def begin_post_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -8626,32 +8626,32 @@ def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8660,8 +8660,8 @@ def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -8677,17 +8677,17 @@ def begin_post_async_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8696,8 +8696,8 @@ def begin_post_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -8711,32 +8711,32 @@ def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -8858,8 +8858,8 @@ def begin_post_async_no_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -8875,32 +8875,32 @@ def begin_post_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8909,8 +8909,8 @@ def begin_post_async_no_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -8926,17 +8926,17 @@ def begin_post_async_no_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -8945,8 +8945,8 @@ def begin_post_async_no_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -8960,32 +8960,32 @@ def begin_post_async_no_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9106,8 +9106,8 @@ def begin_post_async_retry_failed( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -9123,17 +9123,17 @@ def begin_post_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9142,8 +9142,8 @@ def begin_post_async_retry_failed( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9160,8 +9160,8 @@ def begin_post_async_retry_failed( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9175,17 +9175,17 @@ def begin_post_async_retry_failed( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9300,8 +9300,8 @@ def begin_post_async_retrycanceled( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -9317,17 +9317,17 @@ def begin_post_async_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9336,8 +9336,8 @@ def begin_post_async_retrycanceled( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9354,8 +9354,8 @@ def begin_post_async_retrycanceled( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9369,17 +9369,17 @@ def begin_post_async_retrycanceled( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9507,8 +9507,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -9524,32 +9524,32 @@ def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9558,8 +9558,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9575,17 +9575,17 @@ def begin_put201_creating_succeeded200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9594,8 +9594,8 @@ def begin_put201_creating_succeeded200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 500, then a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9609,32 +9609,32 @@ def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9755,8 +9755,8 @@ def begin_put_async_relative_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -9772,32 +9772,32 @@ def begin_put_async_relative_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9806,8 +9806,8 @@ def begin_put_async_relative_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -9823,17 +9823,17 @@ def begin_put_async_relative_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -9842,8 +9842,8 @@ def begin_put_async_relative_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 500, then a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -9857,32 +9857,32 @@ def begin_put_async_relative_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -9991,9 +9991,9 @@ def _delete_provisioning202_accepted200_succeeded_initial( # pylint: disable=na def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name-too-long self, **kwargs: Any ) -> LROPoller[JSON]: - """Long running delete request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + """Long running delete request, service returns a 500, then a 202 to the initial request, with an + entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns JSON object :rtype: ~azure.core.polling.LROPoller[JSON] @@ -10004,17 +10004,17 @@ def begin_delete_provisioning202_accepted200_succeeded( # pylint: disable=name- # response body for status code(s): 200, 202 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -10105,7 +10105,7 @@ def _delete202_retry200_initial(self, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_delete202_retry200(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Polls - return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -10200,7 +10200,7 @@ def begin_delete_async_relative_retry_succeeded( # pylint: disable=name-too-lon self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -10308,7 +10308,7 @@ def begin_post202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -10324,17 +10324,17 @@ def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10343,7 +10343,7 @@ def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -10360,7 +10360,7 @@ def begin_post202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -10374,17 +10374,17 @@ def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -10499,8 +10499,8 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -10516,17 +10516,17 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10535,8 +10535,8 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -10553,8 +10553,8 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -10568,17 +10568,17 @@ def begin_post_async_relative_retry_succeeded( # pylint: disable=name-too-long # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -10721,32 +10721,32 @@ def begin_put_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10770,17 +10770,17 @@ def begin_put_non_retry400( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10802,32 +10802,32 @@ def begin_put_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -10941,7 +10941,7 @@ def begin_put_non_retry201_creating400( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: JSON @@ -10957,32 +10957,32 @@ def begin_put_non_retry201_creating400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -10991,7 +10991,7 @@ def begin_put_non_retry201_creating400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -11007,17 +11007,17 @@ def begin_put_non_retry201_creating400( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11026,7 +11026,7 @@ def begin_put_non_retry201_creating400( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -11040,32 +11040,32 @@ def begin_put_non_retry201_creating400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11179,7 +11179,7 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: JSON @@ -11195,32 +11195,32 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11229,7 +11229,7 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -11245,17 +11245,17 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11264,7 +11264,7 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and - 201 response code. + 201 response code. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -11278,32 +11278,32 @@ def begin_put_non_retry201_creating400_invalid_json( # pylint: disable=name-too # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11424,7 +11424,7 @@ def begin_put_async_relative_retry400( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -11440,32 +11440,32 @@ def begin_put_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11474,7 +11474,7 @@ def begin_put_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -11490,17 +11490,17 @@ def begin_put_async_relative_retry400( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -11509,7 +11509,7 @@ def begin_put_async_relative_retry400( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the - endpoint indicated in the Azure-AsyncOperation header for operation status. + endpoint indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -11523,32 +11523,32 @@ def begin_put_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -11830,7 +11830,7 @@ def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> Iterator[byt @distributed_trace def begin_delete_async_relative_retry400(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -11953,17 +11953,17 @@ def begin_post_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12001,17 +12001,17 @@ def begin_post_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12138,17 +12138,17 @@ def begin_post202_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12186,17 +12186,17 @@ def begin_post202_non_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12311,7 +12311,7 @@ def begin_post_async_relative_retry400( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -12327,17 +12327,17 @@ def begin_post_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12346,7 +12346,7 @@ def begin_post_async_relative_retry400( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -12363,7 +12363,7 @@ def begin_post_async_relative_retry400( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -12377,17 +12377,17 @@ def begin_post_async_relative_retry400( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12510,32 +12510,32 @@ def begin_put_error201_no_provisioning_state_payload( # pylint: disable=name-to # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12559,17 +12559,17 @@ def begin_put_error201_no_provisioning_state_payload( # pylint: disable=name-to # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12591,32 +12591,32 @@ def begin_put_error201_no_provisioning_state_payload( # pylint: disable=name-to # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12737,8 +12737,8 @@ def begin_put_async_relative_retry_no_status( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -12754,32 +12754,32 @@ def begin_put_async_relative_retry_no_status( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12788,8 +12788,8 @@ def begin_put_async_relative_retry_no_status( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -12805,17 +12805,17 @@ def begin_put_async_relative_retry_no_status( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -12824,8 +12824,8 @@ def begin_put_async_relative_retry_no_status( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -12839,32 +12839,32 @@ def begin_put_async_relative_retry_no_status( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -12992,8 +12992,8 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -13009,32 +13009,32 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13043,8 +13043,8 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13060,17 +13060,17 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13079,8 +13079,8 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13094,32 +13094,32 @@ def begin_put_async_relative_retry_no_status_payload( # pylint: disable=name-to # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13314,7 +13314,7 @@ def begin_delete_async_relative_retry_no_status( # pylint: disable=name-too-lon self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -13422,7 +13422,7 @@ def begin_post202_no_location( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: JSON @@ -13438,17 +13438,17 @@ def begin_post202_no_location( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13457,7 +13457,7 @@ def begin_post202_no_location( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13474,7 +13474,7 @@ def begin_post202_no_location( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location - header. + header. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13488,17 +13488,17 @@ def begin_post202_no_location( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13613,8 +13613,8 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -13630,17 +13630,17 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13649,8 +13649,8 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13667,8 +13667,8 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13682,17 +13682,17 @@ def begin_post_async_relative_retry_no_payload( # pylint: disable=name-too-long # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -13800,7 +13800,7 @@ def begin_put200_invalid_json( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: JSON @@ -13816,32 +13816,32 @@ def begin_put200_invalid_json( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13850,7 +13850,7 @@ def begin_put200_invalid_json( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -13866,17 +13866,17 @@ def begin_put200_invalid_json( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -13885,7 +13885,7 @@ def begin_put200_invalid_json( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that is - not a valid json. + not a valid json. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -13899,32 +13899,32 @@ def begin_put200_invalid_json( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14045,8 +14045,8 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: JSON @@ -14062,32 +14062,32 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14096,8 +14096,8 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14113,17 +14113,17 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14132,8 +14132,8 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14147,32 +14147,32 @@ def begin_put_async_relative_retry_invalid_header( # pylint: disable=name-too-l # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14300,8 +14300,8 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -14317,32 +14317,32 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14351,8 +14351,8 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14368,17 +14368,17 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14387,8 +14387,8 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """Long running put request, service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14402,32 +14402,32 @@ def begin_put_async_relative_retry_invalid_json_polling( # pylint: disable=name # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -14532,7 +14532,7 @@ def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> Iterator[byt @distributed_trace def begin_delete202_retry_invalid_header(self, **kwargs: Any) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request receing a reponse - with an invalid 'Location' and 'Retry-After' headers. + with an invalid 'Location' and 'Retry-After' headers. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -14627,7 +14627,7 @@ def begin_delete_async_relative_retry_invalid_header( # pylint: disable=name-to self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. The endpoint - indicated in the Azure-AsyncOperation header is invalid. + indicated in the Azure-AsyncOperation header is invalid. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -14722,7 +14722,7 @@ def begin_delete_async_relative_retry_invalid_json_polling( # pylint: disable=n self, **kwargs: Any ) -> LROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint - indicated in the Azure-AsyncOperation header for operation status. + indicated in the Azure-AsyncOperation header for operation status. :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] @@ -14830,7 +14830,7 @@ def begin_post202_retry_invalid_header( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: JSON @@ -14846,17 +14846,17 @@ def begin_post202_retry_invalid_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -14865,7 +14865,7 @@ def begin_post202_retry_invalid_header( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -14882,7 +14882,7 @@ def begin_post202_retry_invalid_header( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid - 'Location' and 'Retry-After' headers. + 'Location' and 'Retry-After' headers. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -14896,17 +14896,17 @@ def begin_post202_retry_invalid_header( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -15021,8 +15021,8 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: JSON @@ -15038,17 +15038,17 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15057,8 +15057,8 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -15075,8 +15075,8 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation - header is invalid. + contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation + header is invalid. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -15090,17 +15090,17 @@ def begin_post_async_relative_retry_invalid_header( # pylint: disable=name-too- # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -15215,8 +15215,8 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -15232,17 +15232,17 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15251,8 +15251,8 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -15269,8 +15269,8 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation - header for operation status. + contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation + header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -15284,17 +15284,17 @@ def begin_post_async_relative_retry_invalid_json_polling( # pylint: disable=nam # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -15429,9 +15429,9 @@ def begin_put_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -15447,32 +15447,32 @@ def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15481,9 +15481,9 @@ def begin_put_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -15499,17 +15499,17 @@ def begin_put_async_retry_succeeded( # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15518,9 +15518,9 @@ def begin_put_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 200 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running put request, service returns a 200 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -15534,32 +15534,32 @@ def begin_put_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -15680,9 +15680,9 @@ def begin_put201_creating_succeeded200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: JSON @@ -15698,32 +15698,32 @@ def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15732,9 +15732,9 @@ def begin_put201_creating_succeeded200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -15750,17 +15750,17 @@ def begin_put201_creating_succeeded200( # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15769,9 +15769,9 @@ def begin_put201_creating_succeeded200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[JSON]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running put request, service returns a 201 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll - returns a ‘200’ with ProvisioningState=’Succeeded’. + all requests. Long running put request, service returns a 201 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll + returns a ‘200’ with ProvisioningState=’Succeeded’. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -15785,32 +15785,32 @@ def begin_put201_creating_succeeded200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200, 201 response == { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -15928,8 +15928,8 @@ def begin_post202_retry200( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: JSON @@ -15945,17 +15945,17 @@ def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -15964,8 +15964,8 @@ def begin_post202_retry200( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -15982,8 +15982,8 @@ def begin_post202_retry200( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with - 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. + all requests. Long running post request, service returns a 202 to the initial request, with + 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -15997,17 +15997,17 @@ def begin_post202_retry200( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -16122,9 +16122,9 @@ def begin_post_async_retry_succeeded( self, product: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: JSON @@ -16140,17 +16140,17 @@ def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -16159,9 +16159,9 @@ def begin_post_async_retry_succeeded( self, product: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Default value is None. :type product: IO[bytes] @@ -16178,9 +16178,9 @@ def begin_post_async_retry_succeeded( self, product: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> LROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for - all requests. Long running post request, service returns a 202 to the initial request, with an - entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the - Azure-AsyncOperation header for operation status. + all requests. Long running post request, service returns a 202 to the initial request, with an + entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the + Azure-AsyncOperation header for operation status. :param product: Product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -16194,17 +16194,17 @@ def begin_post_async_retry_succeeded( # JSON input template you can fill out and use as your body input. product = { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "provisioningState": "str", - "provisioningStateValues": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "id": "str", + "location": "str", + "name": "str", + "properties": { + "provisioningState": "str", + "provisioningStateValues": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_client.py index 5b4f9f4dc39..11bf6fb0c98 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_client.py @@ -25,10 +25,10 @@ class LROWithParamaterizedEndpoints( """Test Infrastructure for AutoRest. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_configuration.py index de0cddc6338..6353b42b6d7 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class LROWithParamaterizedEndpointsConfiguration: # pylint: disable=too-many-in attributes. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_client.py index 6c69e5007f8..372d6546873 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_client.py @@ -25,10 +25,10 @@ class LROWithParamaterizedEndpoints( """Test Infrastructure for AutoRest. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_configuration.py index 52cb22468ca..bd305be25dc 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class LROWithParamaterizedEndpointsConfiguration: # pylint: disable=too-many-in attributes. :param host: A string value that is used as a global part of the parameterized host. Pass in - 'host:3000' to pass test. Default value is "host". + 'host:3000' to pass test. Default value is "host". :type host: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py index 3c682244e32..c564f09bda4 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_client.py @@ -27,10 +27,10 @@ class AutoRestPagingTestService: :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py index 2a82930bf24..af0d78545c4 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan attributes. :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py index a485172c8d6..53326a82375 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_client.py @@ -27,10 +27,10 @@ class AutoRestPagingTestService: :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py index 3b70fdd7d9e..9182b96596d 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestPagingTestServiceConfiguration: # pylint: disable=too-many-instan attributes. :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py index 6987a3d5180..b0be7a0cae8 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/aio/operations/_operations.py @@ -97,10 +97,10 @@ def get_no_item_name_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -179,10 +179,10 @@ def get_empty_next_link_name_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -261,10 +261,10 @@ def get_null_next_link_name_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -343,10 +343,10 @@ def get_single_pages(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -432,15 +432,15 @@ def get_single_pages_with_body_params( # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -464,10 +464,10 @@ def get_single_pages_with_body_params( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -489,15 +489,15 @@ def get_single_pages_with_body_params( # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -577,7 +577,7 @@ async def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -588,10 +588,10 @@ def first_response_empty(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -678,10 +678,10 @@ def get_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -752,7 +752,7 @@ async def get_next(next_link=None): @distributed_trace def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :keyword required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -766,10 +766,10 @@ def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -835,8 +835,8 @@ async def get_next(next_link=None): @distributed_trace def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> AsyncItemPaged[JSON]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :keyword filter: OData filter options. Pass in 'foo'. Default value is None. :paramtype filter: str @@ -849,10 +849,10 @@ def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> As # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -932,10 +932,10 @@ def page_with_max_page_size(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1024,10 +1024,10 @@ def get_odata_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1118,10 +1118,10 @@ def get_multiple_pages_with_offset( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1193,7 +1193,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1204,10 +1204,10 @@ def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1276,7 +1276,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1287,10 +1287,10 @@ def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncItemPaged[JSON] # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1369,10 +1369,10 @@ def get_single_pages_failure(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1451,10 +1451,10 @@ def get_multiple_pages_failure(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1533,10 +1533,10 @@ def get_multiple_pages_failure_uri(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1621,10 +1621,10 @@ def get_multiple_pages_fragment_next_link( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1707,10 +1707,10 @@ def get_multiple_pages_fragment_with_grouping_next_link( # pylint: disable=name # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1841,10 +1841,10 @@ async def begin_get_multiple_pages_lro( # response body for status code(s): 202 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -1954,7 +1954,7 @@ async def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1965,10 +1965,10 @@ def append_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2038,7 +2038,7 @@ async def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -2049,10 +2049,10 @@ def replace_api_version(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2124,7 +2124,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> AsyncItemPaged[JSON]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -2135,10 +2135,10 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py index 5a7aac826e3..2f2d089a6fe 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/PagingVersionTolerant/pagingversiontolerant/operations/_operations.py @@ -552,10 +552,10 @@ def get_no_item_name_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -634,10 +634,10 @@ def get_empty_next_link_name_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -716,10 +716,10 @@ def get_null_next_link_name_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -798,10 +798,10 @@ def get_single_pages(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -887,15 +887,15 @@ def get_single_pages_with_body_params( # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -919,10 +919,10 @@ def get_single_pages_with_body_params( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -942,15 +942,15 @@ def get_single_pages_with_body_params(self, parameters: Union[JSON, IO[bytes]], # JSON input template you can fill out and use as your body input. parameters = { - "name": "str" + "name": "str" } # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -1030,7 +1030,7 @@ def get_next(next_link=None): @distributed_trace def first_response_empty(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation whose first response's items list is empty, but still returns a next link. - Second (and final) call, will give you an items list of 1. + Second (and final) call, will give you an items list of 1. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1041,10 +1041,10 @@ def first_response_empty(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1131,10 +1131,10 @@ def get_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1205,7 +1205,7 @@ def get_next(next_link=None): @distributed_trace def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that includes a next operation. It has a different query parameter from it's - next operation nextOperationWithQueryParams. Returns a ProductResult. + next operation nextOperationWithQueryParams. Returns a ProductResult. :keyword required_query_parameter: A required integer query parameter. Put in value '100' to pass test. Required. @@ -1219,10 +1219,10 @@ def get_with_query_params(self, *, required_query_parameter: int, **kwargs: Any) # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1288,8 +1288,8 @@ def get_next(next_link=None): @distributed_trace def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> ItemPaged[JSON]: """Define ``filter`` as a query param for all calls. However, the returned next link will also - include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` - param in the url sent. + include the ``filter`` as part of it. Make sure you don't end up duplicating the ``filter`` + param in the url sent. :keyword filter: OData filter options. Pass in 'foo'. Default value is None. :paramtype filter: str @@ -1302,10 +1302,10 @@ def duplicate_params(self, *, filter: Optional[str] = None, **kwargs: Any) -> It # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1385,10 +1385,10 @@ def page_with_max_page_size(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1477,10 +1477,10 @@ def get_odata_multiple_pages( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1571,10 +1571,10 @@ def get_multiple_pages_with_offset( # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1646,7 +1646,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that fails on the first call with 500 and then retries and then get a - response including a nextLink that has 10 pages. + response including a nextLink that has 10 pages. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1657,10 +1657,10 @@ def get_multiple_pages_retry_first(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1729,7 +1729,7 @@ def get_next(next_link=None): @distributed_trace def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails - first with 500. The client should retry and finish all 10 pages eventually. + first with 500. The client should retry and finish all 10 pages eventually. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1740,10 +1740,10 @@ def get_multiple_pages_retry_second(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1822,10 +1822,10 @@ def get_single_pages_failure(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1904,10 +1904,10 @@ def get_multiple_pages_failure(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -1986,10 +1986,10 @@ def get_multiple_pages_failure_uri(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2072,10 +2072,10 @@ def get_multiple_pages_fragment_next_link(self, tenant: str, *, api_version: str # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2158,10 +2158,10 @@ def get_multiple_pages_fragment_with_grouping_next_link( # pylint: disable=name # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2292,10 +2292,10 @@ def begin_get_multiple_pages_lro( # response body for status code(s): 202 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ @@ -2405,7 +2405,7 @@ def internal_get_next(next_link=None): @distributed_trace def append_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to append your - client's api version to the next link. + client's api version to the next link. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -2416,10 +2416,10 @@ def append_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2489,7 +2489,7 @@ def get_next(next_link=None): @distributed_trace def replace_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: """A paging operation with api version. When calling the next link, you want to reformat it and - override the returned api version with your client's api version. + override the returned api version with your client's api version. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -2500,10 +2500,10 @@ def replace_api_version(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} @@ -2575,7 +2575,7 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam self, **kwargs: Any ) -> ItemPaged[JSON]: """A paging operation that returns a paging model whose item name is is overriden by - x-ms-client-name 'indexes'. + x-ms-client-name 'indexes'. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -2586,10 +2586,10 @@ def get_paging_model_with_item_name_with_xms_client_name( # pylint: disable=nam # response body for status code(s): 200 response == { - "properties": { - "id": 0, - "name": "str" - } + "properties": { + "id": 0, + "name": "str" + } } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py index 6268fa5730f..da4d35c9a48 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_client.py @@ -36,18 +36,18 @@ class StorageManagementClient: :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py index 46ba93135a4..dd68d230d2e 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/_configuration.py @@ -27,13 +27,13 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py index 588536bd51d..298fff0dc04 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_client.py @@ -36,18 +36,18 @@ class StorageManagementClient: :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py index f75b7c08f6b..c2fb6b66038 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/_configuration.py @@ -27,13 +27,13 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. + subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2015-05-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py index 1ad07f38dfe..c7bc1d73a45 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/aio/operations/_operations.py @@ -92,15 +92,15 @@ async def check_name_availability( # JSON input template you can fill out and use as your body input. account_name = { - "name": "str", - "type": "Microsoft.Storage/storageAccounts" + "name": "str", + "type": "Microsoft.Storage/storageAccounts" } # response body for status code(s): 200 response == { - "message": "str", - "nameAvailable": bool, - "reason": "str" + "message": "str", + "nameAvailable": bool, + "reason": "str" } """ @@ -126,9 +126,9 @@ async def check_name_availability( # response body for status code(s): 200 response == { - "message": "str", - "nameAvailable": bool, - "reason": "str" + "message": "str", + "nameAvailable": bool, + "reason": "str" } """ @@ -149,15 +149,15 @@ async def check_name_availability(self, account_name: Union[JSON, IO[bytes]], ** # JSON input template you can fill out and use as your body input. account_name = { - "name": "str", - "type": "Microsoft.Storage/storageAccounts" + "name": "str", + "type": "Microsoft.Storage/storageAccounts" } # response body for status code(s): 200 response == { - "message": "str", - "nameAvailable": bool, - "reason": "str" + "message": "str", + "nameAvailable": bool, + "reason": "str" } """ error_map: MutableMapping = { @@ -285,9 +285,9 @@ async def begin_create( **kwargs: Any ) -> AsyncLROPoller[JSON]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -310,63 +310,63 @@ async def begin_create( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -381,9 +381,9 @@ async def begin_create( **kwargs: Any ) -> AsyncLROPoller[JSON]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -406,49 +406,49 @@ async def begin_create( # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -457,9 +457,9 @@ async def begin_create( self, resource_group_name: str, account_name: str, parameters: Union[JSON, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[JSON]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -480,63 +480,63 @@ async def begin_create( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -641,8 +641,8 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs: An @distributed_trace_async async def get_properties(self, resource_group_name: str, account_name: str, **kwargs: Any) -> JSON: """Returns the properties for the specified storage account including but not limited to name, - account type, location, and account status. The ListKeys operation should be used to retrieve - storage keys. + account type, location, and account status. The ListKeys operation should be used to retrieve + storage keys. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -660,49 +660,49 @@ async def get_properties(self, resource_group_name: str, account_name: str, **kw # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ error_map: MutableMapping = { @@ -760,12 +760,12 @@ async def update( **kwargs: Any ) -> JSON: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -789,67 +789,67 @@ async def update( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "customDomain": { - "name": "str", - "useSubDomain": bool - } - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "customDomain": { + "name": "str", + "useSubDomain": bool + } + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -864,12 +864,12 @@ async def update( **kwargs: Any ) -> JSON: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -893,49 +893,49 @@ async def update( # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -944,12 +944,12 @@ async def update( self, resource_group_name: str, account_name: str, parameters: Union[JSON, IO[bytes]], **kwargs: Any ) -> JSON: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -970,67 +970,67 @@ async def update( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "customDomain": { - "name": "str", - "useSubDomain": bool - } - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "customDomain": { + "name": "str", + "useSubDomain": bool + } + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ error_map: MutableMapping = { @@ -1107,8 +1107,8 @@ async def list_keys(self, resource_group_name: str, account_name: str, **kwargs: # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ error_map: MutableMapping = { @@ -1158,7 +1158,7 @@ async def list_keys(self, resource_group_name: str, account_name: str, **kwargs: @distributed_trace def list(self, **kwargs: Any) -> AsyncItemPaged[JSON]: """Lists all the storage accounts available under the subscription. Note that storage keys are not - returned; use the ListKeys operation for this. + returned; use the ListKeys operation for this. :return: An iterator like instance of JSON object :rtype: ~azure.core.async_paging.AsyncItemPaged[JSON] @@ -1169,49 +1169,49 @@ def list(self, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -1282,7 +1282,7 @@ async def get_next(next_link=None): @distributed_trace def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncItemPaged[JSON]: """Lists all the storage accounts available under the given resource group. Note that storage keys - are not returned; use the ListKeys operation for this. + are not returned; use the ListKeys operation for this. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -1296,49 +1296,49 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -1440,13 +1440,13 @@ async def regenerate_key( # JSON input template you can fill out and use as your body input. regenerate_key = { - "keyName": "str" + "keyName": "str" } # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ @@ -1483,8 +1483,8 @@ async def regenerate_key( # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ @@ -1513,13 +1513,13 @@ async def regenerate_key( # JSON input template you can fill out and use as your body input. regenerate_key = { - "keyName": "str" + "keyName": "str" } # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ error_map: MutableMapping = { @@ -1609,17 +1609,17 @@ async def list(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "value": [ - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "str", - "value": "str" - }, - "unit": "str" - } - ] + "value": [ + { + "currentValue": 0, + "limit": 0, + "name": { + "localizedValue": "str", + "value": "str" + }, + "unit": "str" + } + ] } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py index c62bc2ed067..407eb0aa43d 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/StorageManagementClientVersionTolerant/storageversiontolerant/operations/_operations.py @@ -359,15 +359,15 @@ def check_name_availability( # JSON input template you can fill out and use as your body input. account_name = { - "name": "str", - "type": "Microsoft.Storage/storageAccounts" + "name": "str", + "type": "Microsoft.Storage/storageAccounts" } # response body for status code(s): 200 response == { - "message": "str", - "nameAvailable": bool, - "reason": "str" + "message": "str", + "nameAvailable": bool, + "reason": "str" } """ @@ -393,9 +393,9 @@ def check_name_availability( # response body for status code(s): 200 response == { - "message": "str", - "nameAvailable": bool, - "reason": "str" + "message": "str", + "nameAvailable": bool, + "reason": "str" } """ @@ -416,15 +416,15 @@ def check_name_availability(self, account_name: Union[JSON, IO[bytes]], **kwargs # JSON input template you can fill out and use as your body input. account_name = { - "name": "str", - "type": "Microsoft.Storage/storageAccounts" + "name": "str", + "type": "Microsoft.Storage/storageAccounts" } # response body for status code(s): 200 response == { - "message": "str", - "nameAvailable": bool, - "reason": "str" + "message": "str", + "nameAvailable": bool, + "reason": "str" } """ error_map: MutableMapping = { @@ -552,9 +552,9 @@ def begin_create( **kwargs: Any ) -> LROPoller[JSON]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -577,63 +577,63 @@ def begin_create( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -648,9 +648,9 @@ def begin_create( **kwargs: Any ) -> LROPoller[JSON]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -673,49 +673,49 @@ def begin_create( # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -724,9 +724,9 @@ def begin_create( self, resource_group_name: str, account_name: str, parameters: Union[JSON, IO[bytes]], **kwargs: Any ) -> LROPoller[JSON]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts - cannot be updated with this API and should instead use the Update Storage Account API. If an - account is already created and subsequent PUT request is issued with exact same set of - properties, then HTTP 200 would be returned. + cannot be updated with this API and should instead use the Update Storage Account API. If an + account is already created and subsequent PUT request is issued with exact same set of + properties, then HTTP 200 would be returned. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -747,63 +747,63 @@ def begin_create( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -910,8 +910,8 @@ def delete( # pylint: disable=inconsistent-return-statements @distributed_trace def get_properties(self, resource_group_name: str, account_name: str, **kwargs: Any) -> JSON: """Returns the properties for the specified storage account including but not limited to name, - account type, location, and account status. The ListKeys operation should be used to retrieve - storage keys. + account type, location, and account status. The ListKeys operation should be used to retrieve + storage keys. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -929,49 +929,49 @@ def get_properties(self, resource_group_name: str, account_name: str, **kwargs: # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ error_map: MutableMapping = { @@ -1029,12 +1029,12 @@ def update( **kwargs: Any ) -> JSON: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -1058,67 +1058,67 @@ def update( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "customDomain": { - "name": "str", - "useSubDomain": bool - } - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "customDomain": { + "name": "str", + "useSubDomain": bool + } + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1133,12 +1133,12 @@ def update( **kwargs: Any ) -> JSON: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -1162,49 +1162,49 @@ def update( # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ @@ -1213,12 +1213,12 @@ def update( self, resource_group_name: str, account_name: str, parameters: Union[JSON, IO[bytes]], **kwargs: Any ) -> JSON: """Updates the account type or tags for a storage account. It can also be used to add a custom - domain (note that custom domains cannot be added via the Create operation). Only one custom - domain is supported per storage account. This API can only be used to update one of tags, - accountType, or customDomain per call. To update multiple of these properties, call the API - multiple times with one change per call. This call does not change the storage keys for the - account. If you want to change storage account keys, use the RegenerateKey operation. The - location and name of the storage account cannot be changed after creation. + domain (note that custom domains cannot be added via the Create operation). Only one custom + domain is supported per storage account. This API can only be used to update one of tags, + accountType, or customDomain per call. To update multiple of these properties, call the API + multiple times with one change per call. This call does not change the storage keys for the + account. If you want to change storage account keys, use the RegenerateKey operation. The + location and name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -1239,67 +1239,67 @@ def update( # JSON input template you can fill out and use as your body input. parameters = { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "customDomain": { - "name": "str", - "useSubDomain": bool - } - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "customDomain": { + "name": "str", + "useSubDomain": bool + } + }, + "tags": { + "str": "str" + }, + "type": "str" } # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ error_map: MutableMapping = { @@ -1376,8 +1376,8 @@ def list_keys(self, resource_group_name: str, account_name: str, **kwargs: Any) # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ error_map: MutableMapping = { @@ -1427,7 +1427,7 @@ def list_keys(self, resource_group_name: str, account_name: str, **kwargs: Any) @distributed_trace def list(self, **kwargs: Any) -> ItemPaged[JSON]: """Lists all the storage accounts available under the subscription. Note that storage keys are not - returned; use the ListKeys operation for this. + returned; use the ListKeys operation for this. :return: An iterator like instance of JSON object :rtype: ~azure.core.paging.ItemPaged[JSON] @@ -1438,49 +1438,49 @@ def list(self, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -1551,7 +1551,7 @@ def get_next(next_link=None): @distributed_trace def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged[JSON]: """Lists all the storage accounts available under the given resource group. Note that storage keys - are not returned; use the ListKeys operation for this. + are not returned; use the ListKeys operation for this. :param resource_group_name: The name of the resource group within the user’s subscription. Required. @@ -1565,49 +1565,49 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite # response body for status code(s): 200 response == { - "location": "str", - "id": "str", - "name": "str", - "properties": { - "accountType": "str", - "creationTime": "2020-02-20 00:00:00", - "customDomain": { - "name": "str", - "useSubDomain": bool - }, - "lastGeoFailoverTime": "2020-02-20 00:00:00", - "primaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "primaryLocation": "str", - "provisioningState": "str", - "secondaryEndpoints": { - "FooPoint": { - "Bar.Point": { - "RecursivePoint": ... - } - }, - "blob": "str", - "dummyEndPoint": ..., - "queue": "str", - "table": "str" - }, - "secondaryLocation": "str", - "statusOfPrimary": "str", - "statusOfSecondary": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" + "location": "str", + "id": "str", + "name": "str", + "properties": { + "accountType": "str", + "creationTime": "2020-02-20 00:00:00", + "customDomain": { + "name": "str", + "useSubDomain": bool + }, + "lastGeoFailoverTime": "2020-02-20 00:00:00", + "primaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "primaryLocation": "str", + "provisioningState": "str", + "secondaryEndpoints": { + "FooPoint": { + "Bar.Point": { + "RecursivePoint": ... + } + }, + "blob": "str", + "dummyEndPoint": ..., + "queue": "str", + "table": "str" + }, + "secondaryLocation": "str", + "statusOfPrimary": "str", + "statusOfSecondary": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -1709,13 +1709,13 @@ def regenerate_key( # JSON input template you can fill out and use as your body input. regenerate_key = { - "keyName": "str" + "keyName": "str" } # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ @@ -1752,8 +1752,8 @@ def regenerate_key( # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ @@ -1782,13 +1782,13 @@ def regenerate_key( # JSON input template you can fill out and use as your body input. regenerate_key = { - "keyName": "str" + "keyName": "str" } # response body for status code(s): 200 response == { - "key1": "str", - "key2": "str" + "key1": "str", + "key2": "str" } """ error_map: MutableMapping = { @@ -1878,17 +1878,17 @@ def list(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "value": [ - { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "str", - "value": "str" - }, - "unit": "str" - } - ] + "value": [ + { + "currentValue": 0, + "limit": 0, + "name": { + "localizedValue": "str", + "value": "str" + }, + "unit": "str" + } + ] } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py index a4452a1d968..743e1a33ea4 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_client.py @@ -38,10 +38,10 @@ class MicrosoftAzureTestUrl: :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py index 89f496c149c..6f793bc3453 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/_configuration.py @@ -29,10 +29,10 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param subscription_id: Subscription Id. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py index 80c92eb0904..6e9ae4bebf7 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_client.py @@ -38,10 +38,10 @@ class MicrosoftAzureTestUrl: :param endpoint: Service URL. Default value is None. :type endpoint: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py index 89257c5a9af..49eda9cc3cb 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/_configuration.py @@ -29,10 +29,10 @@ class MicrosoftAzureTestUrlConfiguration: # pylint: disable=too-many-instance-a :param subscription_id: Subscription Id. Required. :type subscription_id: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: Api Version. Default value is "2014-04-01-preview". Note that overriding - this default value may result in unsupported behavior. + this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py index 45487f215f6..0cf0fd6ff9d 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/aio/operations/_operations.py @@ -63,8 +63,8 @@ async def get_sample_resource_group(self, resource_group_name: str, **kwargs: An # response body for status code(s): 200 response == { - "location": "str", - "name": "str" + "location": "str", + "name": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py index a5cf855d6d1..eeb9e86da88 100644 --- a/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/SubscriptionIdApiVersionVersionTolerant/subscriptionidapiversionversiontolerant/operations/_operations.py @@ -93,8 +93,8 @@ def get_sample_resource_group(self, resource_group_name: str, **kwargs: Any) -> # response body for status code(s): 200 response == { - "location": "str", - "name": "str" + "location": "str", + "name": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_client.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_client.py index ede9a3fefa4..0b8a9a5733c 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_client.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_client.py @@ -25,7 +25,7 @@ class DPGClient(_DPGClientOperationsMixin): # pylint: disable=client-accepts-ap :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_operations/_operations.py index 23ccddf6fc3..8b0778f6506 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/_operations/_operations.py @@ -124,7 +124,7 @@ class _DPGClientOperationsMixin(ClientMixinABC[PipelineClient[HttpRequest, HttpR @distributed_trace def get_model(self, mode: str, **kwargs: Any) -> JSON: """Get models that you will either return to end users as a raw body, or with a model added during - grow up. + grow up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -139,7 +139,7 @@ def get_model(self, mode: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -186,7 +186,7 @@ def get_model(self, mode: str, **kwargs: Any) -> JSON: @overload def post_model(self, mode: str, input: JSON, *, content_type: str = "application/json", **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -206,19 +206,19 @@ def post_model(self, mode: str, input: JSON, *, content_type: str = "application # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @overload def post_model(self, mode: str, input: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -238,14 +238,14 @@ def post_model(self, mode: str, input: IO[bytes], *, content_type: str = "applic # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @distributed_trace def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -263,12 +263,12 @@ def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -327,7 +327,7 @@ def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> @distributed_trace def get_pages(self, mode: str, **kwargs: Any) -> ItemPaged[JSON]: """Get pages that you will either return to users in pages of raw bodies, or pages of models - following growup. + following growup. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -342,7 +342,7 @@ def get_pages(self, mode: str, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -444,7 +444,7 @@ def _lro_initial(self, mode: str, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_lro(self, mode: str, **kwargs: Any) -> LROPoller[JSON]: """Long running put request that will either return to end users a final payload of a raw body, or - a final payload of a model after the SDK has grown up. + a final payload of a model after the SDK has grown up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -459,8 +459,8 @@ def begin_lro(self, mode: str, **kwargs: Any) -> LROPoller[JSON]: # response body for status code(s): 200 response == { - "provisioningState": "str", - "received": "str" + "provisioningState": "str", + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_client.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_client.py index 048e29a8ab3..4be1e1e5e88 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_client.py @@ -25,7 +25,7 @@ class DPGClient(_DPGClientOperationsMixin): # pylint: disable=client-accepts-ap :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_operations/_operations.py index 923faa57365..549f189494d 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_operations/_operations.py @@ -51,7 +51,7 @@ class _DPGClientOperationsMixin( @distributed_trace_async async def get_model(self, mode: str, **kwargs: Any) -> JSON: """Get models that you will either return to end users as a raw body, or with a model added during - grow up. + grow up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -66,7 +66,7 @@ async def get_model(self, mode: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -115,7 +115,7 @@ async def post_model( self, mode: str, input: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -135,12 +135,12 @@ async def post_model( # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @@ -149,7 +149,7 @@ async def post_model( self, mode: str, input: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -169,14 +169,14 @@ async def post_model( # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @distributed_trace_async async def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -194,12 +194,12 @@ async def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: A # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -258,7 +258,7 @@ async def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: A @distributed_trace def get_pages(self, mode: str, **kwargs: Any) -> AsyncItemPaged[JSON]: """Get pages that you will either return to users in pages of raw bodies, or pages of models - following growup. + following growup. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -273,7 +273,7 @@ def get_pages(self, mode: str, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -375,7 +375,7 @@ async def _lro_initial(self, mode: str, **kwargs: Any) -> AsyncIterator[bytes]: @distributed_trace_async async def begin_lro(self, mode: str, **kwargs: Any) -> AsyncLROPoller[JSON]: """Long running put request that will either return to end users a final payload of a raw body, or - a final payload of a model after the SDK has grown up. + a final payload of a model after the SDK has grown up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -390,8 +390,8 @@ async def begin_lro(self, mode: str, **kwargs: Any) -> AsyncLROPoller[JSON]: # response body for status code(s): 200 response == { - "provisioningState": "str", - "received": "str" + "provisioningState": "str", + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_client.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_client.py index ede9a3fefa4..0b8a9a5733c 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_client.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_client.py @@ -25,7 +25,7 @@ class DPGClient(_DPGClientOperationsMixin): # pylint: disable=client-accepts-ap :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_operations/_operations.py index 23ccddf6fc3..8b0778f6506 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/_operations/_operations.py @@ -124,7 +124,7 @@ class _DPGClientOperationsMixin(ClientMixinABC[PipelineClient[HttpRequest, HttpR @distributed_trace def get_model(self, mode: str, **kwargs: Any) -> JSON: """Get models that you will either return to end users as a raw body, or with a model added during - grow up. + grow up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -139,7 +139,7 @@ def get_model(self, mode: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -186,7 +186,7 @@ def get_model(self, mode: str, **kwargs: Any) -> JSON: @overload def post_model(self, mode: str, input: JSON, *, content_type: str = "application/json", **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -206,19 +206,19 @@ def post_model(self, mode: str, input: JSON, *, content_type: str = "application # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @overload def post_model(self, mode: str, input: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -238,14 +238,14 @@ def post_model(self, mode: str, input: IO[bytes], *, content_type: str = "applic # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @distributed_trace def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -263,12 +263,12 @@ def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -327,7 +327,7 @@ def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> @distributed_trace def get_pages(self, mode: str, **kwargs: Any) -> ItemPaged[JSON]: """Get pages that you will either return to users in pages of raw bodies, or pages of models - following growup. + following growup. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -342,7 +342,7 @@ def get_pages(self, mode: str, **kwargs: Any) -> ItemPaged[JSON]: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -444,7 +444,7 @@ def _lro_initial(self, mode: str, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_lro(self, mode: str, **kwargs: Any) -> LROPoller[JSON]: """Long running put request that will either return to end users a final payload of a raw body, or - a final payload of a model after the SDK has grown up. + a final payload of a model after the SDK has grown up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -459,8 +459,8 @@ def begin_lro(self, mode: str, **kwargs: Any) -> LROPoller[JSON]: # response body for status code(s): 200 response == { - "provisioningState": "str", - "received": "str" + "provisioningState": "str", + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_client.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_client.py index 048e29a8ab3..4be1e1e5e88 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_client.py @@ -25,7 +25,7 @@ class DPGClient(_DPGClientOperationsMixin): # pylint: disable=client-accepts-ap :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_operations/_operations.py index 923faa57365..549f189494d 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_operations/_operations.py @@ -51,7 +51,7 @@ class _DPGClientOperationsMixin( @distributed_trace_async async def get_model(self, mode: str, **kwargs: Any) -> JSON: """Get models that you will either return to end users as a raw body, or with a model added during - grow up. + grow up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -66,7 +66,7 @@ async def get_model(self, mode: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -115,7 +115,7 @@ async def post_model( self, mode: str, input: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -135,12 +135,12 @@ async def post_model( # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @@ -149,7 +149,7 @@ async def post_model( self, mode: str, input: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -169,14 +169,14 @@ async def post_model( # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ @distributed_trace_async async def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -194,12 +194,12 @@ async def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: A # JSON input template you can fill out and use as your body input. input = { - "hello": "str" + "hello": "str" } # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ error_map: MutableMapping = { @@ -258,7 +258,7 @@ async def post_model(self, mode: str, input: Union[JSON, IO[bytes]], **kwargs: A @distributed_trace def get_pages(self, mode: str, **kwargs: Any) -> AsyncItemPaged[JSON]: """Get pages that you will either return to users in pages of raw bodies, or pages of models - following growup. + following growup. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -273,7 +273,7 @@ def get_pages(self, mode: str, **kwargs: Any) -> AsyncItemPaged[JSON]: # response body for status code(s): 200 response == { - "received": "str" + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} @@ -375,7 +375,7 @@ async def _lro_initial(self, mode: str, **kwargs: Any) -> AsyncIterator[bytes]: @distributed_trace_async async def begin_lro(self, mode: str, **kwargs: Any) -> AsyncLROPoller[JSON]: """Long running put request that will either return to end users a final payload of a raw body, or - a final payload of a model after the SDK has grown up. + a final payload of a model after the SDK has grown up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -390,8 +390,8 @@ async def begin_lro(self, mode: str, **kwargs: Any) -> AsyncLROPoller[JSON]: # response body for status code(s): 200 response == { - "provisioningState": "str", - "received": "str" + "provisioningState": "str", + "received": "str" } """ _headers = kwargs.pop("headers", {}) or {} diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py index a11b4a093d9..320a76be881 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/aio/operations/_operations.py @@ -57,8 +57,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def head_no_params(self, **kwargs: Any) -> JSON: - """Head request, no params. - Initially has no query parameters. After evolution, a new optional query parameter is added. + """Head request, no params. Initially has no query parameters. After evolution, a new optional + query parameter is added. :return: JSON :rtype: JSON @@ -106,9 +106,8 @@ async def head_no_params(self, **kwargs: Any) -> JSON: @distributed_trace_async async def get_required(self, *, parameter: str, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -161,8 +160,8 @@ async def get_required(self, *, parameter: str, **kwargs: Any) -> JSON: async def put_required_optional( self, *, required_param: str, optional_param: Optional[str] = None, **kwargs: Any ) -> JSON: - """Initially has one required query parameter and one optional query parameter. After evolution, - a new optional query parameter is added. + """Initially has one required query parameter and one optional query parameter. After evolution, a + new optional query parameter is added. :keyword required_param: I am a required parameter. Required. :paramtype required_param: str @@ -233,7 +232,7 @@ async def post_parameters(self, parameter: JSON, *, content_type: str = "applica # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ @@ -270,7 +269,7 @@ async def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ error_map: MutableMapping = { @@ -327,9 +326,8 @@ async def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any @distributed_trace_async async def get_optional(self, *, optional_param: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py index d0fba17fa36..601d0252405 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenInitialVersionTolerant/dpgservicedriveninitialversiontolerant/operations/_operations.py @@ -143,8 +143,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def head_no_params(self, **kwargs: Any) -> JSON: - """Head request, no params. - Initially has no query parameters. After evolution, a new optional query parameter is added. + """Head request, no params. Initially has no query parameters. After evolution, a new optional + query parameter is added. :return: JSON :rtype: JSON @@ -192,9 +192,8 @@ def head_no_params(self, **kwargs: Any) -> JSON: @distributed_trace def get_required(self, *, parameter: str, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -247,8 +246,8 @@ def get_required(self, *, parameter: str, **kwargs: Any) -> JSON: def put_required_optional( self, *, required_param: str, optional_param: Optional[str] = None, **kwargs: Any ) -> JSON: - """Initially has one required query parameter and one optional query parameter. After evolution, - a new optional query parameter is added. + """Initially has one required query parameter and one optional query parameter. After evolution, a + new optional query parameter is added. :keyword required_param: I am a required parameter. Required. :paramtype required_param: str @@ -319,7 +318,7 @@ def post_parameters(self, parameter: JSON, *, content_type: str = "application/j # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ @@ -354,7 +353,7 @@ def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> J # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ error_map: MutableMapping = { @@ -411,9 +410,8 @@ def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> J @distributed_trace def get_optional(self, *, optional_param: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py index 9a47993eed5..05d78d42fb7 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/aio/operations/_operations.py @@ -60,7 +60,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def head_no_params(self, *, new_parameter: Optional[str] = None, **kwargs: Any) -> JSON: """Head request, no params. Initially has no query parameters. After evolution, a new optional - query parameter is added. + query parameter is added. :keyword new_parameter: I'm a new input optional parameter. Default value is None. :paramtype new_parameter: str @@ -111,9 +111,8 @@ async def head_no_params(self, *, new_parameter: Optional[str] = None, **kwargs: @distributed_trace_async async def get_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -174,8 +173,8 @@ async def put_required_optional( new_parameter: Optional[str] = None, **kwargs: Any ) -> JSON: - """Initially has one required query parameter and one optional query parameter. After evolution, - a new optional query parameter is added. + """Initially has one required query parameter and one optional query parameter. After evolution, a + new optional query parameter is added. :keyword required_param: I am a required parameter. Required. :paramtype required_param: str @@ -249,7 +248,7 @@ async def post_parameters(self, parameter: JSON, *, content_type: str = "applica # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ @@ -284,7 +283,7 @@ async def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ error_map: MutableMapping = { @@ -346,9 +345,8 @@ async def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any @distributed_trace_async async def delete_parameters(self, **kwargs: Any) -> None: - """Delete something. - Initially the path exists but there is no delete method. After evolution this is a new method - in a known path. + """Delete something. Initially the path exists but there is no delete method. After evolution this + is a new method in a known path. :return: None :rtype: None @@ -391,9 +389,8 @@ async def delete_parameters(self, **kwargs: Any) -> None: async def get_optional( self, *, optional_param: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any ) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str @@ -447,9 +444,8 @@ async def get_optional( @distributed_trace_async async def get_new_operation(self, **kwargs: Any) -> JSON: - """I'm a new operation. - Initiallty neither path or method exist for this operation. After evolution, this is a new - method in a new path. + """I'm a new operation. Initiallty neither path or method exist for this operation. After + evolution, this is a new method in a new path. :return: JSON :rtype: JSON diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py index 5fb01fb551d..c1f95e34420 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGServiceDrivenUpdateOneVersionTolerant/dpgservicedrivenupdateoneversiontolerant/operations/_operations.py @@ -180,7 +180,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def head_no_params(self, *, new_parameter: Optional[str] = None, **kwargs: Any) -> JSON: """Head request, no params. Initially has no query parameters. After evolution, a new optional - query parameter is added. + query parameter is added. :keyword new_parameter: I'm a new input optional parameter. Default value is None. :paramtype new_parameter: str @@ -231,9 +231,8 @@ def head_no_params(self, *, new_parameter: Optional[str] = None, **kwargs: Any) @distributed_trace def get_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> JSON: - """Get true Boolean value on path. - Initially only has one required Query Parameter. After evolution, a new optional query - parameter is added. + """Get true Boolean value on path. Initially only has one required Query Parameter. After + evolution, a new optional query parameter is added. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -294,8 +293,8 @@ def put_required_optional( new_parameter: Optional[str] = None, **kwargs: Any ) -> JSON: - """Initially has one required query parameter and one optional query parameter. After evolution, - a new optional query parameter is added. + """Initially has one required query parameter and one optional query parameter. After evolution, a + new optional query parameter is added. :keyword required_param: I am a required parameter. Required. :paramtype required_param: str @@ -369,7 +368,7 @@ def post_parameters(self, parameter: JSON, *, content_type: str = "application/j # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ @@ -404,7 +403,7 @@ def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> J # JSON input template you can fill out and use as your body input. parameter = { - "url": "str" + "url": "str" } """ error_map: MutableMapping = { @@ -466,9 +465,8 @@ def post_parameters(self, parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> J @distributed_trace def delete_parameters(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements - """Delete something. - Initially the path exists but there is no delete method. After evolution this is a new method - in a known path. + """Delete something. Initially the path exists but there is no delete method. After evolution this + is a new method in a known path. :return: None :rtype: None @@ -511,9 +509,8 @@ def delete_parameters(self, **kwargs: Any) -> None: # pylint: disable=inconsist def get_optional( self, *, optional_param: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any ) -> JSON: - """Get true Boolean value on path. - Initially has one optional query parameter. After evolution, a new optional query parameter is - added. + """Get true Boolean value on path. Initially has one optional query parameter. After evolution, a + new optional query parameter is added. :keyword optional_param: I am an optional parameter. Default value is None. :paramtype optional_param: str @@ -567,9 +564,8 @@ def get_optional( @distributed_trace def get_new_operation(self, **kwargs: Any) -> JSON: - """I'm a new operation. - Initiallty neither path or method exist for this operation. After evolution, this is a new - method in a new path. + """I'm a new operation. Initiallty neither path or method exist for this operation. After + evolution, this is a new method in a new path. :return: JSON :rtype: JSON diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_client.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_client.py index 49431f569f5..ceeb6f53b4a 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_client.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_client.py @@ -26,7 +26,7 @@ class DPGClient(_DPGClientOperationsMixin): # pylint: disable=client-accepts-ap :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_operations/_operations.py index 4e08af5bc3a..183998e782b 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/_operations/_operations.py @@ -124,7 +124,7 @@ class _DPGClientOperationsMixin(ClientMixinABC[PipelineClient[HttpRequest, HttpR @distributed_trace def get_model(self, mode: str, **kwargs: Any) -> _models.Product: """Get models that you will either return to end users as a raw body, or with a model added during - grow up. + grow up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -177,7 +177,7 @@ def post_model( self, mode: str, input: _models.Input, *, content_type: str = "application/json", **kwargs: Any ) -> _models.Product: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -198,7 +198,7 @@ def post_model( self, mode: str, input: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.Product: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -217,7 +217,7 @@ def post_model( @distributed_trace def post_model(self, mode: str, input: Union[_models.Input, IO[bytes]], **kwargs: Any) -> _models.Product: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -283,7 +283,7 @@ def post_model(self, mode: str, input: Union[_models.Input, IO[bytes]], **kwargs @distributed_trace def get_pages(self, mode: str, **kwargs: Any) -> ItemPaged["_models.Product"]: """Get pages that you will either return to users in pages of raw bodies, or pages of models - following growup. + following growup. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -394,7 +394,7 @@ def _lro_initial(self, mode: str, **kwargs: Any) -> Iterator[bytes]: @distributed_trace def begin_lro(self, mode: str, **kwargs: Any) -> LROPoller[_models.LROProduct]: """Long running put request that will either return to end users a final payload of a raw body, or - a final payload of a model after the SDK has grown up. + a final payload of a model after the SDK has grown up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_client.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_client.py index 92c68907e4e..051e0daae3f 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_client.py @@ -26,7 +26,7 @@ class DPGClient(_DPGClientOperationsMixin): # pylint: disable=client-accepts-ap :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_operations/_operations.py index cddbb485853..3978b13d3d6 100644 --- a/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_operations/_operations.py @@ -51,7 +51,7 @@ class _DPGClientOperationsMixin( @distributed_trace_async async def get_model(self, mode: str, **kwargs: Any) -> _models.Product: """Get models that you will either return to end users as a raw body, or with a model added during - grow up. + grow up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -104,7 +104,7 @@ async def post_model( self, mode: str, input: _models.Input, *, content_type: str = "application/json", **kwargs: Any ) -> _models.Product: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -125,7 +125,7 @@ async def post_model( self, mode: str, input: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.Product: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -144,7 +144,7 @@ async def post_model( @distributed_trace_async async def post_model(self, mode: str, input: Union[_models.Input, IO[bytes]], **kwargs: Any) -> _models.Product: """Post either raw response as a model and pass in 'raw' for mode, or grow up your operation to - take a model instead, and put in 'model' as mode. + take a model instead, and put in 'model' as mode. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -210,7 +210,7 @@ async def post_model(self, mode: str, input: Union[_models.Input, IO[bytes]], ** @distributed_trace def get_pages(self, mode: str, **kwargs: Any) -> AsyncItemPaged["_models.Product"]: """Get pages that you will either return to users in pages of raw bodies, or pages of models - following growup. + following growup. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body @@ -321,7 +321,7 @@ async def _lro_initial(self, mode: str, **kwargs: Any) -> AsyncIterator[bytes]: @distributed_trace_async async def begin_lro(self, mode: str, **kwargs: Any) -> AsyncLROPoller[_models.LROProduct]: """Long running put request that will either return to end users a final payload of a raw body, or - a final payload of a model after the SDK has grown up. + a final payload of a model after the SDK has grown up. :param mode: The mode with which you'll be handling your returned body. 'raw' for just dealing with the raw body, and 'model' if you are going to convert the raw body to a customized body diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py index 7b3c2099c60..ae28e49e53e 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/_anything_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py index 588e256c8af..24925710132 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/_anything_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py index ed71bce7c78..ac9797c8535 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/aio/operations/_anything_client_operations.py @@ -45,7 +45,7 @@ class _AnythingClientOperationsMixin( @distributed_trace_async async def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any or the result of cls(response) :rtype: any @@ -91,7 +91,7 @@ async def get_object(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_object(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -185,7 +185,7 @@ async def get_string(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_string(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -279,7 +279,7 @@ async def get_array(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_array(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py index fa92e03c7b7..01a6bc1cc86 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/anything/operations/_anything_client_operations.py @@ -124,7 +124,7 @@ class _AnythingClientOperationsMixin( @distributed_trace def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any or the result of cls(response) :rtype: any @@ -170,7 +170,7 @@ def get_object(self, **kwargs: Any) -> Any: @distributed_trace def put_object(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -264,7 +264,7 @@ def get_string(self, **kwargs: Any) -> Any: @distributed_trace def put_string(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -358,7 +358,7 @@ def get_array(self, **kwargs: Any) -> Any: @distributed_trace def put_array(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py index bb6eb10ffb1..ea6f5f55e66 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Anything/setup.py @@ -29,6 +29,6 @@ "typing-extensions>=4.6.0", ], long_description="""\ - Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. """, ) diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py index ffb52176f70..c8efc99f6d8 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py @@ -1980,7 +1980,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str or the result of cls(response) :rtype: list[str] @@ -2028,8 +2028,8 @@ async def get_uuid_valid(self, **kwargs: Any) -> list[str]: 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']. + """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] @@ -2045,8 +2045,8 @@ async def put_uuid_valid( 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']. + """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] @@ -2060,8 +2060,8 @@ async def put_uuid_valid( @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']. + """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] @@ -2211,7 +2211,7 @@ async def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -2227,7 +2227,7 @@ async def put_date_valid( 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -2241,7 +2241,7 @@ async def put_date_valid( @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']. + """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] @@ -2390,7 +2390,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -2438,8 +2438,8 @@ async def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -2455,8 +2455,8 @@ async def put_date_time_valid( 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']. + """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] @@ -2470,8 +2470,8 @@ async def put_date_time_valid( @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']. + """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] @@ -2620,7 +2620,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.date @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -2668,8 +2668,8 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.date 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']. + """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] @@ -2685,8 +2685,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -2702,8 +2702,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -2807,7 +2807,7 @@ async def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: 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']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -2823,7 +2823,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -2837,7 +2837,7 @@ async def put_duration_valid( @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']. + """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] @@ -2894,7 +2894,7 @@ async def put_duration_valid(self, array_body: Union[list[datetime.timedelta], I @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. + in base64. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -2943,7 +2943,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -2960,7 +2960,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -2975,7 +2975,7 @@ async def put_byte_valid( @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. + 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] @@ -3078,7 +3078,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -3217,7 +3217,7 @@ async def get_complex_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~bodyarray.models.Product] @@ -3264,7 +3264,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~bodyarray.models.Product] @@ -3311,7 +3311,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + {'integer': 5, 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~bodyarray.models.Product] @@ -3360,7 +3360,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[~bodyarray.models.Product] @@ -3377,7 +3377,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -3392,7 +3392,7 @@ async def put_complex_valid( @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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Is either a [Product] type or a IO[bytes] type. Required. :type array_body: list[~bodyarray.models.Product] or IO[bytes] @@ -3859,7 +3859,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -3906,7 +3906,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -3953,7 +3953,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]] @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'}]. + '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]] @@ -4002,7 +4002,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4019,7 +4019,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4034,7 +4034,7 @@ async def put_dictionary_valid( @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'}]. + '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] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py index 32fe602a0bc..9d724d709fd 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArray/bodyarray/operations/_array_operations.py @@ -2930,7 +2930,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str or the result of cls(response) :rtype: list[str] @@ -2976,8 +2976,8 @@ def get_uuid_valid(self, **kwargs: Any) -> list[str]: @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']. + """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] @@ -2991,8 +2991,8 @@ def put_uuid_valid(self, array_body: list[str], *, content_type: str = "applicat @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']. + """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] @@ -3008,8 +3008,8 @@ def put_uuid_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3159,7 +3159,7 @@ def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -3173,7 +3173,7 @@ def put_date_valid( @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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -3189,7 +3189,7 @@ def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3338,7 +3338,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -3386,8 +3386,8 @@ def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3403,8 +3403,8 @@ def put_date_time_valid( 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']. + """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] @@ -3420,8 +3420,8 @@ def put_date_time_valid( 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']. + """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] @@ -3570,7 +3570,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.datetime]: @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -3618,8 +3618,8 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3635,8 +3635,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -3652,8 +3652,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -3757,7 +3757,7 @@ def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: def put_duration_valid( self, array_body: list[datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -3773,7 +3773,7 @@ def put_duration_valid( def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -3789,7 +3789,7 @@ def put_duration_valid( 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']. + """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] @@ -3846,7 +3846,7 @@ def put_duration_valid( # pylint: disable=inconsistent-return-statements @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. + in base64. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -3893,7 +3893,7 @@ def get_byte_valid(self, **kwargs: Any) -> list[bytes]: @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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -3908,7 +3908,7 @@ def put_byte_valid(self, array_body: list[bytes], *, content_type: str = "applic @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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3925,7 +3925,7 @@ 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. + 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] @@ -4028,7 +4028,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -4167,7 +4167,7 @@ def get_complex_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~bodyarray.models.Product] @@ -4214,7 +4214,7 @@ def get_complex_item_null(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~bodyarray.models.Product] @@ -4261,7 +4261,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + {'integer': 5, 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~bodyarray.models.Product] @@ -4310,7 +4310,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[~bodyarray.models.Product] @@ -4327,7 +4327,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4344,7 +4344,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Is either a [Product] type or a IO[bytes] type. Required. :type array_body: list[~bodyarray.models.Product] or IO[bytes] @@ -4811,7 +4811,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -4858,7 +4858,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -4905,7 +4905,7 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -4954,7 +4954,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4971,7 +4971,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4988,7 +4988,7 @@ 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'}]. + '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] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py index 26945df0c6a..33950d58987 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py @@ -1980,7 +1980,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str or the result of cls(response) :rtype: list[str] @@ -2028,8 +2028,8 @@ async def get_uuid_valid(self, **kwargs: Any) -> list[str]: 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']. + """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] @@ -2045,8 +2045,8 @@ async def put_uuid_valid( 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']. + """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] @@ -2060,8 +2060,8 @@ async def put_uuid_valid( @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']. + """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] @@ -2211,7 +2211,7 @@ async def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -2227,7 +2227,7 @@ async def put_date_valid( 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -2241,7 +2241,7 @@ async def put_date_valid( @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']. + """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] @@ -2390,7 +2390,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -2438,8 +2438,8 @@ async def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -2455,8 +2455,8 @@ async def put_date_time_valid( 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']. + """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] @@ -2470,8 +2470,8 @@ async def put_date_time_valid( @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']. + """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] @@ -2620,7 +2620,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.date @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -2668,8 +2668,8 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.date 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']. + """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] @@ -2685,8 +2685,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -2702,8 +2702,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -2807,7 +2807,7 @@ async def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: 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']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -2823,7 +2823,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -2837,7 +2837,7 @@ async def put_duration_valid( @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']. + """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] @@ -2894,7 +2894,7 @@ async def put_duration_valid(self, array_body: Union[list[datetime.timedelta], I @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. + in base64. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -2943,7 +2943,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -2960,7 +2960,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -2975,7 +2975,7 @@ async def put_byte_valid( @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. + 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] @@ -3078,7 +3078,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -3217,7 +3217,7 @@ async def get_complex_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~vanilla.body.array.models.Product] @@ -3264,7 +3264,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~vanilla.body.array.models.Product] @@ -3311,7 +3311,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + {'integer': 5, 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~vanilla.body.array.models.Product] @@ -3360,7 +3360,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[~vanilla.body.array.models.Product] @@ -3377,7 +3377,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -3392,7 +3392,7 @@ async def put_complex_valid( @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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Is either a [Product] type or a IO[bytes] type. Required. :type array_body: list[~vanilla.body.array.models.Product] or IO[bytes] @@ -3859,7 +3859,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -3906,7 +3906,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -3953,7 +3953,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]] @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'}]. + '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]] @@ -4002,7 +4002,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4019,7 +4019,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4034,7 +4034,7 @@ async def put_dictionary_valid( @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'}]. + '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] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py index cabf62525d6..2781956076e 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/operations/_array_operations.py @@ -2930,7 +2930,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str or the result of cls(response) :rtype: list[str] @@ -2976,8 +2976,8 @@ def get_uuid_valid(self, **kwargs: Any) -> list[str]: @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']. + """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] @@ -2991,8 +2991,8 @@ def put_uuid_valid(self, array_body: list[str], *, content_type: str = "applicat @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']. + """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] @@ -3008,8 +3008,8 @@ def put_uuid_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3159,7 +3159,7 @@ def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -3173,7 +3173,7 @@ def put_date_valid( @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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -3189,7 +3189,7 @@ def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3338,7 +3338,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -3386,8 +3386,8 @@ def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3403,8 +3403,8 @@ def put_date_time_valid( 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']. + """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] @@ -3420,8 +3420,8 @@ def put_date_time_valid( 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']. + """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] @@ -3570,7 +3570,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.datetime]: @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime or the result of cls(response) :rtype: list[~datetime.datetime] @@ -3618,8 +3618,8 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3635,8 +3635,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -3652,8 +3652,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -3757,7 +3757,7 @@ def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: def put_duration_valid( self, array_body: list[datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -3773,7 +3773,7 @@ def put_duration_valid( def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -3789,7 +3789,7 @@ def put_duration_valid( 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']. + """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] @@ -3846,7 +3846,7 @@ def put_duration_valid( # pylint: disable=inconsistent-return-statements @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. + in base64. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -3893,7 +3893,7 @@ def get_byte_valid(self, **kwargs: Any) -> list[bytes]: @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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -3908,7 +3908,7 @@ def put_byte_valid(self, array_body: list[bytes], *, content_type: str = "applic @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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3925,7 +3925,7 @@ 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. + 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] @@ -4028,7 +4028,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes or the result of cls(response) :rtype: list[bytes] @@ -4167,7 +4167,7 @@ def get_complex_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~vanilla.body.array.models.Product] @@ -4214,7 +4214,7 @@ def get_complex_item_null(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~vanilla.body.array.models.Product] @@ -4261,7 +4261,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> list[_models.Product]: @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'}]. + {'integer': 5, 'string': '6'}]. :return: list of Product or the result of cls(response) :rtype: list[~vanilla.body.array.models.Product] @@ -4310,7 +4310,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[~vanilla.body.array.models.Product] @@ -4327,7 +4327,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4344,7 +4344,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Is either a [Product] type or a IO[bytes] type. Required. :type array_body: list[~vanilla.body.array.models.Product] or IO[bytes] @@ -4811,7 +4811,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -4858,7 +4858,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -4905,7 +4905,7 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + '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]] @@ -4954,7 +4954,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4971,7 +4971,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4988,7 +4988,7 @@ 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'}]. + '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] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py index 97dab0f9fde..70b761f468a 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_auto_rest_complex_test_service.py @@ -55,7 +55,7 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py index 6f524f6076f..e82ba2c11f0 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/_configuration.py @@ -20,7 +20,7 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta attributes. :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py index ec9a5dab8af..b5205ec1d07 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_auto_rest_complex_test_service.py @@ -55,7 +55,7 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py index 8924f21ccda..be87e0555db 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta attributes. :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py index bfc2e9d465e..cc65f12a4a0 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py @@ -106,59 +106,14 @@ async def put_valid( ) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: ~bodycomplex.models.Fish :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -174,59 +129,14 @@ async def put_valid( ) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -240,59 +150,15 @@ async def put_valid( async def put_valid(self, complex_body: Union[_models.Fish, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Is either a Fish type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Is either a Fish type or a IO[bytes] + type. Required. :type complex_body: ~bodycomplex.models.Fish or IO[bytes] :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py index 963ad8112d6..8bee44dd181 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py @@ -116,39 +116,14 @@ async def put_valid( ) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: ~bodycomplex.models.Fish :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -164,39 +139,14 @@ async def put_valid( ) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -210,39 +160,14 @@ async def put_valid( async def put_valid(self, complex_body: Union[_models.Fish, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Is either a Fish type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. Is + either a Fish type or a IO[bytes] type. Required. :type complex_body: ~bodycomplex.models.Fish or IO[bytes] :return: None or the result of cls(response) :rtype: None @@ -343,8 +268,8 @@ async def get_dot_syntax(self, **kwargs: Any) -> _models.DotFish: @distributed_trace_async async def get_composed_with_discriminator(self, **kwargs: Any) -> _models.DotFishMarket: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. + element type, with discriminator specified. Deserialization must NOT fail and use the + discriminator type specified on the wire. :return: DotFishMarket or the result of cls(response) :rtype: ~bodycomplex.models.DotFishMarket @@ -391,8 +316,8 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> _models.DotFis @distributed_trace_async async def get_composed_without_discriminator(self, **kwargs: Any) -> _models.DotFishMarket: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. + element type, without discriminator specified on wire. Deserialization must NOT fail and use + the explicit type of the property. :return: DotFishMarket or the result of cls(response) :rtype: ~bodycomplex.models.DotFishMarket @@ -439,7 +364,7 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> _models.Dot @distributed_trace_async async def get_complicated(self, **kwargs: Any) -> _models.Salmon: """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :return: Salmon or the result of cls(response) :rtype: ~bodycomplex.models.Salmon @@ -488,7 +413,7 @@ async def put_complicated( self, complex_body: _models.Salmon, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: ~bodycomplex.models.Salmon @@ -505,7 +430,7 @@ async def put_complicated( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: IO[bytes] @@ -520,7 +445,7 @@ async def put_complicated( @distributed_trace_async async def put_complicated(self, complex_body: Union[_models.Salmon, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Is either a Salmon type or a IO[bytes] type. Required. :type complex_body: ~bodycomplex.models.Salmon or IO[bytes] @@ -673,35 +598,14 @@ async def put_valid_missing_required( self, complex_body: _models.Fish, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: ~bodycomplex.models.Fish :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -716,35 +620,14 @@ async def put_valid_missing_required( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -757,35 +640,15 @@ async def put_valid_missing_required( @distributed_trace_async async def put_valid_missing_required(self, complex_body: Union[_models.Fish, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Is either a Fish type or a IO[bytes] type. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Is either a + Fish type or a IO[bytes] type. Required. :type complex_body: ~bodycomplex.models.Fish or IO[bytes] :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_models_py3.py index b0a3a1dc9d9..e0191fb0109 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/_models_py3.py @@ -203,7 +203,7 @@ class Fish(msrest.serialization.Model): """Fish. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Salmon, Shark + Salmon, Shark All required parameters must be populated in order to send to server. @@ -258,7 +258,7 @@ class Shark(Fish): """Shark. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Cookiecuttershark, Goblinshark, Sawshark + Cookiecuttershark, Goblinshark, Sawshark All required parameters must be populated in order to send to server. @@ -528,7 +528,7 @@ class DotFish(msrest.serialization.Model): """DotFish. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - DotSalmon + DotSalmon All required parameters must be populated in order to send to server. @@ -900,7 +900,7 @@ class MyBaseType(msrest.serialization.Model): """MyBaseType. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - MyDerivedType + MyDerivedType All required parameters must be populated in order to send to server. @@ -1018,7 +1018,7 @@ class Salmon(Fish): """Salmon. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - SmartSalmon + SmartSalmon All required parameters must be populated in order to send to server. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py index 370bb656e27..8e52ca0a715 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphicrecursive_operations.py @@ -136,59 +136,14 @@ def get_valid(self, **kwargs: Any) -> _models.Fish: def put_valid(self, complex_body: _models.Fish, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: ~bodycomplex.models.Fish :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -202,59 +157,14 @@ def put_valid(self, complex_body: _models.Fish, *, content_type: str = "applicat def put_valid(self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -270,59 +180,15 @@ def put_valid( # pylint: disable=inconsistent-return-statements ) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Is either a Fish type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Is either a Fish type or a IO[bytes] + type. Required. :type complex_body: ~bodycomplex.models.Fish or IO[bytes] :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py index bd7cf017e88..3963a63a68b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyComplex/bodycomplex/operations/_polymorphism_operations.py @@ -243,39 +243,14 @@ def get_valid(self, **kwargs: Any) -> _models.Fish: def put_valid(self, complex_body: _models.Fish, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: ~bodycomplex.models.Fish :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -289,39 +264,14 @@ def put_valid(self, complex_body: _models.Fish, *, content_type: str = "applicat def put_valid(self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -337,39 +287,14 @@ def put_valid( # pylint: disable=inconsistent-return-statements ) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Is either a Fish type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. Is + either a Fish type or a IO[bytes] type. Required. :type complex_body: ~bodycomplex.models.Fish or IO[bytes] :return: None or the result of cls(response) :rtype: None @@ -470,8 +395,8 @@ def get_dot_syntax(self, **kwargs: Any) -> _models.DotFish: @distributed_trace def get_composed_with_discriminator(self, **kwargs: Any) -> _models.DotFishMarket: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. + element type, with discriminator specified. Deserialization must NOT fail and use the + discriminator type specified on the wire. :return: DotFishMarket or the result of cls(response) :rtype: ~bodycomplex.models.DotFishMarket @@ -518,8 +443,8 @@ def get_composed_with_discriminator(self, **kwargs: Any) -> _models.DotFishMarke @distributed_trace def get_composed_without_discriminator(self, **kwargs: Any) -> _models.DotFishMarket: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. + element type, without discriminator specified on wire. Deserialization must NOT fail and use + the explicit type of the property. :return: DotFishMarket or the result of cls(response) :rtype: ~bodycomplex.models.DotFishMarket @@ -566,7 +491,7 @@ def get_composed_without_discriminator(self, **kwargs: Any) -> _models.DotFishMa @distributed_trace def get_complicated(self, **kwargs: Any) -> _models.Salmon: """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :return: Salmon or the result of cls(response) :rtype: ~bodycomplex.models.Salmon @@ -615,7 +540,7 @@ def put_complicated( self, complex_body: _models.Salmon, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: ~bodycomplex.models.Salmon @@ -632,7 +557,7 @@ def put_complicated( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: IO[bytes] @@ -649,7 +574,7 @@ def put_complicated( # pylint: disable=inconsistent-return-statements self, complex_body: Union[_models.Salmon, IO[bytes]], **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Is either a Salmon type or a IO[bytes] type. Required. :type complex_body: ~bodycomplex.models.Salmon or IO[bytes] @@ -802,35 +727,14 @@ def put_valid_missing_required( self, complex_body: _models.Fish, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: ~bodycomplex.models.Fish :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -845,35 +749,14 @@ def put_valid_missing_required( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -888,35 +771,15 @@ def put_valid_missing_required( # pylint: disable=inconsistent-return-statement self, complex_body: Union[_models.Fish, IO[bytes]], **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Is either a Fish type or a IO[bytes] type. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Is either a + Fish type or a IO[bytes] type. Required. :type complex_body: ~bodycomplex.models.Fish or IO[bytes] :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py index 8a728549d9c..02c0635da32 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py @@ -315,7 +315,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, """Put max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :param datetime_body: datetime body. Required. :type datetime_body: ~datetime.datetime @@ -459,7 +459,7 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> dateti """Get max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :return: datetime or the result of cls(response) :rtype: ~datetime.datetime diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py index 669067e716e..2ab2fa53a2a 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDateTime/bodydatetime/operations/_datetime_operations.py @@ -651,7 +651,7 @@ def put_utc_max_date_time7_digits( # pylint: disable=inconsistent-return-statem """Put max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :param datetime_body: datetime body. Required. :type datetime_body: ~datetime.datetime @@ -795,7 +795,7 @@ def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> datetime.dat """Get max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :return: datetime or the result of cls(response) :rtype: ~datetime.datetime diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py index 35f0ca7b3ed..8cf14e6dea4 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py @@ -1889,7 +1889,7 @@ async def get_date_valid(self, **kwargs: Any) -> dict[str, datetime.date]: async def put_date_valid( self, array_body: dict[str, datetime.date], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: dict[str, ~datetime.date] @@ -1905,7 +1905,7 @@ async def put_date_valid( async def put_date_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: IO[bytes] @@ -1919,7 +1919,7 @@ async def put_date_valid( @distributed_trace_async async def put_date_valid(self, array_body: Union[dict[str, datetime.date], IO[bytes]], **kwargs: Any) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Is either a {str: datetime.date} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.date] or IO[bytes] @@ -2068,7 +2068,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.date @distributed_trace_async async def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", - "2": "1492-10-12T10:15:01-08:00"}. + "2": "1492-10-12T10:15:01-08:00"}. :return: dict mapping str to datetime or the result of cls(response) :rtype: dict[str, ~datetime.datetime] @@ -2116,8 +2116,8 @@ async def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetim async def put_date_time_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -2133,8 +2133,8 @@ async def put_date_time_valid( async def put_date_time_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2150,8 +2150,8 @@ async def put_date_time_valid( async def put_date_time_valid( self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -2300,7 +2300,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> dict[str, datetime @distributed_trace_async async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time-rfc1123 dictionary value {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan - 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :return: dict mapping str to datetime or the result of cls(response) :rtype: dict[str, ~datetime.datetime] @@ -2349,7 +2349,7 @@ async def put_date_time_rfc1123_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -2366,7 +2366,7 @@ async def put_date_time_rfc1123_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2383,7 +2383,7 @@ async def put_date_time_rfc1123_valid( self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -2487,7 +2487,7 @@ async def get_duration_valid(self, **kwargs: Any) -> dict[str, datetime.timedelt async def put_duration_valid( self, array_body: dict[str, datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: dict[str, ~datetime.timedelta] @@ -2503,7 +2503,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2519,7 +2519,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: Union[dict[str, datetime.timedelta], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Is either a {str: datetime.timedelta} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.timedelta] or IO[bytes] @@ -2576,7 +2576,7 @@ async def put_duration_valid( @distributed_trace_async async def get_byte_valid(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each item encoded in base64. + with each item encoded in base64. :return: dict mapping str to bytes or the result of cls(response) :rtype: dict[str, bytes] @@ -2625,7 +2625,7 @@ async def put_byte_valid( self, array_body: dict[str, bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: dict[str, bytes] @@ -2642,7 +2642,7 @@ async def put_byte_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -2657,7 +2657,7 @@ async def put_byte_valid( @distributed_trace_async async def put_byte_valid(self, array_body: Union[dict[str, bytes], IO[bytes]], **kwargs: Any) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Is either a {str: bytes} type or a IO[bytes] type. Required. :type array_body: dict[str, bytes] or IO[bytes] @@ -2714,7 +2714,7 @@ async def put_byte_valid(self, array_body: Union[dict[str, bytes], IO[bytes]], * @distributed_trace_async async def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": null} with the first item base64 - encoded. + encoded. :return: dict mapping str to bytes or the result of cls(response) :rtype: dict[str, bytes] @@ -2761,7 +2761,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: @distributed_trace_async async def get_base64_url(self, **kwargs: Any) -> dict[str, bytes]: """Get base64url dictionary value {"0": "a string that gets encoded with base64url", "1": "test - string", "2": "Lorem ipsum"}. + string", "2": "Lorem ipsum"}. :return: dict mapping str to bytes or the result of cls(response) :rtype: dict[str, bytes] @@ -2900,7 +2900,7 @@ async def get_complex_empty(self, **kwargs: Any) -> dict[str, _models.Widget]: @distributed_trace_async async def get_complex_item_null(self, **kwargs: Any) -> dict[str, _models.Widget]: """Get dictionary of complex type with null item {"0": {"integer": 1, "string": "2"}, "1": null, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to Widget or the result of cls(response) :rtype: dict[str, ~bodydictionary.models.Widget] @@ -2947,7 +2947,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> dict[str, _models.Widget @distributed_trace_async async def get_complex_item_empty(self, **kwargs: Any) -> dict[str, _models.Widget]: """Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to Widget or the result of cls(response) :rtype: dict[str, ~bodydictionary.models.Widget] @@ -2994,7 +2994,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> dict[str, _models.Widge @distributed_trace_async async def get_complex_valid(self, **kwargs: Any) -> dict[str, _models.Widget]: """Get dictionary of complex type with {"0": {"integer": 1, "string": "2"}, "1": {"integer": 3, - "string": "4"}, "2": {"integer": 5, "string": "6"}}. + "string": "4"}, "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to Widget or the result of cls(response) :rtype: dict[str, ~bodydictionary.models.Widget] @@ -3043,7 +3043,7 @@ async def put_complex_valid( self, array_body: dict[str, _models.Widget], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: dict[str, ~bodydictionary.models.Widget] @@ -3060,7 +3060,7 @@ async def put_complex_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -3075,7 +3075,7 @@ async def put_complex_valid( @distributed_trace_async async def put_complex_valid(self, array_body: Union[dict[str, _models.Widget], IO[bytes]], **kwargs: Any) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Is either a {str: Widget} type or a IO[bytes] type. Required. :type array_body: dict[str, ~bodydictionary.models.Widget] or IO[bytes] @@ -3316,7 +3316,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> dict[str, list[str]]: @distributed_trace_async async def get_array_valid(self, **kwargs: Any) -> dict[str, list[str]]: """Get an array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :return: dict mapping str to list of str or the result of cls(response) :rtype: dict[str, list[str]] @@ -3365,7 +3365,7 @@ async def put_array_valid( self, array_body: dict[str, list[str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: dict[str, list[str]] @@ -3382,7 +3382,7 @@ 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 {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: IO[bytes] @@ -3397,7 +3397,7 @@ async def put_array_valid( @distributed_trace_async async def put_array_valid(self, array_body: Union[dict[str, list[str]], IO[bytes]], **kwargs: Any) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Is either a {str: [str]} type or a IO[bytes] type. Required. :type array_body: dict[str, list[str]] or IO[bytes] @@ -3546,7 +3546,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> dict[str, dict[str, str]] @distributed_trace_async async def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str or the result of cls(response) :rtype: dict[str, dict[str, str]] @@ -3593,7 +3593,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, s @distributed_trace_async async def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str or the result of cls(response) :rtype: dict[str, dict[str, str]] @@ -3640,8 +3640,8 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, @distributed_trace_async async def get_dictionary_valid(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str or the result of cls(response) :rtype: dict[str, dict[str, str]] @@ -3690,8 +3690,8 @@ async def put_dictionary_valid( self, array_body: dict[str, dict[str, str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: dict[str, dict[str, str]] @@ -3708,8 +3708,8 @@ async def put_dictionary_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -3726,8 +3726,8 @@ async def put_dictionary_valid( self, array_body: Union[dict[str, dict[str, str]], IO[bytes]], **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Is either a {str: {str: str}} type or a IO[bytes] type. Required. :type array_body: dict[str, dict[str, str]] or IO[bytes] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py index 9bb84fceb45..2cf13103b5b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py @@ -2782,7 +2782,7 @@ def get_date_valid(self, **kwargs: Any) -> dict[str, datetime.date]: def put_date_valid( self, array_body: dict[str, datetime.date], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: dict[str, ~datetime.date] @@ -2796,7 +2796,7 @@ def put_date_valid( @overload def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2812,7 +2812,7 @@ def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "applicat def put_date_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, datetime.date], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Is either a {str: datetime.date} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.date] or IO[bytes] @@ -2961,7 +2961,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.date]: @distributed_trace def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", - "2": "1492-10-12T10:15:01-08:00"}. + "2": "1492-10-12T10:15:01-08:00"}. :return: dict mapping str to datetime or the result of cls(response) :rtype: dict[str, ~datetime.datetime] @@ -3009,8 +3009,8 @@ def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: def put_date_time_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -3026,8 +3026,8 @@ def put_date_time_valid( def put_date_time_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3043,8 +3043,8 @@ def put_date_time_valid( def put_date_time_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -3193,7 +3193,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.datet @distributed_trace def get_date_time_rfc1123_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time-rfc1123 dictionary value {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan - 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :return: dict mapping str to datetime or the result of cls(response) :rtype: dict[str, ~datetime.datetime] @@ -3242,7 +3242,7 @@ def put_date_time_rfc1123_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -3259,7 +3259,7 @@ def put_date_time_rfc1123_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3276,7 +3276,7 @@ def put_date_time_rfc1123_valid( # pylint: disable=inconsistent-return-statemen self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -3380,7 +3380,7 @@ def get_duration_valid(self, **kwargs: Any) -> dict[str, datetime.timedelta]: def put_duration_valid( self, array_body: dict[str, datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: dict[str, ~datetime.timedelta] @@ -3396,7 +3396,7 @@ def put_duration_valid( def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3412,7 +3412,7 @@ def put_duration_valid( def put_duration_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, datetime.timedelta], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Is either a {str: datetime.timedelta} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.timedelta] or IO[bytes] @@ -3469,7 +3469,7 @@ def put_duration_valid( # pylint: disable=inconsistent-return-statements @distributed_trace def get_byte_valid(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each item encoded in base64. + with each item encoded in base64. :return: dict mapping str to bytes or the result of cls(response) :rtype: dict[str, bytes] @@ -3518,7 +3518,7 @@ def put_byte_valid( self, array_body: dict[str, bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: dict[str, bytes] @@ -3533,7 +3533,7 @@ def put_byte_valid( @overload def put_byte_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3550,7 +3550,7 @@ def put_byte_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, bytes], IO[bytes]], **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Is either a {str: bytes} type or a IO[bytes] type. Required. :type array_body: dict[str, bytes] or IO[bytes] @@ -3607,7 +3607,7 @@ def put_byte_valid( # pylint: disable=inconsistent-return-statements @distributed_trace def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": null} with the first item base64 - encoded. + encoded. :return: dict mapping str to bytes or the result of cls(response) :rtype: dict[str, bytes] @@ -3654,7 +3654,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: @distributed_trace def get_base64_url(self, **kwargs: Any) -> dict[str, bytes]: """Get base64url dictionary value {"0": "a string that gets encoded with base64url", "1": "test - string", "2": "Lorem ipsum"}. + string", "2": "Lorem ipsum"}. :return: dict mapping str to bytes or the result of cls(response) :rtype: dict[str, bytes] @@ -3793,7 +3793,7 @@ def get_complex_empty(self, **kwargs: Any) -> dict[str, _models.Widget]: @distributed_trace def get_complex_item_null(self, **kwargs: Any) -> dict[str, _models.Widget]: """Get dictionary of complex type with null item {"0": {"integer": 1, "string": "2"}, "1": null, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to Widget or the result of cls(response) :rtype: dict[str, ~bodydictionary.models.Widget] @@ -3840,7 +3840,7 @@ def get_complex_item_null(self, **kwargs: Any) -> dict[str, _models.Widget]: @distributed_trace def get_complex_item_empty(self, **kwargs: Any) -> dict[str, _models.Widget]: """Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to Widget or the result of cls(response) :rtype: dict[str, ~bodydictionary.models.Widget] @@ -3887,7 +3887,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> dict[str, _models.Widget]: @distributed_trace def get_complex_valid(self, **kwargs: Any) -> dict[str, _models.Widget]: """Get dictionary of complex type with {"0": {"integer": 1, "string": "2"}, "1": {"integer": 3, - "string": "4"}, "2": {"integer": 5, "string": "6"}}. + "string": "4"}, "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to Widget or the result of cls(response) :rtype: dict[str, ~bodydictionary.models.Widget] @@ -3936,7 +3936,7 @@ def put_complex_valid( self, array_body: dict[str, _models.Widget], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: dict[str, ~bodydictionary.models.Widget] @@ -3953,7 +3953,7 @@ def put_complex_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -3970,7 +3970,7 @@ def put_complex_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, _models.Widget], IO[bytes]], **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Is either a {str: Widget} type or a IO[bytes] type. Required. :type array_body: dict[str, ~bodydictionary.models.Widget] or IO[bytes] @@ -4211,7 +4211,7 @@ def get_array_item_empty(self, **kwargs: Any) -> dict[str, list[str]]: @distributed_trace def get_array_valid(self, **kwargs: Any) -> dict[str, list[str]]: """Get an array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :return: dict mapping str to list of str or the result of cls(response) :rtype: dict[str, list[str]] @@ -4260,7 +4260,7 @@ def put_array_valid( self, array_body: dict[str, list[str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: dict[str, list[str]] @@ -4275,7 +4275,7 @@ def put_array_valid( @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 {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: IO[bytes] @@ -4292,7 +4292,7 @@ def put_array_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, list[str]], IO[bytes]], **kwargs: Any ) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Is either a {str: [str]} type or a IO[bytes] type. Required. :type array_body: dict[str, list[str]] or IO[bytes] @@ -4441,7 +4441,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: @distributed_trace def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str or the result of cls(response) :rtype: dict[str, dict[str, str]] @@ -4488,7 +4488,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: @distributed_trace def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str or the result of cls(response) :rtype: dict[str, dict[str, str]] @@ -4535,8 +4535,8 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: @distributed_trace def get_dictionary_valid(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str or the result of cls(response) :rtype: dict[str, dict[str, str]] @@ -4585,8 +4585,8 @@ def put_dictionary_valid( self, array_body: dict[str, dict[str, str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: dict[str, dict[str, str]] @@ -4603,8 +4603,8 @@ def put_dictionary_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -4621,8 +4621,8 @@ def put_dictionary_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, dict[str, str]], IO[bytes]], **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Is either a {str: {str: str}} type or a IO[bytes] type. Required. :type array_body: dict[str, dict[str, str]] or IO[bytes] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py index d7d68fc7e68..495cf916724 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/aio/operations/_formdataurlencoded_operations.py @@ -137,7 +137,7 @@ async def update_pet_with_form( @distributed_trace_async async def partial_constant_body(self, service: str, access_token: str, **kwargs: Any) -> None: """Test a partially constant formdata body. Pass in { grant_type: 'access_token', access_token: - 'foo', service: 'bar' } to pass the test. + 'foo', service: 'bar' } to pass the test. :param service: Indicates the name of your Azure container registry. Required. :type service: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py index 99fa74bb80e..8b683d80716 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/operations/_formdataurlencoded_operations.py @@ -163,7 +163,7 @@ def partial_constant_body( # pylint: disable=inconsistent-return-statements self, service: str, access_token: str, **kwargs: Any ) -> None: """Test a partially constant formdata body. Pass in { grant_type: 'access_token', access_token: - 'foo', service: 'bar' } to pass the test. + 'foo', service: 'bar' } to pass the test. :param service: Indicates the name of your Azure container registry. Required. :type service: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py index 73e1be1a438..a274a50f836 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py @@ -359,8 +359,8 @@ async def put_mbcs(self, **kwargs: Any) -> None: @distributed_trace_async async def get_whitespace(self, **kwargs: Any) -> str: """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str or the result of cls(response) :rtype: str @@ -407,8 +407,8 @@ async def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace_async async def put_whitespace(self, **kwargs: Any) -> None: """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py index 2b9f0df0539..71a5951ab5e 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/operations/_string_operations.py @@ -556,8 +556,8 @@ def put_mbcs(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retur @distributed_trace def get_whitespace(self, **kwargs: Any) -> str: """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str or the result of cls(response) :rtype: str @@ -604,8 +604,8 @@ def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace def put_whitespace(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py index d6358e02604..da687c12a0b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_auto_rest_swagger_constant_service.py @@ -28,16 +28,16 @@ class AutoRestSwaggerConstantService: # pylint: disable=client-accepts-api-vers :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py index 68e55c59760..c9bdfc37184 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/_configuration.py @@ -20,16 +20,16 @@ class AutoRestSwaggerConstantServiceConfiguration: # pylint: disable=too-many-i attributes. :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py index 68fc1044126..8b005268f5c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_auto_rest_swagger_constant_service.py @@ -28,16 +28,16 @@ class AutoRestSwaggerConstantService: # pylint: disable=client-accepts-api-vers :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py index 45e2eaaa9f5..e53e337c9ba 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/_configuration.py @@ -20,16 +20,16 @@ class AutoRestSwaggerConstantServiceConfiguration: # pylint: disable=too-many-i attributes. :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py index 0639cb13673..9ad0e961b2a 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py @@ -841,7 +841,7 @@ async def put_model_as_string_required_one_value_default( # pylint: disable=nam @distributed_trace_async async def put_client_constants(self, **kwargs: Any) -> None: """Pass constants from the client to this function. Will pass in constant path, query, and header - parameters. + parameters. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py index 87469c693bf..d642f50d4b3 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Constants/constants/operations/_contants_operations.py @@ -1084,7 +1084,7 @@ def put_model_as_string_required_one_value_default( # pylint: disable=inconsist @distributed_trace def put_client_constants(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Pass constants from the client to this function. Will pass in constant path, query, and header - parameters. + parameters. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py index d2692fca2fb..c8e2ee91461 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_auto_rest_parameterized_host_test_client.py @@ -27,7 +27,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurl.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py index f131bf97599..c941f96fc66 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py index 01cd11b1690..5eccc985be5 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_auto_rest_parameterized_host_test_client.py @@ -27,7 +27,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurl.aio.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py index b59e4785d7b..238b10238d7 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py index c06d791f868..69239d203ae 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_auto_rest_parameterized_custom_host_test_client.py @@ -28,7 +28,7 @@ class AutoRestParameterizedCustomHostTestClient: # pylint: disable=client-accep :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py index eaeaac27bf0..9a07436554f 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/_configuration.py @@ -23,7 +23,7 @@ class AutoRestParameterizedCustomHostTestClientConfiguration: # pylint: disable :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client.py index b7025a26a44..44a6d8e240b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_auto_rest_parameterized_custom_host_test_client.py @@ -28,7 +28,7 @@ class AutoRestParameterizedCustomHostTestClient: # pylint: disable=client-accep :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py index a9ff1973031..a7870ffbb9b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/_configuration.py @@ -23,7 +23,7 @@ class AutoRestParameterizedCustomHostTestClientConfiguration: # pylint: disable :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ErrorWithSecrets/errorwithsecrets/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ErrorWithSecrets/errorwithsecrets/models/_models_py3.py index ab6953a0e01..ebde4c724e6 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ErrorWithSecrets/errorwithsecrets/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ErrorWithSecrets/errorwithsecrets/models/_models_py3.py @@ -125,8 +125,8 @@ def __init__( class InnerError(_serialization.Model): """An object containing more specific information about the error. As per Microsoft One API - guidelines - - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. + guidelines - + https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. All required parameters must be populated in order to send to server. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_pet_store_inc_enums.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_pet_store_inc_enums.py index 853471d1b4e..56d2dc2d8c6 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_pet_store_inc_enums.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_pet_store_inc_enums.py @@ -27,7 +27,7 @@ class IntEnum(str, Enum, metaclass=CaseInsensitiveEnumMeta): ONE = "1" """This is a really long comment to see what wrapping looks like. This comment is really long and - it should wrap for readability. Please wrap. This should wrap.""" + it should wrap for readability. Please wrap. This should wrap.""" TWO = "2" """two""" THREE = "3" diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py index b2b8d89ad94..3c42c266b8a 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py @@ -266,7 +266,7 @@ async def response_protected_key(self, **kwargs: Any) -> None: @distributed_trace_async async def param_integer(self, scenario: str, value: int, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 1 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -365,7 +365,7 @@ async def response_integer(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_long(self, scenario: str, value: int, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 105 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -464,7 +464,7 @@ async def response_long(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_float(self, scenario: str, value: float, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 0.07 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -563,7 +563,7 @@ async def response_float(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_double(self, scenario: str, value: float, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 7e120 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -662,7 +662,7 @@ async def response_double(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_bool(self, scenario: str, value: bool, **kwargs: Any) -> None: """Send a post request with header values "scenario": "true", "value": true or "scenario": - "false", "value": false. + "false", "value": false. :param scenario: Send a post request with header values "scenario": "true" or "false". Required. @@ -761,7 +761,7 @@ async def response_bool(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_string(self, scenario: str, value: Optional[str] = None, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "The quick brown fox jumps - over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". + over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". :param scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -861,7 +861,7 @@ async def response_string(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_date(self, scenario: str, value: datetime.date, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01" or - "scenario": "min", "value": "0001-01-01". + "scenario": "min", "value": "0001-01-01". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -958,7 +958,7 @@ async def response_date(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01T12:34:56Z" or - "scenario": "min", "value": "0001-01-01T00:00:00Z". + "scenario": "min", "value": "0001-01-01T00:00:00Z". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1058,7 +1058,7 @@ async def param_datetime_rfc1123( self, scenario: str, value: Optional[datetime.datetime] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "Wed, 01 Jan 2010 12:34:56 - GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". + GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1108,7 +1108,7 @@ async def param_datetime_rfc1123( @distributed_trace_async async def response_datetime_rfc1123(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 - GMT". + GMT". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1351,7 +1351,7 @@ async def param_enum( self, scenario: str, value: Optional[Union[str, _models.GreyscaleColors]] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": - "null", "value": null. + "null", "value": null. :param scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -1451,7 +1451,7 @@ async def response_enum(self, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def custom_request_id(self, **kwargs: Any) -> None: """Send x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the - request. + request. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py index 6fcf29fb467..b52fa1c5ec6 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Header/header/operations/_header_operations.py @@ -695,7 +695,7 @@ def param_integer( # pylint: disable=inconsistent-return-statements self, scenario: str, value: int, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 1 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -796,7 +796,7 @@ def param_long( # pylint: disable=inconsistent-return-statements self, scenario: str, value: int, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 105 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -897,7 +897,7 @@ def param_float( # pylint: disable=inconsistent-return-statements self, scenario: str, value: float, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 0.07 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -998,7 +998,7 @@ def param_double( # pylint: disable=inconsistent-return-statements self, scenario: str, value: float, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 7e120 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :param scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -1099,7 +1099,7 @@ def param_bool( # pylint: disable=inconsistent-return-statements self, scenario: str, value: bool, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "true", "value": true or "scenario": - "false", "value": false. + "false", "value": false. :param scenario: Send a post request with header values "scenario": "true" or "false". Required. @@ -1200,7 +1200,7 @@ def param_string( # pylint: disable=inconsistent-return-statements self, scenario: str, value: Optional[str] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "The quick brown fox jumps - over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". + over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". :param scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -1302,7 +1302,7 @@ def param_date( # pylint: disable=inconsistent-return-statements self, scenario: str, value: datetime.date, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01" or - "scenario": "min", "value": "0001-01-01". + "scenario": "min", "value": "0001-01-01". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1401,7 +1401,7 @@ def param_datetime( # pylint: disable=inconsistent-return-statements self, scenario: str, value: datetime.datetime, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01T12:34:56Z" or - "scenario": "min", "value": "0001-01-01T00:00:00Z". + "scenario": "min", "value": "0001-01-01T00:00:00Z". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1501,7 +1501,7 @@ def param_datetime_rfc1123( # pylint: disable=inconsistent-return-statements self, scenario: str, value: Optional[datetime.datetime] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "Wed, 01 Jan 2010 12:34:56 - GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". + GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1553,7 +1553,7 @@ def response_datetime_rfc1123( # pylint: disable=inconsistent-return-statements self, scenario: str, **kwargs: Any ) -> None: """Get a response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 - GMT". + GMT". :param scenario: Send a post request with header values "scenario": "valid" or "min". Required. :type scenario: str @@ -1800,7 +1800,7 @@ def param_enum( # pylint: disable=inconsistent-return-statements self, scenario: str, value: Optional[Union[str, _models.GreyscaleColors]] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": - "null", "value": null. + "null", "value": null. :param scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -1900,7 +1900,7 @@ def response_enum(self, scenario: str, **kwargs: Any) -> None: # pylint: disabl @distributed_trace def custom_request_id(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Send x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the - request. + request. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py index 00498a5a9fd..d5582d73e8b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py @@ -260,8 +260,8 @@ async def get301(self, **kwargs: Any) -> None: @distributed_trace_async async def put301(self, boolean_value: Literal[True] = True, **kwargs: Any) -> None: - """Put true Boolean value in request returns 301. This request should not be automatically - redirected, but should return the received 301 to the caller for evaluation. + """Put true Boolean value in request returns 301. This request should not be automatically + redirected, but should return the received 301 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is True. @@ -410,8 +410,8 @@ async def get302(self, **kwargs: Any) -> None: @distributed_trace_async async def patch302(self, boolean_value: Literal[True] = True, **kwargs: Any) -> None: - """Patch true Boolean value in request returns 302. This request should not be automatically - redirected, but should return the received 302 to the caller for evaluation. + """Patch true Boolean value in request returns 302. This request should not be automatically + redirected, but should return the received 302 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is True. @@ -468,8 +468,8 @@ async def patch302(self, boolean_value: Literal[True] = True, **kwargs: Any) -> @distributed_trace_async async def post303(self, boolean_value: Literal[True] = True, **kwargs: Any) -> None: - """Post true Boolean value in request returns 303. This request should be automatically - redirected usign a get, ultimately returning a 200 status code. + """Post true Boolean value in request returns 303. This request should be automatically redirected + usign a get, ultimately returning a 200 status code. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is True. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py index 27f5868d666..44d9e17c9e4 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py @@ -1348,7 +1348,7 @@ async def get_default_none400_none(self, **kwargs: Any) -> None: @distributed_trace_async async def get200_model_a200_none(self, **kwargs: Any) -> _models.MyException: """Send a 200 response with no payload, when a payload is expected - client should return a null - object of thde type for model A. + object of thde type for model A. :return: MyException or the result of cls(response) :rtype: ~httpinfrastructure.models.MyException diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py index fee0307bbf7..3d37028ff94 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_http_redirects_operations.py @@ -493,8 +493,8 @@ def get301(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return- def put301( # pylint: disable=inconsistent-return-statements self, boolean_value: Literal[True] = True, **kwargs: Any ) -> None: - """Put true Boolean value in request returns 301. This request should not be automatically - redirected, but should return the received 301 to the caller for evaluation. + """Put true Boolean value in request returns 301. This request should not be automatically + redirected, but should return the received 301 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is True. @@ -645,8 +645,8 @@ def get302(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return- def patch302( # pylint: disable=inconsistent-return-statements self, boolean_value: Literal[True] = True, **kwargs: Any ) -> None: - """Patch true Boolean value in request returns 302. This request should not be automatically - redirected, but should return the received 302 to the caller for evaluation. + """Patch true Boolean value in request returns 302. This request should not be automatically + redirected, but should return the received 302 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is True. @@ -705,8 +705,8 @@ def patch302( # pylint: disable=inconsistent-return-statements def post303( # pylint: disable=inconsistent-return-statements self, boolean_value: Literal[True] = True, **kwargs: Any ) -> None: - """Post true Boolean value in request returns 303. This request should be automatically - redirected usign a get, ultimately returning a 200 status code. + """Post true Boolean value in request returns 303. This request should be automatically redirected + usign a get, ultimately returning a 200 status code. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is True. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py index 3278ffb66a7..f2879900373 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Http/httpinfrastructure/operations/_multiple_responses_operations.py @@ -1788,7 +1788,7 @@ def get_default_none400_none(self, **kwargs: Any) -> None: # pylint: disable=in @distributed_trace def get200_model_a200_none(self, **kwargs: Any) -> _models.MyException: """Send a 200 response with no payload, when a payload is expected - client should return a null - object of thde type for model A. + object of thde type for model A. :return: MyException or the result of cls(response) :rtype: ~httpinfrastructure.models.MyException diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py index 31a818b2f20..54d743652f0 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/_incorrect_returned_error_model.py @@ -24,7 +24,7 @@ class IncorrectReturnedErrorModel( _IncorrectReturnedErrorModelOperationsMixin ): # pylint: disable=client-accepts-api-version-keyword """Test to see when throwing an HttpResponseError whether we swallow error model deserialization - errors. + errors. :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py index 92ea16b07f4..fc3674b30ef 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/_incorrect_returned_error_model.py @@ -24,7 +24,7 @@ class IncorrectReturnedErrorModel( _IncorrectReturnedErrorModelOperationsMixin ): # pylint: disable=client-accepts-api-version-keyword """Test to see when throwing an HttpResponseError whether we swallow error model deserialization - errors. + errors. :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py index ad257771f5e..bbcdb92155b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py @@ -37,7 +37,7 @@ class _IncorrectReturnedErrorModelOperationsMixin( @distributed_trace_async async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: """Get an error response from the server that is not as described in our Error object. Want to - swallow the deserialization error and still return an HttpResponseError to the users. + swallow the deserialization error and still return an HttpResponseError to the users. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py index c8b52d65ddc..613654c1792 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/operations/_incorrect_returned_error_model_operations.py @@ -46,7 +46,7 @@ class _IncorrectReturnedErrorModelOperationsMixin( @distributed_trace def get_incorrect_error_from_server(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Get an error response from the server that is not as described in our Error object. Want to - swallow the deserialization error and still return an HttpResponseError to the users. + swallow the deserialization error and still return an HttpResponseError to the users. :return: None or the result of cls(response) :rtype: None diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/aio/operations/_media_types_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/aio/operations/_media_types_client_operations.py index d866873859e..ed5adebc8bb 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/aio/operations/_media_types_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/aio/operations/_media_types_client_operations.py @@ -147,7 +147,7 @@ async def analyze_body_no_accept_header( self, input: Optional[_models.SourcePath] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: ~internaloperation.models.SourcePath @@ -164,7 +164,7 @@ async def analyze_body_no_accept_header( self, input: Optional[IO[bytes]] = None, *, content_type: Optional[str] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: IO[bytes] @@ -182,7 +182,7 @@ async def analyze_body_no_accept_header( self, input: Optional[Union[_models.SourcePath, IO[bytes]]] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Is either a SourcePath type or a IO[bytes] type. Default value is None. @@ -299,7 +299,7 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs @distributed_trace_async async def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with two content types. Pass in of {'hello': 'world'} for the application/json - content type, and a byte stream of 'hello, world!' for application/octet-stream. + content type, and a byte stream of 'hello, world!' for application/octet-stream. :param message: The payload body. Required. :type message: IO[bytes] @@ -352,8 +352,8 @@ async def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: @distributed_trace_async async def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with three content types. Pass in string 'hello, world' with content type - 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for - 'application/octet-stream'. + 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for + 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] @@ -417,8 +417,8 @@ async def _body_three_types(self, message: str, *, content_type: Optional[str] = @distributed_trace_async async def _body_three_types(self, message: Union[Any, IO[bytes], str], **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Is one of the following types: Any, IO[bytes], str Required. :type message: any or IO[bytes] or str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/operations/_media_types_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/operations/_media_types_client_operations.py index ba8698e40bb..0db528b8c82 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/operations/_media_types_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/InternalOperation/internaloperation/operations/_media_types_client_operations.py @@ -261,7 +261,7 @@ def analyze_body_no_accept_header( self, input: Optional[_models.SourcePath] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: ~internaloperation.models.SourcePath @@ -278,7 +278,7 @@ def analyze_body_no_accept_header( self, input: Optional[IO[bytes]] = None, *, content_type: Optional[str] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: IO[bytes] @@ -296,7 +296,7 @@ def analyze_body_no_accept_header( # pylint: disable=inconsistent-return-statem self, input: Optional[Union[_models.SourcePath, IO[bytes]]] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Is either a SourcePath type or a IO[bytes] type. Default value is None. @@ -413,7 +413,7 @@ def content_type_with_encoding(self, input: Optional[str] = None, **kwargs: Any) @distributed_trace def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with two content types. Pass in of {'hello': 'world'} for the application/json - content type, and a byte stream of 'hello, world!' for application/octet-stream. + content type, and a byte stream of 'hello, world!' for application/octet-stream. :param message: The payload body. Required. :type message: IO[bytes] @@ -466,8 +466,8 @@ def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) @distributed_trace def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with three content types. Pass in string 'hello, world' with content type - 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for - 'application/octet-stream'. + 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for + 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] @@ -529,8 +529,8 @@ def _body_three_types(self, message: str, *, content_type: Optional[str] = None, @distributed_trace def _body_three_types(self, message: Union[Any, IO[bytes], str], **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Is one of the following types: Any, IO[bytes], str Required. :type message: any or IO[bytes] or str 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 a6113f92198..f1d3d1842e0 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py index 1f7d95f2586..ed239ae3dba 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py @@ -147,7 +147,7 @@ async def analyze_body_no_accept_header( self, input: Optional[_models.SourcePath] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: ~mediatypes.models.SourcePath @@ -164,7 +164,7 @@ async def analyze_body_no_accept_header( self, input: Optional[IO[bytes]] = None, *, content_type: Optional[str] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: IO[bytes] @@ -182,7 +182,7 @@ async def analyze_body_no_accept_header( self, input: Optional[Union[_models.SourcePath, IO[bytes]]] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Is either a SourcePath type or a IO[bytes] type. Default value is None. @@ -299,7 +299,7 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs @distributed_trace_async async def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with two content types. Pass in of {'hello': 'world'} for the application/json - content type, and a byte stream of 'hello, world!' for application/octet-stream. + content type, and a byte stream of 'hello, world!' for application/octet-stream. :param message: The payload body. Required. :type message: IO[bytes] @@ -352,8 +352,8 @@ async def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: @distributed_trace_async async def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with three content types. Pass in string 'hello, world' with content type - 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for - 'application/octet-stream'. + 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for + 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] @@ -406,8 +406,8 @@ async def binary_body_with_three_content_types(self, message: IO[bytes], **kwarg @overload async def body_three_types(self, message: Any, *, content_type: str = "application/json", **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Required. :type message: any @@ -424,8 +424,8 @@ async def body_three_types( self, message: IO[bytes], *, content_type: str = "application/octet-stream", **kwargs: Any ) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] @@ -441,8 +441,8 @@ async def body_three_types( @overload async def body_three_types(self, message: str, *, content_type: Optional[str] = None, **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Required. :type message: str @@ -457,8 +457,8 @@ async def body_three_types(self, message: str, *, content_type: Optional[str] = @distributed_trace_async async def body_three_types(self, message: Union[Any, IO[bytes], str], **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Is one of the following types: Any, IO[bytes], str Required. :type message: any or IO[bytes] or str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py index 1b2627152b2..5e4d334366c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MediaTypes/mediatypes/operations/_media_types_client_operations.py @@ -261,7 +261,7 @@ def analyze_body_no_accept_header( self, input: Optional[_models.SourcePath] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: ~mediatypes.models.SourcePath @@ -278,7 +278,7 @@ def analyze_body_no_accept_header( self, input: Optional[IO[bytes]] = None, *, content_type: Optional[str] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: IO[bytes] @@ -296,7 +296,7 @@ def analyze_body_no_accept_header( # pylint: disable=inconsistent-return-statem self, input: Optional[Union[_models.SourcePath, IO[bytes]]] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Is either a SourcePath type or a IO[bytes] type. Default value is None. @@ -413,7 +413,7 @@ def content_type_with_encoding(self, input: Optional[str] = None, **kwargs: Any) @distributed_trace def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with two content types. Pass in of {'hello': 'world'} for the application/json - content type, and a byte stream of 'hello, world!' for application/octet-stream. + content type, and a byte stream of 'hello, world!' for application/octet-stream. :param message: The payload body. Required. :type message: IO[bytes] @@ -466,8 +466,8 @@ def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) @distributed_trace def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with three content types. Pass in string 'hello, world' with content type - 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for - 'application/octet-stream'. + 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for + 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] @@ -520,8 +520,8 @@ def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any @overload def body_three_types(self, message: Any, *, content_type: str = "application/json", **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Required. :type message: any @@ -538,8 +538,8 @@ def body_three_types( self, message: IO[bytes], *, content_type: str = "application/octet-stream", **kwargs: Any ) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] @@ -555,8 +555,8 @@ def body_three_types( @overload def body_three_types(self, message: str, *, content_type: Optional[str] = None, **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Required. :type message: str @@ -571,8 +571,8 @@ def body_three_types(self, message: str, *, content_type: Optional[str] = None, @distributed_trace def body_three_types(self, message: Union[Any, IO[bytes], str], **kwargs: Any) -> str: """Body with three types. Can be stream, string, or JSON. Pass in string 'hello, world' with - content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte - string for 'application/octet-stream'. + content type 'text/plain', {'hello': world'} with content type 'application/json' and a byte + string for 'application/octet-stream'. :param message: The payload body. Is one of the following types: Any, IO[bytes], str Required. :type message: any or IO[bytes] or str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py index 77d306bbe82..8e38dc84302 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -62,7 +62,7 @@ async def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[~modelflattening.models.Resource] @@ -81,7 +81,7 @@ async def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -100,7 +100,7 @@ async def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [Resource] type or a IO[bytes] type. Default value is None. @@ -164,7 +164,7 @@ async def get_array(self, **kwargs: Any) -> list[_models.FlattenedProduct]: """Get External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of FlattenedProduct or the result of cls(response) :rtype: list[~modelflattening.models.FlattenedProduct] @@ -217,10 +217,10 @@ async def put_wrapped_array( **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[~modelflattening.models.WrappedProduct] @@ -237,10 +237,10 @@ async def put_wrapped_array( self, resource_array: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -257,10 +257,10 @@ async def put_wrapped_array( self, resource_array: Optional[Union[list[_models.WrappedProduct], IO[bytes]]] = None, **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [WrappedProduct] type or a IO[bytes] type. Default value is None. @@ -322,10 +322,10 @@ async def put_wrapped_array( @distributed_trace_async async def get_wrapped_array(self, **kwargs: Any) -> list[_models.ProductWrapper]: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of ProductWrapper or the result of cls(response) :rtype: list[~modelflattening.models.ProductWrapper] @@ -380,7 +380,7 @@ async def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: dict[str, ~modelflattening.models.FlattenedProduct] @@ -399,7 +399,7 @@ async def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: IO[bytes] @@ -418,7 +418,7 @@ async def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Is either a {str: FlattenedProduct} type or a IO[bytes] type. Default value is None. @@ -482,7 +482,7 @@ async def get_dictionary(self, **kwargs: Any) -> dict[str, _models.FlattenedProd """Get External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: dict mapping str to FlattenedProduct or the result of cls(response) :rtype: dict[str, ~modelflattening.models.FlattenedProduct] @@ -537,7 +537,7 @@ async def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -561,7 +561,7 @@ async def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -581,7 +581,7 @@ async def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Is either a ResourceCollection type or a IO[bytes] type. Default value is None. @@ -645,7 +645,7 @@ async def get_resource_collection(self, **kwargs: Any) -> _models.ResourceCollec """Get External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: ResourceCollection or the result of cls(response) :rtype: ~modelflattening.models.ResourceCollection @@ -700,7 +700,7 @@ async def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: ~modelflattening.models.SimpleProduct @@ -719,7 +719,7 @@ async def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: IO[bytes] @@ -738,7 +738,7 @@ async def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Is either a SimpleProduct type or a IO[bytes] type. Default value is None. @@ -815,7 +815,7 @@ async def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param product_id: Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in @@ -897,7 +897,7 @@ async def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param flatten_parameter_group: Parameter group. Required. :type flatten_parameter_group: ~modelflattening.models.FlattenParameterGroup diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py index 8ac138cc5d0..dd5d9b15eaa 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -233,7 +233,7 @@ def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[~modelflattening.models.Resource] @@ -252,7 +252,7 @@ def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -271,7 +271,7 @@ def put_array( # pylint: disable=inconsistent-return-statements """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [Resource] type or a IO[bytes] type. Default value is None. @@ -335,7 +335,7 @@ def get_array(self, **kwargs: Any) -> list[_models.FlattenedProduct]: """Get External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of FlattenedProduct or the result of cls(response) :rtype: list[~modelflattening.models.FlattenedProduct] @@ -388,10 +388,10 @@ def put_wrapped_array( **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[~modelflattening.models.WrappedProduct] @@ -408,10 +408,10 @@ def put_wrapped_array( self, resource_array: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -428,10 +428,10 @@ def put_wrapped_array( # pylint: disable=inconsistent-return-statements self, resource_array: Optional[Union[list[_models.WrappedProduct], IO[bytes]]] = None, **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [WrappedProduct] type or a IO[bytes] type. Default value is None. @@ -493,10 +493,10 @@ def put_wrapped_array( # pylint: disable=inconsistent-return-statements @distributed_trace def get_wrapped_array(self, **kwargs: Any) -> list[_models.ProductWrapper]: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of ProductWrapper or the result of cls(response) :rtype: list[~modelflattening.models.ProductWrapper] @@ -551,7 +551,7 @@ def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: dict[str, ~modelflattening.models.FlattenedProduct] @@ -570,7 +570,7 @@ def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: IO[bytes] @@ -589,7 +589,7 @@ def put_dictionary( # pylint: disable=inconsistent-return-statements """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Is either a {str: FlattenedProduct} type or a IO[bytes] type. Default value is None. @@ -653,7 +653,7 @@ def get_dictionary(self, **kwargs: Any) -> dict[str, _models.FlattenedProduct]: """Get External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: dict mapping str to FlattenedProduct or the result of cls(response) :rtype: dict[str, ~modelflattening.models.FlattenedProduct] @@ -708,7 +708,7 @@ def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -732,7 +732,7 @@ def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -752,7 +752,7 @@ def put_resource_collection( # pylint: disable=inconsistent-return-statements """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Is either a ResourceCollection type or a IO[bytes] type. Default value is None. @@ -816,7 +816,7 @@ def get_resource_collection(self, **kwargs: Any) -> _models.ResourceCollection: """Get External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: ResourceCollection or the result of cls(response) :rtype: ~modelflattening.models.ResourceCollection @@ -871,7 +871,7 @@ def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: ~modelflattening.models.SimpleProduct @@ -890,7 +890,7 @@ def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: IO[bytes] @@ -909,7 +909,7 @@ def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Is either a SimpleProduct type or a IO[bytes] type. Default value is None. @@ -986,7 +986,7 @@ def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param product_id: Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in @@ -1068,7 +1068,7 @@ def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param flatten_parameter_group: Parameter group. Required. :type flatten_parameter_group: ~modelflattening.models.FlattenParameterGroup diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py index c8609377b5a..98a4a0065c2 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py @@ -554,7 +554,7 @@ async def put_cat(self, cat: Union[_models.Cat, IO[bytes]], **kwargs: Any) -> st @distributed_trace_async async def get_kitten(self, **kwargs: Any) -> _models.Kitten: """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet - is false. + is false. :return: Kitten or the result of cls(response) :rtype: ~multipleinheritance.models.Kitten @@ -601,7 +601,7 @@ async def get_kitten(self, **kwargs: Any) -> _models.Kitten: @overload async def put_kitten(self, kitten: _models.Kitten, *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -617,7 +617,7 @@ async def put_kitten(self, kitten: _models.Kitten, *, content_type: str = "appli @overload async def put_kitten(self, kitten: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -633,7 +633,7 @@ async def put_kitten(self, kitten: IO[bytes], *, content_type: str = "applicatio @distributed_trace_async async def put_kitten(self, kitten: Union[_models.Kitten, IO[bytes]], **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Is either a Kitten type or a IO[bytes] type. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py index 6a8d66d9e57..2ae6629c4cc 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/operations/_multiple_inheritance_service_client_operations.py @@ -700,7 +700,7 @@ def put_cat(self, cat: Union[_models.Cat, IO[bytes]], **kwargs: Any) -> str: @distributed_trace def get_kitten(self, **kwargs: Any) -> _models.Kitten: """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet - is false. + is false. :return: Kitten or the result of cls(response) :rtype: ~multipleinheritance.models.Kitten @@ -747,7 +747,7 @@ def get_kitten(self, **kwargs: Any) -> _models.Kitten: @overload def put_kitten(self, kitten: _models.Kitten, *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -763,7 +763,7 @@ def put_kitten(self, kitten: _models.Kitten, *, content_type: str = "application @overload def put_kitten(self, kitten: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -779,7 +779,7 @@ def put_kitten(self, kitten: IO[bytes], *, content_type: str = "application/json @distributed_trace def put_kitten(self, kitten: Union[_models.Kitten, IO[bytes]], **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Is either a Kitten type or a IO[bytes] type. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py index ef55b89af17..8983337c373 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py @@ -39,7 +39,7 @@ class _ObjectTypeClientOperationsMixin( @distributed_trace_async async def get(self, **kwargs: Any) -> JSON: """Basic get that returns an object. Returns object { 'message': 'An object was successfully - returned' }. + returned' }. :return: JSON or the result of cls(response) :rtype: JSON @@ -86,7 +86,7 @@ async def get(self, **kwargs: Any) -> JSON: @distributed_trace_async async def put(self, put_object: JSON, **kwargs: Any) -> None: """Basic put that puts an object. Pass in {'foo': 'bar'} to get a 200 and anything else to get an - object error. + object error. :param put_object: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py index 8859422e34e..e9f4b525fe1 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ObjectType/objecttype/operations/_object_type_client_operations.py @@ -72,7 +72,7 @@ class _ObjectTypeClientOperationsMixin( @distributed_trace def get(self, **kwargs: Any) -> JSON: """Basic get that returns an object. Returns object { 'message': 'An object was successfully - returned' }. + returned' }. :return: JSON or the result of cls(response) :rtype: JSON @@ -119,7 +119,7 @@ def get(self, **kwargs: Any) -> JSON: @distributed_trace def put(self, put_object: JSON, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an object. Pass in {'foo': 'bar'} to get a 200 and anything else to get an - object error. + object error. :param put_object: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/_anything_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/_anything_client.py index 7b3c2099c60..ae28e49e53e 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/_anything_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/_anything_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/_anything_client.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/_anything_client.py index 588e256c8af..24925710132 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/_anything_client.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/_anything_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/operations/_anything_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/operations/_anything_client_operations.py index ed71bce7c78..ac9797c8535 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/operations/_anything_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/aio/operations/_anything_client_operations.py @@ -45,7 +45,7 @@ class _AnythingClientOperationsMixin( @distributed_trace_async async def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any or the result of cls(response) :rtype: any @@ -91,7 +91,7 @@ async def get_object(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_object(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -185,7 +185,7 @@ async def get_string(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_string(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -279,7 +279,7 @@ async def get_array(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_array(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/operations/_anything_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/operations/_anything_client_operations.py index fa92e03c7b7..01a6bc1cc86 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/operations/_anything_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/PackageModeDataPlane/packagemode/operations/_anything_client_operations.py @@ -124,7 +124,7 @@ class _AnythingClientOperationsMixin( @distributed_trace def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any or the result of cls(response) :rtype: any @@ -170,7 +170,7 @@ def get_object(self, **kwargs: Any) -> Any: @distributed_trace def put_object(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -264,7 +264,7 @@ def get_string(self, **kwargs: Any) -> Any: @distributed_trace def put_string(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -358,7 +358,7 @@ def get_array(self, **kwargs: Any) -> Any: @distributed_trace def put_array(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any 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 0a1fffc4824..bc1712d957b 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py index d5bcea87fa9..bae0e202ae9 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py @@ -184,7 +184,7 @@ async def put_required_binary_body(self, body_parameter: IO[bytes], **kwargs: An @distributed_trace_async async def post_required_integer_parameter(self, body_parameter: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put null and the client library should throw before - the request is sent. + the request is sent. :param body_parameter: Required. :type body_parameter: int @@ -287,7 +287,7 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] = @distributed_trace_async async def post_required_integer_property(self, value: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param value: Required. :type value: int @@ -391,7 +391,7 @@ async def post_optional_integer_property(self, value: Optional[int] = None, **kw @distributed_trace_async async def post_required_integer_header(self, header_parameter: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :param header_parameter: Required. :type header_parameter: int @@ -482,7 +482,7 @@ async def post_optional_integer_header(self, header_parameter: Optional[int] = N @distributed_trace_async async def post_required_string_parameter(self, body_parameter: str, **kwargs: Any) -> None: """Test explicitly required string. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: str @@ -585,7 +585,7 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N @distributed_trace_async async def post_required_string_property(self, value: str, **kwargs: Any) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param value: Required. :type value: str @@ -689,7 +689,7 @@ async def post_optional_string_property(self, value: Optional[str] = None, **kwa @distributed_trace_async async def post_required_string_header(self, header_parameter: str, **kwargs: Any) -> None: """Test explicitly required string. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :param header_parameter: Required. :type header_parameter: str @@ -782,7 +782,7 @@ async def post_required_class_parameter( self, body_parameter: _models.Product, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: ~requiredoptional.models.Product @@ -799,7 +799,7 @@ async def post_required_class_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -816,7 +816,7 @@ async def post_required_class_parameter( self, body_parameter: Union[_models.Product, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Is either a Product type or a IO[bytes] type. Required. :type body_parameter: ~requiredoptional.models.Product or IO[bytes] @@ -967,7 +967,7 @@ async def post_optional_class_parameter( @distributed_trace_async async def post_required_class_property(self, value: _models.Product, **kwargs: Any) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param value: Required. :type value: ~requiredoptional.models.Product @@ -1073,7 +1073,7 @@ async def post_required_array_parameter( self, body_parameter: list[str], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: list[str] @@ -1090,7 +1090,7 @@ async def post_required_array_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1105,7 +1105,7 @@ async def post_required_array_parameter( @distributed_trace_async async def post_required_array_parameter(self, body_parameter: Union[list[str], IO[bytes]], **kwargs: Any) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Is either a [str] type or a IO[bytes] type. Required. :type body_parameter: list[str] or IO[bytes] @@ -1256,7 +1256,7 @@ async def post_optional_array_parameter( @distributed_trace_async async def post_required_array_property(self, value: list[str], **kwargs: Any) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param value: Required. :type value: list[str] @@ -1360,7 +1360,7 @@ async def post_optional_array_property(self, value: Optional[list[str]] = None, @distributed_trace_async async def post_required_array_header(self, header_parameter: list[str], **kwargs: Any) -> None: """Test explicitly required array. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :param header_parameter: Required. :type header_parameter: list[str] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py index 009d2ebe7ec..aab0b022639 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/RequiredOptional/requiredoptional/operations/_explicit_operations.py @@ -583,7 +583,7 @@ def post_required_integer_parameter( # pylint: disable=inconsistent-return-stat self, body_parameter: int, **kwargs: Any ) -> None: """Test explicitly required integer. Please put null and the client library should throw before - the request is sent. + the request is sent. :param body_parameter: Required. :type body_parameter: int @@ -690,7 +690,7 @@ def post_required_integer_property( # pylint: disable=inconsistent-return-state self, value: int, **kwargs: Any ) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param value: Required. :type value: int @@ -798,7 +798,7 @@ def post_required_integer_header( # pylint: disable=inconsistent-return-stateme self, header_parameter: int, **kwargs: Any ) -> None: """Test explicitly required integer. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :param header_parameter: Required. :type header_parameter: int @@ -893,7 +893,7 @@ def post_required_string_parameter( # pylint: disable=inconsistent-return-state self, body_parameter: str, **kwargs: Any ) -> None: """Test explicitly required string. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: str @@ -1000,7 +1000,7 @@ def post_required_string_property( # pylint: disable=inconsistent-return-statem self, value: str, **kwargs: Any ) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param value: Required. :type value: str @@ -1108,7 +1108,7 @@ def post_required_string_header( # pylint: disable=inconsistent-return-statemen self, header_parameter: str, **kwargs: Any ) -> None: """Test explicitly required string. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :param header_parameter: Required. :type header_parameter: str @@ -1203,7 +1203,7 @@ def post_required_class_parameter( self, body_parameter: _models.Product, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: ~requiredoptional.models.Product @@ -1220,7 +1220,7 @@ def post_required_class_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1237,7 +1237,7 @@ def post_required_class_parameter( # pylint: disable=inconsistent-return-statem self, body_parameter: Union[_models.Product, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Is either a Product type or a IO[bytes] type. Required. :type body_parameter: ~requiredoptional.models.Product or IO[bytes] @@ -1390,7 +1390,7 @@ def post_required_class_property( # pylint: disable=inconsistent-return-stateme self, value: _models.Product, **kwargs: Any ) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param value: Required. :type value: ~requiredoptional.models.Product @@ -1498,7 +1498,7 @@ def post_required_array_parameter( self, body_parameter: list[str], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: list[str] @@ -1515,7 +1515,7 @@ def post_required_array_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1532,7 +1532,7 @@ def post_required_array_parameter( # pylint: disable=inconsistent-return-statem self, body_parameter: Union[list[str], IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Is either a [str] type or a IO[bytes] type. Required. :type body_parameter: list[str] or IO[bytes] @@ -1685,7 +1685,7 @@ def post_required_array_property( # pylint: disable=inconsistent-return-stateme self, value: list[str], **kwargs: Any ) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param value: Required. :type value: list[str] @@ -1793,7 +1793,7 @@ def post_required_array_header( # pylint: disable=inconsistent-return-statement self, header_parameter: list[str], **kwargs: Any ) -> None: """Test explicitly required array. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :param header_parameter: Required. :type header_parameter: list[str] diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py index f686a798f3f..08b5d55738c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/operations/_reserved_words_client_operations.py @@ -271,7 +271,7 @@ async def operation_with_url( self, url: str, header_parameters: str, query_parameters: Optional[list[str]] = None, **kwargs: Any ) -> JSON: """Operation with path format argument URL, header param headerParameters, and query param - queryParameters. + queryParameters. :param url: Pass in 'foo'. Required. :type url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py index be8f1ee1179..765edcc97bf 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/operations/_reserved_words_client_operations.py @@ -376,7 +376,7 @@ def operation_with_url( self, url: str, header_parameters: str, query_parameters: Optional[list[str]] = None, **kwargs: Any ) -> JSON: """Operation with path format argument URL, header param headerParameters, and query param - queryParameters. + queryParameters. :param url: Pass in 'foo'. Required. :type url: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py index 3d8b4d6f2c8..900d70d67cd 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_auto_rest_url_test_service.py @@ -31,7 +31,7 @@ class AutoRestUrlTestService: # pylint: disable=client-accepts-api-version-keyw :ivar path_items: PathItemsOperations operations :vartype path_items: url.operations.PathItemsOperations :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py index 851a054b79a..ca7aeefceff 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/_configuration.py @@ -20,7 +20,7 @@ class AutoRestUrlTestServiceConfiguration: # pylint: disable=too-many-instance- attributes. :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service.py index 37032242a5d..d6438fe3e42 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_auto_rest_url_test_service.py @@ -31,7 +31,7 @@ class AutoRestUrlTestService: # pylint: disable=client-accepts-api-version-keyw :ivar path_items: PathItemsOperations operations :vartype path_items: url.aio.operations.PathItemsOperations :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py index 2aa7e05c074..6544b958c7a 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestUrlTestServiceConfiguration: # pylint: disable=too-many-instance- attributes. :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py index 70a469bbab0..4bb2c9134c0 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py @@ -65,8 +65,8 @@ async def get_all_with_values( **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -132,8 +132,8 @@ async def get_global_query_null( **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -199,8 +199,8 @@ async def get_global_and_local_query_null( **kwargs: Any ) -> None: """send globalStringPath=globalStringPath, pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery=null. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -266,8 +266,8 @@ async def get_local_path_item_query_null( **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery=null, localStringQuery=null. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery=null, localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py index b773fe31edb..988ea165400 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py @@ -1016,7 +1016,7 @@ async def date_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: """Get null as date - this should throw or be unusable on the client side, depending on date - representation. + representation. :param date_path: null as date (should throw). Required. :type date_path: ~datetime.date @@ -1196,7 +1196,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: @distributed_trace_async async def array_csv_in_path(self, array_path: list[str], **kwargs: Any) -> None: """Get an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :param array_path: an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py index 774bb2e0ee1..138fa83a438 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py @@ -1345,7 +1345,7 @@ async def date_time_null(self, date_time_query: Optional[datetime.datetime] = No @distributed_trace_async async def array_string_csv_valid(self, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Default value is None. @@ -1485,7 +1485,7 @@ async def array_string_no_collection_format_empty( self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Array query has no defined collection format, should default to csv. Pass in ['hello', 'nihao', - 'bonjour'] for the 'arrayQuery' parameter to the service. + 'bonjour'] for the 'arrayQuery' parameter to the service. :param array_query: Array-typed query parameter. Pass in ['hello', 'nihao', 'bonjour']. Default value is None. @@ -1532,7 +1532,7 @@ async def array_string_no_collection_format_empty( @distributed_trace_async async def array_string_ssv_valid(self, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - ssv-array format. + ssv-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format. Default value is None. @@ -1579,7 +1579,7 @@ async def array_string_ssv_valid(self, array_query: Optional[list[str]] = None, @distributed_trace_async async def array_string_tsv_valid(self, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - tsv-array format. + tsv-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format. Default value is None. @@ -1626,7 +1626,7 @@ async def array_string_tsv_valid(self, array_query: Optional[list[str]] = None, @distributed_trace_async async def array_string_pipes_valid(self, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - pipes-array format. + pipes-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format. Default value is None. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py index c4a6a07510a..378b3dce47c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_path_items_operations.py @@ -231,8 +231,8 @@ def get_all_with_values( # pylint: disable=inconsistent-return-statements **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -298,8 +298,8 @@ def get_global_query_null( # pylint: disable=inconsistent-return-statements **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -365,8 +365,8 @@ def get_global_and_local_query_null( # pylint: disable=inconsistent-return-stat **kwargs: Any ) -> None: """send globalStringPath=globalStringPath, pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery=null. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -432,8 +432,8 @@ def get_local_path_item_query_null( # pylint: disable=inconsistent-return-state **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery=null, localStringQuery=null. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery=null, localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py index 467ffe2e967..b3a4e18b85c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_paths_operations.py @@ -1533,7 +1533,7 @@ def date_null( # pylint: disable=inconsistent-return-statements self, date_path: datetime.date, **kwargs: Any ) -> None: """Get null as date - this should throw or be unusable on the client side, depending on date - representation. + representation. :param date_path: null as date (should throw). Required. :type date_path: ~datetime.date @@ -1719,7 +1719,7 @@ def array_csv_in_path( # pylint: disable=inconsistent-return-statements self, array_path: list[str], **kwargs: Any ) -> None: """Get an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :param array_path: an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Required. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py index c3abbbeae9d..84ee46e30c3 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Url/url/operations/_queries_operations.py @@ -2013,7 +2013,7 @@ def array_string_csv_valid( # pylint: disable=inconsistent-return-statements self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Default value is None. @@ -2157,7 +2157,7 @@ def array_string_no_collection_format_empty( # pylint: disable=inconsistent-ret self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Array query has no defined collection format, should default to csv. Pass in ['hello', 'nihao', - 'bonjour'] for the 'arrayQuery' parameter to the service. + 'bonjour'] for the 'arrayQuery' parameter to the service. :param array_query: Array-typed query parameter. Pass in ['hello', 'nihao', 'bonjour']. Default value is None. @@ -2206,7 +2206,7 @@ def array_string_ssv_valid( # pylint: disable=inconsistent-return-statements self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - ssv-array format. + ssv-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format. Default value is None. @@ -2255,7 +2255,7 @@ def array_string_tsv_valid( # pylint: disable=inconsistent-return-statements self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - tsv-array format. + tsv-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format. Default value is None. @@ -2304,7 +2304,7 @@ def array_string_pipes_valid( # pylint: disable=inconsistent-return-statements self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - pipes-array format. + pipes-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format. Default value is None. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py index 2cb7749d847..6a5095b7c95 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py @@ -149,7 +149,7 @@ async def array_string_multi_empty(self, array_query: Optional[list[str]] = None @distributed_trace_async async def array_string_multi_valid(self, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - mult-array format. + mult-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format. Default value is None. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py index 55ef45c8c9f..a5c29eee8e6 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/operations/_queries_operations.py @@ -217,7 +217,7 @@ def array_string_multi_valid( # pylint: disable=inconsistent-return-statements self, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - mult-array format. + mult-array format. :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format. Default value is None. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py index c07bcf05f0a..447a0b1b62c 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_auto_rest_validation_test.py @@ -29,7 +29,7 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py index 1add1aba060..b2913e0070f 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/_configuration.py @@ -22,7 +22,7 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py index ced893f7b63..612cf1d3ea6 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_auto_rest_validation_test.py @@ -29,7 +29,7 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :param base_url: Service URL. Default value is "http://localhost:3000". :type base_url: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py index 6e21549ae9c..51cd988d8e2 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_configuration.py @@ -22,7 +22,7 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py index 9c154ba3096..0b6adea7325 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py @@ -1372,7 +1372,7 @@ async def list_blobs(self, **kwargs: Any) -> _models.ListBlobsResponse: @distributed_trace_async async def json_input(self, id: Optional[int] = None, **kwargs: Any) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param id: Default value is None. :type id: int @@ -1467,7 +1467,7 @@ async def json_output(self, **kwargs: Any) -> _models.JSONOutput: @distributed_trace_async async def get_xms_text(self, **kwargs: Any) -> _models.ObjectWithXMsTextProperty: """Get back an XML object with an x-ms-text property, which should translate to the returned - object's 'language' property being 'english' and its 'content' property being 'I am text'. + object's 'language' property being 'english' and its 'content' property being 'I am text'. :return: ObjectWithXMsTextProperty or the result of cls(response) :rtype: ~xmlservice.models.ObjectWithXMsTextProperty diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py index 68fd54b1dad..052df73e530 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/models/_models_py3.py @@ -630,9 +630,9 @@ def __init__( class CorsRule(_serialization.Model): """CORS is an HTTP feature that enables a web application running under one domain to access - resources in another domain. Web browsers implement a security restriction known as same-origin - policy that prevents a web page from calling APIs in a different domain; CORS provides a secure - way to allow one domain (the origin domain) to call APIs in another domain. + resources in another domain. Web browsers implement a security restriction known as same-origin + policy that prevents a web page from calling APIs in a different domain; CORS provides a secure + way to allow one domain (the origin domain) to call APIs in another domain. All required parameters must be populated in order to send to server. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py index 6dc7606809a..a1022ea0ab7 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Xml/xmlservice/operations/_xml_operations.py @@ -1890,7 +1890,7 @@ def json_input( # pylint: disable=inconsistent-return-statements self, id: Optional[int] = None, **kwargs: Any ) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param id: Default value is None. :type id: int @@ -1985,7 +1985,7 @@ def json_output(self, **kwargs: Any) -> _models.JSONOutput: @distributed_trace def get_xms_text(self, **kwargs: Any) -> _models.ObjectWithXMsTextProperty: """Get back an XML object with an x-ms-text property, which should translate to the returned - object's 'language' property being 'english' and its 'content' property being 'I am text'. + object's 'language' property being 'english' and its 'content' property being 'I am text'. :return: ObjectWithXMsTextProperty or the result of cls(response) :rtype: ~xmlservice.models.ObjectWithXMsTextProperty diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py index dbc24659f4a..80112296359 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py @@ -164,7 +164,7 @@ async def do_something(self, what_action: str, **kwargs: Any) -> _models.PetActi @distributed_trace_async async def has_models_param(self, models: str = "value1", **kwargs: Any) -> None: """Ensure you can correctly deserialize the returned PetActionError and deserialization doesn't - conflict with the input param name 'models'. + conflict with the input param name 'models'. :param models: Make sure model deserialization doesn't conflict with this param name, which has input name 'models'. Use client default value in call. Default value is "value1". diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/models/_models_py3.py index b8c8e93beb7..30e50fcf344 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/models/_models_py3.py @@ -55,7 +55,7 @@ class NotFoundErrorBase(BaseError): """NotFoundErrorBase. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AnimalNotFound, LinkNotFound + AnimalNotFound, LinkNotFound All required parameters must be populated in order to send to server. @@ -238,7 +238,7 @@ class PetActionError(PetAction): """PetActionError. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - PetSadError + PetSadError All required parameters must be populated in order to send to server. @@ -280,7 +280,7 @@ class PetSadError(PetActionError): """PetSadError. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - PetHungryOrThirstyError + PetHungryOrThirstyError All required parameters must be populated in order to send to server. diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py index 2ac6c07f0f4..cba9cc9f1b4 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/operations/_pet_operations.py @@ -222,7 +222,7 @@ def has_models_param( # pylint: disable=inconsistent-return-statements self, models: str = "value1", **kwargs: Any ) -> None: """Ensure you can correctly deserialize the returned PetActionError and deserialization doesn't - conflict with the input param name 'models'. + conflict with the input param name 'models'. :param models: Make sure model deserialization doesn't conflict with this param name, which has input name 'models'. Use client default value in call. Default value is "value1". diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py index c1086c82090..630833b6dc0 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/aio/operations/_operations.py @@ -78,16 +78,16 @@ async def create_ap_true( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -111,9 +111,9 @@ async def create_ap_true( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -132,16 +132,16 @@ async def create_ap_true(self, create_parameters: Union[JSON, IO[bytes]], **kwar # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -216,18 +216,18 @@ async def create_cat_ap_true( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } """ @@ -251,10 +251,10 @@ async def create_cat_ap_true( # response body for status code(s): 200 response == { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } """ @@ -273,18 +273,18 @@ async def create_cat_ap_true(self, create_parameters: Union[JSON, IO[bytes]], ** # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -359,16 +359,16 @@ async def create_ap_object( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -392,9 +392,9 @@ async def create_ap_object( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -413,16 +413,16 @@ async def create_ap_object(self, create_parameters: Union[JSON, IO[bytes]], **kw # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -497,16 +497,16 @@ async def create_ap_string( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -530,9 +530,9 @@ async def create_ap_string( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -551,16 +551,16 @@ async def create_ap_string(self, create_parameters: Union[JSON, IO[bytes]], **kw # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -635,16 +635,16 @@ async def create_ap_in_properties( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -668,9 +668,9 @@ async def create_ap_in_properties( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -689,16 +689,16 @@ async def create_ap_in_properties(self, create_parameters: Union[JSON, IO[bytes] # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -773,24 +773,24 @@ async def create_ap_in_properties_with_ap_string( # JSON input template you can fill out and use as your body input. create_parameters = { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } """ @@ -814,13 +814,13 @@ async def create_ap_in_properties_with_ap_string( # response body for status code(s): 200 response == { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } """ @@ -841,24 +841,24 @@ async def create_ap_in_properties_with_ap_string( # JSON input template you can fill out and use as your body input. create_parameters = { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py index 0f7973d6840..ca060627673 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AdditionalPropertiesVersionTolerant/additionalpropertiesversiontolerant/operations/_operations.py @@ -176,16 +176,16 @@ def create_ap_true(self, create_parameters: JSON, *, content_type: str = "applic # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -209,9 +209,9 @@ def create_ap_true( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -230,16 +230,16 @@ def create_ap_true(self, create_parameters: Union[JSON, IO[bytes]], **kwargs: An # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -314,18 +314,18 @@ def create_cat_ap_true( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } """ @@ -349,10 +349,10 @@ def create_cat_ap_true( # response body for status code(s): 200 response == { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } """ @@ -371,18 +371,18 @@ def create_cat_ap_true(self, create_parameters: Union[JSON, IO[bytes]], **kwargs # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "friendly": bool, - "name": "str", - "status": bool + "id": 0, + "friendly": bool, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -457,16 +457,16 @@ def create_ap_object( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -490,9 +490,9 @@ def create_ap_object( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -511,16 +511,16 @@ def create_ap_object(self, create_parameters: Union[JSON, IO[bytes]], **kwargs: # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -595,16 +595,16 @@ def create_ap_string( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -628,9 +628,9 @@ def create_ap_string( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -649,16 +649,16 @@ def create_ap_string(self, create_parameters: Union[JSON, IO[bytes]], **kwargs: # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -733,16 +733,16 @@ def create_ap_in_properties( # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -766,9 +766,9 @@ def create_ap_in_properties( # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ @@ -787,16 +787,16 @@ def create_ap_in_properties(self, create_parameters: Union[JSON, IO[bytes]], **k # JSON input template you can fill out and use as your body input. create_parameters = { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "id": 0, - "name": "str", - "status": bool + "id": 0, + "name": "str", + "status": bool } """ error_map: MutableMapping = { @@ -871,24 +871,24 @@ def create_ap_in_properties_with_ap_string( # JSON input template you can fill out and use as your body input. create_parameters = { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } """ @@ -912,13 +912,13 @@ def create_ap_in_properties_with_ap_string( # response body for status code(s): 200 response == { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } """ @@ -937,24 +937,24 @@ def create_ap_in_properties_with_ap_string(self, create_parameters: Union[JSON, # JSON input template you can fill out and use as your body input. create_parameters = { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } # response body for status code(s): 200 response == { - "@odata.location": "str", - "id": 0, - "additionalProperties": { - "str": 0.0 - }, - "name": "str", - "status": bool + "@odata.location": "str", + "id": 0, + "additionalProperties": { + "str": 0.0 + }, + "name": "str", + "status": bool } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_client.py index b41d8770ed1..afb7dc20fb2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py index 908c38fa791..0e198c1ea99 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/_operations/_operations.py @@ -124,7 +124,7 @@ class _AnythingClientOperationsMixin( @distributed_trace def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any :rtype: any @@ -173,7 +173,7 @@ def get_object(self, **kwargs: Any) -> Any: @distributed_trace def put_object(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -270,7 +270,7 @@ def get_string(self, **kwargs: Any) -> Any: @distributed_trace def put_string(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -367,7 +367,7 @@ def get_array(self, **kwargs: Any) -> Any: @distributed_trace def put_array(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_client.py index 3e1e99cf700..c995ad039ec 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_operations/_operations.py index 098a707e1cb..93d4cfc4713 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/anythingversiontolerant/aio/_operations/_operations.py @@ -45,7 +45,7 @@ class _AnythingClientOperationsMixin( @distributed_trace_async async def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any :rtype: any @@ -94,7 +94,7 @@ async def get_object(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_object(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -191,7 +191,7 @@ async def get_string(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_string(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -288,7 +288,7 @@ async def get_array(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_array(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py index a00f3df8565..7d9126a01b2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/AnythingVersionTolerant/setup.py @@ -29,6 +29,6 @@ "typing-extensions>=4.6.0", ], long_description="""\ - Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. """, ) diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py index 2b46c4d9d1c..29d1464ffb9 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/aio/operations/_operations.py @@ -136,7 +136,7 @@ async def get_null(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -192,7 +192,7 @@ async def get_invalid(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -248,7 +248,7 @@ async def get_empty(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -309,7 +309,7 @@ async def put_empty(self, array_body: list[str], *, content_type: str = "applica # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -395,7 +395,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> list[bool]: # response body for status code(s): 200 response == [ - bool + bool ] """ error_map: MutableMapping = { @@ -458,7 +458,7 @@ async def put_boolean_tfft( # JSON input template you can fill out and use as your body input. array_body = [ - bool + bool ] """ @@ -546,7 +546,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> list[bool]: # response body for status code(s): 200 response == [ - bool + bool ] """ error_map: MutableMapping = { @@ -602,7 +602,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> list[bool]: # response body for status code(s): 200 response == [ - bool + bool ] """ error_map: MutableMapping = { @@ -658,7 +658,7 @@ async def get_integer_valid(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -721,7 +721,7 @@ async def put_integer_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0 + 0 ] """ @@ -809,7 +809,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -865,7 +865,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -921,7 +921,7 @@ async def get_long_valid(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -984,7 +984,7 @@ async def put_long_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0 + 0 ] """ @@ -1072,7 +1072,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1128,7 +1128,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1184,7 +1184,7 @@ async def get_float_valid(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -1247,7 +1247,7 @@ async def put_float_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0.0 + 0.0 ] """ @@ -1335,7 +1335,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -1391,7 +1391,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -1447,7 +1447,7 @@ async def get_double_valid(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -1510,7 +1510,7 @@ async def put_double_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0.0 + 0.0 ] """ @@ -1598,7 +1598,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -1654,7 +1654,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -1710,7 +1710,7 @@ async def get_string_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -1773,7 +1773,7 @@ async def put_string_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -1861,7 +1861,7 @@ async def get_enum_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -1924,7 +1924,7 @@ async def put_enum_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -2012,7 +2012,7 @@ async def get_string_enum_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2075,7 +2075,7 @@ async def put_string_enum_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -2163,7 +2163,7 @@ async def get_string_with_null(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2219,7 +2219,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2265,7 +2265,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str :rtype: list[str] @@ -2276,7 +2276,7 @@ async def get_uuid_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2323,8 +2323,8 @@ async def get_uuid_valid(self, **kwargs: Any) -> list[str]: 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']. + """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] @@ -2340,7 +2340,7 @@ async def put_uuid_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -2348,8 +2348,8 @@ async def put_uuid_valid( 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']. + """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] @@ -2363,8 +2363,8 @@ async def put_uuid_valid( @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']. + """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] @@ -2430,7 +2430,7 @@ async def get_uuid_invalid_chars(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2486,7 +2486,7 @@ async def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: # response body for status code(s): 200 response == [ - "2020-02-20" + "2020-02-20" ] """ error_map: MutableMapping = { @@ -2533,7 +2533,7 @@ async def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -2549,7 +2549,7 @@ async def put_date_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "2020-02-20" + "2020-02-20" ] """ @@ -2557,7 +2557,7 @@ async def put_date_valid( 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -2571,7 +2571,7 @@ async def put_date_valid( @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']. + """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] @@ -2637,7 +2637,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> list[datetime.date]: # response body for status code(s): 200 response == [ - "2020-02-20" + "2020-02-20" ] """ error_map: MutableMapping = { @@ -2693,7 +2693,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: # response body for status code(s): 200 response == [ - "2020-02-20" + "2020-02-20" ] """ error_map: MutableMapping = { @@ -2739,7 +2739,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -2750,7 +2750,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -2797,8 +2797,8 @@ async def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -2814,7 +2814,7 @@ async def put_date_time_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ @@ -2822,8 +2822,8 @@ async def put_date_time_valid( 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']. + """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] @@ -2837,8 +2837,8 @@ async def put_date_time_valid( @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']. + """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] @@ -2904,7 +2904,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> list[datetime.datet # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -2960,7 +2960,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.date # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -3006,7 +3006,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.date @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -3017,7 +3017,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.date # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -3064,8 +3064,8 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.date 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']. + """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] @@ -3081,7 +3081,7 @@ async def put_date_time_rfc1123_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ @@ -3089,8 +3089,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -3106,8 +3106,8 @@ async def put_date_time_rfc1123_valid( 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']. + """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] @@ -3173,7 +3173,7 @@ async def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: # response body for status code(s): 200 response == [ - "1 day, 0:00:00" + "1 day, 0:00:00" ] """ error_map: MutableMapping = { @@ -3220,7 +3220,7 @@ async def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: 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']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -3236,7 +3236,7 @@ async def put_duration_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "1 day, 0:00:00" + "1 day, 0:00:00" ] """ @@ -3244,7 +3244,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -3258,7 +3258,7 @@ async def put_duration_valid( @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']. + """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] @@ -3314,7 +3314,7 @@ async def put_duration_valid(self, array_body: Union[list[datetime.timedelta], I @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. + in base64. :return: list of bytes :rtype: list[bytes] @@ -3325,7 +3325,7 @@ async def get_byte_valid(self, **kwargs: Any) -> list[bytes]: # response body for status code(s): 200 response == [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ error_map: MutableMapping = { @@ -3373,7 +3373,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -3389,7 +3389,7 @@ async def put_byte_valid( # JSON input template you can fill out and use as your body input. array_body = [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ @@ -3398,7 +3398,7 @@ 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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3413,7 +3413,7 @@ async def put_byte_valid( @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. + 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] @@ -3479,7 +3479,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: # response body for status code(s): 200 response == [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ error_map: MutableMapping = { @@ -3525,7 +3525,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes :rtype: list[bytes] @@ -3536,7 +3536,7 @@ async def get_base64_url(self, **kwargs: Any) -> list[bytes]: # response body for status code(s): 200 response == [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ error_map: MutableMapping = { @@ -3592,10 +3592,10 @@ async def get_complex_null(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -3651,10 +3651,10 @@ async def get_complex_empty(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -3700,7 +3700,7 @@ async def get_complex_empty(self, **kwargs: Any) -> list[JSON]: @distributed_trace_async async def get_complex_item_null(self, **kwargs: Any) -> list[JSON]: """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, - 'string': '6'}]. + 'string': '6'}]. :return: list of JSON object :rtype: list[JSON] @@ -3711,10 +3711,10 @@ async def get_complex_item_null(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -3760,7 +3760,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> list[JSON]: @distributed_trace_async async def get_complex_item_empty(self, **kwargs: Any) -> list[JSON]: """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, - 'string': '6'}]. + 'string': '6'}]. :return: list of JSON object :rtype: list[JSON] @@ -3771,10 +3771,10 @@ async def get_complex_item_empty(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -3820,7 +3820,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> list[JSON]: @distributed_trace_async async def get_complex_valid(self, **kwargs: Any) -> list[JSON]: """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, - {'integer': 5, 'string': '6'}]. + {'integer': 5, 'string': '6'}]. :return: list of JSON object :rtype: list[JSON] @@ -3831,10 +3831,10 @@ async def get_complex_valid(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -3882,7 +3882,7 @@ async def put_complex_valid( self, array_body: list[JSON], *, 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[JSON] @@ -3898,10 +3898,10 @@ async def put_complex_valid( # JSON input template you can fill out and use as your body input. array_body = [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ @@ -3910,7 +3910,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -3925,7 +3925,7 @@ async def put_complex_valid( @distributed_trace_async async def put_complex_valid(self, array_body: Union[list[JSON], 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Is either a [JSON] type or a IO[bytes] type. Required. :type array_body: list[JSON] or IO[bytes] @@ -3991,9 +3991,9 @@ async def get_array_null(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -4049,9 +4049,9 @@ async def get_array_empty(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -4107,9 +4107,9 @@ async def get_array_item_null(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -4165,9 +4165,9 @@ async def get_array_item_empty(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -4223,9 +4223,9 @@ async def get_array_valid(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -4288,9 +4288,9 @@ async def put_array_valid( # JSON input template you can fill out and use as your body input. array_body = [ - [ - "str" - ] + [ + "str" + ] ] """ @@ -4378,9 +4378,9 @@ async def get_dictionary_null(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -4436,9 +4436,9 @@ async def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -4484,7 +4484,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4495,9 +4495,9 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -4543,7 +4543,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4554,9 +4554,9 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]] # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -4602,7 +4602,7 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]] @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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -4613,9 +4613,9 @@ async def get_dictionary_valid(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -4663,7 +4663,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -4679,9 +4679,9 @@ async def put_dictionary_valid( # JSON input template you can fill out and use as your body input. array_body = [ - { - "str": "str" - } + { + "str": "str" + } ] """ @@ -4690,7 +4690,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4705,7 +4705,7 @@ async def put_dictionary_valid( @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'}]. + '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] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py index 886d19b15c4..da5e79f3a20 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyArrayVersionTolerant/bodyarrayversiontolerant/operations/_operations.py @@ -1088,7 +1088,7 @@ def get_null(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1144,7 +1144,7 @@ def get_invalid(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1200,7 +1200,7 @@ def get_empty(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1261,7 +1261,7 @@ def put_empty(self, array_body: list[str], *, content_type: str = "application/j # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -1349,7 +1349,7 @@ def get_boolean_tfft(self, **kwargs: Any) -> list[bool]: # response body for status code(s): 200 response == [ - bool + bool ] """ error_map: MutableMapping = { @@ -1412,7 +1412,7 @@ def put_boolean_tfft( # JSON input template you can fill out and use as your body input. array_body = [ - bool + bool ] """ @@ -1500,7 +1500,7 @@ def get_boolean_invalid_null(self, **kwargs: Any) -> list[bool]: # response body for status code(s): 200 response == [ - bool + bool ] """ error_map: MutableMapping = { @@ -1556,7 +1556,7 @@ def get_boolean_invalid_string(self, **kwargs: Any) -> list[bool]: # response body for status code(s): 200 response == [ - bool + bool ] """ error_map: MutableMapping = { @@ -1612,7 +1612,7 @@ def get_integer_valid(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1675,7 +1675,7 @@ def put_integer_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0 + 0 ] """ @@ -1765,7 +1765,7 @@ def get_int_invalid_null(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1821,7 +1821,7 @@ def get_int_invalid_string(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1877,7 +1877,7 @@ def get_long_valid(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -1938,7 +1938,7 @@ def put_long_valid(self, array_body: list[int], *, content_type: str = "applicat # JSON input template you can fill out and use as your body input. array_body = [ - 0 + 0 ] """ @@ -2026,7 +2026,7 @@ def get_long_invalid_null(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -2082,7 +2082,7 @@ def get_long_invalid_string(self, **kwargs: Any) -> list[int]: # response body for status code(s): 200 response == [ - 0 + 0 ] """ error_map: MutableMapping = { @@ -2138,7 +2138,7 @@ def get_float_valid(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -2201,7 +2201,7 @@ def put_float_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0.0 + 0.0 ] """ @@ -2289,7 +2289,7 @@ def get_float_invalid_null(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -2345,7 +2345,7 @@ def get_float_invalid_string(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -2401,7 +2401,7 @@ def get_double_valid(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -2464,7 +2464,7 @@ def put_double_valid( # JSON input template you can fill out and use as your body input. array_body = [ - 0.0 + 0.0 ] """ @@ -2552,7 +2552,7 @@ def get_double_invalid_null(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -2608,7 +2608,7 @@ def get_double_invalid_string(self, **kwargs: Any) -> list[float]: # response body for status code(s): 200 response == [ - 0.0 + 0.0 ] """ error_map: MutableMapping = { @@ -2664,7 +2664,7 @@ def get_string_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2725,7 +2725,7 @@ def put_string_valid(self, array_body: list[str], *, content_type: str = "applic # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -2813,7 +2813,7 @@ def get_enum_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -2874,7 +2874,7 @@ def put_enum_valid(self, array_body: list[str], *, content_type: str = "applicat # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -2962,7 +2962,7 @@ def get_string_enum_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -3025,7 +3025,7 @@ def put_string_enum_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @@ -3115,7 +3115,7 @@ def get_string_with_null(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -3171,7 +3171,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -3217,7 +3217,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> list[str]: @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']. + 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. :return: list of str :rtype: list[str] @@ -3228,7 +3228,7 @@ def get_uuid_valid(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -3273,8 +3273,8 @@ def get_uuid_valid(self, **kwargs: Any) -> list[str]: @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']. + """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] @@ -3290,14 +3290,14 @@ def put_uuid_valid(self, array_body: list[str], *, content_type: str = "applicat # JSON input template you can fill out and use as your body input. array_body = [ - "str" + "str" ] """ @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']. + """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] @@ -3313,8 +3313,8 @@ def put_uuid_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3380,7 +3380,7 @@ def get_uuid_invalid_chars(self, **kwargs: Any) -> list[str]: # response body for status code(s): 200 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -3436,7 +3436,7 @@ def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: # response body for status code(s): 200 response == [ - "2020-02-20" + "2020-02-20" ] """ error_map: MutableMapping = { @@ -3483,7 +3483,7 @@ def get_date_valid(self, **kwargs: Any) -> list[datetime.date]: 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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: list[~datetime.date] @@ -3499,13 +3499,13 @@ def put_date_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "2020-02-20" + "2020-02-20" ] """ @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']. + """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: Required. :type array_body: IO[bytes] @@ -3521,7 +3521,7 @@ def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "applicat 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']. + """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] @@ -3587,7 +3587,7 @@ def get_date_invalid_null(self, **kwargs: Any) -> list[datetime.date]: # response body for status code(s): 200 response == [ - "2020-02-20" + "2020-02-20" ] """ error_map: MutableMapping = { @@ -3643,7 +3643,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: # response body for status code(s): 200 response == [ - "2020-02-20" + "2020-02-20" ] """ error_map: MutableMapping = { @@ -3689,7 +3689,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> list[datetime.date]: @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']. + '1492-10-12T10:15:01-08:00']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -3700,7 +3700,7 @@ def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -3747,8 +3747,8 @@ def get_date_time_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -3764,7 +3764,7 @@ def put_date_time_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ @@ -3772,8 +3772,8 @@ def put_date_time_valid( 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']. + """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] @@ -3789,8 +3789,8 @@ def put_date_time_valid( 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']. + """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] @@ -3856,7 +3856,7 @@ def get_date_time_invalid_null(self, **kwargs: Any) -> list[datetime.datetime]: # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -3912,7 +3912,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.datetime]: # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -3958,7 +3958,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> list[datetime.datetime]: @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']. + 'Wed, 12 Oct 1492 10:15:01 GMT']. :return: list of datetime :rtype: list[~datetime.datetime] @@ -3969,7 +3969,7 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.datetime]: # response body for status code(s): 200 response == [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ error_map: MutableMapping = { @@ -4016,8 +4016,8 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> list[datetime.datetime]: 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']. + """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] @@ -4033,7 +4033,7 @@ def put_date_time_rfc1123_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "2020-02-20 00:00:00" + "2020-02-20 00:00:00" ] """ @@ -4041,8 +4041,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -4058,8 +4058,8 @@ def put_date_time_rfc1123_valid( 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']. + """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] @@ -4125,7 +4125,7 @@ def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: # response body for status code(s): 200 response == [ - "1 day, 0:00:00" + "1 day, 0:00:00" ] """ error_map: MutableMapping = { @@ -4172,7 +4172,7 @@ def get_duration_valid(self, **kwargs: Any) -> list[datetime.timedelta]: def put_duration_valid( self, array_body: list[datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: list[~datetime.timedelta] @@ -4188,7 +4188,7 @@ def put_duration_valid( # JSON input template you can fill out and use as your body input. array_body = [ - "1 day, 0:00:00" + "1 day, 0:00:00" ] """ @@ -4196,7 +4196,7 @@ def put_duration_valid( def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. + """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: Required. :type array_body: IO[bytes] @@ -4212,7 +4212,7 @@ def put_duration_valid( 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']. + """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] @@ -4268,7 +4268,7 @@ def put_duration_valid( # pylint: disable=inconsistent-return-statements @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. + in base64. :return: list of bytes :rtype: list[bytes] @@ -4279,7 +4279,7 @@ def get_byte_valid(self, **kwargs: Any) -> list[bytes]: # response body for status code(s): 200 response == [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ error_map: MutableMapping = { @@ -4325,7 +4325,7 @@ def get_byte_valid(self, **kwargs: Any) -> list[bytes]: @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. + elementencoded in base 64. :param array_body: Required. :type array_body: list[bytes] @@ -4341,14 +4341,14 @@ def put_byte_valid(self, array_body: list[bytes], *, content_type: str = "applic # JSON input template you can fill out and use as your body input. array_body = [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ @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. + elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -4365,7 +4365,7 @@ 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. + 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] @@ -4431,7 +4431,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: # response body for status code(s): 200 response == [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ error_map: MutableMapping = { @@ -4477,7 +4477,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> list[bytes]: @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. + the items base64url encoded. :return: list of bytes :rtype: list[bytes] @@ -4488,7 +4488,7 @@ def get_base64_url(self, **kwargs: Any) -> list[bytes]: # response body for status code(s): 200 response == [ - bytes("bytes", encoding="utf-8") + bytes("bytes", encoding="utf-8") ] """ error_map: MutableMapping = { @@ -4544,10 +4544,10 @@ def get_complex_null(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -4603,10 +4603,10 @@ def get_complex_empty(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -4652,7 +4652,7 @@ def get_complex_empty(self, **kwargs: Any) -> list[JSON]: @distributed_trace def get_complex_item_null(self, **kwargs: Any) -> list[JSON]: """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, - 'string': '6'}]. + 'string': '6'}]. :return: list of JSON object :rtype: list[JSON] @@ -4663,10 +4663,10 @@ def get_complex_item_null(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -4712,7 +4712,7 @@ def get_complex_item_null(self, **kwargs: Any) -> list[JSON]: @distributed_trace def get_complex_item_empty(self, **kwargs: Any) -> list[JSON]: """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, - 'string': '6'}]. + 'string': '6'}]. :return: list of JSON object :rtype: list[JSON] @@ -4723,10 +4723,10 @@ def get_complex_item_empty(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -4772,7 +4772,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> list[JSON]: @distributed_trace def get_complex_valid(self, **kwargs: Any) -> list[JSON]: """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, - {'integer': 5, 'string': '6'}]. + {'integer': 5, 'string': '6'}]. :return: list of JSON object :rtype: list[JSON] @@ -4783,10 +4783,10 @@ def get_complex_valid(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ error_map: MutableMapping = { @@ -4834,7 +4834,7 @@ def put_complex_valid( self, array_body: list[JSON], *, 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: list[JSON] @@ -4850,10 +4850,10 @@ def put_complex_valid( # JSON input template you can fill out and use as your body input. array_body = [ - { - "integer": 0, - "string": "str" - } + { + "integer": 0, + "string": "str" + } ] """ @@ -4862,7 +4862,7 @@ 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -4879,7 +4879,7 @@ def put_complex_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[list[JSON], 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'}]. + 'string': '4'}, {'integer': 5, 'string': '6'}]. :param array_body: Is either a [JSON] type or a IO[bytes] type. Required. :type array_body: list[JSON] or IO[bytes] @@ -4945,9 +4945,9 @@ def get_array_null(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -5003,9 +5003,9 @@ def get_array_empty(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -5061,9 +5061,9 @@ def get_array_item_null(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -5119,9 +5119,9 @@ def get_array_item_empty(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -5177,9 +5177,9 @@ def get_array_valid(self, **kwargs: Any) -> list[list[str]]: # response body for status code(s): 200 response == [ - [ - "str" - ] + [ + "str" + ] ] """ error_map: MutableMapping = { @@ -5242,9 +5242,9 @@ def put_array_valid( # JSON input template you can fill out and use as your body input. array_body = [ - [ - "str" - ] + [ + "str" + ] ] """ @@ -5332,9 +5332,9 @@ def get_dictionary_null(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -5390,9 +5390,9 @@ def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -5438,7 +5438,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -5449,9 +5449,9 @@ def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -5497,7 +5497,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -5508,9 +5508,9 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -5556,7 +5556,7 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> list[dict[str, str]]: @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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :return: list of dict mapping str to str :rtype: list[dict[str, str]] @@ -5567,9 +5567,9 @@ def get_dictionary_valid(self, **kwargs: Any) -> list[dict[str, str]]: # response body for status code(s): 200 response == [ - { - "str": "str" - } + { + "str": "str" + } ] """ error_map: MutableMapping = { @@ -5617,7 +5617,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: list[dict[str, str]] @@ -5633,9 +5633,9 @@ def put_dictionary_valid( # JSON input template you can fill out and use as your body input. array_body = [ - { - "str": "str" - } + { + "str": "str" + } ] """ @@ -5644,7 +5644,7 @@ 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'}]. + 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. :param array_body: Required. :type array_body: IO[bytes] @@ -5661,7 +5661,7 @@ 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'}]. + '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] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py index eb71839da91..d5399fac630 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_client.py @@ -46,7 +46,7 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :vartype polymorphism: bodycomplexversiontolerant.operations.PolymorphismOperations :ivar polymorphicrecursive: PolymorphicrecursiveOperations operations :vartype polymorphicrecursive: - bodycomplexversiontolerant.operations.PolymorphicrecursiveOperations + bodycomplexversiontolerant.operations.PolymorphicrecursiveOperations :ivar readonlyproperty: ReadonlypropertyOperations operations :vartype readonlyproperty: bodycomplexversiontolerant.operations.ReadonlypropertyOperations :ivar flattencomplex: FlattencomplexOperations operations @@ -54,7 +54,7 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py index 6f524f6076f..e82ba2c11f0 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta attributes. :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py index f78792e0eef..7f5d30cc107 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_client.py @@ -46,7 +46,7 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :vartype polymorphism: bodycomplexversiontolerant.aio.operations.PolymorphismOperations :ivar polymorphicrecursive: PolymorphicrecursiveOperations operations :vartype polymorphicrecursive: - bodycomplexversiontolerant.aio.operations.PolymorphicrecursiveOperations + bodycomplexversiontolerant.aio.operations.PolymorphicrecursiveOperations :ivar readonlyproperty: ReadonlypropertyOperations operations :vartype readonlyproperty: bodycomplexversiontolerant.aio.operations.ReadonlypropertyOperations :ivar flattencomplex: FlattencomplexOperations operations @@ -54,7 +54,7 @@ class AutoRestComplexTestService: # pylint: disable=too-many-instance-attribute :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py index 8924f21ccda..be87e0555db 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestComplexTestServiceConfiguration: # pylint: disable=too-many-insta attributes. :keyword api_version: Api Version. Default value is "2016-02-29". Note that overriding this - default value may result in unsupported behavior. + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py index e52bdd1728c..8677b017eb2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/aio/operations/_operations.py @@ -121,9 +121,9 @@ async def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -184,9 +184,9 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ @@ -222,9 +222,9 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -286,9 +286,9 @@ async def get_invalid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -344,9 +344,9 @@ async def get_empty(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -402,9 +402,9 @@ async def get_null(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -460,9 +460,9 @@ async def get_not_provided(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -538,8 +538,8 @@ async def get_int(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -600,8 +600,8 @@ async def put_int(self, complex_body: JSON, *, content_type: str = "application/ # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ @@ -634,8 +634,8 @@ async def put_int(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -696,8 +696,8 @@ async def get_long(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -758,8 +758,8 @@ async def put_long(self, complex_body: JSON, *, content_type: str = "application # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ @@ -793,8 +793,8 @@ async def put_long(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -855,8 +855,8 @@ async def get_float(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0.0, - "field2": 0.0 + "field1": 0.0, + "field2": 0.0 } """ error_map: MutableMapping = { @@ -917,8 +917,8 @@ async def put_float(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, - "field2": 0.0 + "field1": 0.0, + "field2": 0.0 } """ @@ -954,8 +954,8 @@ async def put_float(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, - "field2": 0.0 + "field1": 0.0, + "field2": 0.0 } """ error_map: MutableMapping = { @@ -1016,9 +1016,9 @@ async def get_double(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0.0, + "field1": 0.0, "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": - 0.0 + 0.0 } """ error_map: MutableMapping = { @@ -1080,9 +1080,9 @@ async def put_double(self, complex_body: JSON, *, content_type: str = "applicati # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, + "field1": 0.0, "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": - 0.0 + 0.0 } """ @@ -1120,9 +1120,9 @@ async def put_double(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, + "field1": 0.0, "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": - 0.0 + 0.0 } """ error_map: MutableMapping = { @@ -1183,8 +1183,8 @@ async def get_bool(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field_false": bool, - "field_true": bool + "field_false": bool, + "field_true": bool } """ error_map: MutableMapping = { @@ -1245,8 +1245,8 @@ async def put_bool(self, complex_body: JSON, *, content_type: str = "application # JSON input template you can fill out and use as your body input. complex_body = { - "field_false": bool, - "field_true": bool + "field_false": bool, + "field_true": bool } """ @@ -1280,8 +1280,8 @@ async def put_bool(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. complex_body = { - "field_false": bool, - "field_true": bool + "field_false": bool, + "field_true": bool } """ error_map: MutableMapping = { @@ -1342,9 +1342,9 @@ async def get_string(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "empty": "str", - "field": "str", - "null": "str" + "empty": "str", + "field": "str", + "null": "str" } """ error_map: MutableMapping = { @@ -1405,9 +1405,9 @@ async def put_string(self, complex_body: JSON, *, content_type: str = "applicati # JSON input template you can fill out and use as your body input. complex_body = { - "empty": "str", - "field": "str", - "null": "str" + "empty": "str", + "field": "str", + "null": "str" } """ @@ -1443,9 +1443,9 @@ async def put_string(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) # JSON input template you can fill out and use as your body input. complex_body = { - "empty": "str", - "field": "str", - "null": "str" + "empty": "str", + "field": "str", + "null": "str" } """ error_map: MutableMapping = { @@ -1506,8 +1506,8 @@ async def get_date(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "2020-02-20", - "leap": "2020-02-20" + "field": "2020-02-20", + "leap": "2020-02-20" } """ error_map: MutableMapping = { @@ -1568,8 +1568,8 @@ async def put_date(self, complex_body: JSON, *, content_type: str = "application # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20", - "leap": "2020-02-20" + "field": "2020-02-20", + "leap": "2020-02-20" } """ @@ -1603,8 +1603,8 @@ async def put_date(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20", - "leap": "2020-02-20" + "field": "2020-02-20", + "leap": "2020-02-20" } """ error_map: MutableMapping = { @@ -1665,8 +1665,8 @@ async def get_date_time(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -1728,8 +1728,8 @@ async def put_date_time(self, complex_body: JSON, *, content_type: str = "applic # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ @@ -1766,8 +1766,8 @@ async def put_date_time(self, complex_body: Union[JSON, IO[bytes]], **kwargs: An # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -1828,8 +1828,8 @@ async def get_date_time_rfc1123(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -1893,8 +1893,8 @@ async def put_date_time_rfc1123( # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ @@ -1931,8 +1931,8 @@ async def put_date_time_rfc1123(self, complex_body: Union[JSON, IO[bytes]], **kw # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -1993,7 +1993,7 @@ async def get_duration(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "1 day, 0:00:00" + "field": "1 day, 0:00:00" } """ error_map: MutableMapping = { @@ -2054,7 +2054,7 @@ async def put_duration(self, complex_body: JSON, *, content_type: str = "applica # JSON input template you can fill out and use as your body input. complex_body = { - "field": "1 day, 0:00:00" + "field": "1 day, 0:00:00" } """ @@ -2090,7 +2090,7 @@ async def put_duration(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any # JSON input template you can fill out and use as your body input. complex_body = { - "field": "1 day, 0:00:00" + "field": "1 day, 0:00:00" } """ error_map: MutableMapping = { @@ -2151,7 +2151,7 @@ async def get_byte(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": bytes("bytes", encoding="utf-8") + "field": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -2213,7 +2213,7 @@ async def put_byte(self, complex_body: JSON, *, content_type: str = "application # JSON input template you can fill out and use as your body input. complex_body = { - "field": bytes("bytes", encoding="utf-8") + "field": bytes("bytes", encoding="utf-8") } """ @@ -2248,7 +2248,7 @@ async def put_byte(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> # JSON input template you can fill out and use as your body input. complex_body = { - "field": bytes("bytes", encoding="utf-8") + "field": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -2329,9 +2329,9 @@ async def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2393,9 +2393,9 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ @@ -2432,9 +2432,9 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2495,9 +2495,9 @@ async def get_empty(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2558,9 +2558,9 @@ async def put_empty(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ @@ -2596,9 +2596,9 @@ async def put_empty(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2659,9 +2659,9 @@ async def get_not_provided(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2737,9 +2737,9 @@ async def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -2801,9 +2801,9 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ @@ -2841,9 +2841,9 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -2904,9 +2904,9 @@ async def get_empty(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -2967,9 +2967,9 @@ async def put_empty(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ @@ -3005,9 +3005,9 @@ async def put_empty(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3068,9 +3068,9 @@ async def get_null(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3126,9 +3126,9 @@ async def get_not_provided(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3204,17 +3204,17 @@ async def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "breed": "str", - "color": "str", - "hates": [ - { - "food": "str", - "id": 0, - "name": "str" - } - ], - "id": 0, - "name": "str" + "breed": "str", + "color": "str", + "hates": [ + { + "food": "str", + "id": 0, + "name": "str" + } + ], + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -3277,17 +3277,17 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "breed": "str", - "color": "str", - "hates": [ - { - "food": "str", - "id": 0, - "name": "str" - } - ], - "id": 0, - "name": "str" + "breed": "str", + "color": "str", + "hates": [ + { + "food": "str", + "id": 0, + "name": "str" + } + ], + "id": 0, + "name": "str" } """ @@ -3327,17 +3327,17 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "breed": "str", - "color": "str", - "hates": [ - { - "food": "str", - "id": 0, - "name": "str" - } - ], - "id": 0, - "name": "str" + "breed": "str", + "color": "str", + "hates": [ + { + "food": "str", + "id": 0, + "name": "str" + } + ], + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -3417,58 +3417,58 @@ async def get_valid(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -3518,39 +3518,14 @@ async def get_valid(self, **kwargs: Any) -> JSON: async def put_valid(self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -3563,58 +3538,58 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -3627,39 +3602,14 @@ async def put_valid( ) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -3673,39 +3623,14 @@ async def put_valid( async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Is either a JSON type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. Is + either a JSON type or a IO[bytes] type. Required. :type complex_body: JSON or IO[bytes] :return: None :rtype: None @@ -3715,58 +3640,58 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -3829,14 +3754,14 @@ async def get_dot_syntax(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fish.type": + off discriminator "fish.type": # JSON input template for discriminator value "DotSalmon": dot_fish = { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" } # response body for status code(s): 200 @@ -3885,8 +3810,8 @@ async def get_dot_syntax(self, **kwargs: Any) -> JSON: @distributed_trace_async async def get_composed_with_discriminator(self, **kwargs: Any) -> JSON: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. + element type, with discriminator specified. Deserialization must NOT fail and use the + discriminator type specified on the wire. :return: JSON object :rtype: JSON @@ -3896,36 +3821,36 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fish.type": + off discriminator "fish.type": # JSON input template for discriminator value "DotSalmon": dot_fish = { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" } # response body for status code(s): 200 response == { - "fishes": [ - dot_fish - ], - "salmons": [ - { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } - ], - "sampleFish": dot_fish, - "sampleSalmon": { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } + "fishes": [ + dot_fish + ], + "salmons": [ + { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } + ], + "sampleFish": dot_fish, + "sampleSalmon": { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } } """ error_map: MutableMapping = { @@ -3971,8 +3896,8 @@ async def get_composed_with_discriminator(self, **kwargs: Any) -> JSON: @distributed_trace_async async def get_composed_without_discriminator(self, **kwargs: Any) -> JSON: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. + element type, without discriminator specified on wire. Deserialization must NOT fail and use + the explicit type of the property. :return: JSON object :rtype: JSON @@ -3982,36 +3907,36 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fish.type": + off discriminator "fish.type": # JSON input template for discriminator value "DotSalmon": dot_fish = { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" } # response body for status code(s): 200 response == { - "fishes": [ - dot_fish - ], - "salmons": [ - { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } - ], - "sampleFish": dot_fish, - "sampleSalmon": { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } + "fishes": [ + dot_fish + ], + "salmons": [ + { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } + ], + "sampleFish": dot_fish, + "sampleSalmon": { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } } """ error_map: MutableMapping = { @@ -4057,7 +3982,7 @@ async def get_composed_without_discriminator(self, **kwargs: Any) -> JSON: @distributed_trace_async async def get_complicated(self, **kwargs: Any) -> JSON: """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :return: JSON object :rtype: JSON @@ -4067,19 +3992,19 @@ async def get_complicated(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4130,7 +4055,7 @@ async def put_complicated( self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: JSON @@ -4145,19 +4070,19 @@ async def put_complicated( .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4169,7 +4094,7 @@ async def put_complicated( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: IO[bytes] @@ -4184,7 +4109,7 @@ async def put_complicated( @distributed_trace_async async def put_complicated(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Is either a JSON type or a IO[bytes] type. Required. :type complex_body: JSON or IO[bytes] @@ -4196,19 +4121,19 @@ async def put_complicated(self, complex_body: Union[JSON, IO[bytes]], **kwargs: .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4278,38 +4203,38 @@ async def put_missing_discriminator( .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. complex_body = salmon # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4335,19 +4260,19 @@ async def put_missing_discriminator( .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4368,38 +4293,38 @@ async def put_missing_discriminator(self, complex_body: Union[JSON, IO[bytes]], .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. complex_body = salmon # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4462,35 +4387,14 @@ async def put_valid_missing_required( self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -4503,58 +4407,58 @@ async def put_valid_missing_required( .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4566,35 +4470,14 @@ async def put_valid_missing_required( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -4607,35 +4490,15 @@ async def put_valid_missing_required( @distributed_trace_async async def put_valid_missing_required(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Is either a JSON type or a IO[bytes] type. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Is either a + JSON type or a IO[bytes] type. Required. :type complex_body: JSON or IO[bytes] :return: None :rtype: None @@ -4645,58 +4508,58 @@ async def put_valid_missing_required(self, complex_body: Union[JSON, IO[bytes]], .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4779,58 +4642,58 @@ async def get_valid(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4880,59 +4743,14 @@ async def get_valid(self, **kwargs: Any) -> JSON: async def put_valid(self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -4945,58 +4763,58 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -5009,59 +4827,14 @@ async def put_valid( ) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -5075,59 +4848,15 @@ async def put_valid( async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Is either a JSON type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Is either a JSON type or a IO[bytes] + type. Required. :type complex_body: JSON or IO[bytes] :return: None :rtype: None @@ -5137,58 +4866,58 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -5272,8 +5001,8 @@ async def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "id": "str", - "size": 0 + "id": "str", + "size": 0 } """ error_map: MutableMapping = { @@ -5334,8 +5063,8 @@ async def put_valid(self, complex_body: JSON, *, content_type: str = "applicatio # JSON input template you can fill out and use as your body input. complex_body = { - "id": "str", - "size": 0 + "id": "str", + "size": 0 } """ @@ -5370,8 +5099,8 @@ async def put_valid(self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any) - # JSON input template you can fill out and use as your body input. complex_body = { - "id": "str", - "size": 0 + "id": "str", + "size": 0 } """ error_map: MutableMapping = { @@ -5451,16 +5180,16 @@ async def get_valid(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "kind": + off discriminator "kind": # JSON input template for discriminator value "Kind1": my_base_type = { - "kind": "Kind1", - "helper": { - "propBH1": "str" - }, - "propB1": "str", - "propD1": "str" + "kind": "Kind1", + "helper": { + "propBH1": "str" + }, + "propB1": "str", + "propD1": "str" } # response body for status code(s): 200 diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py index 3276d493155..68a8a581273 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyComplexVersionTolerant/bodycomplexversiontolerant/operations/_operations.py @@ -917,9 +917,9 @@ def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -980,9 +980,9 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ @@ -1018,9 +1018,9 @@ def put_valid( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1082,9 +1082,9 @@ def get_invalid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1140,9 +1140,9 @@ def get_empty(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1198,9 +1198,9 @@ def get_null(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1256,9 +1256,9 @@ def get_not_provided(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "color": "str", - "id": 0, - "name": "str" + "color": "str", + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1334,8 +1334,8 @@ def get_int(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -1396,8 +1396,8 @@ def put_int(self, complex_body: JSON, *, content_type: str = "application/json", # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ @@ -1432,8 +1432,8 @@ def put_int( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -1494,8 +1494,8 @@ def get_long(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -1556,8 +1556,8 @@ def put_long(self, complex_body: JSON, *, content_type: str = "application/json" # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ @@ -1593,8 +1593,8 @@ def put_long( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0, - "field2": 0 + "field1": 0, + "field2": 0 } """ error_map: MutableMapping = { @@ -1655,8 +1655,8 @@ def get_float(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0.0, - "field2": 0.0 + "field1": 0.0, + "field2": 0.0 } """ error_map: MutableMapping = { @@ -1717,8 +1717,8 @@ def put_float(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, - "field2": 0.0 + "field1": 0.0, + "field2": 0.0 } """ @@ -1754,8 +1754,8 @@ def put_float( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, - "field2": 0.0 + "field1": 0.0, + "field2": 0.0 } """ error_map: MutableMapping = { @@ -1816,9 +1816,9 @@ def get_double(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field1": 0.0, + "field1": 0.0, "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": - 0.0 + 0.0 } """ error_map: MutableMapping = { @@ -1880,9 +1880,9 @@ def put_double(self, complex_body: JSON, *, content_type: str = "application/jso # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, + "field1": 0.0, "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": - 0.0 + 0.0 } """ @@ -1920,9 +1920,9 @@ def put_double( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field1": 0.0, + "field1": 0.0, "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose": - 0.0 + 0.0 } """ error_map: MutableMapping = { @@ -1983,8 +1983,8 @@ def get_bool(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field_false": bool, - "field_true": bool + "field_false": bool, + "field_true": bool } """ error_map: MutableMapping = { @@ -2045,8 +2045,8 @@ def put_bool(self, complex_body: JSON, *, content_type: str = "application/json" # JSON input template you can fill out and use as your body input. complex_body = { - "field_false": bool, - "field_true": bool + "field_false": bool, + "field_true": bool } """ @@ -2082,8 +2082,8 @@ def put_bool( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field_false": bool, - "field_true": bool + "field_false": bool, + "field_true": bool } """ error_map: MutableMapping = { @@ -2144,9 +2144,9 @@ def get_string(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "empty": "str", - "field": "str", - "null": "str" + "empty": "str", + "field": "str", + "null": "str" } """ error_map: MutableMapping = { @@ -2207,9 +2207,9 @@ def put_string(self, complex_body: JSON, *, content_type: str = "application/jso # JSON input template you can fill out and use as your body input. complex_body = { - "empty": "str", - "field": "str", - "null": "str" + "empty": "str", + "field": "str", + "null": "str" } """ @@ -2245,9 +2245,9 @@ def put_string( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "empty": "str", - "field": "str", - "null": "str" + "empty": "str", + "field": "str", + "null": "str" } """ error_map: MutableMapping = { @@ -2308,8 +2308,8 @@ def get_date(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "2020-02-20", - "leap": "2020-02-20" + "field": "2020-02-20", + "leap": "2020-02-20" } """ error_map: MutableMapping = { @@ -2370,8 +2370,8 @@ def put_date(self, complex_body: JSON, *, content_type: str = "application/json" # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20", - "leap": "2020-02-20" + "field": "2020-02-20", + "leap": "2020-02-20" } """ @@ -2407,8 +2407,8 @@ def put_date( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20", - "leap": "2020-02-20" + "field": "2020-02-20", + "leap": "2020-02-20" } """ error_map: MutableMapping = { @@ -2469,8 +2469,8 @@ def get_date_time(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2532,8 +2532,8 @@ def put_date_time(self, complex_body: JSON, *, content_type: str = "application/ # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ @@ -2570,8 +2570,8 @@ def put_date_time( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2632,8 +2632,8 @@ def get_date_time_rfc1123(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2697,8 +2697,8 @@ def put_date_time_rfc1123( # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ @@ -2737,8 +2737,8 @@ def put_date_time_rfc1123( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field": "2020-02-20 00:00:00", - "now": "2020-02-20 00:00:00" + "field": "2020-02-20 00:00:00", + "now": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2799,7 +2799,7 @@ def get_duration(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": "1 day, 0:00:00" + "field": "1 day, 0:00:00" } """ error_map: MutableMapping = { @@ -2860,7 +2860,7 @@ def put_duration(self, complex_body: JSON, *, content_type: str = "application/j # JSON input template you can fill out and use as your body input. complex_body = { - "field": "1 day, 0:00:00" + "field": "1 day, 0:00:00" } """ @@ -2896,7 +2896,7 @@ def put_duration( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field": "1 day, 0:00:00" + "field": "1 day, 0:00:00" } """ error_map: MutableMapping = { @@ -2957,7 +2957,7 @@ def get_byte(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "field": bytes("bytes", encoding="utf-8") + "field": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -3019,7 +3019,7 @@ def put_byte(self, complex_body: JSON, *, content_type: str = "application/json" # JSON input template you can fill out and use as your body input. complex_body = { - "field": bytes("bytes", encoding="utf-8") + "field": bytes("bytes", encoding="utf-8") } """ @@ -3056,7 +3056,7 @@ def put_byte( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "field": bytes("bytes", encoding="utf-8") + "field": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -3137,9 +3137,9 @@ def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3201,9 +3201,9 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ @@ -3240,9 +3240,9 @@ def put_valid( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3303,9 +3303,9 @@ def get_empty(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3366,9 +3366,9 @@ def put_empty(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ @@ -3404,9 +3404,9 @@ def put_empty( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3467,9 +3467,9 @@ def get_not_provided(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "array": [ - "str" - ] + "array": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3545,9 +3545,9 @@ def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3609,9 +3609,9 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ @@ -3649,9 +3649,9 @@ def put_valid( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3712,9 +3712,9 @@ def get_empty(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3775,9 +3775,9 @@ def put_empty(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ @@ -3813,9 +3813,9 @@ def put_empty( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3876,9 +3876,9 @@ def get_null(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -3934,9 +3934,9 @@ def get_not_provided(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "defaultProgram": { - "str": "str" - } + "defaultProgram": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4012,17 +4012,17 @@ def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "breed": "str", - "color": "str", - "hates": [ - { - "food": "str", - "id": 0, - "name": "str" - } - ], - "id": 0, - "name": "str" + "breed": "str", + "color": "str", + "hates": [ + { + "food": "str", + "id": 0, + "name": "str" + } + ], + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -4085,17 +4085,17 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "breed": "str", - "color": "str", - "hates": [ - { - "food": "str", - "id": 0, - "name": "str" - } - ], - "id": 0, - "name": "str" + "breed": "str", + "color": "str", + "hates": [ + { + "food": "str", + "id": 0, + "name": "str" + } + ], + "id": 0, + "name": "str" } """ @@ -4135,17 +4135,17 @@ def put_valid( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "breed": "str", - "color": "str", - "hates": [ - { - "food": "str", - "id": 0, - "name": "str" - } - ], - "id": 0, - "name": "str" + "breed": "str", + "color": "str", + "hates": [ + { + "food": "str", + "id": 0, + "name": "str" + } + ], + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -4225,58 +4225,58 @@ def get_valid(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4326,39 +4326,14 @@ def get_valid(self, **kwargs: Any) -> JSON: def put_valid(self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -4371,58 +4346,58 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4433,39 +4408,14 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json def put_valid(self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. + Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -4481,39 +4431,14 @@ def put_valid( # pylint: disable=inconsistent-return-statements ) -> None: """Put complex types that are polymorphic. - :param complex_body: Please put a salmon that looks like this: - { - 'fishtype':'Salmon', - 'location':'alaska', - 'iswild':true, - 'species':'king', - 'length':1.0, - 'siblings':[ - { - 'fishtype':'Shark', - 'age':6, - 'birthday': '2012-01-05T01:00:00Z', - 'length':20.0, - 'species':'predator', - }, - { - 'fishtype':'Sawshark', - 'age':105, - 'birthday': '1900-01-05T01:00:00Z', - 'length':10.0, - 'picture': new Buffer([255, 255, 255, 255, 254]).toString('base64'), - 'species':'dangerous', - }, - { - 'fishtype': 'goblin', - 'age': 1, - 'birthday': '2015-08-08T00:00:00Z', - 'length': 30.0, - 'species': 'scary', - 'jawsize': 5 - } - ] - };. Is either a JSON type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { 'fishtype':'Salmon', + 'location':'alaska', 'iswild':true, 'species':'king', 'length':1.0, 'siblings':[ { + 'fishtype':'Shark', 'age':6, 'birthday': '2012-01-05T01:00:00Z', 'length':20.0, + 'species':'predator', }, { 'fishtype':'Sawshark', 'age':105, 'birthday': + '1900-01-05T01:00:00Z', 'length':10.0, 'picture': new Buffer([255, 255, 255, 255, + 254]).toString('base64'), 'species':'dangerous', }, { 'fishtype': 'goblin', 'age': 1, + 'birthday': '2015-08-08T00:00:00Z', 'length': 30.0, 'species': 'scary', 'jawsize': 5 } ] };. Is + either a JSON type or a IO[bytes] type. Required. :type complex_body: JSON or IO[bytes] :return: None :rtype: None @@ -4523,58 +4448,58 @@ def put_valid( # pylint: disable=inconsistent-return-statements .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4637,14 +4562,14 @@ def get_dot_syntax(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fish.type": + off discriminator "fish.type": # JSON input template for discriminator value "DotSalmon": dot_fish = { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" } # response body for status code(s): 200 @@ -4693,8 +4618,8 @@ def get_dot_syntax(self, **kwargs: Any) -> JSON: @distributed_trace def get_composed_with_discriminator(self, **kwargs: Any) -> JSON: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, with discriminator specified. Deserialization must NOT fail and use the - discriminator type specified on the wire. + element type, with discriminator specified. Deserialization must NOT fail and use the + discriminator type specified on the wire. :return: JSON object :rtype: JSON @@ -4704,36 +4629,36 @@ def get_composed_with_discriminator(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fish.type": + off discriminator "fish.type": # JSON input template for discriminator value "DotSalmon": dot_fish = { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" } # response body for status code(s): 200 response == { - "fishes": [ - dot_fish - ], - "salmons": [ - { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } - ], - "sampleFish": dot_fish, - "sampleSalmon": { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } + "fishes": [ + dot_fish + ], + "salmons": [ + { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } + ], + "sampleFish": dot_fish, + "sampleSalmon": { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } } """ error_map: MutableMapping = { @@ -4779,8 +4704,8 @@ def get_composed_with_discriminator(self, **kwargs: Any) -> JSON: @distributed_trace def get_composed_without_discriminator(self, **kwargs: Any) -> JSON: """Get complex object composing a polymorphic scalar property and array property with polymorphic - element type, without discriminator specified on wire. Deserialization must NOT fail and use - the explicit type of the property. + element type, without discriminator specified on wire. Deserialization must NOT fail and use + the explicit type of the property. :return: JSON object :rtype: JSON @@ -4790,36 +4715,36 @@ def get_composed_without_discriminator(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fish.type": + off discriminator "fish.type": # JSON input template for discriminator value "DotSalmon": dot_fish = { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" } # response body for status code(s): 200 response == { - "fishes": [ - dot_fish - ], - "salmons": [ - { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } - ], - "sampleFish": dot_fish, - "sampleSalmon": { - "fish.type": "DotSalmon", - "iswild": bool, - "location": "str", - "species": "str" - } + "fishes": [ + dot_fish + ], + "salmons": [ + { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } + ], + "sampleFish": dot_fish, + "sampleSalmon": { + "fish.type": "DotSalmon", + "iswild": bool, + "location": "str", + "species": "str" + } } """ error_map: MutableMapping = { @@ -4865,7 +4790,7 @@ def get_composed_without_discriminator(self, **kwargs: Any) -> JSON: @distributed_trace def get_complicated(self, **kwargs: Any) -> JSON: """Get complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :return: JSON object :rtype: JSON @@ -4875,19 +4800,19 @@ def get_complicated(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -4936,7 +4861,7 @@ def get_complicated(self, **kwargs: Any) -> JSON: @overload def put_complicated(self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: JSON @@ -4951,19 +4876,19 @@ def put_complicated(self, complex_body: JSON, *, content_type: str = "applicatio .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -4975,7 +4900,7 @@ def put_complicated( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Required. :type complex_body: IO[bytes] @@ -4992,7 +4917,7 @@ def put_complicated( # pylint: disable=inconsistent-return-statements self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have - additional properties. + additional properties. :param complex_body: Is either a JSON type or a IO[bytes] type. Required. :type complex_body: JSON or IO[bytes] @@ -5004,19 +4929,19 @@ def put_complicated( # pylint: disable=inconsistent-return-statements .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -5086,38 +5011,38 @@ def put_missing_discriminator( .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. complex_body = salmon # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -5143,19 +5068,19 @@ def put_missing_discriminator( .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -5176,38 +5101,38 @@ def put_missing_discriminator(self, complex_body: Union[JSON, IO[bytes]], **kwar .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. complex_body = salmon # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -5270,35 +5195,14 @@ def put_valid_missing_required( self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -5311,58 +5215,58 @@ def put_valid_missing_required( .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -5374,35 +5278,14 @@ def put_valid_missing_required( self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -5417,35 +5300,15 @@ def put_valid_missing_required( # pylint: disable=inconsistent-return-statement self, complex_body: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the - request should not be allowed from the client. + request should not be allowed from the client. :param complex_body: Please attempt put a sawshark that looks like this, the client should not - allow this data to be sent: - { - "fishtype": "sawshark", - "species": "snaggle toothed", - "length": 18.5, - "age": 2, - "birthday": "2013-06-01T01:00:00Z", - "location": "alaska", - "picture": base64(FF FF FF FF FE), - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "birthday": "2012-01-05T01:00:00Z", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "picture": base64(FF FF FF FF FE), - "length": 10, - "age": 105 - } - ] - }. Is either a JSON type or a IO[bytes] type. Required. + allow this data to be sent: { "fishtype": "sawshark", "species": "snaggle toothed", "length": + 18.5, "age": 2, "birthday": "2013-06-01T01:00:00Z", "location": "alaska", "picture": base64(FF + FF FF FF FE), "siblings": [ { "fishtype": "shark", "species": "predator", "birthday": + "2012-01-05T01:00:00Z", "length": 20, "age": 6 }, { "fishtype": "sawshark", "species": + "dangerous", "picture": base64(FF FF FF FF FE), "length": 10, "age": 105 } ] }. Is either a + JSON type or a IO[bytes] type. Required. :type complex_body: JSON or IO[bytes] :return: None :rtype: None @@ -5455,58 +5318,58 @@ def put_valid_missing_required( # pylint: disable=inconsistent-return-statement .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -5589,58 +5452,58 @@ def get_valid(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "fishtype": + off discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # response body for status code(s): 200 @@ -5690,59 +5553,14 @@ def get_valid(self, **kwargs: Any) -> JSON: def put_valid(self, complex_body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: JSON :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -5755,58 +5573,58 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -5817,59 +5635,14 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json def put_valid(self, complex_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Required. :type complex_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -5885,59 +5658,15 @@ def put_valid( # pylint: disable=inconsistent-return-statements ) -> None: """Put complex types that are polymorphic and have recursive references. - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }. Is either a JSON type or a IO[bytes] type. Required. + :param complex_body: Please put a salmon that looks like this: { "fishtype": "salmon", + "species": "king", "length": 1, "age": 1, "location": "alaska", "iswild": true, "siblings": [ { + "fishtype": "shark", "species": "predator", "length": 20, "age": 6, "siblings": [ { "fishtype": + "salmon", "species": "coho", "length": 2, "age": 2, "location": "atlantic", "iswild": true, + "siblings": [ { "fishtype": "shark", "species": "predator", "length": 20, "age": 6 }, { + "fishtype": "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": + "sawshark", "species": "dangerous", "length": 10, "age": 105 } ] }, { "fishtype": "sawshark", + "species": "dangerous", "length": 10, "age": 105 } ] }. Is either a JSON type or a IO[bytes] + type. Required. :type complex_body: JSON or IO[bytes] :return: None :rtype: None @@ -5947,58 +5676,58 @@ def put_valid( # pylint: disable=inconsistent-return-statements .. code-block:: python # The input is polymorphic. The following are possible polymorphic inputs based off - discriminator "fishtype": + discriminator "fishtype": # JSON input template for discriminator value "smart_salmon": fish = { - "fishtype": "smart_salmon", - "length": 0.0, - "college_degree": "str", - "iswild": bool, - "location": "str", - "siblings": [ - fish - ], - "species": "str" + "fishtype": "smart_salmon", + "length": 0.0, + "college_degree": "str", + "iswild": bool, + "location": "str", + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "cookiecuttershark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "cookiecuttershark", - "length": 0.0, - "age": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "cookiecuttershark", + "length": 0.0, + "age": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "goblin": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "goblin", - "length": 0.0, - "age": 0, - "color": "gray", - "jawsize": 0, - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "goblin", + "length": 0.0, + "age": 0, + "color": "gray", + "jawsize": 0, + "siblings": [ + fish + ], + "species": "str" } # JSON input template for discriminator value "sawshark": fish = { - "birthday": "2020-02-20 00:00:00", - "fishtype": "sawshark", - "length": 0.0, - "age": 0, - "picture": bytes("bytes", encoding="utf-8"), - "siblings": [ - fish - ], - "species": "str" + "birthday": "2020-02-20 00:00:00", + "fishtype": "sawshark", + "length": 0.0, + "age": 0, + "picture": bytes("bytes", encoding="utf-8"), + "siblings": [ + fish + ], + "species": "str" } # JSON input template you can fill out and use as your body input. @@ -6082,8 +5811,8 @@ def get_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "id": "str", - "size": 0 + "id": "str", + "size": 0 } """ error_map: MutableMapping = { @@ -6144,8 +5873,8 @@ def put_valid(self, complex_body: JSON, *, content_type: str = "application/json # JSON input template you can fill out and use as your body input. complex_body = { - "id": "str", - "size": 0 + "id": "str", + "size": 0 } """ @@ -6180,8 +5909,8 @@ def put_valid( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. complex_body = { - "id": "str", - "size": 0 + "id": "str", + "size": 0 } """ error_map: MutableMapping = { @@ -6261,16 +5990,16 @@ def get_valid(self, **kwargs: Any) -> JSON: .. code-block:: python # The response is polymorphic. The following are possible polymorphic responses based - off discriminator "kind": + off discriminator "kind": # JSON input template for discriminator value "Kind1": my_base_type = { - "kind": "Kind1", - "helper": { - "propBH1": "str" - }, - "propB1": "str", - "propD1": "str" + "kind": "Kind1", + "helper": { + "propBH1": "str" + }, + "propB1": "str", + "propD1": "str" } # response body for status code(s): 200 diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/_client.py index d4a5759f2c1..02c0c6e5c28 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/_client.py @@ -24,7 +24,7 @@ class AutoRestRFC1123DateTimeTestService: # pylint: disable=client-accepts-api- :ivar datetimerfc1123: Datetimerfc1123Operations operations :vartype datetimerfc1123: - bodydatetimerfc1123versiontolerant.operations.Datetimerfc1123Operations + bodydatetimerfc1123versiontolerant.operations.Datetimerfc1123Operations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/_client.py index 1f1375c2f6b..5e4cb292cc8 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeRfc1123VersionTolerant/bodydatetimerfc1123versiontolerant/aio/_client.py @@ -24,7 +24,7 @@ class AutoRestRFC1123DateTimeTestService: # pylint: disable=client-accepts-api- :ivar datetimerfc1123: Datetimerfc1123Operations operations :vartype datetimerfc1123: - bodydatetimerfc1123versiontolerant.aio.operations.Datetimerfc1123Operations + bodydatetimerfc1123versiontolerant.aio.operations.Datetimerfc1123Operations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py index 339e152964b..79a370c5712 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/aio/operations/_operations.py @@ -319,7 +319,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, """Put max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :param datetime_body: datetime body. Required. :type datetime_body: ~datetime.datetime @@ -466,7 +466,7 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> dateti """Get max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :return: datetime :rtype: ~datetime.datetime diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py index e9ee2ea4780..7cad3358359 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDateTimeVersionTolerant/bodydatetimeversiontolerant/operations/_operations.py @@ -665,7 +665,7 @@ def put_utc_max_date_time7_digits( # pylint: disable=inconsistent-return-statem """Put max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :param datetime_body: datetime body. Required. :type datetime_body: ~datetime.datetime @@ -812,7 +812,7 @@ def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> datetime.dat """Get max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in - that scenario. + that scenario. :return: datetime :rtype: ~datetime.datetime diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py index e9b9ad31e5f..d92b816da4c 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/aio/operations/_operations.py @@ -132,7 +132,7 @@ async def get_null(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -188,7 +188,7 @@ async def get_empty(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -251,7 +251,7 @@ async def put_empty( # JSON input template you can fill out and use as your body input. array_body = { - "str": "str" + "str": "str" } """ @@ -337,7 +337,7 @@ async def get_null_value(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -393,7 +393,7 @@ async def get_null_key(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -449,7 +449,7 @@ async def get_empty_string_key(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -505,7 +505,7 @@ async def get_invalid(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -561,7 +561,7 @@ async def get_boolean_tfft(self, **kwargs: Any) -> dict[str, bool]: # response body for status code(s): 200 response == { - "str": bool + "str": bool } """ error_map: MutableMapping = { @@ -624,7 +624,7 @@ async def put_boolean_tfft( # JSON input template you can fill out and use as your body input. array_body = { - "str": bool + "str": bool } """ @@ -712,7 +712,7 @@ async def get_boolean_invalid_null(self, **kwargs: Any) -> dict[str, bool]: # response body for status code(s): 200 response == { - "str": bool + "str": bool } """ error_map: MutableMapping = { @@ -768,7 +768,7 @@ async def get_boolean_invalid_string(self, **kwargs: Any) -> dict[str, bool]: # response body for status code(s): 200 response == { - "str": bool + "str": bool } """ error_map: MutableMapping = { @@ -824,7 +824,7 @@ async def get_integer_valid(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -887,7 +887,7 @@ async def put_integer_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0 + "str": 0 } """ @@ -975,7 +975,7 @@ async def get_int_invalid_null(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1031,7 +1031,7 @@ async def get_int_invalid_string(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1087,7 +1087,7 @@ async def get_long_valid(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1150,7 +1150,7 @@ async def put_long_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0 + "str": 0 } """ @@ -1238,7 +1238,7 @@ async def get_long_invalid_null(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1294,7 +1294,7 @@ async def get_long_invalid_string(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1350,7 +1350,7 @@ async def get_float_valid(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -1413,7 +1413,7 @@ async def put_float_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0.0 + "str": 0.0 } """ @@ -1501,7 +1501,7 @@ async def get_float_invalid_null(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -1557,7 +1557,7 @@ async def get_float_invalid_string(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -1613,7 +1613,7 @@ async def get_double_valid(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -1676,7 +1676,7 @@ async def put_double_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0.0 + "str": 0.0 } """ @@ -1764,7 +1764,7 @@ async def get_double_invalid_null(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -1820,7 +1820,7 @@ async def get_double_invalid_string(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -1876,7 +1876,7 @@ async def get_string_valid(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -1939,7 +1939,7 @@ async def put_string_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "str" + "str": "str" } """ @@ -2027,7 +2027,7 @@ async def get_string_with_null(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -2083,7 +2083,7 @@ async def get_string_with_invalid(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -2139,7 +2139,7 @@ async def get_date_valid(self, **kwargs: Any) -> dict[str, datetime.date]: # response body for status code(s): 200 response == { - "str": "2020-02-20" + "str": "2020-02-20" } """ error_map: MutableMapping = { @@ -2186,7 +2186,7 @@ async def get_date_valid(self, **kwargs: Any) -> dict[str, datetime.date]: async def put_date_valid( self, array_body: dict[str, datetime.date], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: dict[str, ~datetime.date] @@ -2202,7 +2202,7 @@ async def put_date_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "2020-02-20" + "str": "2020-02-20" } """ @@ -2210,7 +2210,7 @@ async def put_date_valid( async def put_date_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2224,7 +2224,7 @@ async def put_date_valid( @distributed_trace_async async def put_date_valid(self, array_body: Union[dict[str, datetime.date], IO[bytes]], **kwargs: Any) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Is either a {str: datetime.date} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.date] or IO[bytes] @@ -2290,7 +2290,7 @@ async def get_date_invalid_null(self, **kwargs: Any) -> dict[str, datetime.date] # response body for status code(s): 200 response == { - "str": "2020-02-20" + "str": "2020-02-20" } """ error_map: MutableMapping = { @@ -2346,7 +2346,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.date # response body for status code(s): 200 response == { - "str": "2020-02-20" + "str": "2020-02-20" } """ error_map: MutableMapping = { @@ -2392,7 +2392,7 @@ async def get_date_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.date @distributed_trace_async async def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", - "2": "1492-10-12T10:15:01-08:00"}. + "2": "1492-10-12T10:15:01-08:00"}. :return: dict mapping str to datetime :rtype: dict[str, ~datetime.datetime] @@ -2403,7 +2403,7 @@ async def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetim # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2450,8 +2450,8 @@ async def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetim async def put_date_time_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -2467,7 +2467,7 @@ async def put_date_time_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ @@ -2475,8 +2475,8 @@ async def put_date_time_valid( async def put_date_time_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2492,8 +2492,8 @@ async def put_date_time_valid( async def put_date_time_valid( self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -2559,7 +2559,7 @@ async def get_date_time_invalid_null(self, **kwargs: Any) -> dict[str, datetime. # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2615,7 +2615,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> dict[str, datetime # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2661,7 +2661,7 @@ async def get_date_time_invalid_chars(self, **kwargs: Any) -> dict[str, datetime @distributed_trace_async async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time-rfc1123 dictionary value {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan - 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :return: dict mapping str to datetime :rtype: dict[str, ~datetime.datetime] @@ -2672,7 +2672,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> dict[str, datetime # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -2720,7 +2720,7 @@ async def put_date_time_rfc1123_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -2736,7 +2736,7 @@ async def put_date_time_rfc1123_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ @@ -2745,7 +2745,7 @@ async def put_date_time_rfc1123_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2762,7 +2762,7 @@ async def put_date_time_rfc1123_valid( self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -2828,7 +2828,7 @@ async def get_duration_valid(self, **kwargs: Any) -> dict[str, datetime.timedelt # response body for status code(s): 200 response == { - "str": "1 day, 0:00:00" + "str": "1 day, 0:00:00" } """ error_map: MutableMapping = { @@ -2875,7 +2875,7 @@ async def get_duration_valid(self, **kwargs: Any) -> dict[str, datetime.timedelt async def put_duration_valid( self, array_body: dict[str, datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: dict[str, ~datetime.timedelta] @@ -2891,7 +2891,7 @@ async def put_duration_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "1 day, 0:00:00" + "str": "1 day, 0:00:00" } """ @@ -2899,7 +2899,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: IO[bytes] @@ -2915,7 +2915,7 @@ async def put_duration_valid( async def put_duration_valid( self, array_body: Union[dict[str, datetime.timedelta], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Is either a {str: datetime.timedelta} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.timedelta] or IO[bytes] @@ -2971,7 +2971,7 @@ async def put_duration_valid( @distributed_trace_async async def get_byte_valid(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each item encoded in base64. + with each item encoded in base64. :return: dict mapping str to bytes :rtype: dict[str, bytes] @@ -2982,7 +2982,7 @@ async def get_byte_valid(self, **kwargs: Any) -> dict[str, bytes]: # response body for status code(s): 200 response == { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -3030,7 +3030,7 @@ async def put_byte_valid( self, array_body: dict[str, bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: dict[str, bytes] @@ -3046,7 +3046,7 @@ async def put_byte_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ @@ -3055,7 +3055,7 @@ async def put_byte_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3070,7 +3070,7 @@ async def put_byte_valid( @distributed_trace_async async def put_byte_valid(self, array_body: Union[dict[str, bytes], IO[bytes]], **kwargs: Any) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Is either a {str: bytes} type or a IO[bytes] type. Required. :type array_body: dict[str, bytes] or IO[bytes] @@ -3126,7 +3126,7 @@ async def put_byte_valid(self, array_body: Union[dict[str, bytes], IO[bytes]], * @distributed_trace_async async def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": null} with the first item base64 - encoded. + encoded. :return: dict mapping str to bytes :rtype: dict[str, bytes] @@ -3137,7 +3137,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: # response body for status code(s): 200 response == { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -3183,7 +3183,7 @@ async def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: @distributed_trace_async async def get_base64_url(self, **kwargs: Any) -> dict[str, bytes]: """Get base64url dictionary value {"0": "a string that gets encoded with base64url", "1": "test - string", "2": "Lorem ipsum"}. + string", "2": "Lorem ipsum"}. :return: dict mapping str to bytes :rtype: dict[str, bytes] @@ -3194,7 +3194,7 @@ async def get_base64_url(self, **kwargs: Any) -> dict[str, bytes]: # response body for status code(s): 200 response == { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -3250,10 +3250,10 @@ async def get_complex_null(self, **kwargs: Any) -> Optional[dict[str, JSON]]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -3309,10 +3309,10 @@ async def get_complex_empty(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -3358,7 +3358,7 @@ async def get_complex_empty(self, **kwargs: Any) -> dict[str, JSON]: @distributed_trace_async async def get_complex_item_null(self, **kwargs: Any) -> dict[str, JSON]: """Get dictionary of complex type with null item {"0": {"integer": 1, "string": "2"}, "1": null, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -3369,10 +3369,10 @@ async def get_complex_item_null(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -3418,7 +3418,7 @@ async def get_complex_item_null(self, **kwargs: Any) -> dict[str, JSON]: @distributed_trace_async async def get_complex_item_empty(self, **kwargs: Any) -> dict[str, JSON]: """Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -3429,10 +3429,10 @@ async def get_complex_item_empty(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -3478,7 +3478,7 @@ async def get_complex_item_empty(self, **kwargs: Any) -> dict[str, JSON]: @distributed_trace_async async def get_complex_valid(self, **kwargs: Any) -> dict[str, JSON]: """Get dictionary of complex type with {"0": {"integer": 1, "string": "2"}, "1": {"integer": 3, - "string": "4"}, "2": {"integer": 5, "string": "6"}}. + "string": "4"}, "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -3489,10 +3489,10 @@ async def get_complex_valid(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -3540,7 +3540,7 @@ async def put_complex_valid( self, array_body: dict[str, JSON], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: dict[str, JSON] @@ -3556,10 +3556,10 @@ async def put_complex_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ @@ -3568,7 +3568,7 @@ async def put_complex_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -3583,7 +3583,7 @@ async def put_complex_valid( @distributed_trace_async async def put_complex_valid(self, array_body: Union[dict[str, JSON], IO[bytes]], **kwargs: Any) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Is either a {str: JSON} type or a IO[bytes] type. Required. :type array_body: dict[str, JSON] or IO[bytes] @@ -3649,9 +3649,9 @@ async def get_array_null(self, **kwargs: Any) -> Optional[dict[str, list[str]]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3707,9 +3707,9 @@ async def get_array_empty(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3765,9 +3765,9 @@ async def get_array_item_null(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3823,9 +3823,9 @@ async def get_array_item_empty(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3871,7 +3871,7 @@ async def get_array_item_empty(self, **kwargs: Any) -> dict[str, list[str]]: @distributed_trace_async async def get_array_valid(self, **kwargs: Any) -> dict[str, list[str]]: """Get an array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :return: dict mapping str to list of str :rtype: dict[str, list[str]] @@ -3882,9 +3882,9 @@ async def get_array_valid(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -3932,7 +3932,7 @@ async def put_array_valid( self, array_body: dict[str, list[str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: dict[str, list[str]] @@ -3948,9 +3948,9 @@ async def put_array_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ @@ -3959,7 +3959,7 @@ 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 {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: IO[bytes] @@ -3974,7 +3974,7 @@ async def put_array_valid( @distributed_trace_async async def put_array_valid(self, array_body: Union[dict[str, list[str]], IO[bytes]], **kwargs: Any) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Is either a {str: [str]} type or a IO[bytes] type. Required. :type array_body: dict[str, list[str]] or IO[bytes] @@ -4040,9 +4040,9 @@ async def get_dictionary_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4098,9 +4098,9 @@ async def get_dictionary_empty(self, **kwargs: Any) -> dict[str, dict[str, str]] # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4146,7 +4146,7 @@ async def get_dictionary_empty(self, **kwargs: Any) -> dict[str, dict[str, str]] @distributed_trace_async async def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str :rtype: dict[str, dict[str, str]] @@ -4157,9 +4157,9 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, s # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4205,7 +4205,7 @@ async def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, s @distributed_trace_async async def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str :rtype: dict[str, dict[str, str]] @@ -4216,9 +4216,9 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4264,8 +4264,8 @@ async def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, @distributed_trace_async async def get_dictionary_valid(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str :rtype: dict[str, dict[str, str]] @@ -4276,9 +4276,9 @@ async def get_dictionary_valid(self, **kwargs: Any) -> dict[str, dict[str, str]] # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4326,8 +4326,8 @@ async def put_dictionary_valid( self, array_body: dict[str, dict[str, str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: dict[str, dict[str, str]] @@ -4343,9 +4343,9 @@ async def put_dictionary_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ @@ -4354,8 +4354,8 @@ async def put_dictionary_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -4372,8 +4372,8 @@ async def put_dictionary_valid( self, array_body: Union[dict[str, dict[str, str]], IO[bytes]], **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Is either a {str: {str: str}} type or a IO[bytes] type. Required. :type array_body: dict[str, dict[str, str]] or IO[bytes] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py index 670f0c502de..b5774c60d1b 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyDictionaryVersionTolerant/bodydictionaryversiontolerant/operations/_operations.py @@ -1023,7 +1023,7 @@ def get_null(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1079,7 +1079,7 @@ def get_empty(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1140,7 +1140,7 @@ def put_empty(self, array_body: dict[str, str], *, content_type: str = "applicat # JSON input template you can fill out and use as your body input. array_body = { - "str": "str" + "str": "str" } """ @@ -1228,7 +1228,7 @@ def get_null_value(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -1284,7 +1284,7 @@ def get_null_key(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -1340,7 +1340,7 @@ def get_empty_string_key(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -1396,7 +1396,7 @@ def get_invalid(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -1452,7 +1452,7 @@ def get_boolean_tfft(self, **kwargs: Any) -> dict[str, bool]: # response body for status code(s): 200 response == { - "str": bool + "str": bool } """ error_map: MutableMapping = { @@ -1515,7 +1515,7 @@ def put_boolean_tfft( # JSON input template you can fill out and use as your body input. array_body = { - "str": bool + "str": bool } """ @@ -1603,7 +1603,7 @@ def get_boolean_invalid_null(self, **kwargs: Any) -> dict[str, bool]: # response body for status code(s): 200 response == { - "str": bool + "str": bool } """ error_map: MutableMapping = { @@ -1659,7 +1659,7 @@ def get_boolean_invalid_string(self, **kwargs: Any) -> dict[str, bool]: # response body for status code(s): 200 response == { - "str": bool + "str": bool } """ error_map: MutableMapping = { @@ -1715,7 +1715,7 @@ def get_integer_valid(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1778,7 +1778,7 @@ def put_integer_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0 + "str": 0 } """ @@ -1868,7 +1868,7 @@ def get_int_invalid_null(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1924,7 +1924,7 @@ def get_int_invalid_string(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -1980,7 +1980,7 @@ def get_long_valid(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -2043,7 +2043,7 @@ def put_long_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0 + "str": 0 } """ @@ -2131,7 +2131,7 @@ def get_long_invalid_null(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -2187,7 +2187,7 @@ def get_long_invalid_string(self, **kwargs: Any) -> dict[str, int]: # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -2243,7 +2243,7 @@ def get_float_valid(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -2306,7 +2306,7 @@ def put_float_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0.0 + "str": 0.0 } """ @@ -2394,7 +2394,7 @@ def get_float_invalid_null(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -2450,7 +2450,7 @@ def get_float_invalid_string(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -2506,7 +2506,7 @@ def get_double_valid(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -2569,7 +2569,7 @@ def put_double_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": 0.0 + "str": 0.0 } """ @@ -2657,7 +2657,7 @@ def get_double_invalid_null(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -2713,7 +2713,7 @@ def get_double_invalid_string(self, **kwargs: Any) -> dict[str, float]: # response body for status code(s): 200 response == { - "str": 0.0 + "str": 0.0 } """ error_map: MutableMapping = { @@ -2769,7 +2769,7 @@ def get_string_valid(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -2832,7 +2832,7 @@ def put_string_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "str" + "str": "str" } """ @@ -2920,7 +2920,7 @@ def get_string_with_null(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -2976,7 +2976,7 @@ def get_string_with_invalid(self, **kwargs: Any) -> dict[str, str]: # response body for status code(s): 200 response == { - "str": "str" + "str": "str" } """ error_map: MutableMapping = { @@ -3032,7 +3032,7 @@ def get_date_valid(self, **kwargs: Any) -> dict[str, datetime.date]: # response body for status code(s): 200 response == { - "str": "2020-02-20" + "str": "2020-02-20" } """ error_map: MutableMapping = { @@ -3079,7 +3079,7 @@ def get_date_valid(self, **kwargs: Any) -> dict[str, datetime.date]: def put_date_valid( self, array_body: dict[str, datetime.date], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: dict[str, ~datetime.date] @@ -3095,13 +3095,13 @@ def put_date_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "2020-02-20" + "str": "2020-02-20" } """ @overload def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3117,7 +3117,7 @@ def put_date_valid(self, array_body: IO[bytes], *, content_type: str = "applicat def put_date_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, datetime.date], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. + """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: Is either a {str: datetime.date} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.date] or IO[bytes] @@ -3183,7 +3183,7 @@ def get_date_invalid_null(self, **kwargs: Any) -> dict[str, datetime.date]: # response body for status code(s): 200 response == { - "str": "2020-02-20" + "str": "2020-02-20" } """ error_map: MutableMapping = { @@ -3239,7 +3239,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.date]: # response body for status code(s): 200 response == { - "str": "2020-02-20" + "str": "2020-02-20" } """ error_map: MutableMapping = { @@ -3285,7 +3285,7 @@ def get_date_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.date]: @distributed_trace def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", - "2": "1492-10-12T10:15:01-08:00"}. + "2": "1492-10-12T10:15:01-08:00"}. :return: dict mapping str to datetime :rtype: dict[str, ~datetime.datetime] @@ -3296,7 +3296,7 @@ def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -3343,8 +3343,8 @@ def get_date_time_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: def put_date_time_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -3360,7 +3360,7 @@ def put_date_time_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ @@ -3368,8 +3368,8 @@ def put_date_time_valid( def put_date_time_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3385,8 +3385,8 @@ def put_date_time_valid( def put_date_time_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": - "1492-10-12T10:15:01-08:00"}. + """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": + "1492-10-12T10:15:01-08:00"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -3452,7 +3452,7 @@ def get_date_time_invalid_null(self, **kwargs: Any) -> dict[str, datetime.dateti # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -3508,7 +3508,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.datet # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -3554,7 +3554,7 @@ def get_date_time_invalid_chars(self, **kwargs: Any) -> dict[str, datetime.datet @distributed_trace def get_date_time_rfc1123_valid(self, **kwargs: Any) -> dict[str, datetime.datetime]: """Get date-time-rfc1123 dictionary value {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan - 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :return: dict mapping str to datetime :rtype: dict[str, ~datetime.datetime] @@ -3565,7 +3565,7 @@ def get_date_time_rfc1123_valid(self, **kwargs: Any) -> dict[str, datetime.datet # response body for status code(s): 200 response == { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ error_map: MutableMapping = { @@ -3613,7 +3613,7 @@ def put_date_time_rfc1123_valid( self, array_body: dict[str, datetime.datetime], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: dict[str, ~datetime.datetime] @@ -3629,7 +3629,7 @@ def put_date_time_rfc1123_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "2020-02-20 00:00:00" + "str": "2020-02-20 00:00:00" } """ @@ -3638,7 +3638,7 @@ def put_date_time_rfc1123_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3655,7 +3655,7 @@ def put_date_time_rfc1123_valid( # pylint: disable=inconsistent-return-statemen self, array_body: Union[dict[str, datetime.datetime], IO[bytes]], **kwargs: Any ) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 - 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. + 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. :param array_body: Is either a {str: datetime.datetime} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.datetime] or IO[bytes] @@ -3721,7 +3721,7 @@ def get_duration_valid(self, **kwargs: Any) -> dict[str, datetime.timedelta]: # response body for status code(s): 200 response == { - "str": "1 day, 0:00:00" + "str": "1 day, 0:00:00" } """ error_map: MutableMapping = { @@ -3768,7 +3768,7 @@ def get_duration_valid(self, **kwargs: Any) -> dict[str, datetime.timedelta]: def put_duration_valid( self, array_body: dict[str, datetime.timedelta], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: dict[str, ~datetime.timedelta] @@ -3784,7 +3784,7 @@ def put_duration_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": "1 day, 0:00:00" + "str": "1 day, 0:00:00" } """ @@ -3792,7 +3792,7 @@ def put_duration_valid( def put_duration_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Required. :type array_body: IO[bytes] @@ -3808,7 +3808,7 @@ def put_duration_valid( def put_duration_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, datetime.timedelta], IO[bytes]], **kwargs: Any ) -> None: - """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. + """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: Is either a {str: datetime.timedelta} type or a IO[bytes] type. Required. :type array_body: dict[str, ~datetime.timedelta] or IO[bytes] @@ -3864,7 +3864,7 @@ def put_duration_valid( # pylint: disable=inconsistent-return-statements @distributed_trace def get_byte_valid(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each item encoded in base64. + with each item encoded in base64. :return: dict mapping str to bytes :rtype: dict[str, bytes] @@ -3875,7 +3875,7 @@ def get_byte_valid(self, **kwargs: Any) -> dict[str, bytes]: # response body for status code(s): 200 response == { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -3923,7 +3923,7 @@ def put_byte_valid( self, array_body: dict[str, bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: dict[str, bytes] @@ -3939,14 +3939,14 @@ def put_byte_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ @overload def put_byte_valid(self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Required. :type array_body: IO[bytes] @@ -3963,7 +3963,7 @@ def put_byte_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, bytes], IO[bytes]], **kwargs: Any ) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} - with each elementencoded in base 64. + with each elementencoded in base 64. :param array_body: Is either a {str: bytes} type or a IO[bytes] type. Required. :type array_body: dict[str, bytes] or IO[bytes] @@ -4019,7 +4019,7 @@ def put_byte_valid( # pylint: disable=inconsistent-return-statements @distributed_trace def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": null} with the first item base64 - encoded. + encoded. :return: dict mapping str to bytes :rtype: dict[str, bytes] @@ -4030,7 +4030,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: # response body for status code(s): 200 response == { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -4076,7 +4076,7 @@ def get_byte_invalid_null(self, **kwargs: Any) -> dict[str, bytes]: @distributed_trace def get_base64_url(self, **kwargs: Any) -> dict[str, bytes]: """Get base64url dictionary value {"0": "a string that gets encoded with base64url", "1": "test - string", "2": "Lorem ipsum"}. + string", "2": "Lorem ipsum"}. :return: dict mapping str to bytes :rtype: dict[str, bytes] @@ -4087,7 +4087,7 @@ def get_base64_url(self, **kwargs: Any) -> dict[str, bytes]: # response body for status code(s): 200 response == { - "str": bytes("bytes", encoding="utf-8") + "str": bytes("bytes", encoding="utf-8") } """ error_map: MutableMapping = { @@ -4143,10 +4143,10 @@ def get_complex_null(self, **kwargs: Any) -> Optional[dict[str, JSON]]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -4202,10 +4202,10 @@ def get_complex_empty(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -4251,7 +4251,7 @@ def get_complex_empty(self, **kwargs: Any) -> dict[str, JSON]: @distributed_trace def get_complex_item_null(self, **kwargs: Any) -> dict[str, JSON]: """Get dictionary of complex type with null item {"0": {"integer": 1, "string": "2"}, "1": null, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -4262,10 +4262,10 @@ def get_complex_item_null(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -4311,7 +4311,7 @@ def get_complex_item_null(self, **kwargs: Any) -> dict[str, JSON]: @distributed_trace def get_complex_item_empty(self, **kwargs: Any) -> dict[str, JSON]: """Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, - "2": {"integer": 5, "string": "6"}}. + "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -4322,10 +4322,10 @@ def get_complex_item_empty(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -4371,7 +4371,7 @@ def get_complex_item_empty(self, **kwargs: Any) -> dict[str, JSON]: @distributed_trace def get_complex_valid(self, **kwargs: Any) -> dict[str, JSON]: """Get dictionary of complex type with {"0": {"integer": 1, "string": "2"}, "1": {"integer": 3, - "string": "4"}, "2": {"integer": 5, "string": "6"}}. + "string": "4"}, "2": {"integer": 5, "string": "6"}}. :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -4382,10 +4382,10 @@ def get_complex_valid(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ error_map: MutableMapping = { @@ -4433,7 +4433,7 @@ def put_complex_valid( self, array_body: dict[str, JSON], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: dict[str, JSON] @@ -4449,10 +4449,10 @@ def put_complex_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": { - "integer": 0, - "string": "str" - } + "str": { + "integer": 0, + "string": "str" + } } """ @@ -4461,7 +4461,7 @@ def put_complex_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -4478,7 +4478,7 @@ def put_complex_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, JSON], IO[bytes]], **kwargs: Any ) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": - {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. + {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. :param array_body: Is either a {str: JSON} type or a IO[bytes] type. Required. :type array_body: dict[str, JSON] or IO[bytes] @@ -4544,9 +4544,9 @@ def get_array_null(self, **kwargs: Any) -> Optional[dict[str, list[str]]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -4602,9 +4602,9 @@ def get_array_empty(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -4660,9 +4660,9 @@ def get_array_item_null(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -4718,9 +4718,9 @@ def get_array_item_empty(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -4766,7 +4766,7 @@ def get_array_item_empty(self, **kwargs: Any) -> dict[str, list[str]]: @distributed_trace def get_array_valid(self, **kwargs: Any) -> dict[str, list[str]]: """Get an array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :return: dict mapping str to list of str :rtype: dict[str, list[str]] @@ -4777,9 +4777,9 @@ def get_array_valid(self, **kwargs: Any) -> dict[str, list[str]]: # response body for status code(s): 200 response == { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ error_map: MutableMapping = { @@ -4827,7 +4827,7 @@ def put_array_valid( self, array_body: dict[str, list[str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: dict[str, list[str]] @@ -4843,16 +4843,16 @@ def put_array_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": [ - "str" - ] + "str": [ + "str" + ] } """ @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 {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Required. :type array_body: IO[bytes] @@ -4869,7 +4869,7 @@ def put_array_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, list[str]], IO[bytes]], **kwargs: Any ) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", - "9"]}. + "9"]}. :param array_body: Is either a {str: [str]} type or a IO[bytes] type. Required. :type array_body: dict[str, list[str]] or IO[bytes] @@ -4935,9 +4935,9 @@ def get_dictionary_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -4993,9 +4993,9 @@ def get_dictionary_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -5041,7 +5041,7 @@ def get_dictionary_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: @distributed_trace def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str :rtype: dict[str, dict[str, str]] @@ -5052,9 +5052,9 @@ def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -5100,7 +5100,7 @@ def get_dictionary_item_null(self, **kwargs: Any) -> dict[str, dict[str, str]]: @distributed_trace def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str :rtype: dict[str, dict[str, str]] @@ -5111,9 +5111,9 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -5159,8 +5159,8 @@ def get_dictionary_item_empty(self, **kwargs: Any) -> dict[str, dict[str, str]]: @distributed_trace def get_dictionary_valid(self, **kwargs: Any) -> dict[str, dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :return: dict mapping str to dict mapping str to str :rtype: dict[str, dict[str, str]] @@ -5171,9 +5171,9 @@ def get_dictionary_valid(self, **kwargs: Any) -> dict[str, dict[str, str]]: # response body for status code(s): 200 response == { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ error_map: MutableMapping = { @@ -5221,8 +5221,8 @@ def put_dictionary_valid( self, array_body: dict[str, dict[str, str]], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: dict[str, dict[str, str]] @@ -5238,9 +5238,9 @@ def put_dictionary_valid( # JSON input template you can fill out and use as your body input. array_body = { - "str": { - "str": "str" - } + "str": { + "str": "str" + } } """ @@ -5249,8 +5249,8 @@ def put_dictionary_valid( self, array_body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Required. :type array_body: IO[bytes] @@ -5267,8 +5267,8 @@ def put_dictionary_valid( # pylint: disable=inconsistent-return-statements self, array_body: Union[dict[str, dict[str, str]], IO[bytes]], **kwargs: Any ) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": - "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": - "eight", "9": "nine"}}. + "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": + "eight", "9": "nine"}}. :param array_body: Is either a {str: {str: str}} type or a IO[bytes] type. Required. :type array_body: dict[str, dict[str, str]] or IO[bytes] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/_client.py index 8fd6dfbfa3a..bff7ab71411 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/_client.py @@ -24,7 +24,7 @@ class BodyFormsDataURLEncoded: # pylint: disable=client-accepts-api-version-key :ivar formdataurlencoded: FormdataurlencodedOperations operations :vartype formdataurlencoded: - bodyformurlencodeddataversiontolerant.operations.FormdataurlencodedOperations + bodyformurlencodeddataversiontolerant.operations.FormdataurlencodedOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/_client.py index b3033c96c14..1e2fa7f39f3 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/_client.py @@ -24,7 +24,7 @@ class BodyFormsDataURLEncoded: # pylint: disable=client-accepts-api-version-key :ivar formdataurlencoded: FormdataurlencodedOperations operations :vartype formdataurlencoded: - bodyformurlencodeddataversiontolerant.aio.operations.FormdataurlencodedOperations + bodyformurlencodeddataversiontolerant.aio.operations.FormdataurlencodedOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py index d3bcdc196f2..1b9c5c9cc69 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/aio/operations/_operations.py @@ -368,8 +368,8 @@ async def put_mbcs(self, **kwargs: Any) -> None: @distributed_trace_async async def get_whitespace(self, **kwargs: Any) -> str: """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str :rtype: str @@ -418,8 +418,8 @@ async def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace_async async def put_whitespace(self, **kwargs: Any) -> None: """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None :rtype: None @@ -931,8 +931,8 @@ async def get_referenced_constant(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "ColorConstant": "green-color", - "field1": "str" + "ColorConstant": "green-color", + "field1": "str" } """ error_map: MutableMapping = { @@ -995,8 +995,8 @@ async def put_referenced_constant( # JSON input template you can fill out and use as your body input. enum_string_body = { - "ColorConstant": "green-color", - "field1": "str" + "ColorConstant": "green-color", + "field1": "str" } """ @@ -1031,8 +1031,8 @@ async def put_referenced_constant(self, enum_string_body: Union[JSON, IO[bytes]] # JSON input template you can fill out and use as your body input. enum_string_body = { - "ColorConstant": "green-color", - "field1": "str" + "ColorConstant": "green-color", + "field1": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py index 5ecf7d67657..e64482dbb97 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyStringVersionTolerant/bodystringversiontolerant/operations/_operations.py @@ -654,8 +654,8 @@ def put_mbcs(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-retur @distributed_trace def get_whitespace(self, **kwargs: Any) -> str: """Get string value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: str :rtype: str @@ -704,8 +704,8 @@ def get_whitespace(self, **kwargs: Any) -> str: @distributed_trace def put_whitespace(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Set String value with leading and trailing whitespace '\\ :code:``\\ :code:``\\ - :code:``Now is the time for all good men to come to the aid of their country\\ - :code:``\\ :code:``\\ :code:``'. + :code:``Now is the time for all good men to come to the aid of their country\\ + :code:``\\ :code:``\\ :code:``'. :return: None :rtype: None @@ -1223,8 +1223,8 @@ def get_referenced_constant(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "ColorConstant": "green-color", - "field1": "str" + "ColorConstant": "green-color", + "field1": "str" } """ error_map: MutableMapping = { @@ -1287,8 +1287,8 @@ def put_referenced_constant( # JSON input template you can fill out and use as your body input. enum_string_body = { - "ColorConstant": "green-color", - "field1": "str" + "ColorConstant": "green-color", + "field1": "str" } """ @@ -1325,8 +1325,8 @@ def put_referenced_constant( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. enum_string_body = { - "ColorConstant": "green-color", - "field1": "str" + "ColorConstant": "green-color", + "field1": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_client.py index 7528dfc3743..921e50d6f4a 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_client.py @@ -27,16 +27,16 @@ class AutoRestSwaggerConstantService: # pylint: disable=client-accepts-api-vers :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_configuration.py index 68e55c59760..c9bdfc37184 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/_configuration.py @@ -20,16 +20,16 @@ class AutoRestSwaggerConstantServiceConfiguration: # pylint: disable=too-many-i attributes. :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_client.py index 999fc01988b..f18ed0646dc 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_client.py @@ -27,16 +27,16 @@ class AutoRestSwaggerConstantService: # pylint: disable=client-accepts-api-vers :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_configuration.py index 45e2eaaa9f5..e53e337c9ba 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/_configuration.py @@ -20,16 +20,16 @@ class AutoRestSwaggerConstantServiceConfiguration: # pylint: disable=too-many-i attributes. :keyword header_constant: Constant header property on the client that is a required parameter - for operation 'constants_putClientConstants'. Default value is True. Note that overriding this - default value may result in unsupported behavior. + for operation 'constants_putClientConstants'. Default value is True. Note that overriding this + default value may result in unsupported behavior. :paramtype header_constant: bool :keyword query_constant: Constant query property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is 100. Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is 100. Note that overriding this + default value may result in unsupported behavior. :paramtype query_constant: int :keyword path_constant: Constant path property on the client that is a required parameter for - operation 'constants_putClientConstants'. Default value is "path". Note that overriding this - default value may result in unsupported behavior. + operation 'constants_putClientConstants'. Default value is "path". Note that overriding this + default value may result in unsupported behavior. :paramtype path_constant: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py index 097b27f7849..2562bc8f970 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/aio/operations/_operations.py @@ -836,7 +836,7 @@ async def put_model_as_string_required_one_value_default( # pylint: disable=nam @distributed_trace_async async def put_client_constants(self, **kwargs: Any) -> None: """Pass constants from the client to this function. Will pass in constant path, query, and header - parameters. + parameters. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py index 08dda054778..9856ab724b2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ConstantsVersionTolerant/constantsversiontolerant/operations/_operations.py @@ -1079,7 +1079,7 @@ def put_model_as_string_required_one_value_default( # pylint: disable=inconsist @distributed_trace def put_client_constants(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Pass constants from the client to this function. Will pass in constant path, query, and header - parameters. + parameters. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_client.py index 221ca4a0265..abe55dc6e92 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_client.py @@ -27,7 +27,7 @@ class AutoRestParameterizedCustomHostTestClient: # pylint: disable=client-accep :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_configuration.py index eaeaac27bf0..9a07436554f 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/_configuration.py @@ -23,7 +23,7 @@ class AutoRestParameterizedCustomHostTestClientConfiguration: # pylint: disable :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_client.py index 970ff247152..40b895031f7 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_client.py @@ -27,7 +27,7 @@ class AutoRestParameterizedCustomHostTestClient: # pylint: disable=client-accep :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_configuration.py index a9ff1973031..a7870ffbb9b 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriMoreOptionsVersionTolerant/custombaseurlmoreoptionsversiontolerant/aio/_configuration.py @@ -23,7 +23,7 @@ class AutoRestParameterizedCustomHostTestClientConfiguration: # pylint: disable :param subscription_id: The subscription id with value 'test12'. Required. :type subscription_id: str :param dns_suffix: A string value that is used as a global part of the parameterized host. - Default value 'host'. Default value is "host". + Default value 'host'. Default value is "host". :type dns_suffix: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py index ef2e3db6534..a3672c287b5 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_client.py @@ -25,7 +25,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurlversiontolerant.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py index f131bf97599..c941f96fc66 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py index 0c857272e94..23558c10b44 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_client.py @@ -25,7 +25,7 @@ class AutoRestParameterizedHostTestClient: # pylint: disable=client-accepts-api :ivar paths: PathsOperations operations :vartype paths: custombaseurlversiontolerant.aio.operations.PathsOperations :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py index b59e4785d7b..238b10238d7 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/custombaseurlversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestParameterizedHostTestClientConfiguration: # pylint: disable=too-m attributes. :param host: A string value that is used as a global part of the parameterized host. Default - value is "host". + value is "host". :type host: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/_operations/_operations.py index 710623e41d3..fa3d2946f79 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/_operations/_operations.py @@ -81,8 +81,8 @@ def create_secret(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "key": "str", - "value": "str" + "key": "str", + "value": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/aio/_operations/_operations.py index e216d0de077..de3384796c3 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ErrorWithSecretsVersionTolerant/errorwithsecretsversiontolerant/aio/_operations/_operations.py @@ -51,8 +51,8 @@ async def create_secret(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "key": "str", - "value": "str" + "key": "str", + "value": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py index 7b24153f2f1..0e3255d0653 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/aio/operations/_operations.py @@ -64,9 +64,9 @@ async def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ error_map: MutableMapping = { @@ -130,16 +130,16 @@ async def add_pet( # JSON input template you can fill out and use as your body input. pet_param = { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ @@ -163,9 +163,9 @@ async def add_pet( # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ @@ -184,16 +184,16 @@ async def add_pet(self, pet_param: Optional[Union[JSON, IO[bytes]]] = None, **kw # JSON input template you can fill out and use as your body input. pet_param = { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py index 85304edd294..58ea4e00624 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ExtensibleEnumsVersionTolerant/extensibleenumsswaggerversiontolerant/operations/_operations.py @@ -102,9 +102,9 @@ def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ error_map: MutableMapping = { @@ -168,16 +168,16 @@ def add_pet( # JSON input template you can fill out and use as your body input. pet_param = { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ @@ -201,9 +201,9 @@ def add_pet( # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ @@ -222,16 +222,16 @@ def add_pet(self, pet_param: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: # JSON input template you can fill out and use as your body input. pet_param = { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } # response body for status code(s): 200 response == { - "IntEnum": "str", - "DaysOfWeek": "Friday", - "name": "str" + "IntEnum": "str", + "DaysOfWeek": "Friday", + "name": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py index e5110491320..de8a2e1e515 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/aio/operations/_operations.py @@ -259,7 +259,7 @@ async def response_protected_key(self, **kwargs: Any) -> None: @distributed_trace_async async def param_integer(self, *, scenario: str, value: int, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 1 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -356,7 +356,7 @@ async def response_integer(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_long(self, *, scenario: str, value: int, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 105 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -453,7 +453,7 @@ async def response_long(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_float(self, *, scenario: str, value: float, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 0.07 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -550,7 +550,7 @@ async def response_float(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_double(self, *, scenario: str, value: float, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 7e120 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -647,7 +647,7 @@ async def response_double(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_bool(self, *, scenario: str, value: bool, **kwargs: Any) -> None: """Send a post request with header values "scenario": "true", "value": true or "scenario": - "false", "value": false. + "false", "value": false. :keyword scenario: Send a post request with header values "scenario": "true" or "false". Required. @@ -744,7 +744,7 @@ async def response_bool(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_string(self, *, scenario: str, value: Optional[str] = None, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "The quick brown fox jumps - over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". + over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". :keyword scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -842,7 +842,7 @@ async def response_string(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_date(self, *, scenario: str, value: datetime.date, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01" or - "scenario": "min", "value": "0001-01-01". + "scenario": "min", "value": "0001-01-01". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -939,7 +939,7 @@ async def response_date(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_datetime(self, *, scenario: str, value: datetime.datetime, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01T12:34:56Z" or - "scenario": "min", "value": "0001-01-01T00:00:00Z". + "scenario": "min", "value": "0001-01-01T00:00:00Z". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1039,7 +1039,7 @@ async def param_datetime_rfc1123( self, *, scenario: str, value: Optional[datetime.datetime] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "Wed, 01 Jan 2010 12:34:56 - GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". + GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1089,7 +1089,7 @@ async def param_datetime_rfc1123( @distributed_trace_async async def response_datetime_rfc1123(self, *, scenario: str, **kwargs: Any) -> None: """Get a response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 - GMT". + GMT". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1326,7 +1326,7 @@ async def response_byte(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def param_enum(self, *, scenario: str, value: Optional[str] = None, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": - "null", "value": null. + "null", "value": null. :keyword scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -1424,7 +1424,7 @@ async def response_enum(self, *, scenario: str, **kwargs: Any) -> None: @distributed_trace_async async def custom_request_id(self, **kwargs: Any) -> None: """Send x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the - request. + request. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py index eabce7316c2..b95c342ce5e 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HeaderVersionTolerant/headerversiontolerant/operations/_operations.py @@ -688,7 +688,7 @@ def param_integer( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: int, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 1 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -789,7 +789,7 @@ def param_long( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: int, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 105 or "scenario": - "negative", "value": -2. + "negative", "value": -2. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -888,7 +888,7 @@ def param_float( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: float, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 0.07 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -987,7 +987,7 @@ def param_double( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: float, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "positive", "value": 7e120 or "scenario": - "negative", "value": -3.0. + "negative", "value": -3.0. :keyword scenario: Send a post request with header values "scenario": "positive" or "negative". Required. @@ -1088,7 +1088,7 @@ def param_bool( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: bool, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "true", "value": true or "scenario": - "false", "value": false. + "false", "value": false. :keyword scenario: Send a post request with header values "scenario": "true" or "false". Required. @@ -1187,7 +1187,7 @@ def param_string( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: Optional[str] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "The quick brown fox jumps - over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". + over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". :keyword scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -1289,7 +1289,7 @@ def param_date( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: datetime.date, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01" or - "scenario": "min", "value": "0001-01-01". + "scenario": "min", "value": "0001-01-01". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1388,7 +1388,7 @@ def param_datetime( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: datetime.datetime, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01T12:34:56Z" or - "scenario": "min", "value": "0001-01-01T00:00:00Z". + "scenario": "min", "value": "0001-01-01T00:00:00Z". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1490,7 +1490,7 @@ def param_datetime_rfc1123( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: Optional[datetime.datetime] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "Wed, 01 Jan 2010 12:34:56 - GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". + GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1542,7 +1542,7 @@ def response_datetime_rfc1123( # pylint: disable=inconsistent-return-statements self, *, scenario: str, **kwargs: Any ) -> None: """Get a response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 - GMT". + GMT". :keyword scenario: Send a post request with header values "scenario": "valid" or "min". Required. @@ -1787,7 +1787,7 @@ def param_enum( # pylint: disable=inconsistent-return-statements self, *, scenario: str, value: Optional[str] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": - "null", "value": null. + "null", "value": null. :keyword scenario: Send a post request with header values "scenario": "valid" or "null" or "empty". Required. @@ -1885,7 +1885,7 @@ def response_enum(self, *, scenario: str, **kwargs: Any) -> None: # pylint: dis @distributed_trace def custom_request_id(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Send x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the - request. + request. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/_client.py index da057a813b2..8c9e5c336f8 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/_client.py @@ -39,15 +39,15 @@ class AutoRestHttpInfrastructureTestService: # pylint: disable=client-accepts-a :vartype http_redirects: httpinfrastructureversiontolerant.operations.HttpRedirectsOperations :ivar http_client_failure: HttpClientFailureOperations operations :vartype http_client_failure: - httpinfrastructureversiontolerant.operations.HttpClientFailureOperations + httpinfrastructureversiontolerant.operations.HttpClientFailureOperations :ivar http_server_failure: HttpServerFailureOperations operations :vartype http_server_failure: - httpinfrastructureversiontolerant.operations.HttpServerFailureOperations + httpinfrastructureversiontolerant.operations.HttpServerFailureOperations :ivar http_retry: HttpRetryOperations operations :vartype http_retry: httpinfrastructureversiontolerant.operations.HttpRetryOperations :ivar multiple_responses: MultipleResponsesOperations operations :vartype multiple_responses: - httpinfrastructureversiontolerant.operations.MultipleResponsesOperations + httpinfrastructureversiontolerant.operations.MultipleResponsesOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/_client.py index 711f61fca1e..013d67888be 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/_client.py @@ -37,18 +37,18 @@ class AutoRestHttpInfrastructureTestService: # pylint: disable=client-accepts-a :vartype http_success: httpinfrastructureversiontolerant.aio.operations.HttpSuccessOperations :ivar http_redirects: HttpRedirectsOperations operations :vartype http_redirects: - httpinfrastructureversiontolerant.aio.operations.HttpRedirectsOperations + httpinfrastructureversiontolerant.aio.operations.HttpRedirectsOperations :ivar http_client_failure: HttpClientFailureOperations operations :vartype http_client_failure: - httpinfrastructureversiontolerant.aio.operations.HttpClientFailureOperations + httpinfrastructureversiontolerant.aio.operations.HttpClientFailureOperations :ivar http_server_failure: HttpServerFailureOperations operations :vartype http_server_failure: - httpinfrastructureversiontolerant.aio.operations.HttpServerFailureOperations + httpinfrastructureversiontolerant.aio.operations.HttpServerFailureOperations :ivar http_retry: HttpRetryOperations operations :vartype http_retry: httpinfrastructureversiontolerant.aio.operations.HttpRetryOperations :ivar multiple_responses: MultipleResponsesOperations operations :vartype multiple_responses: - httpinfrastructureversiontolerant.aio.operations.MultipleResponsesOperations + httpinfrastructureversiontolerant.aio.operations.MultipleResponsesOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py index 711c2b3e3dc..dfe7ef1ca5e 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/aio/operations/_operations.py @@ -1366,7 +1366,7 @@ async def get300(self, **kwargs: Any) -> Optional[list[str]]: # response body for status code(s): 300 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -1506,8 +1506,8 @@ async def get301(self, **kwargs: Any) -> None: @distributed_trace_async async def put301(self, boolean_value: Optional[Literal[True]] = None, **kwargs: Any) -> None: - """Put true Boolean value in request returns 301. This request should not be automatically - redirected, but should return the received 301 to the caller for evaluation. + """Put true Boolean value in request returns 301. This request should not be automatically + redirected, but should return the received 301 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is None. @@ -1653,8 +1653,8 @@ async def get302(self, **kwargs: Any) -> None: @distributed_trace_async async def patch302(self, boolean_value: Optional[Literal[True]] = None, **kwargs: Any) -> None: - """Patch true Boolean value in request returns 302. This request should not be automatically - redirected, but should return the received 302 to the caller for evaluation. + """Patch true Boolean value in request returns 302. This request should not be automatically + redirected, but should return the received 302 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is None. @@ -1710,8 +1710,8 @@ async def patch302(self, boolean_value: Optional[Literal[True]] = None, **kwargs @distributed_trace_async async def post303(self, boolean_value: Optional[Literal[True]] = None, **kwargs: Any) -> None: - """Post true Boolean value in request returns 303. This request should be automatically - redirected usign a get, ultimately returning a 200 status code. + """Post true Boolean value in request returns 303. This request should be automatically redirected + usign a get, ultimately returning a 200 status code. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is None. @@ -4082,7 +4082,7 @@ async def get200_model204_no_model_default_error200_valid( # pylint: disable=na # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -4142,7 +4142,7 @@ async def get200_model204_no_model_default_error204_valid( # pylint: disable=na # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -4202,7 +4202,7 @@ async def get200_model204_no_model_default_error201_invalid( # pylint: disable= # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -4262,7 +4262,7 @@ async def get200_model204_no_model_default_error202_none( # pylint: disable=nam # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -4322,7 +4322,7 @@ async def get200_model204_no_model_default_error400_valid( # pylint: disable=na # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -4382,12 +4382,12 @@ async def get200_model201_model_default_error200_valid( # pylint: disable=name- # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "statusCode": "str", - "textStatusCode": "str" + "statusCode": "str", + "textStatusCode": "str" } """ error_map: MutableMapping = { @@ -4445,12 +4445,12 @@ async def get200_model201_model_default_error201_valid( # pylint: disable=name- # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "statusCode": "str", - "textStatusCode": "str" + "statusCode": "str", + "textStatusCode": "str" } """ error_map: MutableMapping = { @@ -4508,12 +4508,12 @@ async def get200_model201_model_default_error400_valid( # pylint: disable=name- # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "statusCode": "str", - "textStatusCode": "str" + "statusCode": "str", + "textStatusCode": "str" } """ error_map: MutableMapping = { @@ -4571,15 +4571,15 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid( # pylint # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -4637,15 +4637,15 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid( # pylint # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -4703,15 +4703,15 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid( # pylint # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -4769,15 +4769,15 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid( # pylint # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -5120,7 +5120,7 @@ async def get_default_model_a200_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5176,7 +5176,7 @@ async def get_default_model_a200_none(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5468,7 +5468,7 @@ async def get_default_none400_none(self, **kwargs: Any) -> None: @distributed_trace_async async def get200_model_a200_none(self, **kwargs: Any) -> JSON: """Send a 200 response with no payload, when a payload is expected - client should return a null - object of thde type for model A. + object of thde type for model A. :return: JSON object :rtype: JSON @@ -5479,7 +5479,7 @@ async def get200_model_a200_none(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5535,7 +5535,7 @@ async def get200_model_a200_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5591,7 +5591,7 @@ async def get200_model_a200_invalid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5647,7 +5647,7 @@ async def get200_model_a400_none(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5703,7 +5703,7 @@ async def get200_model_a400_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5759,7 +5759,7 @@ async def get200_model_a400_invalid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5815,7 +5815,7 @@ async def get200_model_a202_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py index 00236a5916d..e46774a2732 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/HttpVersionTolerant/httpinfrastructureversiontolerant/operations/_operations.py @@ -2998,7 +2998,7 @@ def get300(self, **kwargs: Any) -> Optional[list[str]]: # response body for status code(s): 300 response == [ - "str" + "str" ] """ error_map: MutableMapping = { @@ -3140,8 +3140,8 @@ def get301(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return- def put301( # pylint: disable=inconsistent-return-statements self, boolean_value: Optional[Literal[True]] = None, **kwargs: Any ) -> None: - """Put true Boolean value in request returns 301. This request should not be automatically - redirected, but should return the received 301 to the caller for evaluation. + """Put true Boolean value in request returns 301. This request should not be automatically + redirected, but should return the received 301 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is None. @@ -3289,8 +3289,8 @@ def get302(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return- def patch302( # pylint: disable=inconsistent-return-statements self, boolean_value: Optional[Literal[True]] = None, **kwargs: Any ) -> None: - """Patch true Boolean value in request returns 302. This request should not be automatically - redirected, but should return the received 302 to the caller for evaluation. + """Patch true Boolean value in request returns 302. This request should not be automatically + redirected, but should return the received 302 to the caller for evaluation. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is None. @@ -3348,8 +3348,8 @@ def patch302( # pylint: disable=inconsistent-return-statements def post303( # pylint: disable=inconsistent-return-statements self, boolean_value: Optional[Literal[True]] = None, **kwargs: Any ) -> None: - """Post true Boolean value in request returns 303. This request should be automatically - redirected usign a get, ultimately returning a 200 status code. + """Post true Boolean value in request returns 303. This request should be automatically redirected + usign a get, ultimately returning a 200 status code. :param boolean_value: Simple boolean value true. Known values are True and None. Default value is None. @@ -5770,7 +5770,7 @@ def get200_model204_no_model_default_error200_valid( # pylint: disable=name-too # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5830,7 +5830,7 @@ def get200_model204_no_model_default_error204_valid( # pylint: disable=name-too # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5890,7 +5890,7 @@ def get200_model204_no_model_default_error201_invalid( # pylint: disable=name-t # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -5950,7 +5950,7 @@ def get200_model204_no_model_default_error202_none( # pylint: disable=name-too- # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -6010,7 +6010,7 @@ def get200_model204_no_model_default_error400_valid( # pylint: disable=name-too # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -6068,12 +6068,12 @@ def get200_model201_model_default_error200_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "statusCode": "str", - "textStatusCode": "str" + "statusCode": "str", + "textStatusCode": "str" } """ error_map: MutableMapping = { @@ -6129,12 +6129,12 @@ def get200_model201_model_default_error201_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "statusCode": "str", - "textStatusCode": "str" + "statusCode": "str", + "textStatusCode": "str" } """ error_map: MutableMapping = { @@ -6190,12 +6190,12 @@ def get200_model201_model_default_error400_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "statusCode": "str", - "textStatusCode": "str" + "statusCode": "str", + "textStatusCode": "str" } """ error_map: MutableMapping = { @@ -6253,15 +6253,15 @@ def get200_model_a201_model_c404_model_d_default_error200_valid( # pylint: disa # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -6319,15 +6319,15 @@ def get200_model_a201_model_c404_model_d_default_error201_valid( # pylint: disa # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -6385,15 +6385,15 @@ def get200_model_a201_model_c404_model_d_default_error404_valid( # pylint: disa # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -6451,15 +6451,15 @@ def get200_model_a201_model_c404_model_d_default_error400_valid( # pylint: disa # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } # response body for status code(s): 201 response == { - "httpCode": "str" + "httpCode": "str" } # response body for status code(s): 404 response == { - "httpStatusCode": "str" + "httpStatusCode": "str" } """ error_map: MutableMapping = { @@ -6816,7 +6816,7 @@ def get_default_model_a200_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -6872,7 +6872,7 @@ def get_default_model_a200_none(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7164,7 +7164,7 @@ def get_default_none400_none(self, **kwargs: Any) -> None: # pylint: disable=in @distributed_trace def get200_model_a200_none(self, **kwargs: Any) -> JSON: """Send a 200 response with no payload, when a payload is expected - client should return a null - object of thde type for model A. + object of thde type for model A. :return: JSON object :rtype: JSON @@ -7175,7 +7175,7 @@ def get200_model_a200_none(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7231,7 +7231,7 @@ def get200_model_a200_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7287,7 +7287,7 @@ def get200_model_a200_invalid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7343,7 +7343,7 @@ def get200_model_a400_none(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7399,7 +7399,7 @@ def get200_model_a400_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7455,7 +7455,7 @@ def get200_model_a400_invalid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { @@ -7511,7 +7511,7 @@ def get200_model_a202_valid(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "statusCode": "str" + "statusCode": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_client.py index d3743eba56a..334cc36a094 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_client.py @@ -23,7 +23,7 @@ class IncorrectReturnedErrorModel( _IncorrectReturnedErrorModelOperationsMixin ): # pylint: disable=client-accepts-api-version-keyword """Test to see when throwing an HttpResponseError whether we swallow error model deserialization - errors. + errors. :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py index 4808eeced2e..49f9fb77205 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/_operations/_operations.py @@ -48,7 +48,7 @@ class _IncorrectReturnedErrorModelOperationsMixin( @distributed_trace def get_incorrect_error_from_server(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Get an error response from the server that is not as described in our Error object. Want to - swallow the deserialization error and still return an HttpResponseError to the users. + swallow the deserialization error and still return an HttpResponseError to the users. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_client.py index a5b3e353d96..1b9834a25a5 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_client.py @@ -23,7 +23,7 @@ class IncorrectReturnedErrorModel( _IncorrectReturnedErrorModelOperationsMixin ): # pylint: disable=client-accepts-api-version-keyword """Test to see when throwing an HttpResponseError whether we swallow error model deserialization - errors. + errors. :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_operations/_operations.py index b284003966e..b7229c7187b 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/IncorrectErrorResponseVersionTolerant/incorrecterrorresponseversiontolerant/aio/_operations/_operations.py @@ -37,7 +37,7 @@ class _IncorrectReturnedErrorModelOperationsMixin( @distributed_trace_async async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: """Get an error response from the server that is not as described in our Error object. Want to - swallow the deserialization error and still return an HttpResponseError to the users. + swallow the deserialization error and still return an HttpResponseError to the users. :return: None :rtype: None diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py index df384923158..08425069c35 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/_operations/_operations.py @@ -176,7 +176,7 @@ def analyze_body( # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ @@ -211,7 +211,7 @@ def analyze_body(self, input: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ error_map: MutableMapping = { @@ -280,7 +280,7 @@ def analyze_body_no_accept_header( self, input: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: JSON @@ -296,7 +296,7 @@ def analyze_body_no_accept_header( # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ @@ -305,7 +305,7 @@ def analyze_body_no_accept_header( self, input: Optional[IO[bytes]] = None, *, content_type: str, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: IO[bytes] @@ -323,7 +323,7 @@ def analyze_body_no_accept_header( # pylint: disable=inconsistent-return-statem self, input: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -337,7 +337,7 @@ def analyze_body_no_accept_header( # pylint: disable=inconsistent-return-statem # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ error_map: MutableMapping = { @@ -456,7 +456,7 @@ def content_type_with_encoding(self, input: Optional[str] = None, **kwargs: Any) @distributed_trace def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with two content types. Pass in of {'hello': 'world'} for the application/json - content type, and a byte stream of 'hello, world!' for application/octet-stream. + content type, and a byte stream of 'hello, world!' for application/octet-stream. :param message: The payload body. Required. :type message: IO[bytes] @@ -512,8 +512,8 @@ def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) @distributed_trace def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with three content types. Pass in string 'hello, world' with content type - 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for - 'application/octet-stream'. + 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for + 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/_operations/_operations.py index 28ee53c2014..961996815da 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/_operations/_operations.py @@ -72,7 +72,7 @@ async def analyze_body( # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ @@ -107,7 +107,7 @@ async def analyze_body(self, input: Optional[Union[JSON, IO[bytes]]] = None, **k # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ error_map: MutableMapping = { @@ -176,7 +176,7 @@ async def analyze_body_no_accept_header( self, input: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: JSON @@ -192,7 +192,7 @@ async def analyze_body_no_accept_header( # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ @@ -201,7 +201,7 @@ async def analyze_body_no_accept_header( self, input: Optional[IO[bytes]] = None, *, content_type: str, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Default value is None. :type input: IO[bytes] @@ -219,7 +219,7 @@ async def analyze_body_no_accept_header( self, input: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any ) -> None: """Analyze body, that could be different media types. Adds to AnalyzeBody by not having an accept - type. + type. :param input: Input parameter. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -233,7 +233,7 @@ async def analyze_body_no_accept_header( # JSON input template you can fill out and use as your body input. input = { - "source": "str" + "source": "str" } """ error_map: MutableMapping = { @@ -352,7 +352,7 @@ async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs @distributed_trace_async async def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with two content types. Pass in of {'hello': 'world'} for the application/json - content type, and a byte stream of 'hello, world!' for application/octet-stream. + content type, and a byte stream of 'hello, world!' for application/octet-stream. :param message: The payload body. Required. :type message: IO[bytes] @@ -408,8 +408,8 @@ async def binary_body_with_two_content_types(self, message: IO[bytes], **kwargs: @distributed_trace_async async def binary_body_with_three_content_types(self, message: IO[bytes], **kwargs: Any) -> str: """Binary body with three content types. Pass in string 'hello, world' with content type - 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for - 'application/octet-stream'. + 'text/plain', {'hello': world'} with content type 'application/json' and a byte string for + 'application/octet-stream'. :param message: The payload body. Required. :type message: IO[bytes] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py index f9fb4dffac3..bb0a0524e59 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/_operations/_operations.py @@ -249,7 +249,7 @@ def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[JSON] @@ -265,15 +265,15 @@ def put_array( # JSON input template you can fill out and use as your body input. resource_array = [ - { - "id": "str", - "location": "str", - "name": "str", - "tags": { - "str": "str" - }, - "type": "str" - } + { + "id": "str", + "location": "str", + "name": "str", + "tags": { + "str": "str" + }, + "type": "str" + } ] """ @@ -284,7 +284,7 @@ def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -303,7 +303,7 @@ def put_array( # pylint: disable=inconsistent-return-statements """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [JSON] type or a IO[bytes] type. Default value is None. @@ -366,7 +366,7 @@ def get_array(self, **kwargs: Any) -> list[JSON]: """Get External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of JSON object :rtype: list[JSON] @@ -377,21 +377,21 @@ def get_array(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } ] """ error_map: MutableMapping = { @@ -439,10 +439,10 @@ def put_wrapped_array( self, resource_array: Optional[list[JSON]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[JSON] @@ -458,9 +458,9 @@ def put_wrapped_array( # JSON input template you can fill out and use as your body input. resource_array = [ - { - "value": "str" - } + { + "value": "str" + } ] """ @@ -469,10 +469,10 @@ def put_wrapped_array( self, resource_array: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -489,10 +489,10 @@ def put_wrapped_array( # pylint: disable=inconsistent-return-statements self, resource_array: Optional[Union[list[JSON], IO[bytes]]] = None, **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [JSON] type or a IO[bytes] type. Default value is None. @@ -553,10 +553,10 @@ def put_wrapped_array( # pylint: disable=inconsistent-return-statements @distributed_trace def get_wrapped_array(self, **kwargs: Any) -> list[JSON]: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of JSON object :rtype: list[JSON] @@ -567,11 +567,11 @@ def get_wrapped_array(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "property": { - "value": "str" - } - } + { + "property": { + "value": "str" + } + } ] """ error_map: MutableMapping = { @@ -625,7 +625,7 @@ def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: dict[str, JSON] @@ -641,21 +641,21 @@ def put_dictionary( # JSON input template you can fill out and use as your body input. resource_dictionary = { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ @@ -666,7 +666,7 @@ def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: IO[bytes] @@ -685,7 +685,7 @@ def put_dictionary( # pylint: disable=inconsistent-return-statements """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Is either a {str: JSON} type or a IO[bytes] type. Default value is None. @@ -748,7 +748,7 @@ def get_dictionary(self, **kwargs: Any) -> dict[str, JSON]: """Get External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -759,21 +759,21 @@ def get_dictionary(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ error_map: MutableMapping = { @@ -823,7 +823,7 @@ def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -840,55 +840,55 @@ def put_resource_collection( # JSON input template you can fill out and use as your body input. resource_complex_object = { - "arrayofresources": [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - ], - "dictionaryofresources": { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - }, - "productresource": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "arrayofresources": [ + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + ], + "dictionaryofresources": { + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + }, + "productresource": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ @@ -903,7 +903,7 @@ def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -923,7 +923,7 @@ def put_resource_collection( # pylint: disable=inconsistent-return-statements """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -937,55 +937,55 @@ def put_resource_collection( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. resource_complex_object = { - "arrayofresources": [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - ], - "dictionaryofresources": { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - }, - "productresource": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "arrayofresources": [ + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + ], + "dictionaryofresources": { + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + }, + "productresource": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ error_map: MutableMapping = { @@ -1042,7 +1042,7 @@ def get_resource_collection(self, **kwargs: Any) -> JSON: """Get External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: JSON object :rtype: JSON @@ -1053,55 +1053,55 @@ def get_resource_collection(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "arrayofresources": [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - ], - "dictionaryofresources": { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - }, - "productresource": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "arrayofresources": [ + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + ], + "dictionaryofresources": { + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + }, + "productresource": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ error_map: MutableMapping = { @@ -1151,7 +1151,7 @@ def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: JSON @@ -1167,30 +1167,30 @@ def put_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1201,7 +1201,7 @@ def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: IO[bytes] @@ -1217,16 +1217,16 @@ def put_simple_product( # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1235,7 +1235,7 @@ def put_simple_product(self, simple_body_product: Optional[Union[JSON, IO[bytes] """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1249,30 +1249,30 @@ def put_simple_product(self, simple_body_product: Optional[Union[JSON, IO[bytes] # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ error_map: MutableMapping = { @@ -1338,7 +1338,7 @@ def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to post. Default value is None. :type simple_body_product: JSON @@ -1354,30 +1354,30 @@ def post_flattened_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1388,7 +1388,7 @@ def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to post. Default value is None. :type simple_body_product: IO[bytes] @@ -1404,16 +1404,16 @@ def post_flattened_simple_product( # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1424,7 +1424,7 @@ def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to post. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1438,30 +1438,30 @@ def post_flattened_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ error_map: MutableMapping = { @@ -1532,7 +1532,7 @@ def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param name: Product name with value 'groupproduct'. Required. :type name: str @@ -1550,30 +1550,30 @@ def put_simple_product_with_grouping( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1589,7 +1589,7 @@ def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param name: Product name with value 'groupproduct'. Required. :type name: str @@ -1607,16 +1607,16 @@ def put_simple_product_with_grouping( # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1627,7 +1627,7 @@ def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param name: Product name with value 'groupproduct'. Required. :type name: str @@ -1643,30 +1643,30 @@ def put_simple_product_with_grouping( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py index 96d1b2fac4b..87678da7e0d 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_operations/_operations.py @@ -58,7 +58,7 @@ async def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[JSON] @@ -74,15 +74,15 @@ async def put_array( # JSON input template you can fill out and use as your body input. resource_array = [ - { - "id": "str", - "location": "str", - "name": "str", - "tags": { - "str": "str" - }, - "type": "str" - } + { + "id": "str", + "location": "str", + "name": "str", + "tags": { + "str": "str" + }, + "type": "str" + } ] """ @@ -93,7 +93,7 @@ async def put_array( """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -110,7 +110,7 @@ async def put_array(self, resource_array: Optional[Union[list[JSON], IO[bytes]]] """Put External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [JSON] type or a IO[bytes] type. Default value is None. @@ -173,7 +173,7 @@ async def get_array(self, **kwargs: Any) -> list[JSON]: """Get External Resource as an Array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of JSON object :rtype: list[JSON] @@ -184,21 +184,21 @@ async def get_array(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } ] """ error_map: MutableMapping = { @@ -246,10 +246,10 @@ async def put_wrapped_array( self, resource_array: Optional[list[JSON]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: list[JSON] @@ -265,9 +265,9 @@ async def put_wrapped_array( # JSON input template you can fill out and use as your body input. resource_array = [ - { - "value": "str" - } + { + "value": "str" + } ] """ @@ -276,10 +276,10 @@ async def put_wrapped_array( self, resource_array: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Default value is None. :type resource_array: IO[bytes] @@ -296,10 +296,10 @@ async def put_wrapped_array( self, resource_array: Optional[Union[list[JSON], IO[bytes]]] = None, **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_array: External Resource as an Array to put. Is either a [JSON] type or a IO[bytes] type. Default value is None. @@ -360,10 +360,10 @@ async def put_wrapped_array( @distributed_trace_async async def get_wrapped_array(self, **kwargs: Any) -> list[JSON]: """No need to have a route in Express server for this operation. Used to verify the type flattened - is not removed if it's referenced in an array. + is not removed if it's referenced in an array. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: list of JSON object :rtype: list[JSON] @@ -374,11 +374,11 @@ async def get_wrapped_array(self, **kwargs: Any) -> list[JSON]: # response body for status code(s): 200 response == [ - { - "property": { - "value": "str" - } - } + { + "property": { + "value": "str" + } + } ] """ error_map: MutableMapping = { @@ -432,7 +432,7 @@ async def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: dict[str, JSON] @@ -448,21 +448,21 @@ async def put_dictionary( # JSON input template you can fill out and use as your body input. resource_dictionary = { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ @@ -473,7 +473,7 @@ async def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Default value is None. :type resource_dictionary: IO[bytes] @@ -492,7 +492,7 @@ async def put_dictionary( """Put External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_dictionary: External Resource as a Dictionary to put. Is either a {str: JSON} type or a IO[bytes] type. Default value is None. @@ -555,7 +555,7 @@ async def get_dictionary(self, **kwargs: Any) -> dict[str, JSON]: """Get External Resource as a Dictionary. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: dict mapping str to JSON object :rtype: dict[str, JSON] @@ -566,21 +566,21 @@ async def get_dictionary(self, **kwargs: Any) -> dict[str, JSON]: # response body for status code(s): 200 response == { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ error_map: MutableMapping = { @@ -630,7 +630,7 @@ async def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -647,55 +647,55 @@ async def put_resource_collection( # JSON input template you can fill out and use as your body input. resource_complex_object = { - "arrayofresources": [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - ], - "dictionaryofresources": { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - }, - "productresource": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "arrayofresources": [ + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + ], + "dictionaryofresources": { + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + }, + "productresource": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ @@ -710,7 +710,7 @@ async def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Default value is None. @@ -730,7 +730,7 @@ async def put_resource_collection( """Put External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param resource_complex_object: External Resource as a ResourceCollection to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -744,55 +744,55 @@ async def put_resource_collection( # JSON input template you can fill out and use as your body input. resource_complex_object = { - "arrayofresources": [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - ], - "dictionaryofresources": { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - }, - "productresource": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "arrayofresources": [ + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + ], + "dictionaryofresources": { + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + }, + "productresource": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ error_map: MutableMapping = { @@ -849,7 +849,7 @@ async def get_resource_collection(self, **kwargs: Any) -> JSON: """Get External Resource as a ResourceCollection. .. seealso:: - - http://tempuri.org + - http://tempuri.org :return: JSON object :rtype: JSON @@ -860,55 +860,55 @@ async def get_resource_collection(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "arrayofresources": [ - { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - ], - "dictionaryofresources": { - "str": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } - }, - "productresource": { - "id": "str", - "location": "str", - "name": "str", - "properties": { - "p.name": "str", - "provisioningState": "str", - "provisioningStateValues": "str", - "type": "str" - }, - "tags": { - "str": "str" - }, - "type": "str" - } + "arrayofresources": [ + { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + ], + "dictionaryofresources": { + "str": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } + }, + "productresource": { + "id": "str", + "location": "str", + "name": "str", + "properties": { + "p.name": "str", + "provisioningState": "str", + "provisioningStateValues": "str", + "type": "str" + }, + "tags": { + "str": "str" + }, + "type": "str" + } } """ error_map: MutableMapping = { @@ -958,7 +958,7 @@ async def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: JSON @@ -974,30 +974,30 @@ async def put_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1008,7 +1008,7 @@ async def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Default value is None. :type simple_body_product: IO[bytes] @@ -1024,16 +1024,16 @@ async def put_simple_product( # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1044,7 +1044,7 @@ async def put_simple_product( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to put. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1058,30 +1058,30 @@ async def put_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ error_map: MutableMapping = { @@ -1147,7 +1147,7 @@ async def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to post. Default value is None. :type simple_body_product: JSON @@ -1163,30 +1163,30 @@ async def post_flattened_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1197,7 +1197,7 @@ async def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to post. Default value is None. :type simple_body_product: IO[bytes] @@ -1213,16 +1213,16 @@ async def post_flattened_simple_product( # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1233,7 +1233,7 @@ async def post_flattened_simple_product( """Put Flattened Simple Product with client flattening true on the parameter. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param simple_body_product: Simple body product to post. Is either a JSON type or a IO[bytes] type. Default value is None. @@ -1247,30 +1247,30 @@ async def post_flattened_simple_product( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ error_map: MutableMapping = { @@ -1341,7 +1341,7 @@ async def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param name: Product name with value 'groupproduct'. Required. :type name: str @@ -1359,30 +1359,30 @@ async def put_simple_product_with_grouping( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1398,7 +1398,7 @@ async def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param name: Product name with value 'groupproduct'. Required. :type name: str @@ -1416,16 +1416,16 @@ async def put_simple_product_with_grouping( # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ @@ -1436,7 +1436,7 @@ async def put_simple_product_with_grouping( """Put Simple Product with client flattening true on the model. .. seealso:: - - http://tempuri.org + - http://tempuri.org :param name: Product name with value 'groupproduct'. Required. :type name: str @@ -1452,30 +1452,30 @@ async def put_simple_product_with_grouping( # JSON input template you can fill out and use as your body input. simple_body_product = { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } # response body for status code(s): 200 response == { - "base_product_id": "str", - "base_product_description": "str", - "details": { - "max_product_capacity": "Large", - "max_product_display_name": "str", - "max_product_image": { - "@odata.value": "str", - "generic_value": "str" - } - } + "base_product_id": "str", + "base_product_description": "str", + "details": { + "max_product_capacity": "Large", + "max_product_display_name": "str", + "max_product_image": { + "@odata.value": "str", + "generic_value": "str" + } + } } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py index 77b700e3921..fa3fbf90c7c 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/_operations/_operations.py @@ -216,8 +216,8 @@ def get_horse(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str", - "isAShowHorse": bool + "name": "str", + "isAShowHorse": bool } """ error_map: MutableMapping = { @@ -278,8 +278,8 @@ def put_horse(self, horse: JSON, *, content_type: str = "application/json", **kw # JSON input template you can fill out and use as your body input. horse = { - "name": "str", - "isAShowHorse": bool + "name": "str", + "isAShowHorse": bool } """ @@ -313,8 +313,8 @@ def put_horse(self, horse: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. horse = { - "name": "str", - "isAShowHorse": bool + "name": "str", + "isAShowHorse": bool } """ error_map: MutableMapping = { @@ -382,7 +382,7 @@ def get_pet(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str" + "name": "str" } """ error_map: MutableMapping = { @@ -443,7 +443,7 @@ def put_pet(self, pet: JSON, *, content_type: str = "application/json", **kwargs # JSON input template you can fill out and use as your body input. pet = { - "name": "str" + "name": "str" } """ @@ -476,7 +476,7 @@ def put_pet(self, pet: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. pet = { - "name": "str" + "name": "str" } """ error_map: MutableMapping = { @@ -544,8 +544,8 @@ def get_feline(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "hisses": bool, - "meows": bool + "hisses": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -606,8 +606,8 @@ def put_feline(self, feline: JSON, *, content_type: str = "application/json", ** # JSON input template you can fill out and use as your body input. feline = { - "hisses": bool, - "meows": bool + "hisses": bool, + "meows": bool } """ @@ -641,8 +641,8 @@ def put_feline(self, feline: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. feline = { - "hisses": bool, - "meows": bool + "hisses": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -710,10 +710,10 @@ def get_cat(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str", - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -775,10 +775,10 @@ def put_cat(self, cat: JSON, *, content_type: str = "application/json", **kwargs # JSON input template you can fill out and use as your body input. cat = { - "name": "str", - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ @@ -813,10 +813,10 @@ def put_cat(self, cat: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. cat = { - "name": "str", - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -874,7 +874,7 @@ def put_cat(self, cat: Union[JSON, IO[bytes]], **kwargs: Any) -> str: @distributed_trace def get_kitten(self, **kwargs: Any) -> JSON: """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet - is false. + is false. :return: JSON object :rtype: JSON @@ -885,11 +885,11 @@ def get_kitten(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str", - "eatsMiceYet": bool, - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "eatsMiceYet": bool, + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -935,7 +935,7 @@ def get_kitten(self, **kwargs: Any) -> JSON: @overload def put_kitten(self, kitten: JSON, *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -952,18 +952,18 @@ def put_kitten(self, kitten: JSON, *, content_type: str = "application/json", ** # JSON input template you can fill out and use as your body input. kitten = { - "name": "str", - "eatsMiceYet": bool, - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "eatsMiceYet": bool, + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ @overload def put_kitten(self, kitten: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -979,7 +979,7 @@ def put_kitten(self, kitten: IO[bytes], *, content_type: str = "application/json @distributed_trace def put_kitten(self, kitten: Union[JSON, IO[bytes]], **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Is either a JSON type or a IO[bytes] type. Required. @@ -993,11 +993,11 @@ def put_kitten(self, kitten: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. kitten = { - "name": "str", - "eatsMiceYet": bool, - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "eatsMiceYet": bool, + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/_operations.py index 9c727413855..108781aa563 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/_operations.py @@ -61,8 +61,8 @@ async def get_horse(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str", - "isAShowHorse": bool + "name": "str", + "isAShowHorse": bool } """ error_map: MutableMapping = { @@ -123,8 +123,8 @@ async def put_horse(self, horse: JSON, *, content_type: str = "application/json" # JSON input template you can fill out and use as your body input. horse = { - "name": "str", - "isAShowHorse": bool + "name": "str", + "isAShowHorse": bool } """ @@ -158,8 +158,8 @@ async def put_horse(self, horse: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. horse = { - "name": "str", - "isAShowHorse": bool + "name": "str", + "isAShowHorse": bool } """ error_map: MutableMapping = { @@ -227,7 +227,7 @@ async def get_pet(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str" + "name": "str" } """ error_map: MutableMapping = { @@ -288,7 +288,7 @@ async def put_pet(self, pet: JSON, *, content_type: str = "application/json", ** # JSON input template you can fill out and use as your body input. pet = { - "name": "str" + "name": "str" } """ @@ -321,7 +321,7 @@ async def put_pet(self, pet: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. pet = { - "name": "str" + "name": "str" } """ error_map: MutableMapping = { @@ -389,8 +389,8 @@ async def get_feline(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "hisses": bool, - "meows": bool + "hisses": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -451,8 +451,8 @@ async def put_feline(self, feline: JSON, *, content_type: str = "application/jso # JSON input template you can fill out and use as your body input. feline = { - "hisses": bool, - "meows": bool + "hisses": bool, + "meows": bool } """ @@ -486,8 +486,8 @@ async def put_feline(self, feline: Union[JSON, IO[bytes]], **kwargs: Any) -> str # JSON input template you can fill out and use as your body input. feline = { - "hisses": bool, - "meows": bool + "hisses": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -555,10 +555,10 @@ async def get_cat(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str", - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -620,10 +620,10 @@ async def put_cat(self, cat: JSON, *, content_type: str = "application/json", ** # JSON input template you can fill out and use as your body input. cat = { - "name": "str", - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ @@ -658,10 +658,10 @@ async def put_cat(self, cat: Union[JSON, IO[bytes]], **kwargs: Any) -> str: # JSON input template you can fill out and use as your body input. cat = { - "name": "str", - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -719,7 +719,7 @@ async def put_cat(self, cat: Union[JSON, IO[bytes]], **kwargs: Any) -> str: @distributed_trace_async async def get_kitten(self, **kwargs: Any) -> JSON: """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet - is false. + is false. :return: JSON object :rtype: JSON @@ -730,11 +730,11 @@ async def get_kitten(self, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "name": "str", - "eatsMiceYet": bool, - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "eatsMiceYet": bool, + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { @@ -780,7 +780,7 @@ async def get_kitten(self, **kwargs: Any) -> JSON: @overload async def put_kitten(self, kitten: JSON, *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -797,18 +797,18 @@ async def put_kitten(self, kitten: JSON, *, content_type: str = "application/jso # JSON input template you can fill out and use as your body input. kitten = { - "name": "str", - "eatsMiceYet": bool, - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "eatsMiceYet": bool, + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ @overload async def put_kitten(self, kitten: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Required. @@ -824,7 +824,7 @@ async def put_kitten(self, kitten: IO[bytes], *, content_type: str = "applicatio @distributed_trace_async async def put_kitten(self, kitten: Union[JSON, IO[bytes]], **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is - true. + true. :param kitten: Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. Is either a JSON type or a IO[bytes] type. Required. @@ -838,11 +838,11 @@ async def put_kitten(self, kitten: Union[JSON, IO[bytes]], **kwargs: Any) -> str # JSON input template you can fill out and use as your body input. kitten = { - "name": "str", - "eatsMiceYet": bool, - "hisses": bool, - "likesMilk": bool, - "meows": bool + "name": "str", + "eatsMiceYet": bool, + "hisses": bool, + "likesMilk": bool, + "meows": bool } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_client.py index b41d8770ed1..afb7dc20fb2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_operations/_operations.py index 908c38fa791..0e198c1ea99 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/_operations/_operations.py @@ -124,7 +124,7 @@ class _AnythingClientOperationsMixin( @distributed_trace def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any :rtype: any @@ -173,7 +173,7 @@ def get_object(self, **kwargs: Any) -> Any: @distributed_trace def put_object(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -270,7 +270,7 @@ def get_string(self, **kwargs: Any) -> Any: @distributed_trace def put_string(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -367,7 +367,7 @@ def get_array(self, **kwargs: Any) -> Any: @distributed_trace def put_array(self, input: Any, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_client.py index 3e1e99cf700..c995ad039ec 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_client.py @@ -21,7 +21,7 @@ class AnythingClient(_AnythingClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Service client for testing basic anything types. Those schemas without types can be anything: - primitive, object, array. + primitive, object, array. :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_operations/_operations.py index 098a707e1cb..93d4cfc4713 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/anything_client/aio/_operations/_operations.py @@ -45,7 +45,7 @@ class _AnythingClientOperationsMixin( @distributed_trace_async async def get_object(self, **kwargs: Any) -> Any: """Basic get that returns an object as anything. Returns object { 'message': 'An object was - successfully returned' }. + successfully returned' }. :return: any :rtype: any @@ -94,7 +94,7 @@ async def get_object(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_object(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything - else to get an object error. + else to get an object error. :param input: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. :type input: any @@ -191,7 +191,7 @@ async def get_string(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_string(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to - get an object error. + get an object error. :param input: Pass in 'anything' for a 200, anything else for an object error. Required. :type input: any @@ -288,7 +288,7 @@ async def get_array(self, **kwargs: Any) -> Any: @distributed_trace_async async def put_array(self, input: Any, **kwargs: Any) -> None: """Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else - to get an object error. + to get an object error. :param input: Pass in ['foo', 'bar'] for a 200, anything else for an object error. Required. :type input: any diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/setup.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/setup.py index eccb2a05e54..0416376114f 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/setup.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/NoNamespaceFlagVersionTolerant/setup.py @@ -29,6 +29,6 @@ "typing-extensions>=4.6.0", ], long_description="""\ - Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. + Service client for testing basic anything types. Those schemas without types can be anything: primitive, object, array. """, ) diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py index e8d7e5f285a..94ef26c0325 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/_operations/_operations.py @@ -72,7 +72,7 @@ class _ObjectTypeClientOperationsMixin( @distributed_trace def get(self, **kwargs: Any) -> JSON: """Basic get that returns an object. Returns object { 'message': 'An object was successfully - returned' }. + returned' }. :return: JSON :rtype: JSON @@ -121,7 +121,7 @@ def get(self, **kwargs: Any) -> JSON: @distributed_trace def put(self, put_object: JSON, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements """Basic put that puts an object. Pass in {'foo': 'bar'} to get a 200 and anything else to get an - object error. + object error. :param put_object: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/_operations/_operations.py index e1e52ca3e45..24c29ebd91e 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ObjectTypeVersionTolerant/objecttypeversiontolerant/aio/_operations/_operations.py @@ -39,7 +39,7 @@ class _ObjectTypeClientOperationsMixin( @distributed_trace_async async def get(self, **kwargs: Any) -> JSON: """Basic get that returns an object. Returns object { 'message': 'An object was successfully - returned' }. + returned' }. :return: JSON :rtype: JSON @@ -88,7 +88,7 @@ async def get(self, **kwargs: Any) -> JSON: @distributed_trace_async async def put(self, put_object: JSON, **kwargs: Any) -> None: """Basic put that puts an object. Pass in {'foo': 'bar'} to get a 200 and anything else to get an - object error. + object error. :param put_object: Pass in {'foo': 'bar'} for a 200, anything else for an object error. Required. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/_client.py index 0cfbc79a9ed..68d14fc3e96 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/_client.py @@ -24,7 +24,7 @@ class AutoRestParameterFlattening: # pylint: disable=client-accepts-api-version :ivar availability_sets: AvailabilitySetsOperations operations :vartype availability_sets: - parameterflatteningversiontolerant.operations.AvailabilitySetsOperations + parameterflatteningversiontolerant.operations.AvailabilitySetsOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/_client.py index f6b1c22cd29..e6acab5dffa 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/_client.py @@ -24,7 +24,7 @@ class AutoRestParameterFlattening: # pylint: disable=client-accepts-api-version :ivar availability_sets: AvailabilitySetsOperations operations :vartype availability_sets: - parameterflatteningversiontolerant.aio.operations.AvailabilitySetsOperations + parameterflatteningversiontolerant.aio.operations.AvailabilitySetsOperations :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py index fbb7915179d..b2f0416bbc6 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/aio/operations/_operations.py @@ -75,9 +75,9 @@ async def update( # JSON input template you can fill out and use as your body input. tags = { - "tags": { - "str": "str" - } + "tags": { + "str": "str" + } } """ @@ -126,9 +126,9 @@ async def update(self, resource_group_name: str, avset: str, tags: Union[JSON, I # JSON input template you can fill out and use as your body input. tags = { - "tags": { - "str": "str" - } + "tags": { + "str": "str" + } } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py index 0084409f561..c1c8accc2eb 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ParameterFlatteningVersionTolerant/parameterflatteningversiontolerant/operations/_operations.py @@ -97,9 +97,9 @@ def update( # JSON input template you can fill out and use as your body input. tags = { - "tags": { - "str": "str" - } + "tags": { + "str": "str" + } } """ @@ -150,9 +150,9 @@ def update( # pylint: disable=inconsistent-return-statements # JSON input template you can fill out and use as your body input. tags = { - "tags": { - "str": "str" - } + "tags": { + "str": "str" + } } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py index 2bb5456ba73..9f988d7be4d 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/_operations/_operations.py @@ -96,7 +96,7 @@ def get_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) -> dict[ # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -157,7 +157,7 @@ def get_optional_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/_operations/_operations.py index 3f5e15c21a3..c9113882d17 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReportVersionTolerant/reportversiontolerant/aio/_operations/_operations.py @@ -54,7 +54,7 @@ async def get_report(self, *, qualifier: Optional[str] = None, **kwargs: Any) -> # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { @@ -115,7 +115,7 @@ async def get_optional_report(self, *, qualifier: Optional[str] = None, **kwargs # response body for status code(s): 200 response == { - "str": 0 + "str": 0 } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py index 32739ca3eb1..c745556b294 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/aio/operations/_operations.py @@ -568,7 +568,7 @@ async def put_required_binary_body(self, body_parameter: IO[bytes], **kwargs: An @distributed_trace_async async def post_required_integer_parameter(self, body_parameter: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put null and the client library should throw before - the request is sent. + the request is sent. :param body_parameter: Required. :type body_parameter: int @@ -671,7 +671,7 @@ async def post_required_integer_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -687,7 +687,7 @@ async def post_required_integer_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ @@ -696,7 +696,7 @@ async def post_required_integer_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -711,7 +711,7 @@ async def post_required_integer_property( @distributed_trace_async async def post_required_integer_property(self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -724,7 +724,7 @@ async def post_required_integer_property(self, body_parameter: Union[JSON, IO[by # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ error_map: MutableMapping = { @@ -792,7 +792,7 @@ async def post_optional_integer_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ @@ -829,7 +829,7 @@ async def post_optional_integer_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ error_map: MutableMapping = { @@ -884,7 +884,7 @@ async def post_optional_integer_property( @distributed_trace_async async def post_required_integer_header(self, *, header_parameter: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :keyword header_parameter: Required. :paramtype header_parameter: int @@ -973,7 +973,7 @@ async def post_optional_integer_header(self, *, header_parameter: Optional[int] @distributed_trace_async async def post_required_string_parameter(self, body_parameter: str, **kwargs: Any) -> None: """Test explicitly required string. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: str @@ -1076,7 +1076,7 @@ async def post_required_string_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -1092,7 +1092,7 @@ async def post_required_string_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ @@ -1101,7 +1101,7 @@ async def post_required_string_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1116,7 +1116,7 @@ async def post_required_string_property( @distributed_trace_async async def post_required_string_property(self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -1129,7 +1129,7 @@ async def post_required_string_property(self, body_parameter: Union[JSON, IO[byt # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ error_map: MutableMapping = { @@ -1197,7 +1197,7 @@ async def post_optional_string_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ @@ -1234,7 +1234,7 @@ async def post_optional_string_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ error_map: MutableMapping = { @@ -1289,7 +1289,7 @@ async def post_optional_string_property( @distributed_trace_async async def post_required_string_header(self, *, header_parameter: str, **kwargs: Any) -> None: """Test explicitly required string. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :keyword header_parameter: Required. :paramtype header_parameter: str @@ -1380,7 +1380,7 @@ async def post_required_class_parameter( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -1396,8 +1396,8 @@ async def post_required_class_parameter( # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ @@ -1406,7 +1406,7 @@ async def post_required_class_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1421,7 +1421,7 @@ async def post_required_class_parameter( @distributed_trace_async async def post_required_class_parameter(self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -1434,8 +1434,8 @@ async def post_required_class_parameter(self, body_parameter: Union[JSON, IO[byt # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1503,8 +1503,8 @@ async def post_optional_class_parameter( # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ @@ -1541,8 +1541,8 @@ async def post_optional_class_parameter( # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -1599,7 +1599,7 @@ async def post_required_class_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -1615,10 +1615,10 @@ async def post_required_class_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ @@ -1627,7 +1627,7 @@ async def post_required_class_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1642,7 +1642,7 @@ async def post_required_class_property( @distributed_trace_async async def post_required_class_property(self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -1655,10 +1655,10 @@ async def post_required_class_property(self, body_parameter: Union[JSON, IO[byte # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ error_map: MutableMapping = { @@ -1726,10 +1726,10 @@ async def post_optional_class_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ @@ -1766,10 +1766,10 @@ async def post_optional_class_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ error_map: MutableMapping = { @@ -1826,7 +1826,7 @@ async def post_required_array_parameter( self, body_parameter: list[str], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: list[str] @@ -1842,7 +1842,7 @@ async def post_required_array_parameter( # JSON input template you can fill out and use as your body input. body_parameter = [ - "str" + "str" ] """ @@ -1851,7 +1851,7 @@ async def post_required_array_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1866,7 +1866,7 @@ async def post_required_array_parameter( @distributed_trace_async async def post_required_array_parameter(self, body_parameter: Union[list[str], IO[bytes]], **kwargs: Any) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Is either a [str] type or a IO[bytes] type. Required. :type body_parameter: list[str] or IO[bytes] @@ -1939,7 +1939,7 @@ async def post_optional_array_parameter( # JSON input template you can fill out and use as your body input. body_parameter = [ - "str" + "str" ] """ @@ -2025,7 +2025,7 @@ async def post_required_array_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -2041,9 +2041,9 @@ async def post_required_array_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ @@ -2052,7 +2052,7 @@ async def post_required_array_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -2067,7 +2067,7 @@ async def post_required_array_property( @distributed_trace_async async def post_required_array_property(self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -2080,9 +2080,9 @@ async def post_required_array_property(self, body_parameter: Union[JSON, IO[byte # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2150,9 +2150,9 @@ async def post_optional_array_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ @@ -2189,9 +2189,9 @@ async def post_optional_array_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2246,7 +2246,7 @@ async def post_optional_array_property( @distributed_trace_async async def post_required_array_header(self, *, header_parameter: list[str], **kwargs: Any) -> None: """Test explicitly required array. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :keyword header_parameter: Required. :paramtype header_parameter: list[str] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py index a8b0fa090c9..1d5e510fccf 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/RequiredOptionalVersionTolerant/requiredoptionalversiontolerant/operations/_operations.py @@ -1136,7 +1136,7 @@ def post_required_integer_parameter( # pylint: disable=inconsistent-return-stat self, body_parameter: int, **kwargs: Any ) -> None: """Test explicitly required integer. Please put null and the client library should throw before - the request is sent. + the request is sent. :param body_parameter: Required. :type body_parameter: int @@ -1241,7 +1241,7 @@ def post_required_integer_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -1257,7 +1257,7 @@ def post_required_integer_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ @@ -1266,7 +1266,7 @@ def post_required_integer_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1283,7 +1283,7 @@ def post_required_integer_property( # pylint: disable=inconsistent-return-state self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -1296,7 +1296,7 @@ def post_required_integer_property( # pylint: disable=inconsistent-return-state # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ error_map: MutableMapping = { @@ -1364,7 +1364,7 @@ def post_optional_integer_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ @@ -1401,7 +1401,7 @@ def post_optional_integer_property( # pylint: disable=inconsistent-return-state # JSON input template you can fill out and use as your body input. body_parameter = { - "value": 0 + "value": 0 } """ error_map: MutableMapping = { @@ -1458,7 +1458,7 @@ def post_required_integer_header( # pylint: disable=inconsistent-return-stateme self, *, header_parameter: int, **kwargs: Any ) -> None: """Test explicitly required integer. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :keyword header_parameter: Required. :paramtype header_parameter: int @@ -1551,7 +1551,7 @@ def post_required_string_parameter( # pylint: disable=inconsistent-return-state self, body_parameter: str, **kwargs: Any ) -> None: """Test explicitly required string. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: str @@ -1656,7 +1656,7 @@ def post_required_string_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -1672,7 +1672,7 @@ def post_required_string_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ @@ -1681,7 +1681,7 @@ def post_required_string_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -1698,7 +1698,7 @@ def post_required_string_property( # pylint: disable=inconsistent-return-statem self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -1711,7 +1711,7 @@ def post_required_string_property( # pylint: disable=inconsistent-return-statem # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ error_map: MutableMapping = { @@ -1779,7 +1779,7 @@ def post_optional_string_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ @@ -1816,7 +1816,7 @@ def post_optional_string_property( # pylint: disable=inconsistent-return-statem # JSON input template you can fill out and use as your body input. body_parameter = { - "value": "str" + "value": "str" } """ error_map: MutableMapping = { @@ -1873,7 +1873,7 @@ def post_required_string_header( # pylint: disable=inconsistent-return-statemen self, *, header_parameter: str, **kwargs: Any ) -> None: """Test explicitly required string. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :keyword header_parameter: Required. :paramtype header_parameter: str @@ -1966,7 +1966,7 @@ def post_required_class_parameter( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -1982,8 +1982,8 @@ def post_required_class_parameter( # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ @@ -1992,7 +1992,7 @@ def post_required_class_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -2009,7 +2009,7 @@ def post_required_class_parameter( # pylint: disable=inconsistent-return-statem self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required complex object. Please put null and the client library should throw - before the request is sent. + before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -2022,8 +2022,8 @@ def post_required_class_parameter( # pylint: disable=inconsistent-return-statem # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -2091,8 +2091,8 @@ def post_optional_class_parameter( # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ @@ -2129,8 +2129,8 @@ def post_optional_class_parameter( # pylint: disable=inconsistent-return-statem # JSON input template you can fill out and use as your body input. body_parameter = { - "id": 0, - "name": "str" + "id": 0, + "name": "str" } """ error_map: MutableMapping = { @@ -2187,7 +2187,7 @@ def post_required_class_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -2203,10 +2203,10 @@ def post_required_class_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ @@ -2215,7 +2215,7 @@ def post_required_class_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -2232,7 +2232,7 @@ def post_required_class_property( # pylint: disable=inconsistent-return-stateme self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null - and the client library should throw before the request is sent. + and the client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -2245,10 +2245,10 @@ def post_required_class_property( # pylint: disable=inconsistent-return-stateme # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ error_map: MutableMapping = { @@ -2316,10 +2316,10 @@ def post_optional_class_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ @@ -2356,10 +2356,10 @@ def post_optional_class_property( # pylint: disable=inconsistent-return-stateme # JSON input template you can fill out and use as your body input. body_parameter = { - "value": { - "id": 0, - "name": "str" - } + "value": { + "id": 0, + "name": "str" + } } """ error_map: MutableMapping = { @@ -2416,7 +2416,7 @@ def post_required_array_parameter( self, body_parameter: list[str], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: list[str] @@ -2432,7 +2432,7 @@ def post_required_array_parameter( # JSON input template you can fill out and use as your body input. body_parameter = [ - "str" + "str" ] """ @@ -2441,7 +2441,7 @@ def post_required_array_parameter( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -2458,7 +2458,7 @@ def post_required_array_parameter( # pylint: disable=inconsistent-return-statem self, body_parameter: Union[list[str], IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required array. Please put null and the client library should throw before the - request is sent. + request is sent. :param body_parameter: Is either a [str] type or a IO[bytes] type. Required. :type body_parameter: list[str] or IO[bytes] @@ -2531,7 +2531,7 @@ def post_optional_array_parameter( # JSON input template you can fill out and use as your body input. body_parameter = [ - "str" + "str" ] """ @@ -2617,7 +2617,7 @@ def post_required_array_property( self, body_parameter: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: JSON @@ -2633,9 +2633,9 @@ def post_required_array_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ @@ -2644,7 +2644,7 @@ def post_required_array_property( self, body_parameter: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Required. :type body_parameter: IO[bytes] @@ -2661,7 +2661,7 @@ def post_required_array_property( # pylint: disable=inconsistent-return-stateme self, body_parameter: Union[JSON, IO[bytes]], **kwargs: Any ) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the - client library should throw before the request is sent. + client library should throw before the request is sent. :param body_parameter: Is either a JSON type or a IO[bytes] type. Required. :type body_parameter: JSON or IO[bytes] @@ -2674,9 +2674,9 @@ def post_required_array_property( # pylint: disable=inconsistent-return-stateme # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2744,9 +2744,9 @@ def post_optional_array_property( # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ @@ -2783,9 +2783,9 @@ def post_optional_array_property( # pylint: disable=inconsistent-return-stateme # JSON input template you can fill out and use as your body input. body_parameter = { - "value": [ - "str" - ] + "value": [ + "str" + ] } """ error_map: MutableMapping = { @@ -2842,7 +2842,7 @@ def post_required_array_header( # pylint: disable=inconsistent-return-statement self, *, header_parameter: list[str], **kwargs: Any ) -> None: """Test explicitly required array. Please put a header 'headerParameter' => null and the client - library should throw before the request is sent. + library should throw before the request is sent. :keyword header_parameter: Required. :paramtype header_parameter: list[str] diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py index 9d894d78fbe..1f53fe90f18 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/operations/_operations.py @@ -236,7 +236,7 @@ async def operation_with_url( self, url: str, *, header_parameters: str, query_parameters: Optional[list[str]] = None, **kwargs: Any ) -> JSON: """Operation with path format argument URL, header param headerParameters, and query param - queryParameters. + queryParameters. :param url: Pass in 'foo'. Required. :type url: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py index 5e99f7a590a..1e8b63cd42d 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/operations/_operations.py @@ -335,7 +335,7 @@ def operation_with_url( self, url: str, *, header_parameters: str, query_parameters: Optional[list[str]] = None, **kwargs: Any ) -> JSON: """Operation with path format argument URL, header param headerParameters, and query param - queryParameters. + queryParameters. :param url: Pass in 'foo'. Required. :type url: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py index 828349edf12..f0939d902b0 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/aio/operations/_operations.py @@ -145,7 +145,7 @@ async def array_string_multi_empty(self, *, array_query: Optional[list[str]] = N @distributed_trace_async async def array_string_multi_valid(self, *, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - mult-array format. + mult-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format. Default value is None. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py index 7f6d6d9550d..31ba6ffd053 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlMultiCollectionFormatVersionTolerant/urlmulticollectionformatversiontolerant/operations/_operations.py @@ -219,7 +219,7 @@ def array_string_multi_valid( # pylint: disable=inconsistent-return-statements self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - mult-array format. + mult-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format. Default value is None. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_client.py index 7e7e62277fd..bcf798968d4 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_client.py @@ -29,7 +29,7 @@ class AutoRestUrlTestService: # pylint: disable=client-accepts-api-version-keyw :ivar path_items: PathItemsOperations operations :vartype path_items: urlversiontolerant.operations.PathItemsOperations :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_configuration.py index 851a054b79a..ca7aeefceff 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/_configuration.py @@ -20,7 +20,7 @@ class AutoRestUrlTestServiceConfiguration: # pylint: disable=too-many-instance- attributes. :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_client.py index 0d21d035505..228ce706e96 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_client.py @@ -29,7 +29,7 @@ class AutoRestUrlTestService: # pylint: disable=client-accepts-api-version-keyw :ivar path_items: PathItemsOperations operations :vartype path_items: urlversiontolerant.aio.operations.PathItemsOperations :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_configuration.py index 2aa7e05c074..6544b958c7a 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/_configuration.py @@ -20,7 +20,7 @@ class AutoRestUrlTestServiceConfiguration: # pylint: disable=too-many-instance- attributes. :param global_string_path: A string value 'globalItemStringPath' that appears in the path. - Required. + Required. :type global_string_path: str :param global_string_query: should contain value null. Default value is None. :type global_string_query: str diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py index 60e8e5e93ff..cb401b95be9 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/aio/operations/_operations.py @@ -1031,7 +1031,7 @@ async def date_valid(self, **kwargs: Any) -> None: @distributed_trace_async async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: """Get null as date - this should throw or be unusable on the client side, depending on date - representation. + representation. :param date_path: null as date (should throw). Required. :type date_path: ~datetime.date @@ -1207,7 +1207,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: @distributed_trace_async async def array_csv_in_path(self, array_path: list[str], **kwargs: Any) -> None: """Get an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :param array_path: an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Required. @@ -2540,7 +2540,7 @@ async def date_time_null(self, *, date_time_query: Optional[datetime.datetime] = @distributed_trace_async async def array_string_csv_valid(self, *, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Default value is None. @@ -2677,7 +2677,7 @@ async def array_string_no_collection_format_empty( self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Array query has no defined collection format, should default to csv. Pass in ['hello', 'nihao', - 'bonjour'] for the 'arrayQuery' parameter to the service. + 'bonjour'] for the 'arrayQuery' parameter to the service. :keyword array_query: Array-typed query parameter. Pass in ['hello', 'nihao', 'bonjour']. Default value is None. @@ -2723,7 +2723,7 @@ async def array_string_no_collection_format_empty( @distributed_trace_async async def array_string_ssv_valid(self, *, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - ssv-array format. + ssv-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format. Default value is None. @@ -2769,7 +2769,7 @@ async def array_string_ssv_valid(self, *, array_query: Optional[list[str]] = Non @distributed_trace_async async def array_string_tsv_valid(self, *, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - tsv-array format. + tsv-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format. Default value is None. @@ -2815,7 +2815,7 @@ async def array_string_tsv_valid(self, *, array_query: Optional[list[str]] = Non @distributed_trace_async async def array_string_pipes_valid(self, *, array_query: Optional[list[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - pipes-array format. + pipes-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format. Default value is None. @@ -2887,8 +2887,8 @@ async def get_all_with_values( **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -2954,8 +2954,8 @@ async def get_global_query_null( **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -3021,8 +3021,8 @@ async def get_global_and_local_query_null( **kwargs: Any ) -> None: """send globalStringPath=globalStringPath, pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery=null. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -3088,8 +3088,8 @@ async def get_local_path_item_query_null( **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery=null, localStringQuery=null. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery=null, localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py index 3848cd586d1..1e4d08160a1 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/UrlVersionTolerant/urlversiontolerant/operations/_operations.py @@ -2345,7 +2345,7 @@ def date_null( # pylint: disable=inconsistent-return-statements self, date_path: datetime.date, **kwargs: Any ) -> None: """Get null as date - this should throw or be unusable on the client side, depending on date - representation. + representation. :param date_path: null as date (should throw). Required. :type date_path: ~datetime.date @@ -2527,7 +2527,7 @@ def array_csv_in_path( # pylint: disable=inconsistent-return-statements self, array_path: list[str], **kwargs: Any ) -> None: """Get an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :param array_path: an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Required. @@ -3888,7 +3888,7 @@ def array_string_csv_valid( # pylint: disable=inconsistent-return-statements self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - csv-array format. + csv-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. Default value is None. @@ -4029,7 +4029,7 @@ def array_string_no_collection_format_empty( # pylint: disable=inconsistent-ret self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Array query has no defined collection format, should default to csv. Pass in ['hello', 'nihao', - 'bonjour'] for the 'arrayQuery' parameter to the service. + 'bonjour'] for the 'arrayQuery' parameter to the service. :keyword array_query: Array-typed query parameter. Pass in ['hello', 'nihao', 'bonjour']. Default value is None. @@ -4077,7 +4077,7 @@ def array_string_ssv_valid( # pylint: disable=inconsistent-return-statements self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - ssv-array format. + ssv-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format. Default value is None. @@ -4125,7 +4125,7 @@ def array_string_tsv_valid( # pylint: disable=inconsistent-return-statements self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - tsv-array format. + tsv-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format. Default value is None. @@ -4173,7 +4173,7 @@ def array_string_pipes_valid( # pylint: disable=inconsistent-return-statements self, *, array_query: Optional[list[str]] = None, **kwargs: Any ) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the - pipes-array format. + pipes-array format. :keyword array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format. Default value is None. @@ -4245,8 +4245,8 @@ def get_all_with_values( # pylint: disable=inconsistent-return-statements **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -4312,8 +4312,8 @@ def get_global_query_null( # pylint: disable=inconsistent-return-statements **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery='localStringQuery'. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -4379,8 +4379,8 @@ def get_global_and_local_query_null( # pylint: disable=inconsistent-return-stat **kwargs: Any ) -> None: """send globalStringPath=globalStringPath, pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery=null, - pathItemStringQuery='pathItemStringQuery', localStringQuery=null. + localStringPath='localStringPath', globalStringQuery=null, + pathItemStringQuery='pathItemStringQuery', localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. @@ -4446,8 +4446,8 @@ def get_local_path_item_query_null( # pylint: disable=inconsistent-return-state **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', - localStringPath='localStringPath', globalStringQuery='globalStringQuery', - pathItemStringQuery=null, localStringQuery=null. + localStringPath='localStringPath', globalStringQuery='globalStringQuery', + pathItemStringQuery=null, localStringQuery=null. :param path_item_string_path: A string value 'pathItemStringPath' that appears in the path. Required. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py index 1f16ab1576a..ff6c8a08a50 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_client.py @@ -27,7 +27,7 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py index 1add1aba060..b2913e0070f 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_configuration.py @@ -22,7 +22,7 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py index fe4b46c2157..08eedc524ed 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/_operations/_operations.py @@ -160,22 +160,22 @@ def validation_of_method_parameters(self, resource_group_name: str, id: int, **k # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ error_map: MutableMapping = { @@ -253,42 +253,42 @@ def validation_of_body( # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -323,22 +323,22 @@ def validation_of_body( # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -364,42 +364,42 @@ def validation_of_body( # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ error_map: MutableMapping = { @@ -525,42 +525,42 @@ def post_with_constant_in_body( # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -584,22 +584,22 @@ def post_with_constant_in_body( # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -618,42 +618,42 @@ def post_with_constant_in_body(self, body: Optional[Union[JSON, IO[bytes]]] = No # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py index 2e16a97e67c..bb76556b199 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_client.py @@ -27,7 +27,7 @@ class AutoRestValidationTest(_AutoRestValidationTestOperationsMixin): :keyword endpoint: Service URL. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py index 6e21549ae9c..51cd988d8e2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_configuration.py @@ -22,7 +22,7 @@ class AutoRestValidationTestConfiguration: # pylint: disable=too-many-instance- :param subscription_id: Subscription ID. Required. :type subscription_id: str :keyword api_version: Api Version. Default value is "1.0.0". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_operations/_operations.py index ccc2ccffd0e..66900a381c2 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_operations/_operations.py @@ -60,22 +60,22 @@ async def validation_of_method_parameters(self, resource_group_name: str, id: in # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ error_map: MutableMapping = { @@ -153,42 +153,42 @@ async def validation_of_body( # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -223,22 +223,22 @@ async def validation_of_body( # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -264,42 +264,42 @@ async def validation_of_body( # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ error_map: MutableMapping = { @@ -425,42 +425,42 @@ async def post_with_constant_in_body( # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -484,22 +484,22 @@ async def post_with_constant_in_body( # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ @@ -518,42 +518,42 @@ async def post_with_constant_in_body(self, body: Optional[Union[JSON, IO[bytes]] # JSON input template you can fill out and use as your body input. body = { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } # response body for status code(s): 200 response == { - "child": { - "constProperty": "constant", - "count": 0 - }, - "constChild": { - "constProperty": "constant", - "constProperty2": "constant2" - }, - "constInt": 0, - "constString": "constant", - "capacity": 0, - "constStringAsEnum": "constant_string_as_enum", - "display_names": [ - "str" - ], - "image": "str" + "child": { + "constProperty": "constant", + "count": 0 + }, + "constChild": { + "constProperty": "constant", + "constProperty2": "constant2" + }, + "constInt": 0, + "constString": "constant", + "capacity": 0, + "constStringAsEnum": "constant_string_as_enum", + "display_names": [ + "str" + ], + "image": "str" } """ error_map: MutableMapping = { diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py index c5f48249b14..734c2d8843e 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/aio/operations/_operations.py @@ -1375,7 +1375,7 @@ async def json_input( self, properties: _models.JSONInput, *, content_type: str = "application/json", **kwargs: Any ) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param properties: Required. :type properties: ~xmlserviceversiontolerant.models.JSONInput @@ -1390,7 +1390,7 @@ async def json_input( @overload async def json_input(self, properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param properties: Required. :type properties: IO[bytes] @@ -1405,7 +1405,7 @@ async def json_input(self, properties: IO[bytes], *, content_type: str = "applic @distributed_trace_async async def json_input(self, properties: Union[_models.JSONInput, IO[bytes]], **kwargs: Any) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param properties: Is either a JSONInput type or a IO[bytes] type. Required. :type properties: ~xmlserviceversiontolerant.models.JSONInput or IO[bytes] @@ -1506,7 +1506,7 @@ async def json_output(self, **kwargs: Any) -> _models.JSONOutput: @distributed_trace_async async def get_xms_text(self, **kwargs: Any) -> _models.ObjectWithXMsTextProperty: """Get back an XML object with an x-ms-text property, which should translate to the returned - object's 'language' property being 'english' and its 'content' property being 'I am text'. + object's 'language' property being 'english' and its 'content' property being 'I am text'. :return: ObjectWithXMsTextProperty :rtype: ~xmlserviceversiontolerant.models.ObjectWithXMsTextProperty diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/models/_models.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/models/_models.py index 74faed8fcc6..06a3d5167de 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/models/_models.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/models/_models.py @@ -630,9 +630,9 @@ def __init__( class CorsRule(_serialization.Model): """CORS is an HTTP feature that enables a web application running under one domain to access - resources in another domain. Web browsers implement a security restriction known as same-origin - policy that prevents a web page from calling APIs in a different domain; CORS provides a secure - way to allow one domain (the origin domain) to call APIs in another domain. + resources in another domain. Web browsers implement a security restriction known as same-origin + policy that prevents a web page from calling APIs in a different domain; CORS provides a secure + way to allow one domain (the origin domain) to call APIs in another domain. All required parameters must be populated in order to send to server. diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py index 57df0f2d32f..5240a403137 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmlVersionTolerant/xmlserviceversiontolerant/operations/_operations.py @@ -1897,7 +1897,7 @@ def json_input( self, properties: _models.JSONInput, *, content_type: str = "application/json", **kwargs: Any ) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param properties: Required. :type properties: ~xmlserviceversiontolerant.models.JSONInput @@ -1912,7 +1912,7 @@ def json_input( @overload def json_input(self, properties: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param properties: Required. :type properties: IO[bytes] @@ -1929,7 +1929,7 @@ def json_input( # pylint: disable=inconsistent-return-statements self, properties: Union[_models.JSONInput, IO[bytes]], **kwargs: Any ) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID - number 42. + number 42. :param properties: Is either a JSONInput type or a IO[bytes] type. Required. :type properties: ~xmlserviceversiontolerant.models.JSONInput or IO[bytes] @@ -2030,7 +2030,7 @@ def json_output(self, **kwargs: Any) -> _models.JSONOutput: @distributed_trace def get_xms_text(self, **kwargs: Any) -> _models.ObjectWithXMsTextProperty: """Get back an XML object with an x-ms-text property, which should translate to the returned - object's 'language' property being 'english' and its 'content' property being 'I am text'. + object's 'language' property being 'english' and its 'content' property being 'I am text'. :return: ObjectWithXMsTextProperty :rtype: ~xmlserviceversiontolerant.models.ObjectWithXMsTextProperty diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py index b977281207e..c518ae56b0b 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/aio/operations/_operations.py @@ -68,8 +68,8 @@ async def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional[JSON]: # response body for status code(s): 200 response == { - "aniType": "str", - "name": "str" + "aniType": "str", + "name": "str" } """ error_map: MutableMapping = { @@ -130,7 +130,7 @@ async def do_something(self, what_action: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "actionResponse": "str" + "actionResponse": "str" } """ error_map: MutableMapping = { @@ -177,7 +177,7 @@ async def do_something(self, what_action: str, **kwargs: Any) -> JSON: @distributed_trace_async async def has_models_param(self, *, models: str = "value1", **kwargs: Any) -> None: """Ensure you can correctly deserialize the returned PetActionError and deserialization doesn't - conflict with the input param name 'models'. + conflict with the input param name 'models'. :keyword models: Make sure model deserialization doesn't conflict with this param name, which has input name 'models'. Use client default value in call. Default value is "value1". diff --git a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py index 2cc05ea18fa..db612e62421 100644 --- a/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py +++ b/packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/_operations.py @@ -124,8 +124,8 @@ def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional[JSON]: # response body for status code(s): 200 response == { - "aniType": "str", - "name": "str" + "aniType": "str", + "name": "str" } """ error_map: MutableMapping = { @@ -186,7 +186,7 @@ def do_something(self, what_action: str, **kwargs: Any) -> JSON: # response body for status code(s): 200 response == { - "actionResponse": "str" + "actionResponse": "str" } """ error_map: MutableMapping = { @@ -235,7 +235,7 @@ def has_models_param( # pylint: disable=inconsistent-return-statements self, *, models: str = "value1", **kwargs: Any ) -> None: """Ensure you can correctly deserialize the returned PetActionError and deserialization doesn't - conflict with the input param name 'models'. + conflict with the input param name 'models'. :keyword models: Make sure model deserialization doesn't conflict with this param name, which has input name 'models'. Use client default value in call. Default value is "value1". diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 6f9c246e4d1..5cf027a51ee 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -61,13 +61,13 @@ "@azure-tools/typespec-azure-resource-manager": ">=0.60.0 <1.0.0", "@azure-tools/typespec-autorest": ">=0.60.0 <1.0.0", "@azure-tools/typespec-azure-rulesets": ">=0.60.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.60.2 <1.0.0" + "@azure-tools/typespec-client-generator-core": ">=0.60.3 <1.0.0" }, "dependencies": { "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "~0.19.0", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { @@ -85,7 +85,7 @@ "@azure-tools/typespec-azure-core": "~0.60.0", "@azure-tools/typespec-azure-rulesets": "~0.60.0", "@azure-tools/typespec-autorest": "~0.60.0", - "@azure-tools/typespec-client-generator-core": "~0.60.2", + "@azure-tools/typespec-client-generator-core": "~0.60.3", "@azure-tools/azure-http-specs": "0.1.0-alpha.30-dev.6", "@typespec/http-specs": "0.1.0-alpha.26", "@typespec/spector": "0.1.0-alpha.18", @@ -103,4 +103,4 @@ "chalk": "5.3.0", "@types/fs-extra": "11.0.4" } -} +} \ No newline at end of file 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 e64a5fbaf0d..8fbf4b9619e 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", ] 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 c46a1d37e12..a963320e5bc 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", "authentication.http", 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 7753cdf238e..00395ba9e14 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", ] diff --git a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_client.py b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_client.py index 667dadb9ad9..b628c3b9bdc 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_client.py +++ b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_client.py @@ -27,9 +27,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials.TokenCredential + ~azure.core.credentials.TokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_configuration.py b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_configuration.py index 88e5c5ebdad..b9037baa669 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_configuration.py +++ b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/_configuration.py @@ -24,9 +24,9 @@ class UnionClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials.TokenCredential + ~azure.core.credentials.TokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_client.py b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_client.py index 7bcbfc2c01d..691f8b44de9 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_client.py @@ -27,9 +27,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials_async.AsyncTokenCredential + ~azure.core.credentials_async.AsyncTokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_configuration.py b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_configuration.py index e7527e9e91d..e06b4b4ac08 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/authentication-union/authentication/union/aio/_configuration.py @@ -24,9 +24,9 @@ class UnionClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials_async.AsyncTokenCredential + ~azure.core.credentials_async.AsyncTokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ 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 d1a9a1059bd..21eccb521c1 100644 --- a/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/authentication-union/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", ] 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 8a1276e1148..ad2dacdfade 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_client.py index d9c94e451c6..1b5ddd31b55 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/_client.py @@ -29,16 +29,16 @@ class AccessClient: # pylint: disable=client-accepts-api-version-keyword :ivar public_operation: PublicOperationOperations operations :vartype public_operation: - specs.azure.clientgenerator.core.access.operations.PublicOperationOperations + specs.azure.clientgenerator.core.access.operations.PublicOperationOperations :ivar internal_operation: InternalOperationOperations operations :vartype internal_operation: - specs.azure.clientgenerator.core.access.operations.InternalOperationOperations + specs.azure.clientgenerator.core.access.operations.InternalOperationOperations :ivar shared_model_in_operation: SharedModelInOperationOperations operations :vartype shared_model_in_operation: - specs.azure.clientgenerator.core.access.operations.SharedModelInOperationOperations + specs.azure.clientgenerator.core.access.operations.SharedModelInOperationOperations :ivar relative_model_in_operation: RelativeModelInOperationOperations operations :vartype relative_model_in_operation: - specs.azure.clientgenerator.core.access.operations.RelativeModelInOperationOperations + specs.azure.clientgenerator.core.access.operations.RelativeModelInOperationOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/_client.py index e731ef7b56e..071b49a3fcf 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/_client.py @@ -29,16 +29,16 @@ class AccessClient: # pylint: disable=client-accepts-api-version-keyword :ivar public_operation: PublicOperationOperations operations :vartype public_operation: - specs.azure.clientgenerator.core.access.aio.operations.PublicOperationOperations + specs.azure.clientgenerator.core.access.aio.operations.PublicOperationOperations :ivar internal_operation: InternalOperationOperations operations :vartype internal_operation: - specs.azure.clientgenerator.core.access.aio.operations.InternalOperationOperations + specs.azure.clientgenerator.core.access.aio.operations.InternalOperationOperations :ivar shared_model_in_operation: SharedModelInOperationOperations operations :vartype shared_model_in_operation: - specs.azure.clientgenerator.core.access.aio.operations.SharedModelInOperationOperations + specs.azure.clientgenerator.core.access.aio.operations.SharedModelInOperationOperations :ivar relative_model_in_operation: RelativeModelInOperationOperations operations :vartype relative_model_in_operation: - specs.azure.clientgenerator.core.access.aio.operations.RelativeModelInOperationOperations + specs.azure.clientgenerator.core.access.aio.operations.RelativeModelInOperationOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py index 88bb949f0a8..d39f11f0d3c 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/aio/operations/_operations.py @@ -545,18 +545,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: - """Expected query parameter: name="Madge" - Expected response body: - - .. code-block:: json - - { - "name": "Madge", - "inner": - { - "name": "Madge" - } - }. + """Expected query parameter: name="Madge" Expected response body: .. code-block:: json { "name": + "Madge", "inner": { "name": "Madge" } }. :keyword name: Required. :paramtype name: str @@ -615,15 +605,8 @@ async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.Outer @distributed_trace_async async def _discriminator(self, *, kind: str, **kwargs: Any) -> _models._models.AbstractModel: - """Expected query parameter: kind="real" - Expected response body: - - .. code-block:: json - - { - "name": "Madge", - "kind": "real" - }. + """Expected query parameter: kind="real" Expected response body: .. code-block:: json { "name": + "Madge", "kind": "real" }. :keyword kind: Required. :paramtype kind: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py index 9946d8215c6..8df6b683728 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py @@ -20,7 +20,7 @@ class AbstractModel(_Model): """Used in internal operations, should be generated but not exported. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - RealModel + RealModel :ivar kind: Discriminator property for AbstractModel. Required. Default value is None. :vartype kind: str @@ -31,6 +31,7 @@ class AbstractModel(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind") """Discriminator property for AbstractModel. Required. Default value is None.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py index 901011e64df..7b5d90077ee 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/operations/_operations.py @@ -714,18 +714,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: - """Expected query parameter: name="Madge" - Expected response body: - - .. code-block:: json - - { - "name": "Madge", - "inner": - { - "name": "Madge" - } - }. + """Expected query parameter: name="Madge" Expected response body: .. code-block:: json { "name": + "Madge", "inner": { "name": "Madge" } }. :keyword name: Required. :paramtype name: str @@ -784,15 +774,8 @@ def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: @distributed_trace def _discriminator(self, *, kind: str, **kwargs: Any) -> _models._models.AbstractModel: - """Expected query parameter: kind="real" - Expected response body: - - .. code-block:: json - - { - "name": "Madge", - "kind": "real" - }. + """Expected query parameter: kind="real" Expected response body: .. code-block:: json { "name": + "Madge", "kind": "real" }. :keyword kind: Required. :paramtype kind: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py index 334730315f4..89678e7e144 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_client.py @@ -25,7 +25,7 @@ class HeaderClient(_HeaderClientOperationsMixin): # pylint: disable=client-acce :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py index e0b34da732f..ca1d73a1ffe 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/_configuration.py @@ -22,7 +22,7 @@ class HeaderClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py index fed6fd3b8a0..9f26f54d22a 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_client.py @@ -25,7 +25,7 @@ class HeaderClient(_HeaderClientOperationsMixin): # pylint: disable=client-acce :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py index e6dff658177..0024c642838 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-header/client/alternateapiversion/service/header/aio/_configuration.py @@ -22,7 +22,7 @@ class HeaderClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ 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 071aef45193..5f064b190f5 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.alternateapiversion", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py index 79602c15bbd..41fdc5275a1 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_client.py @@ -25,7 +25,7 @@ class PathClient(_PathClientOperationsMixin): # pylint: disable=client-accepts- :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py index 41b5eaf919b..7165b80288e 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/_configuration.py @@ -22,7 +22,7 @@ class PathClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py index 1545091b43a..a624a1486bf 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_client.py @@ -25,7 +25,7 @@ class PathClient(_PathClientOperationsMixin): # pylint: disable=client-accepts- :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py index 6ee36588497..b1a9ccbe6b9 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-path/client/alternateapiversion/service/path/aio/_configuration.py @@ -22,7 +22,7 @@ class PathClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ 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 636330ba11d..221ab75cc1e 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.alternateapiversion", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py index 238c0ff31a4..1a69820d969 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_client.py @@ -25,7 +25,7 @@ class QueryClient(_QueryClientOperationsMixin): # pylint: disable=client-accept :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py index d1f8b2e959c..94d6079800c 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/_configuration.py @@ -22,7 +22,7 @@ class QueryClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py index 4d1b4ebec76..dbd165bcb3d 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_client.py @@ -25,7 +25,7 @@ class QueryClient(_QueryClientOperationsMixin): # pylint: disable=client-accept :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py index 21d105721de..52aed68f565 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-api-version-query/client/alternateapiversion/service/query/aio/_configuration.py @@ -22,7 +22,7 @@ class QueryClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword version: Default value is "2025-01-01". Note that overriding this default value may - result in unsupported behavior. + result in unsupported behavior. :paramtype version: str """ 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 7208cba34b8..7fe962b8235 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.alternateapiversion", 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 dcfd892809f..5e8bd2fac8d 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_client.py index 7223ce139dc..ce1bde9026b 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_client.py @@ -37,7 +37,7 @@ class HeaderParamClient(_HeaderParamClientOperationsMixin): # pylint: disable=c """Client for testing header parameter moved to client level. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -113,10 +113,10 @@ class MultipleParamsClient(_MultipleParamsClientOperationsMixin): # pylint: dis """MultipleParamsClient. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param region: The region to use for all operations. This parameter is used as a query - parameter. Required. + parameter. Required. :type region: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -192,7 +192,7 @@ class MixedParamsClient(_MixedParamsClientOperationsMixin): # pylint: disable=c """MixedParamsClient. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -268,7 +268,7 @@ class PathParamClient(_PathParamClientOperationsMixin): # pylint: disable=clien """PathParamClient. :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -420,9 +420,9 @@ class ParentClient: # pylint: disable=client-accepts-api-version-keyword :ivar child_client: ChildClientOperations operations :vartype child_client: - specs.azure.clientgenerator.core.clientinitialization.operations.ChildClientOperations + specs.azure.clientgenerator.core.clientinitialization.operations.ChildClientOperations :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_configuration.py index 56d0d7a38f2..a88c59defb7 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/_configuration.py @@ -20,7 +20,7 @@ class HeaderParamClientConfiguration: # pylint: disable=too-many-instance-attri attributes. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -55,10 +55,10 @@ class MultipleParamsClientConfiguration: # pylint: disable=too-many-instance-at attributes. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param region: The region to use for all operations. This parameter is used as a query - parameter. Required. + parameter. Required. :type region: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -96,7 +96,7 @@ class MixedParamsClientConfiguration: # pylint: disable=too-many-instance-attri attributes. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -131,7 +131,7 @@ class PathParamClientConfiguration: # pylint: disable=too-many-instance-attribu attributes. :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -200,7 +200,7 @@ class ParentClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_client.py index f0639c61436..5394c11b649 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_client.py @@ -37,7 +37,7 @@ class HeaderParamClient(_HeaderParamClientOperationsMixin): # pylint: disable=c """Client for testing header parameter moved to client level. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -115,10 +115,10 @@ class MultipleParamsClient(_MultipleParamsClientOperationsMixin): # pylint: dis """MultipleParamsClient. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param region: The region to use for all operations. This parameter is used as a query - parameter. Required. + parameter. Required. :type region: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -196,7 +196,7 @@ class MixedParamsClient(_MixedParamsClientOperationsMixin): # pylint: disable=c """MixedParamsClient. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -274,7 +274,7 @@ class PathParamClient(_PathParamClientOperationsMixin): # pylint: disable=clien """PathParamClient. :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str @@ -430,9 +430,9 @@ class ParentClient: # pylint: disable=client-accepts-api-version-keyword :ivar child_client: ChildClientOperations operations :vartype child_client: - specs.azure.clientgenerator.core.clientinitialization.aio.operations.ChildClientOperations + specs.azure.clientgenerator.core.clientinitialization.aio.operations.ChildClientOperations :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_configuration.py index fcf8902eb36..908ae73df8f 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/aio/_configuration.py @@ -20,7 +20,7 @@ class HeaderParamClientConfiguration: # pylint: disable=too-many-instance-attri attributes. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -55,10 +55,10 @@ class MultipleParamsClientConfiguration: # pylint: disable=too-many-instance-at attributes. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param region: The region to use for all operations. This parameter is used as a query - parameter. Required. + parameter. Required. :type region: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -96,7 +96,7 @@ class MixedParamsClientConfiguration: # pylint: disable=too-many-instance-attri attributes. :param name: The name of the client. This parameter is used as a header in all operations. - Required. + Required. :type name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -131,7 +131,7 @@ class PathParamClientConfiguration: # pylint: disable=too-many-instance-attribu attributes. :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str @@ -200,7 +200,7 @@ class ParentClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param blob_name: The name of the blob. This parameter is used as a path parameter in all - operations. Required. + operations. Required. :type blob_name: str :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/models/_models.py index 5a973dd3c65..a79e50b7427 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-initialization/specs/azure/clientgenerator/core/clientinitialization/models/_models.py @@ -28,10 +28,13 @@ class BlobProperties(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + size: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + content_type: str = rest_field(name="contentType", visibility=["read", "create", "update", "delete", "query"]) """Required.""" + created_on: datetime.datetime = rest_field( name="createdOn", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) 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 3bfc121fd55..d9312e7a770 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_client.py index 547600bcc45..91723a19c18 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/_client.py @@ -31,19 +31,19 @@ class ClientLocationClient(_ClientLocationClientOperationsMixin): # pylint: dis :ivar move_to_existing_sub_client: MoveToExistingSubClientOperations operations :vartype move_to_existing_sub_client: - specs.azure.clientgenerator.core.clientlocation.operations.MoveToExistingSubClientOperations + specs.azure.clientgenerator.core.clientlocation.operations.MoveToExistingSubClientOperations :ivar move_to_new_sub_client: MoveToNewSubClientOperations operations :vartype move_to_new_sub_client: - specs.azure.clientgenerator.core.clientlocation.operations.MoveToNewSubClientOperations + specs.azure.clientgenerator.core.clientlocation.operations.MoveToNewSubClientOperations :ivar move_to_root_client: MoveToRootClientOperations operations :vartype move_to_root_client: - specs.azure.clientgenerator.core.clientlocation.operations.MoveToRootClientOperations + specs.azure.clientgenerator.core.clientlocation.operations.MoveToRootClientOperations :ivar move_method_parameter_to_client: MoveMethodParameterToClientOperations operations :vartype move_method_parameter_to_client: - specs.azure.clientgenerator.core.clientlocation.operations.MoveMethodParameterToClientOperations + specs.azure.clientgenerator.core.clientlocation.operations.MoveMethodParameterToClientOperations :ivar archive_operations: ArchiveOperationsOperations operations :vartype archive_operations: - specs.azure.clientgenerator.core.clientlocation.operations.ArchiveOperationsOperations + specs.azure.clientgenerator.core.clientlocation.operations.ArchiveOperationsOperations :param storage_account: Required. :type storage_account: str :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/aio/_client.py index 1a4e0d21fbc..0969bf81332 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/aio/_client.py @@ -31,19 +31,19 @@ class ClientLocationClient(_ClientLocationClientOperationsMixin): # pylint: dis :ivar move_to_existing_sub_client: MoveToExistingSubClientOperations operations :vartype move_to_existing_sub_client: - specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToExistingSubClientOperations + specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToExistingSubClientOperations :ivar move_to_new_sub_client: MoveToNewSubClientOperations operations :vartype move_to_new_sub_client: - specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToNewSubClientOperations + specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToNewSubClientOperations :ivar move_to_root_client: MoveToRootClientOperations operations :vartype move_to_root_client: - specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToRootClientOperations + specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveToRootClientOperations :ivar move_method_parameter_to_client: MoveMethodParameterToClientOperations operations :vartype move_method_parameter_to_client: - specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveMethodParameterToClientOperations + specs.azure.clientgenerator.core.clientlocation.aio.operations.MoveMethodParameterToClientOperations :ivar archive_operations: ArchiveOperationsOperations operations :vartype archive_operations: - specs.azure.clientgenerator.core.clientlocation.aio.operations.ArchiveOperationsOperations + specs.azure.clientgenerator.core.clientlocation.aio.operations.ArchiveOperationsOperations :param storage_account: Required. :type storage_account: str :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/models/_models.py index a14619234aa..53c16fedffb 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-client-location/specs/azure/clientgenerator/core/clientlocation/models/_models.py @@ -27,10 +27,13 @@ class Blob(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + size: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + path: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 c80a457f8a6..8f1d72de545 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", 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 8f77e5c6d89..274c438bdc2 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/models/_models.py index ee3f100ca2d..32f2113a052 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-flatten-property/specs/azure/clientgenerator/core/flattenproperty/models/_models.py @@ -26,6 +26,7 @@ class ChildFlattenModel(_Model): summary: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + properties: "_models.ChildModel" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -79,6 +80,7 @@ class ChildModel(_Model): description: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + age: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -112,6 +114,7 @@ class FlattenModel(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + properties: "_models.ChildModel" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -165,6 +168,7 @@ class NestedFlattenModel(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + properties: "_models.ChildFlattenModel" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/pyproject.toml index d237ccfc277..b3d8fda976f 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/_client.py index 2fbc7d670d8..85fcdedc4b0 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/_client.py @@ -24,13 +24,13 @@ class HierarchyBuildingClient: # pylint: disable=client-accepts-api-version-key :ivar animal_operations: AnimalOperationsOperations operations :vartype animal_operations: - specs.azure.clientgenerator.core.hierarchybuilding.operations.AnimalOperationsOperations + specs.azure.clientgenerator.core.hierarchybuilding.operations.AnimalOperationsOperations :ivar pet_operations: PetOperationsOperations operations :vartype pet_operations: - specs.azure.clientgenerator.core.hierarchybuilding.operations.PetOperationsOperations + specs.azure.clientgenerator.core.hierarchybuilding.operations.PetOperationsOperations :ivar dog_operations: DogOperationsOperations operations :vartype dog_operations: - specs.azure.clientgenerator.core.hierarchybuilding.operations.DogOperationsOperations + specs.azure.clientgenerator.core.hierarchybuilding.operations.DogOperationsOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/aio/_client.py index ffce83178a6..10e2ca195b0 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/aio/_client.py @@ -24,13 +24,13 @@ class HierarchyBuildingClient: # pylint: disable=client-accepts-api-version-key :ivar animal_operations: AnimalOperationsOperations operations :vartype animal_operations: - specs.azure.clientgenerator.core.hierarchybuilding.aio.operations.AnimalOperationsOperations + specs.azure.clientgenerator.core.hierarchybuilding.aio.operations.AnimalOperationsOperations :ivar pet_operations: PetOperationsOperations operations :vartype pet_operations: - specs.azure.clientgenerator.core.hierarchybuilding.aio.operations.PetOperationsOperations + specs.azure.clientgenerator.core.hierarchybuilding.aio.operations.PetOperationsOperations :ivar dog_operations: DogOperationsOperations operations :vartype dog_operations: - specs.azure.clientgenerator.core.hierarchybuilding.aio.operations.DogOperationsOperations + specs.azure.clientgenerator.core.hierarchybuilding.aio.operations.DogOperationsOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py index df042fdee4a..2fde6814467 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-hierarchy-building/specs/azure/clientgenerator/core/hierarchybuilding/models/_models.py @@ -17,7 +17,7 @@ class Animal(_Model): """Animal. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Dog, Pet + Dog, Pet :ivar kind: The kind of animal. Required. Default value is None. :vartype kind: str @@ -28,6 +28,7 @@ class Animal(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """The kind of animal. Required. Default value is None.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Name of the animal. Required.""" @@ -54,7 +55,7 @@ class Pet(Animal, discriminator="pet"): """Pet. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Dog + Dog :ivar name: Name of the animal. Required. :vartype name: str @@ -67,6 +68,7 @@ class Pet(Animal, discriminator="pet"): __mapping__: dict[str, _Model] = {} kind: Literal["pet"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"pet\".""" + trained: bool = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Whether the pet is trained. Required.""" @@ -105,6 +107,7 @@ class Dog(Pet, discriminator="dog"): kind: Literal["dog"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"dog\".""" + breed: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The breed of the dog. Required.""" 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 5bf8dd64339..c544ec4f80d 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_client.py index 18f33dea2f0..df9aa14361a 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/_client.py @@ -29,16 +29,16 @@ class OverrideClient: # pylint: disable=client-accepts-api-version-keyword :ivar reorder_parameters: ReorderParametersOperations operations :vartype reorder_parameters: - specs.azure.clientgenerator.core.override.operations.ReorderParametersOperations + specs.azure.clientgenerator.core.override.operations.ReorderParametersOperations :ivar group_parameters: GroupParametersOperations operations :vartype group_parameters: - specs.azure.clientgenerator.core.override.operations.GroupParametersOperations + specs.azure.clientgenerator.core.override.operations.GroupParametersOperations :ivar require_optional_parameter: RequireOptionalParameterOperations operations :vartype require_optional_parameter: - specs.azure.clientgenerator.core.override.operations.RequireOptionalParameterOperations + specs.azure.clientgenerator.core.override.operations.RequireOptionalParameterOperations :ivar remove_optional_parameter: RemoveOptionalParameterOperations operations :vartype remove_optional_parameter: - specs.azure.clientgenerator.core.override.operations.RemoveOptionalParameterOperations + specs.azure.clientgenerator.core.override.operations.RemoveOptionalParameterOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/aio/_client.py index f5f9bd68d99..a714727f766 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-override/specs/azure/clientgenerator/core/override/aio/_client.py @@ -29,16 +29,16 @@ class OverrideClient: # pylint: disable=client-accepts-api-version-keyword :ivar reorder_parameters: ReorderParametersOperations operations :vartype reorder_parameters: - specs.azure.clientgenerator.core.override.aio.operations.ReorderParametersOperations + specs.azure.clientgenerator.core.override.aio.operations.ReorderParametersOperations :ivar group_parameters: GroupParametersOperations operations :vartype group_parameters: - specs.azure.clientgenerator.core.override.aio.operations.GroupParametersOperations + specs.azure.clientgenerator.core.override.aio.operations.GroupParametersOperations :ivar require_optional_parameter: RequireOptionalParameterOperations operations :vartype require_optional_parameter: - specs.azure.clientgenerator.core.override.aio.operations.RequireOptionalParameterOperations + specs.azure.clientgenerator.core.override.aio.operations.RequireOptionalParameterOperations :ivar remove_optional_parameter: RemoveOptionalParameterOperations operations :vartype remove_optional_parameter: - specs.azure.clientgenerator.core.override.aio.operations.RemoveOptionalParameterOperations + specs.azure.clientgenerator.core.override.aio.operations.RemoveOptionalParameterOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ 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 26fe40d21da..dd71363d505 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_client.py index e46fc7d382d..31f14034b56 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/_client.py @@ -24,7 +24,7 @@ class UsageClient: # pylint: disable=client-accepts-api-version-keyword :ivar model_in_operation: ModelInOperationOperations operations :vartype model_in_operation: - specs.azure.clientgenerator.core.usage.operations.ModelInOperationOperations + specs.azure.clientgenerator.core.usage.operations.ModelInOperationOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/_client.py index e613aa05e51..2e37aa4ed08 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/_client.py @@ -24,7 +24,7 @@ class UsageClient: # pylint: disable=client-accepts-api-version-keyword :ivar model_in_operation: ModelInOperationOperations operations :vartype model_in_operation: - specs.azure.clientgenerator.core.usage.aio.operations.ModelInOperationOperations + specs.azure.clientgenerator.core.usage.aio.operations.ModelInOperationOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/operations/_operations.py index b843525db56..349cf69b212 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/aio/operations/_operations.py @@ -63,13 +63,7 @@ def __init__(self, *args, **kwargs) -> None: async def input_to_input_output( self, body: _models.InputModel, *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Required. :type body: ~specs.azure.clientgenerator.core.usage.models.InputModel @@ -83,13 +77,7 @@ async def input_to_input_output( @overload async def input_to_input_output(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Required. :type body: JSON @@ -105,13 +93,7 @@ async def input_to_input_output(self, body: JSON, *, content_type: str = "applic async def input_to_input_output( self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Required. :type body: IO[bytes] @@ -125,13 +107,7 @@ async def input_to_input_output( @distributed_trace_async async def input_to_input_output(self, body: Union[_models.InputModel, JSON, IO[bytes]], **kwargs: Any) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Is one of the following types: InputModel, JSON, IO[bytes] Required. :type body: ~specs.azure.clientgenerator.core.usage.models.InputModel or JSON or IO[bytes] @@ -187,13 +163,7 @@ async def input_to_input_output(self, body: Union[_models.InputModel, JSON, IO[b @distributed_trace_async async def output_to_input_output(self, **kwargs: Any) -> _models.OutputModel: - """Expected response body: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected response body: .. code-block:: json { "name": "Madge" }. :return: OutputModel. The OutputModel is compatible with MutableMapping :rtype: ~specs.azure.clientgenerator.core.usage.models.OutputModel @@ -252,23 +222,8 @@ async def model_in_read_only_property( self, body: _models.RoundTripModel, *, content_type: str = "application/json", **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Required. :type body: ~specs.azure.clientgenerator.core.usage.models.RoundTripModel @@ -285,23 +240,8 @@ async def model_in_read_only_property( self, body: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Required. :type body: JSON @@ -318,23 +258,8 @@ async def model_in_read_only_property( self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Required. :type body: IO[bytes] @@ -351,23 +276,8 @@ async def model_in_read_only_property( self, body: Union[_models.RoundTripModel, JSON, IO[bytes]], **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Is one of the following types: RoundTripModel, JSON, IO[bytes] Required. :type body: ~specs.azure.clientgenerator.core.usage.models.RoundTripModel or JSON or IO[bytes] @@ -435,16 +345,8 @@ async def model_in_read_only_property( @distributed_trace_async async def orphan_model_serializable(self, body: Any, **kwargs: Any) -> None: - """Serialize the 'OrphanModel' as request body. - - Expected body parameter: - - .. code-block:: json - - { - "name": "name", - "desc": "desc" - }. + """Serialize the 'OrphanModel' as request body. Expected body parameter: .. code-block:: json { + "name": "name", "desc": "desc" }. :param body: Required. :type body: any diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py index 79676ce729b..0642712ef82 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py @@ -45,7 +45,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class OrphanModel(_Model): """Not used anywhere, but access is override to public so still need to be generated and exported - with serialization. + with serialization. :ivar model_name: Required. :vartype model_name: str @@ -55,6 +55,7 @@ class OrphanModel(_Model): model_name: str = rest_field(name="name", visibility=["read", "create", "update", "delete", "query"]) """Required.""" + description: str = rest_field(name="desc", visibility=["read", "create", "update", "delete", "query"]) """Required.""" diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/operations/_operations.py index 5e468d79381..b3775612f16 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/operations/_operations.py @@ -126,13 +126,7 @@ def __init__(self, *args, **kwargs) -> None: def input_to_input_output( self, body: _models.InputModel, *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Required. :type body: ~specs.azure.clientgenerator.core.usage.models.InputModel @@ -146,13 +140,7 @@ def input_to_input_output( @overload def input_to_input_output(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Required. :type body: JSON @@ -166,13 +154,7 @@ def input_to_input_output(self, body: JSON, *, content_type: str = "application/ @overload def input_to_input_output(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Required. :type body: IO[bytes] @@ -188,13 +170,7 @@ def input_to_input_output(self, body: IO[bytes], *, content_type: str = "applica def input_to_input_output( # pylint: disable=inconsistent-return-statements self, body: Union[_models.InputModel, JSON, IO[bytes]], **kwargs: Any ) -> None: - """Expected body parameter: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected body parameter: .. code-block:: json { "name": "Madge" }. :param body: Is one of the following types: InputModel, JSON, IO[bytes] Required. :type body: ~specs.azure.clientgenerator.core.usage.models.InputModel or JSON or IO[bytes] @@ -250,13 +226,7 @@ def input_to_input_output( # pylint: disable=inconsistent-return-statements @distributed_trace def output_to_input_output(self, **kwargs: Any) -> _models.OutputModel: - """Expected response body: - - .. code-block:: json - - { - "name": "Madge" - }. + """Expected response body: .. code-block:: json { "name": "Madge" }. :return: OutputModel. The OutputModel is compatible with MutableMapping :rtype: ~specs.azure.clientgenerator.core.usage.models.OutputModel @@ -315,23 +285,8 @@ def model_in_read_only_property( self, body: _models.RoundTripModel, *, content_type: str = "application/json", **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Required. :type body: ~specs.azure.clientgenerator.core.usage.models.RoundTripModel @@ -348,23 +303,8 @@ def model_in_read_only_property( self, body: JSON, *, content_type: str = "application/json", **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Required. :type body: JSON @@ -381,23 +321,8 @@ def model_in_read_only_property( self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Required. :type body: IO[bytes] @@ -414,23 +339,8 @@ def model_in_read_only_property( self, body: Union[_models.RoundTripModel, JSON, IO[bytes]], **kwargs: Any ) -> _models.RoundTripModel: """ "ResultModel" should be usage=output, as it is read-only and does not exist in request body. - - Expected body parameter: - - .. code-block:: json - - { - } - - Expected response body: - - .. code-block:: json - - { - "result": { - "name": "Madge" - } - }. + Expected body parameter: .. code-block:: json { } Expected response body: .. code-block:: json + { "result": { "name": "Madge" } }. :param body: Is one of the following types: RoundTripModel, JSON, IO[bytes] Required. :type body: ~specs.azure.clientgenerator.core.usage.models.RoundTripModel or JSON or IO[bytes] @@ -500,16 +410,8 @@ def model_in_read_only_property( def orphan_model_serializable( # pylint: disable=inconsistent-return-statements self, body: Any, **kwargs: Any ) -> None: - """Serialize the 'OrphanModel' as request body. - - Expected body parameter: - - .. code-block:: json - - { - "name": "name", - "desc": "desc" - }. + """Serialize the 'OrphanModel' as request body. Expected body parameter: .. code-block:: json { + "name": "name", "desc": "desc" }. :param body: Required. :type body: any 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 a4a90605e83..1222bf4aacb 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_client.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_client.py index cd1b61d7597..e4004ff6a85 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_client.py @@ -25,8 +25,8 @@ class BasicClient(_BasicClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_configuration.py index e08e3001fae..796ea88e412 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/_configuration.py @@ -22,8 +22,8 @@ class BasicClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_client.py index 308cb1b6945..e0abd45fdca 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_client.py @@ -25,8 +25,8 @@ class BasicClient(_BasicClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_configuration.py index 42b78d53cfd..951483d1ba1 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/aio/_configuration.py @@ -22,8 +22,8 @@ class BasicClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py index 71f7e0060e5..f1ab36878ac 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py @@ -30,10 +30,13 @@ class User(_Model): id: int = rest_field(visibility=["read"]) """The user's id. Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's name. Required.""" + orders: Optional[list["_models.UserOrder"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's order list.""" + etag: str = rest_field(visibility=["read"]) """The entity tag for this resource. Required.""" @@ -97,8 +100,10 @@ class UserOrder(_Model): id: int = rest_field(visibility=["read"]) """The user's id. Required.""" + user_id: int = rest_field(name="userId", visibility=["read", "create", "update", "delete", "query"]) """The user's id. Required.""" + detail: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's order detail. Required.""" 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 287610ac853..10303c3e72a 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py index 1241abcb6f9..363b307b155 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_client.py @@ -25,11 +25,11 @@ class RpcClient(_RpcClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py index d5ff502241c..43949c8e6a6 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/_configuration.py @@ -22,8 +22,8 @@ class RpcClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py index b900520c0b4..29b30f5d700 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_client.py @@ -25,11 +25,11 @@ class RpcClient(_RpcClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py index 9c42b1e48ff..22eecfbde40 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-rpc/specs/azure/core/lro/rpc/aio/_configuration.py @@ -22,8 +22,8 @@ class RpcClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ 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 b5af20ab51f..18d92e6464a 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py index 26323f7000e..a69a60923ef 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_client.py @@ -25,11 +25,11 @@ class StandardClient(_StandardClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py index b80d4326be0..381a7d387c9 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/_configuration.py @@ -22,8 +22,8 @@ class StandardClientConfiguration: # pylint: disable=too-many-instance-attribut :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py index 4bb45d4a20e..39608151ee9 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_client.py @@ -25,11 +25,11 @@ class StandardClient(_StandardClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( # pylint: disable=missing-client-constructor-parameter-credential diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py index d69d143b8f2..4925a25aac0 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/aio/_configuration.py @@ -22,8 +22,8 @@ class StandardClientConfiguration: # pylint: disable=too-many-instance-attribut :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py index 9de7f18d22b..bfe97fb8076 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py @@ -23,6 +23,7 @@ class ExportedUser(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name of user. Required.""" + resource_uri: str = rest_field(name="resourceUri", visibility=["read", "create", "update", "delete", "query"]) """The exported URI. Required.""" @@ -56,6 +57,7 @@ class User(_Model): name: str = rest_field(visibility=["read"]) """The name of user. Required.""" + role: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The role of user. Required.""" 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 4f7345c67d4..f3baea75bcd 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_client.py b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_client.py index e058323504f..fcc1e6648a4 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/_client.py @@ -24,7 +24,7 @@ class ModelClient: # pylint: disable=client-accepts-api-version-keyword :ivar azure_core_embedding_vector: AzureCoreEmbeddingVectorOperations operations :vartype azure_core_embedding_vector: - specs.azure.core.model.operations.AzureCoreEmbeddingVectorOperations + specs.azure.core.model.operations.AzureCoreEmbeddingVectorOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/aio/_client.py index 13c47c2bae1..8f6e8c24575 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/aio/_client.py @@ -24,7 +24,7 @@ class ModelClient: # pylint: disable=client-accepts-api-version-keyword :ivar azure_core_embedding_vector: AzureCoreEmbeddingVectorOperations operations :vartype azure_core_embedding_vector: - specs.azure.core.model.aio.operations.AzureCoreEmbeddingVectorOperations + specs.azure.core.model.aio.operations.AzureCoreEmbeddingVectorOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ 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 d0b633b290f..6c9c3d64824 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_client.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_client.py index 6b5fdd6b7c4..2e6df4ebe44 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_client.py @@ -24,12 +24,12 @@ class PageClient(_PageClientOperationsMixin): :ivar two_models_as_page_item: TwoModelsAsPageItemOperations operations :vartype two_models_as_page_item: - specs.azure.core.page.operations.TwoModelsAsPageItemOperations + specs.azure.core.page.operations.TwoModelsAsPageItemOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_configuration.py index a5fff6bed9e..551ce1cb3ce 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/_configuration.py @@ -22,8 +22,8 @@ class PageClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_client.py index 38978a0e194..6b09aec1998 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_client.py @@ -24,12 +24,12 @@ class PageClient(_PageClientOperationsMixin): :ivar two_models_as_page_item: TwoModelsAsPageItemOperations operations :vartype two_models_as_page_item: - specs.azure.core.page.aio.operations.TwoModelsAsPageItemOperations + specs.azure.core.page.aio.operations.TwoModelsAsPageItemOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_configuration.py index 5dbba13ee57..fb0251f0e0a 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/_configuration.py @@ -22,8 +22,8 @@ class PageClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/operations/_operations.py index 46e2f8f03a2..c322141c200 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/aio/operations/_operations.py @@ -66,7 +66,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def list_first_item(self, **kwargs: Any) -> AsyncItemPaged["_models.FirstItem"]: """Two operations with two different page item types should be successfully generated. Should - generate model for FirstItem. + generate model for FirstItem. :return: An iterator like instance of FirstItem :rtype: ~azure.core.async_paging.AsyncItemPaged[~specs.azure.core.page.models.FirstItem] @@ -149,7 +149,7 @@ async def get_next(next_link=None): @distributed_trace def list_second_item(self, **kwargs: Any) -> AsyncItemPaged["_models.SecondItem"]: """Two operations with two different page item types should be successfully generated. Should - generate model for SecondItem. + generate model for SecondItem. :return: An iterator like instance of SecondItem :rtype: ~azure.core.async_paging.AsyncItemPaged[~specs.azure.core.page.models.SecondItem] diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/models/_models.py index d6af01e668c..37de833a698 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/models/_models.py @@ -80,10 +80,13 @@ class User(_Model): id: int = rest_field(visibility=["read"]) """The user's id. Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's name. Required.""" + orders: Optional[list["_models.UserOrder"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's order list.""" + etag: str = rest_field(visibility=["read"]) """The entity tag for this resource. Required.""" @@ -119,8 +122,10 @@ class UserOrder(_Model): id: int = rest_field(visibility=["read"]) """The user's id. Required.""" + user_id: int = rest_field(name="userId", visibility=["read", "create", "update", "delete", "query"]) """The user's id. Required.""" + detail: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's order detail. Required.""" diff --git a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/operations/_operations.py b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/operations/_operations.py index f8f784c8779..d5843fa12a9 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/azure-core-page/specs/azure/core/page/operations/_operations.py @@ -188,7 +188,7 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def list_first_item(self, **kwargs: Any) -> ItemPaged["_models.FirstItem"]: """Two operations with two different page item types should be successfully generated. Should - generate model for FirstItem. + generate model for FirstItem. :return: An iterator like instance of FirstItem :rtype: ~azure.core.paging.ItemPaged[~specs.azure.core.page.models.FirstItem] @@ -271,7 +271,7 @@ def get_next(next_link=None): @distributed_trace def list_second_item(self, **kwargs: Any) -> ItemPaged["_models.SecondItem"]: """Two operations with two different page item types should be successfully generated. Should - generate model for SecondItem. + generate model for SecondItem. :return: An iterator like instance of SecondItem :rtype: ~azure.core.paging.ItemPaged[~specs.azure.core.page.models.SecondItem] 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 106b62d33b3..fd81a3129c3 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_client.py b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_client.py index ce90cf2486e..55f49165f52 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/_client.py @@ -24,7 +24,7 @@ class ScalarClient: # pylint: disable=client-accepts-api-version-keyword :ivar azure_location_scalar: AzureLocationScalarOperations operations :vartype azure_location_scalar: - specs.azure.core.scalar.operations.AzureLocationScalarOperations + specs.azure.core.scalar.operations.AzureLocationScalarOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/aio/_client.py index 069a26f68e8..e186856b344 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/aio/_client.py @@ -24,7 +24,7 @@ class ScalarClient: # pylint: disable=client-accepts-api-version-keyword :ivar azure_location_scalar: AzureLocationScalarOperations operations :vartype azure_location_scalar: - specs.azure.core.scalar.aio.operations.AzureLocationScalarOperations + specs.azure.core.scalar.aio.operations.AzureLocationScalarOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ 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 7ddd19b5d58..c7b6e8ba8cc 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_client.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_client.py index 3609e2a38d1..96cfb516634 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_client.py @@ -25,8 +25,8 @@ class TraitsClient(_TraitsClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_configuration.py index a3ff94fcfad..3a5750e72dd 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/_configuration.py @@ -22,8 +22,8 @@ class TraitsClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_client.py index 2f7f301b77f..0240655e41d 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_client.py @@ -25,8 +25,8 @@ class TraitsClient(_TraitsClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_configuration.py index d76adae957c..14156356630 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/aio/_configuration.py @@ -22,8 +22,8 @@ class TraitsClientConfiguration: # pylint: disable=too-many-instance-attributes :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py index 1e2417ecdd1..91f6e405b9a 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_enums.py @@ -15,9 +15,9 @@ class RepeatabilityResult(str, Enum, metaclass=CaseInsensitiveEnumMeta): ACCEPTED = "accepted" """If the request was accepted and the server guarantees that the server state reflects a single - execution of the operation.""" + execution of the operation.""" REJECTED = "rejected" """If the request was rejected because the combination of Repeatability-First-Sent and - Repeatability-Request-ID were invalid - or because the Repeatability-First-Sent value was outside the range of values held by the - server.""" + Repeatability-Request-ID were invalid +or because the Repeatability-First-Sent value was outside the range of values held by the + server.""" diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py index 6f5eba343aa..8fcbaf8a0f6 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py @@ -23,6 +23,7 @@ class User(_Model): id: int = rest_field(visibility=["read"]) """The user's id. Required.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The user's name.""" 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 14b067ee3df..e34a35ac531 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", 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 60a18091e74..1b04034cff3 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_client.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_client.py index 65a4e28a0c6..f2e1887b32c 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_client.py @@ -25,8 +25,8 @@ class AzureExampleClient(_AzureExampleClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_configuration.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_configuration.py index 14df3fdec52..5f4e1737512 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/_configuration.py @@ -22,8 +22,8 @@ class AzureExampleClientConfiguration: # pylint: disable=too-many-instance-attr :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_client.py index 34f29056482..681a44ef3e8 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_client.py @@ -25,8 +25,8 @@ class AzureExampleClient(_AzureExampleClientOperationsMixin): :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_configuration.py index b851be5e7f1..687b621e9f8 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/aio/_configuration.py @@ -22,8 +22,8 @@ class AzureExampleClientConfiguration: # pylint: disable=too-many-instance-attr :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str :keyword api_version: The API version to use for this operation. Default value is - "2022-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2022-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py index 8693d4eb768..904f1218037 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py @@ -30,6 +30,7 @@ class ActionRequest(_Model): string_property: str = rest_field(name="stringProperty", visibility=["read", "create", "update", "delete", "query"]) """Required.""" + model_property: Optional["_models.Model"] = rest_field( name="modelProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -76,6 +77,7 @@ class ActionResponse(_Model): string_property: str = rest_field(name="stringProperty", visibility=["read", "create", "update", "delete", "query"]) """Required.""" + model_property: Optional["_models.Model"] = rest_field( name="modelProperty", visibility=["read", "create", "update", "delete", "query"] ) 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 d5232477e38..51de41bfad0 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py index d0583f3f955..42c1a7c15ec 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_client.py @@ -31,7 +31,7 @@ class CommonPropertiesClient: :ivar managed_identity: ManagedIdentityOperations operations :vartype managed_identity: - azure.resourcemanager.commonproperties.operations.ManagedIdentityOperations + azure.resourcemanager.commonproperties.operations.ManagedIdentityOperations :ivar error: ErrorOperations operations :vartype error: azure.resourcemanager.commonproperties.operations.ErrorOperations :param credential: Credential used to authenticate requests to the service. Required. @@ -41,11 +41,11 @@ class CommonPropertiesClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py index cb105d5a1e9..006cc64f71a 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/_configuration.py @@ -31,11 +31,11 @@ class CommonPropertiesClientConfiguration: # pylint: disable=too-many-instance- :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py index b6aa191c86b..364fd7fd610 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_client.py @@ -31,7 +31,7 @@ class CommonPropertiesClient: :ivar managed_identity: ManagedIdentityOperations operations :vartype managed_identity: - azure.resourcemanager.commonproperties.aio.operations.ManagedIdentityOperations + azure.resourcemanager.commonproperties.aio.operations.ManagedIdentityOperations :ivar error: ErrorOperations operations :vartype error: azure.resourcemanager.commonproperties.aio.operations.ErrorOperations :param credential: Credential used to authenticate requests to the service. Required. @@ -41,11 +41,11 @@ class CommonPropertiesClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py index 32ffec73a71..24119499444 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/aio/_configuration.py @@ -31,11 +31,11 @@ class CommonPropertiesClientConfiguration: # pylint: disable=too-many-instance- :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/models/_models.py index f03e1f5e033..8eb9c90b370 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-common-properties/azure/resourcemanager/commonproperties/models/_models.py @@ -36,12 +36,16 @@ class ApiError(_Model): visibility=["read", "create", "update", "delete", "query"] ) """The Api error details.""" + innererror: Optional["_models.InnerError"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The Api inner error.""" + code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The error code.""" + target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The target of the particular error.""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The error message.""" @@ -80,8 +84,10 @@ class ApiErrorBase(_Model): code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The error code.""" + target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The target of the particular error.""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The error message.""" @@ -151,12 +157,15 @@ class Resource(_Model): id: Optional[str] = rest_field(visibility=["read"]) """Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or - \"Microsoft.Storage/storageAccounts\".""" + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" @@ -183,6 +192,7 @@ class TrackedResource(Resource): tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) """The geo-location where the resource lives. Required.""" @@ -207,7 +217,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ConfidentialResource(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -265,6 +275,7 @@ class ConfidentialResourceProperties(_Model): provisioning_state: str = rest_field(name="provisioningState", visibility=["read"]) """The status of the last operation. Required.""" + username: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -297,6 +308,7 @@ class ErrorAdditionalInfo(_Model): type: Optional[str] = rest_field(visibility=["read"]) """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) """The additional info.""" @@ -319,12 +331,16 @@ class ErrorDetail(_Model): code: Optional[str] = rest_field(visibility=["read"]) """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( name="additionalInfo", visibility=["read"] ) @@ -370,6 +386,7 @@ class InnerError(_Model): exceptiontype: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The exception type.""" + errordetail: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The internal error message or exception dump.""" @@ -394,7 +411,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ManagedIdentityTrackedResource(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -422,6 +439,7 @@ class ManagedIdentityTrackedResource(TrackedResource): visibility=["read", "create", "update", "delete", "query"] ) """The resource-specific properties for this resource.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -478,15 +496,18 @@ class ManagedServiceIdentity(_Model): principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) """The service principal ID of the system assigned identity. This property will only be provided - for a system assigned identity.""" + for a system assigned identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) """The tenant ID of the system assigned identity. This property will only be provided for a system - assigned identity.""" + assigned identity.""" + type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """The type of managed identity assigned to this resource. Required. Known values are: \"None\", - \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = rest_field( name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] ) @@ -533,24 +554,29 @@ class SystemData(_Model): created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="createdByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that created the resource. Known values are: \"User\", \"Application\", - \"ManagedIdentity\", and \"Key\".""" + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] ) """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that last modified the resource. Known values are: \"User\", - \"Application\", \"ManagedIdentity\", and \"Key\".""" + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -590,5 +616,6 @@ class UserAssignedIdentity(_Model): principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) """The principal ID of the assigned identity.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read"]) """The client ID of the assigned identity.""" 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 c4730a5aafa..c35ccd4b81b 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.resourcemanager", diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py index 7c006f505af..ac2e7b35a14 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_client.py @@ -38,14 +38,14 @@ class LargeHeaderClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py index baea38c369b..a807909e303 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/_configuration.py @@ -31,11 +31,11 @@ class LargeHeaderClientConfiguration: # pylint: disable=too-many-instance-attri :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py index 12cae08e4c7..c697bf4c78b 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_client.py @@ -38,14 +38,14 @@ class LargeHeaderClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py index c4600804b09..7aad77b3e6d 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/aio/_configuration.py @@ -31,11 +31,11 @@ class LargeHeaderClientConfiguration: # pylint: disable=too-many-instance-attri :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/models/_models.py index 7f2e183dbff..dc234f88d65 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-large-header/azure/resourcemanager/largeheader/models/_models.py @@ -54,6 +54,7 @@ class ErrorAdditionalInfo(_Model): type: Optional[str] = rest_field(visibility=["read"]) """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) """The additional info.""" @@ -75,12 +76,16 @@ class ErrorDetail(_Model): code: Optional[str] = rest_field(visibility=["read"]) """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( name="additionalInfo", visibility=["read"] ) 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 383fc833b27..af78f6186d4 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.resourcemanager", diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py index cd7abe787f1..9e2ce7a13b0 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_client.py @@ -30,12 +30,12 @@ class MethodSubscriptionIdClient: """Test for ARM method level subscription ID parameter placement. :ivar two_subscription_resources_method_level: TwoSubscriptionResourcesMethodLevelOperations - operations + operations :vartype two_subscription_resources_method_level: - azure.resourcemanager.methodsubscriptionid.operations.TwoSubscriptionResourcesMethodLevelOperations + azure.resourcemanager.methodsubscriptionid.operations.TwoSubscriptionResourcesMethodLevelOperations :ivar mixed_subscription_placement: MixedSubscriptionPlacementOperations operations :vartype mixed_subscription_placement: - azure.resourcemanager.methodsubscriptionid.operations.MixedSubscriptionPlacementOperations + azure.resourcemanager.methodsubscriptionid.operations.MixedSubscriptionPlacementOperations :ivar operations: Operations operations :vartype operations: azure.resourcemanager.methodsubscriptionid.operations.Operations :param credential: Credential used to authenticate requests to the service. Required. @@ -45,11 +45,11 @@ class MethodSubscriptionIdClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py index 18367f9dc58..1d58cbd28a1 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/_configuration.py @@ -31,11 +31,11 @@ class MethodSubscriptionIdClientConfiguration: # pylint: disable=too-many-insta :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py index 638213a9a0f..349c1ef9295 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_client.py @@ -30,12 +30,12 @@ class MethodSubscriptionIdClient: """Test for ARM method level subscription ID parameter placement. :ivar two_subscription_resources_method_level: TwoSubscriptionResourcesMethodLevelOperations - operations + operations :vartype two_subscription_resources_method_level: - azure.resourcemanager.methodsubscriptionid.aio.operations.TwoSubscriptionResourcesMethodLevelOperations + azure.resourcemanager.methodsubscriptionid.aio.operations.TwoSubscriptionResourcesMethodLevelOperations :ivar mixed_subscription_placement: MixedSubscriptionPlacementOperations operations :vartype mixed_subscription_placement: - azure.resourcemanager.methodsubscriptionid.aio.operations.MixedSubscriptionPlacementOperations + azure.resourcemanager.methodsubscriptionid.aio.operations.MixedSubscriptionPlacementOperations :ivar operations: Operations operations :vartype operations: azure.resourcemanager.methodsubscriptionid.aio.operations.Operations :param credential: Credential used to authenticate requests to the service. Required. @@ -45,11 +45,11 @@ class MethodSubscriptionIdClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py index b7eb40c13be..e77032e36c3 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/aio/_configuration.py @@ -31,11 +31,11 @@ class MethodSubscriptionIdClientConfiguration: # pylint: disable=too-many-insta :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/models/_models.py index 83b3e54563f..10b4068c1fd 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/azure/resourcemanager/methodsubscriptionid/models/_models.py @@ -28,6 +28,7 @@ class ErrorAdditionalInfo(_Model): type: Optional[str] = rest_field(visibility=["read"]) """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) """The additional info.""" @@ -50,12 +51,16 @@ class ErrorDetail(_Model): code: Optional[str] = rest_field(visibility=["read"]) """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( name="additionalInfo", visibility=["read"] ) @@ -112,22 +117,26 @@ class Operation(_Model): name: Optional[str] = rest_field(visibility=["read"]) """The name of the operation, as per Resource-Based Access Control (RBAC). Examples: - \"Microsoft.Compute/virtualMachines/write\", - \"Microsoft.Compute/virtualMachines/capture/action\".""" + \"Microsoft.Compute/virtualMachines/write\", + \"Microsoft.Compute/virtualMachines/capture/action\".""" + is_data_action: Optional[bool] = rest_field(name="isDataAction", visibility=["read"]) """Whether the operation applies to data-plane. This is \"true\" for data-plane operations and - \"false\" for Azure Resource Manager/control-plane operations.""" + \"false\" for Azure Resource Manager/control-plane operations.""" + display: Optional["_models.OperationDisplay"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """Localized display information for this particular operation.""" + origin: Optional[Union[str, "_models.Origin"]] = rest_field(visibility=["read"]) """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit - logs UX. Default value is \"user,system\". Known values are: \"user\", \"system\", and - \"user,system\".""" + logs UX. Default value is \"user,system\". Known values are: \"user\", \"system\", and + \"user,system\".""" + action_type: Optional[Union[str, "_models.ActionType"]] = rest_field(name="actionType", visibility=["read"]) """Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for - internal only APIs. \"Internal\"""" + internal only APIs. \"Internal\"""" @overload def __init__( @@ -166,16 +175,19 @@ class OperationDisplay(_Model): provider: Optional[str] = rest_field(visibility=["read"]) """The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring - Insights\" or \"Microsoft Compute\".""" + Insights\" or \"Microsoft Compute\".""" + resource: Optional[str] = rest_field(visibility=["read"]) """The localized friendly name of the resource type related to this operation. E.g. \"Virtual - Machines\" or \"Job Schedule Collections\".""" + Machines\" or \"Job Schedule Collections\".""" + operation: Optional[str] = rest_field(visibility=["read"]) """The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create - or Update Virtual Machine\", \"Restart Virtual Machine\".""" + or Update Virtual Machine\", \"Restart Virtual Machine\".""" + description: Optional[str] = rest_field(visibility=["read"]) """The short, localized friendly description of the operation; suitable for tool tips and detailed - views.""" + views.""" class Resource(_Model): @@ -196,12 +208,15 @@ class Resource(_Model): id: Optional[str] = rest_field(visibility=["read"]) """Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or - \"Microsoft.Storage/storageAccounts\".""" + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" @@ -245,6 +260,7 @@ class TrackedResource(Resource): tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) """The geo-location where the resource lives. Required.""" @@ -269,7 +285,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ResourceGroupResource(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -331,7 +347,8 @@ class ResourceGroupResourceProperties(_Model): name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", and - \"Canceled\".""" + \"Canceled\".""" + resource_group_setting: Optional[str] = rest_field( name="resourceGroupSetting", visibility=["read", "create", "update", "delete", "query"] ) @@ -357,7 +374,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SubscriptionResource(ProxyResource): """Concrete proxy resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -400,7 +417,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SubscriptionResource1(ProxyResource): """Concrete proxy resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -456,7 +473,8 @@ class SubscriptionResource1Properties(_Model): name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", and - \"Canceled\".""" + \"Canceled\".""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The description of the resource.""" @@ -480,7 +498,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SubscriptionResource2(ProxyResource): """Concrete proxy resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -536,7 +554,8 @@ class SubscriptionResource2Properties(_Model): name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", and - \"Canceled\".""" + \"Canceled\".""" + config_value: Optional[str] = rest_field( name="configValue", visibility=["read", "create", "update", "delete", "query"] ) @@ -575,7 +594,8 @@ class SubscriptionResourceProperties(_Model): name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", and - \"Canceled\".""" + \"Canceled\".""" + subscription_setting: Optional[str] = rest_field( name="subscriptionSetting", visibility=["read", "create", "update", "delete", "query"] ) @@ -622,24 +642,29 @@ class SystemData(_Model): created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="createdByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that created the resource. Known values are: \"User\", \"Application\", - \"ManagedIdentity\", and \"Key\".""" + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] ) """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that last modified the resource. Known values are: \"User\", - \"Application\", \"ManagedIdentity\", and \"Key\".""" + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/pyproject.toml index 671c0b36201..1cf5c18087b 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-method-subscription-id/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.resourcemanager", diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py index cdad4bbc04e..1bf7fa9ba76 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_client.py @@ -31,7 +31,7 @@ class NonResourceClient: :ivar non_resource_operations: NonResourceOperationsOperations operations :vartype non_resource_operations: - azure.resourcemanager.nonresource.operations.NonResourceOperationsOperations + azure.resourcemanager.nonresource.operations.NonResourceOperationsOperations :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -39,11 +39,11 @@ class NonResourceClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py index 6a4e19e254b..82a9edb1909 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/_configuration.py @@ -31,11 +31,11 @@ class NonResourceClientConfiguration: # pylint: disable=too-many-instance-attri :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py index fbb3e175d0a..d13daad60e1 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_client.py @@ -31,7 +31,7 @@ class NonResourceClient: :ivar non_resource_operations: NonResourceOperationsOperations operations :vartype non_resource_operations: - azure.resourcemanager.nonresource.aio.operations.NonResourceOperationsOperations + azure.resourcemanager.nonresource.aio.operations.NonResourceOperationsOperations :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -39,11 +39,11 @@ class NonResourceClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py index 3b08ddcf180..dddff0f3b78 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/aio/_configuration.py @@ -31,11 +31,11 @@ class NonResourceClientConfiguration: # pylint: disable=too-many-instance-attri :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/models/_models.py index ff9dff9323f..28b715b0f59 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-non-resource/azure/resourcemanager/nonresource/models/_models.py @@ -26,6 +26,7 @@ class ErrorAdditionalInfo(_Model): type: Optional[str] = rest_field(visibility=["read"]) """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) """The additional info.""" @@ -47,12 +48,16 @@ class ErrorDetail(_Model): code: Optional[str] = rest_field(visibility=["read"]) """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( name="additionalInfo", visibility=["read"] ) @@ -89,7 +94,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class NonResource(_Model): """Though this model has ``id``, ``name``, ``type`` properties, it is not a resource as it doesn't - extends ``Resource``. + extends ``Resource``. :ivar id: An id. :vartype id: str @@ -101,8 +106,10 @@ class NonResource(_Model): id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """An id.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """A name.""" + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """A type.""" 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 77875e4b90e..e9d471588ba 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.resourcemanager", diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py index 48f2049d8d6..614852193dd 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_client.py @@ -33,12 +33,12 @@ class OperationTemplatesClient: :vartype operations: azure.resourcemanager.operationtemplates.operations.Operations :ivar check_name_availability: CheckNameAvailabilityOperations operations :vartype check_name_availability: - azure.resourcemanager.operationtemplates.operations.CheckNameAvailabilityOperations + azure.resourcemanager.operationtemplates.operations.CheckNameAvailabilityOperations :ivar lro: LroOperations operations :vartype lro: azure.resourcemanager.operationtemplates.operations.LroOperations :ivar optional_body: OptionalBodyOperations operations :vartype optional_body: - azure.resourcemanager.operationtemplates.operations.OptionalBodyOperations + azure.resourcemanager.operationtemplates.operations.OptionalBodyOperations :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -46,14 +46,14 @@ class OperationTemplatesClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py index ee2a9770a9f..ca2999fedca 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/_configuration.py @@ -31,11 +31,11 @@ class OperationTemplatesClientConfiguration: # pylint: disable=too-many-instanc :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py index ba19c7b0713..45117ba18e8 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_client.py @@ -33,12 +33,12 @@ class OperationTemplatesClient: :vartype operations: azure.resourcemanager.operationtemplates.aio.operations.Operations :ivar check_name_availability: CheckNameAvailabilityOperations operations :vartype check_name_availability: - azure.resourcemanager.operationtemplates.aio.operations.CheckNameAvailabilityOperations + azure.resourcemanager.operationtemplates.aio.operations.CheckNameAvailabilityOperations :ivar lro: LroOperations operations :vartype lro: azure.resourcemanager.operationtemplates.aio.operations.LroOperations :ivar optional_body: OptionalBodyOperations operations :vartype optional_body: - azure.resourcemanager.operationtemplates.aio.operations.OptionalBodyOperations + azure.resourcemanager.operationtemplates.aio.operations.OptionalBodyOperations :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -46,14 +46,14 @@ class OperationTemplatesClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py index 0599d954301..fd89d195f3d 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/aio/_configuration.py @@ -31,11 +31,11 @@ class OperationTemplatesClientConfiguration: # pylint: disable=too-many-instanc :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/models/_models.py index 5615de0dcce..13f0f251416 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-operation-templates/azure/resourcemanager/operationtemplates/models/_models.py @@ -30,6 +30,7 @@ class ActionRequest(_Model): name="actionType", visibility=["read", "create", "update", "delete", "query"] ) """The action type to perform.""" + parameters: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Additional action parameters.""" @@ -93,6 +94,7 @@ class ChangeAllowanceRequest(_Model): name="totalAllowed", visibility=["read", "create", "update", "delete", "query"] ) """The new total allowed widgets.""" + reason: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The reason for the change.""" @@ -126,6 +128,7 @@ class ChangeAllowanceResult(_Model): total_allowed: int = rest_field(name="totalAllowed", visibility=["read", "create", "update", "delete", "query"]) """The new total allowed widgets. Required.""" + status: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The status of the change. Required.""" @@ -159,6 +162,7 @@ class CheckNameAvailabilityRequest(_Model): name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name of the resource for which availability needs to be checked.""" + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The resource type.""" @@ -198,11 +202,13 @@ class CheckNameAvailabilityResponse(_Model): name="nameAvailable", visibility=["read", "create", "update", "delete", "query"] ) """Indicates if the resource name is available.""" + reason: Optional[Union[str, "_models.CheckNameAvailabilityReason"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """The reason why the given name is not available. Known values are: \"Invalid\" and - \"AlreadyExists\".""" + \"AlreadyExists\".""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Detailed reason why the given name is not available.""" @@ -237,6 +243,7 @@ class ErrorAdditionalInfo(_Model): type: Optional[str] = rest_field(visibility=["read"]) """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) """The additional info.""" @@ -259,12 +266,16 @@ class ErrorDetail(_Model): code: Optional[str] = rest_field(visibility=["read"]) """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( name="additionalInfo", visibility=["read"] ) @@ -377,22 +388,26 @@ class Operation(_Model): name: Optional[str] = rest_field(visibility=["read"]) """The name of the operation, as per Resource-Based Access Control (RBAC). Examples: - \"Microsoft.Compute/virtualMachines/write\", - \"Microsoft.Compute/virtualMachines/capture/action\".""" + \"Microsoft.Compute/virtualMachines/write\", + \"Microsoft.Compute/virtualMachines/capture/action\".""" + is_data_action: Optional[bool] = rest_field(name="isDataAction", visibility=["read"]) """Whether the operation applies to data-plane. This is \"true\" for data-plane operations and - \"false\" for Azure Resource Manager/control-plane operations.""" + \"false\" for Azure Resource Manager/control-plane operations.""" + display: Optional["_models.OperationDisplay"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """Localized display information for this particular operation.""" + origin: Optional[Union[str, "_models.Origin"]] = rest_field(visibility=["read"]) """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit - logs UX. Default value is \"user,system\". Known values are: \"user\", \"system\", and - \"user,system\".""" + logs UX. Default value is \"user,system\". Known values are: \"user\", \"system\", and + \"user,system\".""" + action_type: Optional[Union[str, "_models.ActionType"]] = rest_field(name="actionType", visibility=["read"]) """Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for - internal only APIs. \"Internal\"""" + internal only APIs. \"Internal\"""" @overload def __init__( @@ -431,16 +446,19 @@ class OperationDisplay(_Model): provider: Optional[str] = rest_field(visibility=["read"]) """The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring - Insights\" or \"Microsoft Compute\".""" + Insights\" or \"Microsoft Compute\".""" + resource: Optional[str] = rest_field(visibility=["read"]) """The localized friendly name of the resource type related to this operation. E.g. \"Virtual - Machines\" or \"Job Schedule Collections\".""" + Machines\" or \"Job Schedule Collections\".""" + operation: Optional[str] = rest_field(visibility=["read"]) """The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create - or Update Virtual Machine\", \"Restart Virtual Machine\".""" + or Update Virtual Machine\", \"Restart Virtual Machine\".""" + description: Optional[str] = rest_field(visibility=["read"]) """The short, localized friendly description of the operation; suitable for tool tips and detailed - views.""" + views.""" class Resource(_Model): @@ -461,12 +479,15 @@ class Resource(_Model): id: Optional[str] = rest_field(visibility=["read"]) """Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or - \"Microsoft.Storage/storageAccounts\".""" + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" @@ -493,6 +514,7 @@ class TrackedResource(Resource): tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) """The geo-location where the resource lives. Required.""" @@ -517,7 +539,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Order(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -576,8 +598,10 @@ class OrderProperties(_Model): product_id: str = rest_field(name="productId", visibility=["read", "create", "update", "delete", "query"]) """The product ID of the order. Required.""" + amount: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Amount of the product. Required.""" + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) """The provisioning state of the product.""" @@ -622,24 +646,29 @@ class SystemData(_Model): created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="createdByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that created the resource. Known values are: \"User\", \"Application\", - \"ManagedIdentity\", and \"Key\".""" + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] ) """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that last modified the resource. Known values are: \"User\", - \"Application\", \"ManagedIdentity\", and \"Key\".""" + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -670,7 +699,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Widget(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -729,8 +758,10 @@ class WidgetProperties(_Model): name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name of the widget.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The description of the widget.""" + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) """The provisioning state of the widget.""" 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 692ef4f8200..82d73c80b61 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.resourcemanager", diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py index adac713d6ca..6759d8d8561 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_client.py @@ -43,10 +43,10 @@ class ResourcesClient: :vartype singleton: azure.resourcemanager.resources.operations.SingletonOperations :ivar extensions_resources: ExtensionsResourcesOperations operations :vartype extensions_resources: - azure.resourcemanager.resources.operations.ExtensionsResourcesOperations + azure.resourcemanager.resources.operations.ExtensionsResourcesOperations :ivar location_resources: LocationResourcesOperations operations :vartype location_resources: - azure.resourcemanager.resources.operations.LocationResourcesOperations + azure.resourcemanager.resources.operations.LocationResourcesOperations :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -54,14 +54,14 @@ class ResourcesClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py index 29ca19d4ad7..31277873c7d 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/_configuration.py @@ -31,11 +31,11 @@ class ResourcesClientConfiguration: # pylint: disable=too-many-instance-attribu :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py index 1a54a432ad3..d86ad06181a 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_client.py @@ -43,10 +43,10 @@ class ResourcesClient: :vartype singleton: azure.resourcemanager.resources.aio.operations.SingletonOperations :ivar extensions_resources: ExtensionsResourcesOperations operations :vartype extensions_resources: - azure.resourcemanager.resources.aio.operations.ExtensionsResourcesOperations + azure.resourcemanager.resources.aio.operations.ExtensionsResourcesOperations :ivar location_resources: LocationResourcesOperations operations :vartype location_resources: - azure.resourcemanager.resources.aio.operations.LocationResourcesOperations + azure.resourcemanager.resources.aio.operations.LocationResourcesOperations :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -54,14 +54,14 @@ class ResourcesClient: :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :paramtype cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + Retry-After header is present. """ def __init__( diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py index c8b04c35654..359de1cdd96 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/aio/_configuration.py @@ -31,11 +31,11 @@ class ResourcesClientConfiguration: # pylint: disable=too-many-instance-attribu :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is - None. + None. :type cloud_setting: ~azure.core.AzureClouds :keyword api_version: The API version to use for this operation. Default value is - "2023-12-01-preview". Note that overriding this default value may result in unsupported - behavior. + "2023-12-01-preview". Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/models/_models.py index f70158052ce..75bf196dae8 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-resources/azure/resourcemanager/resources/models/_models.py @@ -28,6 +28,7 @@ class ErrorAdditionalInfo(_Model): type: Optional[str] = rest_field(visibility=["read"]) """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) """The additional info.""" @@ -49,12 +50,16 @@ class ErrorDetail(_Model): code: Optional[str] = rest_field(visibility=["read"]) """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( name="additionalInfo", visibility=["read"] ) @@ -107,12 +112,15 @@ class Resource(_Model): id: Optional[str] = rest_field(visibility=["read"]) """Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or - \"Microsoft.Storage/storageAccounts\".""" + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" @@ -136,7 +144,7 @@ class ExtensionResource(Resource): class ExtensionsResource(ExtensionResource): """Concrete extension resource types can be created by aliasing this type using a specific - property type. + property type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -188,11 +196,12 @@ class ExtensionsResourceProperties(_Model): description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The description of the resource.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" @overload def __init__( @@ -231,7 +240,7 @@ class ProxyResource(Resource): class LocationResource(ProxyResource): """Concrete proxy resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -283,11 +292,12 @@ class LocationResourceProperties(_Model): description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The description of the resource.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" @overload def __init__( @@ -362,7 +372,8 @@ class NestedProxyResourceProperties(_Model): name="provisioningState", visibility=["read"] ) """Provisioning State of the nested child Resource. Known values are: \"Succeeded\", \"Failed\", - \"Canceled\", \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + \"Canceled\", \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Nested resource description.""" @@ -395,6 +406,7 @@ class NotificationDetails(_Model): message: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The notification message. Required.""" + urgent: bool = rest_field(visibility=["read", "create", "update", "delete", "query"]) """If true, the notification is urgent. Required.""" @@ -439,6 +451,7 @@ class TrackedResource(Resource): tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) """The geo-location where the resource lives. Required.""" @@ -463,7 +476,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SingletonTrackedResource(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -523,7 +536,8 @@ class SingletonTrackedResourceProperties(_Model): name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The description of the resource.""" @@ -566,24 +580,29 @@ class SystemData(_Model): created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="createdByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that created the resource. Known values are: \"User\", \"Application\", - \"ManagedIdentity\", and \"Key\".""" + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] ) """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] ) """The type of identity that last modified the resource. Known values are: \"User\", - \"Application\", \"ManagedIdentity\", and \"Key\".""" + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -614,7 +633,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class TopLevelTrackedResource(TrackedResource): """Concrete tracked resource types can be created by aliasing this type using a specific property - type. + type. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. @@ -674,7 +693,8 @@ class TopLevelTrackedResourceProperties(_Model): name="provisioningState", visibility=["read"] ) """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The description of the resource.""" 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 5b046216dc3..81661bc317a 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.resourcemanager", 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 a69161c043b..20c90363f2c 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "azure", "azure.specialheaders", diff --git a/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/pyproject.toml b/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/pyproject.toml index 7622041a7b6..e873875c5a3 100644 --- a/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specs", "specs.azure", diff --git a/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/specs/azure/versioning/previewversion/models/_models.py b/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/specs/azure/versioning/previewversion/models/_models.py index 1518444acaa..973677e95da 100644 --- a/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/specs/azure/versioning/previewversion/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-versioning-previewversion/specs/azure/versioning/previewversion/models/_models.py @@ -84,8 +84,10 @@ class Widget(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Widget identifier. Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Widget name. Required.""" + color: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Widget color, only available in preview version.""" 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 30ceb126351..1d075fc99f5 100644 --- a/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-namespace/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", ] diff --git a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/aio/_client.py b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/aio/_client.py index 715c2a01200..ea0b369da19 100644 --- a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/aio/_client.py @@ -26,7 +26,7 @@ class EnumConflictClient: # pylint: disable=client-accepts-api-version-keyword :vartype first_operations: client.naming.enumconflict.aio.operations.FirstOperationsOperations :ivar second_operations: SecondOperationsOperations operations :vartype second_operations: - client.naming.enumconflict.aio.operations.SecondOperationsOperations + client.naming.enumconflict.aio.operations.SecondOperationsOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/firstnamespace/models/_models.py b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/firstnamespace/models/_models.py index f188390e9cc..b9b05b19662 100644 --- a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/firstnamespace/models/_models.py +++ b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/firstnamespace/models/_models.py @@ -26,6 +26,7 @@ class FirstModel(_Model): status: Union[str, "_models.Status"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Status from first namespace. Required. Known values are: \"active\" and \"inactive\".""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Name of the item. Required.""" diff --git a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/secondnamespace/models/_models.py b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/secondnamespace/models/_models.py index 6ce923b2df7..38aa16bd0ca 100644 --- a/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/secondnamespace/models/_models.py +++ b/packages/typespec-python/test/azure/generated/client-naming-enum-conflict/client/naming/enumconflict/secondnamespace/models/_models.py @@ -27,6 +27,7 @@ class SecondModel(_Model): status: Union[str, "_models.SecondStatus"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Status from second namespace. Required. Known values are: \"running\" and \"stopped\".""" + description: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Description of the item. Required.""" 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 97f6f849ec9..e63087972c0 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.naming", 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 759612dfc5d..38eaf0bc257 100644 --- a/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-naming/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.naming", diff --git a/packages/typespec-python/test/azure/generated/client-overload/client/overload/models/_models.py b/packages/typespec-python/test/azure/generated/client-overload/client/overload/models/_models.py index cf2100b83b5..d3ded806396 100644 --- a/packages/typespec-python/test/azure/generated/client-overload/client/overload/models/_models.py +++ b/packages/typespec-python/test/azure/generated/client-overload/client/overload/models/_models.py @@ -25,8 +25,10 @@ class Resource(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + scope: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 6babd69cb71..9fa5dd68e67 100644 --- a/packages/typespec-python/test/azure/generated/client-overload/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-overload/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", ] diff --git a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_client.py b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_client.py index aad355f1ae4..dd1ef9a46d4 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_client.py @@ -34,11 +34,11 @@ class FirstClient(_FirstClientOperationsMixin): # pylint: disable=client-accept :ivar group4: Group4Operations operations :vartype group4: client.structure.clientoperationgroup.operations.Group4Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ @@ -117,11 +117,11 @@ class SecondClient(_SecondClientOperationsMixin): # pylint: disable=client-acce :ivar group5: Group5Operations operations :vartype group5: client.structure.clientoperationgroup.operations.Group5Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_configuration.py index ce071b46d6b..80d3f16f4af 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/_configuration.py @@ -21,11 +21,11 @@ class FirstClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ @@ -60,11 +60,11 @@ class SecondClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_client.py b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_client.py index 0639d170958..02a4342b517 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_client.py @@ -34,11 +34,11 @@ class FirstClient(_FirstClientOperationsMixin): # pylint: disable=client-accept :ivar group4: Group4Operations operations :vartype group4: client.structure.clientoperationgroup.aio.operations.Group4Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ @@ -119,11 +119,11 @@ class SecondClient(_SecondClientOperationsMixin): # pylint: disable=client-acce :ivar group5: Group5Operations operations :vartype group5: client.structure.clientoperationgroup.aio.operations.Group5Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_configuration.py index b35a7ee6a23..8b3071de552 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/client/structure/clientoperationgroup/aio/_configuration.py @@ -21,11 +21,11 @@ class FirstClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ @@ -60,11 +60,11 @@ class SecondClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.clientoperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/pyproject.toml b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/pyproject.toml index fc0cc3fa273..6e9f5b4ba07 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/client-structure-clientoperationgroup/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.structure", diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_client.py b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_client.py index a657b69cc82..76e22891d5b 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_client.py @@ -22,14 +22,10 @@ class ServiceClient(_ServiceClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Test that we can use @client and @operationGroup decorators to customize client side code - structure, such as: - - 1. have everything as default. - 2. to rename client or operation group - 3. one client can have more than one operations groups - 4. split one interface into two clients - 5. have two clients with operations come from different interfaces - 6. have two clients with a hierarchy relation. + structure, such as: 1. have everything as default. 2. to rename client or operation group 3. + one client can have more than one operations groups 4. split one interface into two clients 5. + have two clients with operations come from different interfaces 6. have two clients with a + hierarchy relation. :ivar baz: BazOperations operations :vartype baz: client.structure.service.operations.BazOperations @@ -40,11 +36,11 @@ class ServiceClient(_ServiceClientOperationsMixin): # pylint: disable=client-ac :ivar bar: BarOperations operations :vartype bar: client.structure.service.operations.BarOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.service.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_configuration.py index 30fb07a57b1..00e269e867e 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/_configuration.py @@ -21,11 +21,11 @@ class ServiceClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.service.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_client.py b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_client.py index e2f0cca115f..aac0fbd4ceb 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_client.py @@ -22,14 +22,10 @@ class ServiceClient(_ServiceClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Test that we can use @client and @operationGroup decorators to customize client side code - structure, such as: - - 1. have everything as default. - 2. to rename client or operation group - 3. one client can have more than one operations groups - 4. split one interface into two clients - 5. have two clients with operations come from different interfaces - 6. have two clients with a hierarchy relation. + structure, such as: 1. have everything as default. 2. to rename client or operation group 3. + one client can have more than one operations groups 4. split one interface into two clients 5. + have two clients with operations come from different interfaces 6. have two clients with a + hierarchy relation. :ivar baz: BazOperations operations :vartype baz: client.structure.service.aio.operations.BazOperations @@ -40,11 +36,11 @@ class ServiceClient(_ServiceClientOperationsMixin): # pylint: disable=client-ac :ivar bar: BarOperations operations :vartype bar: client.structure.service.aio.operations.BarOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.service.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_configuration.py index deab582a1ff..cb95411f69b 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-default/client/structure/service/aio/_configuration.py @@ -21,11 +21,11 @@ class ServiceClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.service.models.ClientType """ 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 afcd3910fe4..ad17fa7c19d 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.structure", diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_client.py b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_client.py index 0754cd63c5b..2821f5179e4 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_client.py @@ -24,11 +24,11 @@ class ClientAClient(_ClientAClientOperationsMixin): # pylint: disable=client-ac """ClientAClient. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ @@ -103,11 +103,11 @@ class ClientBClient(_ClientBClientOperationsMixin): # pylint: disable=client-ac """ClientBClient. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_configuration.py index 3d48f768ccc..d7c31c81053 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/_configuration.py @@ -21,11 +21,11 @@ class ClientAClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ @@ -60,11 +60,11 @@ class ClientBClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_client.py b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_client.py index c0caa421db7..81842365a00 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_client.py @@ -24,11 +24,11 @@ class ClientAClient(_ClientAClientOperationsMixin): # pylint: disable=client-ac """ClientAClient. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ @@ -105,11 +105,11 @@ class ClientBClient(_ClientBClientOperationsMixin): # pylint: disable=client-ac """ClientBClient. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_configuration.py index 6cf7cc02275..3e4c9e30f86 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-multiclient/client/structure/multiclient/aio/_configuration.py @@ -21,11 +21,11 @@ class ClientAClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ @@ -60,11 +60,11 @@ class ClientBClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.multiclient.models.ClientType """ 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 43b084b5e35..d2215e0e0a1 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.structure", diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_client.py b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_client.py index e82ad01b4eb..39e9085bf07 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_client.py @@ -28,11 +28,11 @@ class RenamedOperationClient( :ivar group: GroupOperations operations :vartype group: client.structure.renamedoperation.operations.GroupOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.renamedoperation.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_configuration.py index aab0c5dba9e..ee207147c60 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/_configuration.py @@ -21,11 +21,11 @@ class RenamedOperationClientConfiguration: # pylint: disable=too-many-instance- attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.renamedoperation.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_client.py b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_client.py index 3b0a7f3ffae..3c521f139f7 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_client.py @@ -28,11 +28,11 @@ class RenamedOperationClient( :ivar group: GroupOperations operations :vartype group: client.structure.renamedoperation.aio.operations.GroupOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.renamedoperation.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_configuration.py index 1ee559007a5..378931cf3a1 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-renamedoperation/client/structure/renamedoperation/aio/_configuration.py @@ -21,11 +21,11 @@ class RenamedOperationClientConfiguration: # pylint: disable=too-many-instance- attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.renamedoperation.models.ClientType """ 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 994bfe5f79c..4a8ac4d696c 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.structure", diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_client.py b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_client.py index 70e2eca45c0..778bb4b32ce 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_client.py @@ -28,11 +28,11 @@ class TwoOperationGroupClient: # pylint: disable=client-accepts-api-version-key :ivar group2: Group2Operations operations :vartype group2: client.structure.twooperationgroup.operations.Group2Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.twooperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_configuration.py index 4379fe0f8fe..40735467023 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/_configuration.py @@ -21,11 +21,11 @@ class TwoOperationGroupClientConfiguration: # pylint: disable=too-many-instance attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.twooperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_client.py b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_client.py index cc483e5523d..5891cd473db 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_client.py @@ -28,11 +28,11 @@ class TwoOperationGroupClient: # pylint: disable=client-accepts-api-version-key :ivar group2: Group2Operations operations :vartype group2: client.structure.twooperationgroup.aio.operations.Group2Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.twooperationgroup.models.ClientType """ diff --git a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_configuration.py b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_configuration.py index fb73832d5c1..13cf94a3dc3 100644 --- a/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/client-structure-twooperationgroup/client/structure/twooperationgroup/aio/_configuration.py @@ -21,11 +21,11 @@ class TwoOperationGroupClientConfiguration: # pylint: disable=too-many-instance attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param client: Need to be set as 'default', 'multi-client', 'renamed-operation', - 'two-operation-group' in client. Known values are: "default", "multi-client", - "renamed-operation", "two-operation-group", and "client-operation-group". Required. + 'two-operation-group' in client. Known values are: "default", "multi-client", + "renamed-operation", "two-operation-group", and "client-operation-group". Required. :type client: str or ~client.structure.twooperationgroup.models.ClientType """ 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 30e515ff654..8788a66bbab 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "client", "client.structure", 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 705e18d73e8..19dd16797f0 100644 --- a/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-bytes/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 d3dc23e1a5f..a67f13f8b22 100644 --- a/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-datetime/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 11a3e44c439..c1bbc98e8cb 100644 --- a/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-duration/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 6b9d6952e06..bd315eaee0c 100644 --- a/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/encode-numeric/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 15b4ddf504b..e1761f91e07 100644 --- a/packages/typespec-python/test/azure/generated/generation-subdir/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/generation-subdir/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "generation", ] diff --git a/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py b/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py index ad63b897c9e..7285c2ff4a0 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py +++ b/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py @@ -23,6 +23,7 @@ class ReadOnlyModel(_Model): optional_nullable_int_list: Optional[list[int]] = rest_field(name="optionalNullableIntList", visibility=["read"]) """Optional readonly nullable int list.""" + optional_string_record: Optional[dict[str, str]] = rest_field(name="optionalStringRecord", visibility=["read"]) """Optional readonly string dictionary.""" @@ -42,10 +43,13 @@ class VisibilityModel(_Model): read_prop: str = rest_field(name="readProp", visibility=["read"]) """Required string, illustrating a readonly property. Required.""" + create_prop: list[str] = rest_field(name="createProp", visibility=["create"]) """Required string[], illustrating a create property. Required.""" + update_prop: list[int] = rest_field(name="updateProp", visibility=["update"]) """Required int32[], illustrating a update property. Required.""" + delete_prop: bool = rest_field(name="deleteProp", visibility=["delete"]) """Required bool, illustrating a delete property. Required.""" diff --git a/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml b/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml index 08c5a7de16b..0bcd2ea99ba 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/headasbooleanfalse/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] diff --git a/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py index ad63b897c9e..7285c2ff4a0 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py +++ b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py @@ -23,6 +23,7 @@ class ReadOnlyModel(_Model): optional_nullable_int_list: Optional[list[int]] = rest_field(name="optionalNullableIntList", visibility=["read"]) """Optional readonly nullable int list.""" + optional_string_record: Optional[dict[str, str]] = rest_field(name="optionalStringRecord", visibility=["read"]) """Optional readonly string dictionary.""" @@ -42,10 +43,13 @@ class VisibilityModel(_Model): read_prop: str = rest_field(name="readProp", visibility=["read"]) """Required string, illustrating a readonly property. Required.""" + create_prop: list[str] = rest_field(name="createProp", visibility=["create"]) """Required string[], illustrating a create property. Required.""" + update_prop: list[int] = rest_field(name="updateProp", visibility=["update"]) """Required int32[], illustrating a update property. Required.""" + delete_prop: bool = rest_field(name="deleteProp", visibility=["delete"]) """Required bool, illustrating a delete property. Required.""" diff --git a/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml b/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml index cb50ad481ac..1222e405d8a 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/headasbooleantrue/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] 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 4c3fdb3702c..48d4873005e 100644 --- a/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-basic/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] diff --git a/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py b/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py index 58b2dac665e..07af8d7bc69 100644 --- a/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py @@ -27,7 +27,7 @@ class BodyOptionalityClient( :ivar optional_explicit: OptionalExplicitOperations operations :vartype optional_explicit: - parameters.bodyoptionality.aio.operations.OptionalExplicitOperations + parameters.bodyoptionality.aio.operations.OptionalExplicitOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ 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 9650182c546..b4e6a96f4c4 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 2a8ba32af56..97c973f3e69 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 c9b61afb757..59465a493a5 100644 --- a/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-path/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 89693a37882..0c94c369db6 100644 --- a/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/parameters-spread/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 3f912a22daf..7480ed02128 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py index 128c9eefd51..9246245fd4c 100644 --- a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py @@ -69,6 +69,7 @@ class Resource(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) map: Optional[dict[str, "_models.InnerModel"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] 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 51fb16f1bfe..b54f65d82c9 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] 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 14934d96775..7109685ddd2 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/models/_models.py b/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/models/_models.py index f18ec330312..8b10bea46cf 100644 --- a/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-multipart/payload/multipart/models/_models.py @@ -85,6 +85,7 @@ class BinaryArrayPartsRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + pictures: list[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -126,16 +127,20 @@ class ComplexHttpPartsModelRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + address: "_models.Address" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) """Required.""" + previous_addresses: list["_models.Address"] = rest_field( name="previousAddresses", visibility=["read", "create", "update", "delete", "query"] ) """Required.""" + pictures: list[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -178,12 +183,15 @@ class ComplexPartsRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + address: "_models.Address" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) """Required.""" + pictures: list[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -339,6 +347,7 @@ class JsonPartRequest(_Model): address: "_models.Address" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -376,6 +385,7 @@ class MultiBinaryPartsRequest(_Model): name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) """Required.""" + picture: Optional[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -410,6 +420,7 @@ class MultiPartRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) 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 2027739d3f6..de120f55216 100644 --- a/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-multipart/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/aio/_client.py b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/aio/_client.py index 271d1c77608..efa8b175dad 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/aio/_client.py @@ -25,7 +25,7 @@ class PageableClient(_PageableClientOperationsMixin): # pylint: disable=client- :ivar server_driven_pagination: ServerDrivenPaginationOperations operations :vartype server_driven_pagination: - payload.pageable.aio.operations.ServerDrivenPaginationOperations + payload.pageable.aio.operations.ServerDrivenPaginationOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py index 222a8739e63..779b53d55aa 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py @@ -23,6 +23,7 @@ class Pet(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 ac74cc09158..048e1b41e61 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-pageable/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_client.py b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_client.py index 05d84532b37..ae6e2cd615b 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_client.py +++ b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/_client.py @@ -39,34 +39,34 @@ class XmlClient: # pylint: disable=client-accepts-api-version-keyword,too-many- :vartype simple_model_value: payload.xml.operations.SimpleModelValueOperations :ivar model_with_simple_arrays_value: ModelWithSimpleArraysValueOperations operations :vartype model_with_simple_arrays_value: - payload.xml.operations.ModelWithSimpleArraysValueOperations + payload.xml.operations.ModelWithSimpleArraysValueOperations :ivar model_with_array_of_model_value: ModelWithArrayOfModelValueOperations operations :vartype model_with_array_of_model_value: - payload.xml.operations.ModelWithArrayOfModelValueOperations + payload.xml.operations.ModelWithArrayOfModelValueOperations :ivar model_with_optional_field_value: ModelWithOptionalFieldValueOperations operations :vartype model_with_optional_field_value: - payload.xml.operations.ModelWithOptionalFieldValueOperations + payload.xml.operations.ModelWithOptionalFieldValueOperations :ivar model_with_attributes_value: ModelWithAttributesValueOperations operations :vartype model_with_attributes_value: payload.xml.operations.ModelWithAttributesValueOperations :ivar model_with_unwrapped_array_value: ModelWithUnwrappedArrayValueOperations operations :vartype model_with_unwrapped_array_value: - payload.xml.operations.ModelWithUnwrappedArrayValueOperations + payload.xml.operations.ModelWithUnwrappedArrayValueOperations :ivar model_with_renamed_arrays_value: ModelWithRenamedArraysValueOperations operations :vartype model_with_renamed_arrays_value: - payload.xml.operations.ModelWithRenamedArraysValueOperations + payload.xml.operations.ModelWithRenamedArraysValueOperations :ivar model_with_renamed_fields_value: ModelWithRenamedFieldsValueOperations operations :vartype model_with_renamed_fields_value: - payload.xml.operations.ModelWithRenamedFieldsValueOperations + payload.xml.operations.ModelWithRenamedFieldsValueOperations :ivar model_with_empty_array_value: ModelWithEmptyArrayValueOperations operations :vartype model_with_empty_array_value: - payload.xml.operations.ModelWithEmptyArrayValueOperations + payload.xml.operations.ModelWithEmptyArrayValueOperations :ivar model_with_text_value: ModelWithTextValueOperations operations :vartype model_with_text_value: payload.xml.operations.ModelWithTextValueOperations :ivar model_with_dictionary_value: ModelWithDictionaryValueOperations operations :vartype model_with_dictionary_value: payload.xml.operations.ModelWithDictionaryValueOperations :ivar model_with_encoded_names_value: ModelWithEncodedNamesValueOperations operations :vartype model_with_encoded_names_value: - payload.xml.operations.ModelWithEncodedNamesValueOperations + payload.xml.operations.ModelWithEncodedNamesValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/aio/_client.py b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/aio/_client.py index 9bff62debf6..80d55896575 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/aio/_client.py @@ -39,36 +39,36 @@ class XmlClient: # pylint: disable=client-accepts-api-version-keyword,too-many- :vartype simple_model_value: payload.xml.aio.operations.SimpleModelValueOperations :ivar model_with_simple_arrays_value: ModelWithSimpleArraysValueOperations operations :vartype model_with_simple_arrays_value: - payload.xml.aio.operations.ModelWithSimpleArraysValueOperations + payload.xml.aio.operations.ModelWithSimpleArraysValueOperations :ivar model_with_array_of_model_value: ModelWithArrayOfModelValueOperations operations :vartype model_with_array_of_model_value: - payload.xml.aio.operations.ModelWithArrayOfModelValueOperations + payload.xml.aio.operations.ModelWithArrayOfModelValueOperations :ivar model_with_optional_field_value: ModelWithOptionalFieldValueOperations operations :vartype model_with_optional_field_value: - payload.xml.aio.operations.ModelWithOptionalFieldValueOperations + payload.xml.aio.operations.ModelWithOptionalFieldValueOperations :ivar model_with_attributes_value: ModelWithAttributesValueOperations operations :vartype model_with_attributes_value: - payload.xml.aio.operations.ModelWithAttributesValueOperations + payload.xml.aio.operations.ModelWithAttributesValueOperations :ivar model_with_unwrapped_array_value: ModelWithUnwrappedArrayValueOperations operations :vartype model_with_unwrapped_array_value: - payload.xml.aio.operations.ModelWithUnwrappedArrayValueOperations + payload.xml.aio.operations.ModelWithUnwrappedArrayValueOperations :ivar model_with_renamed_arrays_value: ModelWithRenamedArraysValueOperations operations :vartype model_with_renamed_arrays_value: - payload.xml.aio.operations.ModelWithRenamedArraysValueOperations + payload.xml.aio.operations.ModelWithRenamedArraysValueOperations :ivar model_with_renamed_fields_value: ModelWithRenamedFieldsValueOperations operations :vartype model_with_renamed_fields_value: - payload.xml.aio.operations.ModelWithRenamedFieldsValueOperations + payload.xml.aio.operations.ModelWithRenamedFieldsValueOperations :ivar model_with_empty_array_value: ModelWithEmptyArrayValueOperations operations :vartype model_with_empty_array_value: - payload.xml.aio.operations.ModelWithEmptyArrayValueOperations + payload.xml.aio.operations.ModelWithEmptyArrayValueOperations :ivar model_with_text_value: ModelWithTextValueOperations operations :vartype model_with_text_value: payload.xml.aio.operations.ModelWithTextValueOperations :ivar model_with_dictionary_value: ModelWithDictionaryValueOperations operations :vartype model_with_dictionary_value: - payload.xml.aio.operations.ModelWithDictionaryValueOperations + payload.xml.aio.operations.ModelWithDictionaryValueOperations :ivar model_with_encoded_names_value: ModelWithEncodedNamesValueOperations operations :vartype model_with_encoded_names_value: - payload.xml.aio.operations.ModelWithEncodedNamesValueOperations + payload.xml.aio.operations.ModelWithEncodedNamesValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/models/_models.py b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/models/_models.py index 971846ee186..0292e7cca99 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-xml/payload/xml/models/_models.py @@ -65,11 +65,13 @@ class ModelWithAttributes(_Model): xml={"attribute": True, "name": "id1", "text": False, "unwrapped": False}, ) """Required.""" + id2: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": True, "name": "id2", "text": False, "unwrapped": False}, ) """Required.""" + enabled: bool = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "enabled", "text": False, "unwrapped": False}, @@ -180,6 +182,7 @@ class ModelWithEncodedNames(_Model): xml={"attribute": False, "name": "SimpleModelData", "text": False, "unwrapped": False}, ) """Required.""" + colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "string", "name": "PossibleColors", "text": False, "unwrapped": False}, @@ -221,6 +224,7 @@ class ModelWithOptionalField(_Model): xml={"attribute": False, "name": "item", "text": False, "unwrapped": False}, ) """Required.""" + value: Optional[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "value", "text": False, "unwrapped": False}, @@ -249,7 +253,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ModelWithRenamedArrays(_Model): """Contains fields of wrapped and unwrapped arrays of primitive types that have different XML - representations. + representations. :ivar colors: Required. :vartype colors: list[str] @@ -262,6 +266,7 @@ class ModelWithRenamedArrays(_Model): xml={"attribute": False, "itemsName": "Colors", "name": "Colors", "text": False, "unwrapped": True}, ) """Required.""" + counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "int32", "name": "Counts", "text": False, "unwrapped": False}, @@ -304,6 +309,7 @@ class ModelWithRenamedFields(_Model): xml={"attribute": False, "name": "InputData", "text": False, "unwrapped": False}, ) """Required.""" + output_data: "_models.SimpleModel" = rest_field( name="outputData", visibility=["read", "create", "update", "delete", "query"], @@ -346,6 +352,7 @@ class ModelWithSimpleArrays(_Model): xml={"attribute": False, "itemsName": "string", "name": "colors", "text": False, "unwrapped": False}, ) """Required.""" + counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, @@ -387,6 +394,7 @@ class ModelWithText(_Model): xml={"attribute": True, "name": "language", "text": False, "unwrapped": False}, ) """Required.""" + content: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "content", "text": True, "unwrapped": False}, @@ -428,6 +436,7 @@ class ModelWithUnwrappedArray(_Model): xml={"attribute": False, "itemsName": "colors", "name": "colors", "text": False, "unwrapped": True}, ) """Required.""" + counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, @@ -469,6 +478,7 @@ class SimpleModel(_Model): xml={"attribute": False, "name": "name", "text": False, "unwrapped": False}, ) """Required.""" + age: int = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "age", "text": False, "unwrapped": False}, 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 69512f93bba..3fc763ed743 100644 --- a/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/payload-xml/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] 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 eb7ec7137fc..7e8c004dd65 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "resiliency", "resiliency.srv", diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_client.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_client.py index 123882b134a..5702d60e0fa 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_client.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_client.py @@ -21,18 +21,18 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixin): """Test that we can grow up a service spec and service deployment into a multi-versioned service - with full client support. + with full client support. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default - value is "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is "v1". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py index e4da6df9461..9b49a257e43 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_configuration.py @@ -20,15 +20,15 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default - value is "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is "v1". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_operations/_operations.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_operations/_operations.py index fb0cf942053..86c437607ed 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/_operations/_operations.py @@ -76,7 +76,7 @@ class _ResiliencyServiceDrivenClientOperationsMixin( @distributed_trace def from_none(self, **kwargs: Any) -> bool: """Test that currently accepts no parameters, will be updated in next spec to accept a new - optional parameter as well. + optional parameter as well. :return: bool :rtype: bool @@ -128,7 +128,7 @@ def from_one_required( # pylint: disable=inconsistent-return-statements self, *, parameter: str, **kwargs: Any ) -> None: """Test that currently accepts one required parameter, will be updated in next spec to accept a - new optional parameter as well. + new optional parameter as well. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -182,7 +182,7 @@ def from_one_optional( # pylint: disable=inconsistent-return-statements self, *, parameter: Optional[str] = None, **kwargs: Any ) -> None: """Test that currently accepts one optional parameter, will be updated in next spec to accept a - new optional parameter as well. + new optional parameter as well. :keyword parameter: I am an optional parameter. Default value is None. :paramtype parameter: str diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py index 620cfc1d4a6..4d5efafaf3b 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_client.py @@ -21,18 +21,18 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixin): """Test that we can grow up a service spec and service deployment into a multi-versioned service - with full client support. + with full client support. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default - value is "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is "v1". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py index 8fc2b09c37f..a416aca20a1 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_configuration.py @@ -20,15 +20,15 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in 'v1'. This represents the API version of the service. Will grow - up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default - value is "v1". Note that overriding this default value may result in unsupported behavior. + up in the next deployment to be both 'v1' and 'v2'. Known values are "v1" and None. Default + value is "v1". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_operations/_operations.py index 9f87a007f7d..d9d319326b6 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven1/resiliency/srv/driven1/aio/_operations/_operations.py @@ -41,7 +41,7 @@ class _ResiliencyServiceDrivenClientOperationsMixin( @distributed_trace_async async def from_none(self, **kwargs: Any) -> bool: """Test that currently accepts no parameters, will be updated in next spec to accept a new - optional parameter as well. + optional parameter as well. :return: bool :rtype: bool @@ -91,7 +91,7 @@ async def from_none(self, **kwargs: Any) -> bool: @distributed_trace_async async def from_one_required(self, *, parameter: str, **kwargs: Any) -> None: """Test that currently accepts one required parameter, will be updated in next spec to accept a - new optional parameter as well. + new optional parameter as well. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -143,7 +143,7 @@ async def from_one_required(self, *, parameter: str, **kwargs: Any) -> None: @distributed_trace_async async def from_one_optional(self, *, parameter: Optional[str] = None, **kwargs: Any) -> None: """Test that currently accepts one optional parameter, will be updated in next spec to accept a - new optional parameter as well. + new optional parameter as well. :keyword parameter: I am an optional parameter. Default value is None. :paramtype parameter: str 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 d29025e49a9..a141a085c52 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "resiliency", "resiliency.srv", diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_client.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_client.py index e058a85291b..26421138f04 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_client.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_client.py @@ -21,35 +21,29 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixin): """Test that we can grow up a service spec and service deployment into a multi-versioned service - with full client support. - - There are three concepts that should be clarified: - - 1. Client spec version: refers to the spec that the client is generated from. 'v1' is a client - generated from old.tsp and 'v2' is a client generated from main.tsp. - 2. Service deployment version: refers to a deployment version of the service. 'v1' represents - the initial deployment of the service with a single api version. 'v2' represents the new - deployment of a service with multiple api versions - 3. Api version: The initial deployment of the service only supports api version 'v1'. The new - deployment of the service supports api versions 'v1' and 'v2'. - - We test the following configurations from this service spec: - - * A client generated from the second service spec can call the second deployment of a service - with api version v1 - * A client generated from the second service spec can call the second deployment of a service - with api version v2. + with full client support. There are three concepts that should be clarified: 1. Client spec + version: refers to the spec that the client is generated from. 'v1' is a client generated from + old.tsp and 'v2' is a client generated from main.tsp. 2. Service deployment version: refers to + a deployment version of the service. 'v1' represents the initial deployment of the service with + a single api version. 'v2' represents the new deployment of a service with multiple api + versions 3. Api version: The initial deployment of the service only supports api version 'v1'. + The new deployment of the service supports api versions 'v1' and 'v2'. We test the following + configurations from this service spec: + * A client generated from the second service spec can call the second deployment of a + service with api version v1 + * A client generated from the second service spec can call the second deployment of a + service with api version v2. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2" and None. Default value is "v2". Note that overriding this - default value may result in unsupported behavior. + service. Known values are "v2" and None. Default value is "v2". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py index 5a153640f3a..071cdf03276 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_configuration.py @@ -20,15 +20,15 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2" and None. Default value is "v2". Note that overriding this - default value may result in unsupported behavior. + service. Known values are "v2" and None. Default value is "v2". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py index 70bb3cf6128..95119f69e45 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/_operations/_operations.py @@ -212,7 +212,7 @@ def from_one_required( # pylint: disable=inconsistent-return-statements self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any ) -> None: """Operation that grew up from accepting one required parameter to accepting a required parameter - and an optional parameter. + and an optional parameter. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -273,7 +273,7 @@ def from_one_optional( # pylint: disable=inconsistent-return-statements self, *, parameter: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any ) -> None: """Tests that we can grow up an operation from accepting one optional parameter to accepting two - optional parameters. + optional parameters. :keyword parameter: I am an optional parameter. Default value is None. :paramtype parameter: str diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py index bd7f0c14624..fe8e2c3da58 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_client.py @@ -21,35 +21,29 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixin): """Test that we can grow up a service spec and service deployment into a multi-versioned service - with full client support. - - There are three concepts that should be clarified: - - 1. Client spec version: refers to the spec that the client is generated from. 'v1' is a client - generated from old.tsp and 'v2' is a client generated from main.tsp. - 2. Service deployment version: refers to a deployment version of the service. 'v1' represents - the initial deployment of the service with a single api version. 'v2' represents the new - deployment of a service with multiple api versions - 3. Api version: The initial deployment of the service only supports api version 'v1'. The new - deployment of the service supports api versions 'v1' and 'v2'. - - We test the following configurations from this service spec: - - * A client generated from the second service spec can call the second deployment of a service - with api version v1 - * A client generated from the second service spec can call the second deployment of a service - with api version v2. + with full client support. There are three concepts that should be clarified: 1. Client spec + version: refers to the spec that the client is generated from. 'v1' is a client generated from + old.tsp and 'v2' is a client generated from main.tsp. 2. Service deployment version: refers to + a deployment version of the service. 'v1' represents the initial deployment of the service with + a single api version. 'v2' represents the new deployment of a service with multiple api + versions 3. Api version: The initial deployment of the service only supports api version 'v1'. + The new deployment of the service supports api versions 'v1' and 'v2'. We test the following + configurations from this service spec: + * A client generated from the second service spec can call the second deployment of a + service with api version v1 + * A client generated from the second service spec can call the second deployment of a + service with api version v2. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2" and None. Default value is "v2". Note that overriding this - default value may result in unsupported behavior. + service. Known values are "v2" and None. Default value is "v2". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py index bd35e1c0c81..378aae67e69 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_configuration.py @@ -20,15 +20,15 @@ class ResiliencyServiceDrivenClientConfiguration: # pylint: disable=too-many-in attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :param service_deployment_version: Pass in either 'v1' or 'v2'. This represents a version of - the service deployment in history. 'v1' is for the deployment when the service had only one api - version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. + the service deployment in history. 'v1' is for the deployment when the service had only one api + version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'. Required. :type service_deployment_version: str :keyword api_version: Pass in either 'v1' or 'v2'. This represents the API version of a - service. Known values are "v2" and None. Default value is "v2". Note that overriding this - default value may result in unsupported behavior. + service. Known values are "v2" and None. Default value is "v2". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py index 61df8cafd84..b5d027b28d9 100644 --- a/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/resiliency-srv-driven2/resiliency/srv/driven2/aio/_operations/_operations.py @@ -155,7 +155,7 @@ async def from_none(self, *, new_parameter: Optional[str] = None, **kwargs: Any) ) async def from_one_required(self, *, parameter: str, new_parameter: Optional[str] = None, **kwargs: Any) -> None: """Operation that grew up from accepting one required parameter to accepting a required parameter - and an optional parameter. + and an optional parameter. :keyword parameter: I am a required parameter. Required. :paramtype parameter: str @@ -216,7 +216,7 @@ async def from_one_optional( self, *, parameter: Optional[str] = None, new_parameter: Optional[str] = None, **kwargs: Any ) -> None: """Tests that we can grow up an operation from accepting one optional parameter to accepting two - optional parameters. + optional parameters. :keyword parameter: I am an optional parameter. Default value is None. :paramtype parameter: str 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 e4300678432..8d65cc32eed 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "response", ] diff --git a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/models/_models.py b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/models/_models.py index 74ca64d8057..dd08bb90058 100644 --- a/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/models/_models.py +++ b/packages/typespec-python/test/azure/generated/response-status-code-range/response/statuscoderange/models/_models.py @@ -51,6 +51,7 @@ class ErrorInRange(_Model): code: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + message: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -84,6 +85,7 @@ class NotFoundError(_Model): code: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"]) """Required.""" diff --git a/packages/typespec-python/test/azure/generated/routes/pyproject.toml b/packages/typespec-python/test/azure/generated/routes/pyproject.toml index dd97483bd25..293ba7b0e2d 100644 --- a/packages/typespec-python/test/azure/generated/routes/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/routes/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] 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 071e366b3a7..9fabd03f6d8 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "serialization", "serialization.encodedname", 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 3114bf6ffbe..4d868f348a2 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.endpoint", diff --git a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py index 5c189762ff7..0cb4739d7f4 100644 --- a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py +++ b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py @@ -21,7 +21,7 @@ class NotDefinedClient(_NotDefinedClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let - user pass in. + user pass in. :param endpoint: Service host. Required. :type endpoint: str diff --git a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py index a46421e934d..00053e3c6ea 100644 --- a/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py @@ -21,7 +21,7 @@ class NotDefinedClient(_NotDefinedClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let - user pass in. + user pass in. :param endpoint: Service host. Required. :type endpoint: str 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 556ad25ef0c..55d7b22eb5b 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.path", diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_client.py b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_client.py index 0b79bd36b2a..f778e80d03b 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_client.py +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_client.py @@ -23,10 +23,10 @@ class MultipleClient(_MultipleClientOperationsMixin): """MultipleClient. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_configuration.py b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_configuration.py index 1a84717b685..9c7ccda8e1b 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/_configuration.py @@ -20,10 +20,10 @@ class MultipleClientConfiguration: # pylint: disable=too-many-instance-attribut attributes. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_client.py b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_client.py index a071906a13c..61cd84c420c 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_client.py @@ -23,10 +23,10 @@ class MultipleClient(_MultipleClientOperationsMixin): """MultipleClient. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_configuration.py b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_configuration.py index ae9ecd544b7..5243cd2dda1 100644 --- a/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-path-multiple/server/path/multiple/aio/_configuration.py @@ -20,10 +20,10 @@ class MultipleClientConfiguration: # pylint: disable=too-many-instance-attribut attributes. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ 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 d087c573000..146f0e80682 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.path", diff --git a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_client.py b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_client.py index c3d23264a3a..e2aed5fd6f6 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_client.py +++ b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_client.py @@ -23,7 +23,7 @@ class SingleClient(_SingleClientOperationsMixin): # pylint: disable=client-acce """Illustrates server with a single path parameter @server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_configuration.py b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_configuration.py index 7ea638afb08..aa92d051978 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/_configuration.py @@ -20,7 +20,7 @@ class SingleClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_client.py b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_client.py index a641b5c0562..c2d1278c0bd 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_client.py @@ -23,7 +23,7 @@ class SingleClient(_SingleClientOperationsMixin): # pylint: disable=client-acce """Illustrates server with a single path parameter @server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_configuration.py b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_configuration.py index a2107beb1b6..c3101fdad8f 100644 --- a/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-path-single/server/path/single/aio/_configuration.py @@ -20,7 +20,7 @@ class SingleClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ 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 a9efa2f1711..c6a32ffc52d 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.versions", diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_client.py b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_client.py index 33023825a28..856cb9bf9d9 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_client.py +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_client.py @@ -23,7 +23,7 @@ class NotVersionedClient(_NotVersionedClientOperationsMixin): # pylint: disable """Illustrates not-versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py index d384d2e0cff..822aa1c5813 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py @@ -20,7 +20,7 @@ class NotVersionedClientConfiguration: # pylint: disable=too-many-instance-attr attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py index cb7d8cfb993..8ce5b3ea12e 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py @@ -23,7 +23,7 @@ class NotVersionedClient(_NotVersionedClientOperationsMixin): # pylint: disable """Illustrates not-versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py index c234059b015..da1dd9258bd 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py @@ -20,7 +20,7 @@ class NotVersionedClientConfiguration: # pylint: disable=too-many-instance-attr attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ 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 be1465c20ab..0334c0591b7 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.versions", diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_client.py b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_client.py index 67e096be672..042b283ccf6 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_client.py +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_client.py @@ -23,10 +23,10 @@ class VersionedClient(_VersionedClientOperationsMixin): """Illustrates versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_configuration.py b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_configuration.py index 7e6b145bebb..c0e938e1c11 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/_configuration.py @@ -20,10 +20,10 @@ class VersionedClientConfiguration: # pylint: disable=too-many-instance-attribu attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_client.py b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_client.py index a8cf8837c51..26a5cdbd44e 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_client.py @@ -23,10 +23,10 @@ class VersionedClient(_VersionedClientOperationsMixin): """Illustrates versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py index 4de5d890be3..77978f9bbac 100644 --- a/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py @@ -20,10 +20,10 @@ class VersionedClientConfiguration: # pylint: disable=too-many-instance-attribu attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py index 667dadb9ad9..b628c3b9bdc 100644 --- a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py +++ b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py @@ -27,9 +27,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials.TokenCredential + ~azure.core.credentials.TokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py index d749c11fc49..108f98f8bce 100644 --- a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py +++ b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py @@ -24,9 +24,9 @@ class UnionClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials.TokenCredential + ~azure.core.credentials.TokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py index 7bcbfc2c01d..691f8b44de9 100644 --- a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py @@ -27,9 +27,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials_async.AsyncTokenCredential + ~azure.core.credentials_async.AsyncTokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py index db8cca0c74e..74bdb81c458 100644 --- a/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py @@ -24,9 +24,9 @@ class UnionClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~azure.core.credentials.AzureKeyCredential or - ~azure.core.credentials_async.AsyncTokenCredential + ~azure.core.credentials_async.AsyncTokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ 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 ab1e7699010..01b19063f3a 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specialheaders", ] diff --git a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py index 1f39544c601..09187c2f6d0 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py @@ -230,9 +230,8 @@ def head_if_modified_since(self, *, if_modified_since: Optional[datetime.datetim """Check when only If-Modified-Since in header is defined. :keyword if_modified_since: A timestamp indicating the last modified time of the resource known - to the - client. The operation will be performed only if the resource on the service has - been modified since the specified time. Default value is None. + to the client. The operation will be performed only if the resource on the service has been + modified since the specified time. Default value is None. :paramtype if_modified_since: ~datetime.datetime :return: bool :rtype: bool @@ -283,8 +282,7 @@ def post_if_unmodified_since( # pylint: disable=inconsistent-return-statements """Check when only If-Unmodified-Since in header is defined. :keyword if_unmodified_since: A timestamp indicating the last modified time of the resource - known to the - client. The operation will be performed only if the resource on the service has + known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. Default value is None. :paramtype if_unmodified_since: ~datetime.datetime :return: None diff --git a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py index f9a9c65c40b..f693a23744f 100644 --- a/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py @@ -166,9 +166,8 @@ async def head_if_modified_since( """Check when only If-Modified-Since in header is defined. :keyword if_modified_since: A timestamp indicating the last modified time of the resource known - to the - client. The operation will be performed only if the resource on the service has - been modified since the specified time. Default value is None. + to the client. The operation will be performed only if the resource on the service has been + modified since the specified time. Default value is None. :paramtype if_modified_since: ~datetime.datetime :return: bool :rtype: bool @@ -219,8 +218,7 @@ async def post_if_unmodified_since( """Check when only If-Unmodified-Since in header is defined. :keyword if_unmodified_since: A timestamp indicating the last modified time of the resource - known to the - client. The operation will be performed only if the resource on the service has + known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. Default value is None. :paramtype if_unmodified_since: ~datetime.datetime :return: None 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 f8fc2bed1c2..dc4e0008c79 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specialheaders", ] 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 f6ebd381223..e23ad7a55ee 100644 --- a/packages/typespec-python/test/azure/generated/special-words/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/special-words/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] diff --git a/packages/typespec-python/test/azure/generated/special-words/specialwords/_client.py b/packages/typespec-python/test/azure/generated/special-words/specialwords/_client.py index 02159cb48ea..cffb1d21234 100644 --- a/packages/typespec-python/test/azure/generated/special-words/specialwords/_client.py +++ b/packages/typespec-python/test/azure/generated/special-words/specialwords/_client.py @@ -21,45 +21,9 @@ class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword """Scenarios to verify that reserved words can be used in service and generators will handle it - appropriately. - - Current list of special words - - .. code-block:: txt - - and - as - assert - async - await - break - class - constructor - continue - def - del - elif - else - except - exec - finally - for - from - global - if - import - in - is - lambda - not - or - pass - raise - return - try - while - with - yield. + appropriately. Current list of special words .. code-block:: txt and as assert async await + break class constructor continue def del elif else except exec finally for from global if + import in is lambda not or pass raise return try while with yield. :ivar models: ModelsOperations operations :vartype models: specialwords.operations.ModelsOperations diff --git a/packages/typespec-python/test/azure/generated/special-words/specialwords/aio/_client.py b/packages/typespec-python/test/azure/generated/special-words/specialwords/aio/_client.py index 575b9d8ebc8..4221ec0d440 100644 --- a/packages/typespec-python/test/azure/generated/special-words/specialwords/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/special-words/specialwords/aio/_client.py @@ -21,45 +21,9 @@ class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword """Scenarios to verify that reserved words can be used in service and generators will handle it - appropriately. - - Current list of special words - - .. code-block:: txt - - and - as - assert - async - await - break - class - constructor - continue - def - del - elif - else - except - exec - finally - for - from - global - if - import - in - is - lambda - not - or - pass - raise - return - try - while - with - yield. + appropriately. Current list of special words .. code-block:: txt and as assert async await + break class constructor continue def del elif else except exec finally for from global if + import in is lambda not or pass raise return try while with yield. :ivar models: ModelsOperations operations :vartype models: specialwords.aio.operations.ModelsOperations 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 de6631d6638..16a69f5dfd2 100644 --- a/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/streaming-jsonl/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "streaming", ] 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 4fc8aaeef7d..829000ba3f0 100644 --- a/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-array/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py index 07fbe6b1ec2..704692f2fd9 100644 --- a/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py @@ -26,6 +26,7 @@ class InnerModel(_Model): property: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required string property. Required.""" + children: Optional[list["_models.InnerModel"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) 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 0d61eec3e12..de360b266bc 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/aio/_client.py b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/aio/_client.py index f48f157063d..a3d16fa7699 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/aio/_client.py @@ -54,7 +54,7 @@ class DictionaryClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype model_value: typetest.dictionary.aio.operations.ModelValueOperations :ivar recursive_model_value: RecursiveModelValueOperations operations :vartype recursive_model_value: - typetest.dictionary.aio.operations.RecursiveModelValueOperations + typetest.dictionary.aio.operations.RecursiveModelValueOperations :ivar nullable_float_value: NullableFloatValueOperations operations :vartype nullable_float_value: typetest.dictionary.aio.operations.NullableFloatValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py index ea0abe809b6..421e74dbc16 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py @@ -26,6 +26,7 @@ class InnerModel(_Model): property: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required string property. Required.""" + children: Optional[dict[str, "_models.InnerModel"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) 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 f8ba6b449d6..efb0f906128 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.enum", 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 7133579b4c3..8bfb0361786 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.enum", 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 1fd43de5c18..3815663c65c 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 71318aad053..9d4fdf2e21c 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py index d7b044452d6..a2b7f0e8b01 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py @@ -18,7 +18,7 @@ class Snake(_Model): """Test fixed enum type for discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Cobra + Cobra :ivar kind: discriminator property. Required. "cobra" :vartype kind: str or ~typetest.model.enumdiscriminator.models.SnakeKind @@ -29,6 +29,7 @@ class Snake(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """discriminator property. Required. \"cobra\"""" + length: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Length of the snake. Required.""" @@ -86,7 +87,7 @@ class Dog(_Model): """Test extensible enum type for discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Golden + Golden :ivar kind: discriminator property. Required. "golden" :vartype kind: str or ~typetest.model.enumdiscriminator.models.DogKind @@ -97,6 +98,7 @@ class Dog(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """discriminator property. Required. \"golden\"""" + weight: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Weight of the dog. Required.""" 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 300aeac9100..41f36b3d35a 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py index 5ac00184b20..b2341c91c9c 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py @@ -20,7 +20,7 @@ class Fish(_Model): """This is base model for polymorphic multiple levels inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Salmon, Shark + Salmon, Shark :ivar kind: Discriminator property for Fish. Required. Default value is None. :vartype kind: str @@ -31,6 +31,7 @@ class Fish(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind") """Discriminator property for Fish. Required. Default value is None.""" + age: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -55,10 +56,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Shark(Fish, discriminator="shark"): """The second level model in polymorphic multiple levels inheritance and it defines a new - discriminator. + discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - GoblinShark, SawShark + GoblinShark, SawShark :ivar age: Required. :vartype age: int @@ -71,6 +72,7 @@ class Shark(Fish, discriminator="shark"): __mapping__: dict[str, _Model] = {} kind: Literal["shark"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"shark\".""" + sharktype: str = rest_discriminator(name="sharktype", visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is None.""" @@ -130,7 +132,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Salmon(Fish, discriminator="salmon"): """The second level model in polymorphic multiple levels inheritance which contains references to - other polymorphic instances. + other polymorphic instances. :ivar age: Required. :vartype age: int @@ -146,6 +148,7 @@ class Salmon(Fish, discriminator="salmon"): kind: Literal["salmon"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"salmon\".""" + friends: Optional[list["_models.Fish"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) hate: Optional[dict[str, "_models.Fish"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) partner: Optional["_models.Fish"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) 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 c8a5bb99f6f..1ccc8f9a519 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 37e8e88542c..bc22ba7d413 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 c6a6c5ac4df..2ee3db57c1a 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py index bd074298a34..47fcd2648c6 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py @@ -20,7 +20,7 @@ class Bird(_Model): """This is base model for polymorphic single level inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Eagle, Goose, SeaGull, Sparrow + Eagle, Goose, SeaGull, Sparrow :ivar kind: Required. Default value is None. :vartype kind: str @@ -31,6 +31,7 @@ class Bird(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is None.""" + wingspan: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -55,10 +56,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Dinosaur(_Model): """Define a base class in the legacy way. Discriminator property is not explicitly defined in the - model. + model. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - TRex + TRex :ivar kind: Discriminator property for Dinosaur. Required. Default value is None. :vartype kind: str @@ -69,6 +70,7 @@ class Dinosaur(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind") """Discriminator property for Dinosaur. Required. Default value is None.""" + size: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -93,7 +95,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Eagle(Bird, discriminator="eagle"): """The second level model in polymorphic single levels inheritance which contains references to - other polymorphic instances. + other polymorphic instances. :ivar wingspan: Required. :vartype wingspan: int @@ -109,6 +111,7 @@ class Eagle(Bird, discriminator="eagle"): kind: Literal["eagle"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"eagle\".""" + friends: Optional[list["_models.Bird"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) hate: Optional[dict[str, "_models.Bird"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) partner: Optional["_models.Bird"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) 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 eaa91cdd3f6..726fa39ee00 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 110db895e43..058ab40147b 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py index ad63b897c9e..7285c2ff4a0 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py @@ -23,6 +23,7 @@ class ReadOnlyModel(_Model): optional_nullable_int_list: Optional[list[int]] = rest_field(name="optionalNullableIntList", visibility=["read"]) """Optional readonly nullable int list.""" + optional_string_record: Optional[dict[str, str]] = rest_field(name="optionalStringRecord", visibility=["read"]) """Optional readonly string dictionary.""" @@ -42,10 +43,13 @@ class VisibilityModel(_Model): read_prop: str = rest_field(name="readProp", visibility=["read"]) """Required string, illustrating a readonly property. Required.""" + create_prop: list[str] = rest_field(name="createProp", visibility=["create"]) """Required string[], illustrating a create property. Required.""" + update_prop: list[int] = rest_field(name="updateProp", visibility=["update"]) """Required int32[], illustrating a update property. Required.""" + delete_prop: bool = rest_field(name="deleteProp", visibility=["delete"]) """Required bool, illustrating a delete property. Required.""" 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 447a83cb6db..f70888e7aa9 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py index e727c1f0ac4..8671590f089 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py @@ -56,95 +56,95 @@ class AdditionalPropertiesClient: # pylint: disable=client-accepts-api-version- :ivar extends_unknown: ExtendsUnknownOperations operations :vartype extends_unknown: - typetest.property.additionalproperties.operations.ExtendsUnknownOperations + typetest.property.additionalproperties.operations.ExtendsUnknownOperations :ivar extends_unknown_derived: ExtendsUnknownDerivedOperations operations :vartype extends_unknown_derived: - typetest.property.additionalproperties.operations.ExtendsUnknownDerivedOperations + typetest.property.additionalproperties.operations.ExtendsUnknownDerivedOperations :ivar extends_unknown_discriminated: ExtendsUnknownDiscriminatedOperations operations :vartype extends_unknown_discriminated: - typetest.property.additionalproperties.operations.ExtendsUnknownDiscriminatedOperations + typetest.property.additionalproperties.operations.ExtendsUnknownDiscriminatedOperations :ivar is_unknown: IsUnknownOperations operations :vartype is_unknown: typetest.property.additionalproperties.operations.IsUnknownOperations :ivar is_unknown_derived: IsUnknownDerivedOperations operations :vartype is_unknown_derived: - typetest.property.additionalproperties.operations.IsUnknownDerivedOperations + typetest.property.additionalproperties.operations.IsUnknownDerivedOperations :ivar is_unknown_discriminated: IsUnknownDiscriminatedOperations operations :vartype is_unknown_discriminated: - typetest.property.additionalproperties.operations.IsUnknownDiscriminatedOperations + typetest.property.additionalproperties.operations.IsUnknownDiscriminatedOperations :ivar extends_string: ExtendsStringOperations operations :vartype extends_string: - typetest.property.additionalproperties.operations.ExtendsStringOperations + typetest.property.additionalproperties.operations.ExtendsStringOperations :ivar is_string: IsStringOperations operations :vartype is_string: typetest.property.additionalproperties.operations.IsStringOperations :ivar spread_string: SpreadStringOperations operations :vartype spread_string: - typetest.property.additionalproperties.operations.SpreadStringOperations + typetest.property.additionalproperties.operations.SpreadStringOperations :ivar extends_float: ExtendsFloatOperations operations :vartype extends_float: - typetest.property.additionalproperties.operations.ExtendsFloatOperations + typetest.property.additionalproperties.operations.ExtendsFloatOperations :ivar is_float: IsFloatOperations operations :vartype is_float: typetest.property.additionalproperties.operations.IsFloatOperations :ivar spread_float: SpreadFloatOperations operations :vartype spread_float: typetest.property.additionalproperties.operations.SpreadFloatOperations :ivar extends_model: ExtendsModelOperations operations :vartype extends_model: - typetest.property.additionalproperties.operations.ExtendsModelOperations + typetest.property.additionalproperties.operations.ExtendsModelOperations :ivar is_model: IsModelOperations operations :vartype is_model: typetest.property.additionalproperties.operations.IsModelOperations :ivar spread_model: SpreadModelOperations operations :vartype spread_model: typetest.property.additionalproperties.operations.SpreadModelOperations :ivar extends_model_array: ExtendsModelArrayOperations operations :vartype extends_model_array: - typetest.property.additionalproperties.operations.ExtendsModelArrayOperations + typetest.property.additionalproperties.operations.ExtendsModelArrayOperations :ivar is_model_array: IsModelArrayOperations operations :vartype is_model_array: - typetest.property.additionalproperties.operations.IsModelArrayOperations + typetest.property.additionalproperties.operations.IsModelArrayOperations :ivar spread_model_array: SpreadModelArrayOperations operations :vartype spread_model_array: - typetest.property.additionalproperties.operations.SpreadModelArrayOperations + typetest.property.additionalproperties.operations.SpreadModelArrayOperations :ivar spread_different_string: SpreadDifferentStringOperations operations :vartype spread_different_string: - typetest.property.additionalproperties.operations.SpreadDifferentStringOperations + typetest.property.additionalproperties.operations.SpreadDifferentStringOperations :ivar spread_different_float: SpreadDifferentFloatOperations operations :vartype spread_different_float: - typetest.property.additionalproperties.operations.SpreadDifferentFloatOperations + typetest.property.additionalproperties.operations.SpreadDifferentFloatOperations :ivar spread_different_model: SpreadDifferentModelOperations operations :vartype spread_different_model: - typetest.property.additionalproperties.operations.SpreadDifferentModelOperations + typetest.property.additionalproperties.operations.SpreadDifferentModelOperations :ivar spread_different_model_array: SpreadDifferentModelArrayOperations operations :vartype spread_different_model_array: - typetest.property.additionalproperties.operations.SpreadDifferentModelArrayOperations + typetest.property.additionalproperties.operations.SpreadDifferentModelArrayOperations :ivar extends_different_spread_string: ExtendsDifferentSpreadStringOperations operations :vartype extends_different_spread_string: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadStringOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadStringOperations :ivar extends_different_spread_float: ExtendsDifferentSpreadFloatOperations operations :vartype extends_different_spread_float: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadFloatOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadFloatOperations :ivar extends_different_spread_model: ExtendsDifferentSpreadModelOperations operations :vartype extends_different_spread_model: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelOperations :ivar extends_different_spread_model_array: ExtendsDifferentSpreadModelArrayOperations - operations + operations :vartype extends_different_spread_model_array: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelArrayOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelArrayOperations :ivar multiple_spread: MultipleSpreadOperations operations :vartype multiple_spread: - typetest.property.additionalproperties.operations.MultipleSpreadOperations + typetest.property.additionalproperties.operations.MultipleSpreadOperations :ivar spread_record_union: SpreadRecordUnionOperations operations :vartype spread_record_union: - typetest.property.additionalproperties.operations.SpreadRecordUnionOperations + typetest.property.additionalproperties.operations.SpreadRecordUnionOperations :ivar spread_record_non_discriminated_union: SpreadRecordNonDiscriminatedUnionOperations - operations + operations :vartype spread_record_non_discriminated_union: - typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnionOperations + typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnionOperations :ivar spread_record_non_discriminated_union2: SpreadRecordNonDiscriminatedUnion2Operations - operations + operations :vartype spread_record_non_discriminated_union2: - typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion2Operations + typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion2Operations :ivar spread_record_non_discriminated_union3: SpreadRecordNonDiscriminatedUnion3Operations - operations + operations :vartype spread_record_non_discriminated_union3: - typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion3Operations + typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion3Operations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py index 1afeb43acc1..cbd07d6c940 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py @@ -56,97 +56,97 @@ class AdditionalPropertiesClient: # pylint: disable=client-accepts-api-version- :ivar extends_unknown: ExtendsUnknownOperations operations :vartype extends_unknown: - typetest.property.additionalproperties.aio.operations.ExtendsUnknownOperations + typetest.property.additionalproperties.aio.operations.ExtendsUnknownOperations :ivar extends_unknown_derived: ExtendsUnknownDerivedOperations operations :vartype extends_unknown_derived: - typetest.property.additionalproperties.aio.operations.ExtendsUnknownDerivedOperations + typetest.property.additionalproperties.aio.operations.ExtendsUnknownDerivedOperations :ivar extends_unknown_discriminated: ExtendsUnknownDiscriminatedOperations operations :vartype extends_unknown_discriminated: - typetest.property.additionalproperties.aio.operations.ExtendsUnknownDiscriminatedOperations + typetest.property.additionalproperties.aio.operations.ExtendsUnknownDiscriminatedOperations :ivar is_unknown: IsUnknownOperations operations :vartype is_unknown: typetest.property.additionalproperties.aio.operations.IsUnknownOperations :ivar is_unknown_derived: IsUnknownDerivedOperations operations :vartype is_unknown_derived: - typetest.property.additionalproperties.aio.operations.IsUnknownDerivedOperations + typetest.property.additionalproperties.aio.operations.IsUnknownDerivedOperations :ivar is_unknown_discriminated: IsUnknownDiscriminatedOperations operations :vartype is_unknown_discriminated: - typetest.property.additionalproperties.aio.operations.IsUnknownDiscriminatedOperations + typetest.property.additionalproperties.aio.operations.IsUnknownDiscriminatedOperations :ivar extends_string: ExtendsStringOperations operations :vartype extends_string: - typetest.property.additionalproperties.aio.operations.ExtendsStringOperations + typetest.property.additionalproperties.aio.operations.ExtendsStringOperations :ivar is_string: IsStringOperations operations :vartype is_string: typetest.property.additionalproperties.aio.operations.IsStringOperations :ivar spread_string: SpreadStringOperations operations :vartype spread_string: - typetest.property.additionalproperties.aio.operations.SpreadStringOperations + typetest.property.additionalproperties.aio.operations.SpreadStringOperations :ivar extends_float: ExtendsFloatOperations operations :vartype extends_float: - typetest.property.additionalproperties.aio.operations.ExtendsFloatOperations + typetest.property.additionalproperties.aio.operations.ExtendsFloatOperations :ivar is_float: IsFloatOperations operations :vartype is_float: typetest.property.additionalproperties.aio.operations.IsFloatOperations :ivar spread_float: SpreadFloatOperations operations :vartype spread_float: - typetest.property.additionalproperties.aio.operations.SpreadFloatOperations + typetest.property.additionalproperties.aio.operations.SpreadFloatOperations :ivar extends_model: ExtendsModelOperations operations :vartype extends_model: - typetest.property.additionalproperties.aio.operations.ExtendsModelOperations + typetest.property.additionalproperties.aio.operations.ExtendsModelOperations :ivar is_model: IsModelOperations operations :vartype is_model: typetest.property.additionalproperties.aio.operations.IsModelOperations :ivar spread_model: SpreadModelOperations operations :vartype spread_model: - typetest.property.additionalproperties.aio.operations.SpreadModelOperations + typetest.property.additionalproperties.aio.operations.SpreadModelOperations :ivar extends_model_array: ExtendsModelArrayOperations operations :vartype extends_model_array: - typetest.property.additionalproperties.aio.operations.ExtendsModelArrayOperations + typetest.property.additionalproperties.aio.operations.ExtendsModelArrayOperations :ivar is_model_array: IsModelArrayOperations operations :vartype is_model_array: - typetest.property.additionalproperties.aio.operations.IsModelArrayOperations + typetest.property.additionalproperties.aio.operations.IsModelArrayOperations :ivar spread_model_array: SpreadModelArrayOperations operations :vartype spread_model_array: - typetest.property.additionalproperties.aio.operations.SpreadModelArrayOperations + typetest.property.additionalproperties.aio.operations.SpreadModelArrayOperations :ivar spread_different_string: SpreadDifferentStringOperations operations :vartype spread_different_string: - typetest.property.additionalproperties.aio.operations.SpreadDifferentStringOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentStringOperations :ivar spread_different_float: SpreadDifferentFloatOperations operations :vartype spread_different_float: - typetest.property.additionalproperties.aio.operations.SpreadDifferentFloatOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentFloatOperations :ivar spread_different_model: SpreadDifferentModelOperations operations :vartype spread_different_model: - typetest.property.additionalproperties.aio.operations.SpreadDifferentModelOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentModelOperations :ivar spread_different_model_array: SpreadDifferentModelArrayOperations operations :vartype spread_different_model_array: - typetest.property.additionalproperties.aio.operations.SpreadDifferentModelArrayOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentModelArrayOperations :ivar extends_different_spread_string: ExtendsDifferentSpreadStringOperations operations :vartype extends_different_spread_string: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadStringOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadStringOperations :ivar extends_different_spread_float: ExtendsDifferentSpreadFloatOperations operations :vartype extends_different_spread_float: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadFloatOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadFloatOperations :ivar extends_different_spread_model: ExtendsDifferentSpreadModelOperations operations :vartype extends_different_spread_model: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelOperations :ivar extends_different_spread_model_array: ExtendsDifferentSpreadModelArrayOperations - operations + operations :vartype extends_different_spread_model_array: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelArrayOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelArrayOperations :ivar multiple_spread: MultipleSpreadOperations operations :vartype multiple_spread: - typetest.property.additionalproperties.aio.operations.MultipleSpreadOperations + typetest.property.additionalproperties.aio.operations.MultipleSpreadOperations :ivar spread_record_union: SpreadRecordUnionOperations operations :vartype spread_record_union: - typetest.property.additionalproperties.aio.operations.SpreadRecordUnionOperations + typetest.property.additionalproperties.aio.operations.SpreadRecordUnionOperations :ivar spread_record_non_discriminated_union: SpreadRecordNonDiscriminatedUnionOperations - operations + operations :vartype spread_record_non_discriminated_union: - typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnionOperations + typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnionOperations :ivar spread_record_non_discriminated_union2: SpreadRecordNonDiscriminatedUnion2Operations - operations + operations :vartype spread_record_non_discriminated_union2: - typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion2Operations + typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion2Operations :ivar spread_record_non_discriminated_union3: SpreadRecordNonDiscriminatedUnion3Operations - operations + operations :vartype spread_record_non_discriminated_union3: - typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion3Operations + typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion3Operations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py index 63b608d0a53..097ccaaa655 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py @@ -47,7 +47,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadFloatDerived(DifferentSpreadFloatRecord): """The model extends from a model that spread Record with the different known property - type. + type. :ivar name: The id property. Required. :vartype name: str @@ -107,7 +107,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelArrayDerived(DifferentSpreadModelArrayRecord): """The model extends from a model that spread Record with the different known - property type. + property type. :ivar known_prop: Required. :vartype known_prop: str @@ -169,7 +169,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelDerived(DifferentSpreadModelRecord): """The model extends from a model that spread Record with the different known - property type. + property type. :ivar known_prop: Required. :vartype known_prop: str @@ -231,7 +231,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadStringDerived(DifferentSpreadStringRecord): """The model extends from a model that spread Record with the different known property - type. + type. :ivar id: The name property. Required. :vartype id: float @@ -418,6 +418,7 @@ class ExtendsUnknownAdditionalPropertiesDerived(ExtendsUnknownAdditionalProperti index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -445,7 +446,7 @@ class ExtendsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disabl """The model extends from Record with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExtendsUnknownAdditionalPropertiesDiscriminatedDerived + ExtendsUnknownAdditionalPropertiesDiscriminatedDerived :ivar name: The name property. Required. :vartype name: str @@ -456,6 +457,7 @@ class ExtendsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disabl __mapping__: dict[str, _Model] = {} name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name property. Required.""" + kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """The discriminator. Required. Default value is None.""" @@ -495,8 +497,10 @@ class ExtendsUnknownAdditionalPropertiesDiscriminatedDerived( kind: Literal["derived"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"derived\".""" + index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -678,6 +682,7 @@ class IsUnknownAdditionalPropertiesDerived(IsUnknownAdditionalProperties): index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -705,7 +710,7 @@ class IsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disable=nam """The model is Record with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - IsUnknownAdditionalPropertiesDiscriminatedDerived + IsUnknownAdditionalPropertiesDiscriminatedDerived :ivar name: The name property. Required. :vartype name: str @@ -716,6 +721,7 @@ class IsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disable=nam __mapping__: dict[str, _Model] = {} name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name property. Required.""" + kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """The discriminator. Required. Default value is None.""" @@ -755,8 +761,10 @@ class IsUnknownAdditionalPropertiesDiscriminatedDerived( kind: Literal["derived"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"derived\".""" + index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -1076,6 +1084,7 @@ class WidgetData0(_Model): kind: Literal["kind0"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is \"kind0\".""" + foo_prop: str = rest_field(name="fooProp", visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -1111,8 +1120,10 @@ class WidgetData1(_Model): kind: Literal["kind1"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is \"kind1\".""" + start: datetime.datetime = rest_field(visibility=["read", "create", "update", "delete", "query"], format="rfc3339") """Required.""" + end: Optional[datetime.datetime] = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -1148,6 +1159,7 @@ class WidgetData2(_Model): kind: Literal["kind1"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is \"kind1\".""" + start: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 a470e2af451..e53f1f82f72 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py index 3ae4a7daab0..746c12bcdd5 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py @@ -42,10 +42,10 @@ class NullableClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype collections_byte: typetest.property.nullable.aio.operations.CollectionsByteOperations :ivar collections_model: CollectionsModelOperations operations :vartype collections_model: - typetest.property.nullable.aio.operations.CollectionsModelOperations + typetest.property.nullable.aio.operations.CollectionsModelOperations :ivar collections_string: CollectionsStringOperations operations :vartype collections_string: - typetest.property.nullable.aio.operations.CollectionsStringOperations + typetest.property.nullable.aio.operations.CollectionsStringOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py index 382e3e4d683..9e8d2d6504f 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py @@ -18,7 +18,7 @@ class BytesProperty(_Model): """Template type for testing models with nullable property. Pass in the type of the property you - are looking for. + are looking for. :ivar required_property: Required property. Required. :vartype required_property: str @@ -30,6 +30,7 @@ class BytesProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: bytes = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"], format="base64" ) @@ -67,6 +68,7 @@ class CollectionsByteProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: list[bytes] = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"], format="base64" ) @@ -104,6 +106,7 @@ class CollectionsModelProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: list["_models.InnerModel"] = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -141,6 +144,7 @@ class CollectionsStringProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: list[str] = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -178,6 +182,7 @@ class DatetimeProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: datetime.datetime = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -215,6 +220,7 @@ class DurationProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: datetime.timedelta = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -269,7 +275,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StringProperty(_Model): """Template type for testing models with nullable property. Pass in the type of the property you - are looking for. + are looking for. :ivar required_property: Required property. Required. :vartype required_property: str @@ -281,6 +287,7 @@ class StringProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: str = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) 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 8e1e7d1f9c0..5c667b52a18 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_client.py index b06efb80a58..84e3350e0e4 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/_client.py @@ -65,14 +65,14 @@ class OptionalClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype boolean_literal: typetest.property.optional.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.optional.operations.UnionStringLiteralOperations + typetest.property.optional.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: typetest.property.optional.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: typetest.property.optional.operations.UnionFloatLiteralOperations :ivar required_and_optional: RequiredAndOptionalOperations operations :vartype required_and_optional: - typetest.property.optional.operations.RequiredAndOptionalOperations + typetest.property.optional.operations.RequiredAndOptionalOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/aio/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/aio/_client.py index 504284f11f3..d44c8f781e7 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/aio/_client.py @@ -55,7 +55,7 @@ class OptionalClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype collections_byte: typetest.property.optional.aio.operations.CollectionsByteOperations :ivar collections_model: CollectionsModelOperations operations :vartype collections_model: - typetest.property.optional.aio.operations.CollectionsModelOperations + typetest.property.optional.aio.operations.CollectionsModelOperations :ivar string_literal: StringLiteralOperations operations :vartype string_literal: typetest.property.optional.aio.operations.StringLiteralOperations :ivar int_literal: IntLiteralOperations operations @@ -66,15 +66,15 @@ class OptionalClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype boolean_literal: typetest.property.optional.aio.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.optional.aio.operations.UnionStringLiteralOperations + typetest.property.optional.aio.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: typetest.property.optional.aio.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: - typetest.property.optional.aio.operations.UnionFloatLiteralOperations + typetest.property.optional.aio.operations.UnionFloatLiteralOperations :ivar required_and_optional: RequiredAndOptionalOperations operations :vartype required_and_optional: - typetest.property.optional.aio.operations.RequiredAndOptionalOperations + typetest.property.optional.aio.operations.RequiredAndOptionalOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py index d026aadaab2..8deac3d9aa5 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py @@ -46,7 +46,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class BytesProperty(_Model): """Template type for testing models with optional property. Pass in the type of the property you - are looking for. + are looking for. :ivar property: Property. :vartype property: bytes @@ -316,6 +316,7 @@ class RequiredAndOptionalProperty(_Model): name="optionalProperty", visibility=["read", "create", "update", "delete", "query"] ) """optional string property.""" + required_property: int = rest_field( name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -370,7 +371,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StringProperty(_Model): """Template type for testing models with optional property. Pass in the type of the property you - are looking for. + are looking for. :ivar property: Property. :vartype property: str 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 40787f03ebd..c3f8ffc6f4b 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 @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py index e284c7ec2eb..bc0e1d346f6 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py @@ -78,7 +78,7 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype model: typetest.property.valuetypes.operations.ModelOperations :ivar collections_string: CollectionsStringOperations operations :vartype collections_string: - typetest.property.valuetypes.operations.CollectionsStringOperations + typetest.property.valuetypes.operations.CollectionsStringOperations :ivar collections_int: CollectionsIntOperations operations :vartype collections_int: typetest.property.valuetypes.operations.CollectionsIntOperations :ivar collections_model: CollectionsModelOperations operations @@ -105,12 +105,12 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype boolean_literal: typetest.property.valuetypes.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.valuetypes.operations.UnionStringLiteralOperations + typetest.property.valuetypes.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: typetest.property.valuetypes.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: - typetest.property.valuetypes.operations.UnionFloatLiteralOperations + typetest.property.valuetypes.operations.UnionFloatLiteralOperations :ivar union_enum_value: UnionEnumValueOperations operations :vartype union_enum_value: typetest.property.valuetypes.operations.UnionEnumValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py index 1b455c9c8a8..75a3cb979f0 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py @@ -78,15 +78,15 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype model: typetest.property.valuetypes.aio.operations.ModelOperations :ivar collections_string: CollectionsStringOperations operations :vartype collections_string: - typetest.property.valuetypes.aio.operations.CollectionsStringOperations + typetest.property.valuetypes.aio.operations.CollectionsStringOperations :ivar collections_int: CollectionsIntOperations operations :vartype collections_int: typetest.property.valuetypes.aio.operations.CollectionsIntOperations :ivar collections_model: CollectionsModelOperations operations :vartype collections_model: - typetest.property.valuetypes.aio.operations.CollectionsModelOperations + typetest.property.valuetypes.aio.operations.CollectionsModelOperations :ivar dictionary_string: DictionaryStringOperations operations :vartype dictionary_string: - typetest.property.valuetypes.aio.operations.DictionaryStringOperations + typetest.property.valuetypes.aio.operations.DictionaryStringOperations :ivar never: NeverOperations operations :vartype never: typetest.property.valuetypes.aio.operations.NeverOperations :ivar unknown_string: UnknownStringOperations operations @@ -107,13 +107,13 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype boolean_literal: typetest.property.valuetypes.aio.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.valuetypes.aio.operations.UnionStringLiteralOperations + typetest.property.valuetypes.aio.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: - typetest.property.valuetypes.aio.operations.UnionIntLiteralOperations + typetest.property.valuetypes.aio.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: - typetest.property.valuetypes.aio.operations.UnionFloatLiteralOperations + typetest.property.valuetypes.aio.operations.UnionFloatLiteralOperations :ivar union_enum_value: UnionEnumValueOperations operations :vartype union_enum_value: typetest.property.valuetypes.aio.operations.UnionEnumValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py index fab3d9a1070..93678cab8f2 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py @@ -564,7 +564,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class UnionEnumValueProperty(_Model): """Template type for testing models with specific properties. Pass in the type of the property you - are looking for. + are looking for. :ivar property: Property. Required. :vartype property: str or ~typetest.property.valuetypes.models.ENUM_VALUE2 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 7528a1fd103..e53a3e40339 100644 --- a/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-scalar/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] 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 74fe0136d0a..e6d0abe919d 100644 --- a/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/typetest-union/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] diff --git a/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py index bae8d4888d4..541afc200a2 100644 --- a/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py @@ -84,10 +84,11 @@ class EnumsOnlyCases(_Model): lr: Literal["left", "right", "up", "down"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the left variant. Required. Is one of the following types: - Literal[\"left\"], Literal[\"right\"], Literal[\"up\"], Literal[\"down\"]""" + Literal[\"left\"], Literal[\"right\"], Literal[\"up\"], Literal[\"down\"]""" + ud: Literal["up", "down"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the up variant. Required. Is either a Literal[\"up\"] type or a - Literal[\"down\"] type.""" + Literal[\"down\"] type.""" @overload def __init__( @@ -413,22 +414,25 @@ class MixedLiteralsCases(_Model): name="stringLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the \"a\" variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" + int_literal: Literal["a", 2, True] = rest_field( name="intLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the 2 variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" + float_literal: Literal["a", 2, True] = rest_field( name="floatLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the 3.3 variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" + boolean_literal: Literal["a", 2, True] = rest_field( name="booleanLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the true variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" @overload def __init__( @@ -474,22 +478,26 @@ class MixedTypesCases(_Model): visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the Cat variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + literal: Union["_models.Cat", Literal["a"], int, bool] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the \"a\" variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + int_property: Union["_models.Cat", Literal["a"], int, bool] = rest_field( name="int", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the int variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + boolean: Union["_models.Cat", Literal["a"], int, bool] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the boolean variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + array: list[Union["_models.Cat", Literal["a"], int, bool]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -530,6 +538,7 @@ class StringAndArrayCases(_Model): string: Union[str, list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the string variant. Required. Is either a str type or a [str] type.""" + array: Union[str, list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the array variant. Required. Is either a str type or a [str] type.""" 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 2f23f1fc5f0..bb277cad105 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-added/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_client.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_client.py index d362b8ec014..7a1ed6ab4eb 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_client.py @@ -25,11 +25,11 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :ivar interface_v2: InterfaceV2Operations operations :vartype interface_v2: versioning.added.operations.InterfaceV2Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_configuration.py index d928d11c600..25c02fcae1c 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/_configuration.py @@ -20,11 +20,11 @@ class AddedClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_client.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_client.py index 105561e199b..ae97f6bd166 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_client.py @@ -25,11 +25,11 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :ivar interface_v2: InterfaceV2Operations operations :vartype interface_v2: versioning.added.aio.operations.InterfaceV2Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_configuration.py index 9e345dcfaa2..4009582663e 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/aio/_configuration.py @@ -20,11 +20,11 @@ class AddedClientConfiguration: # pylint: disable=too-many-instance-attributes attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py index 00c1ffc3add..79323ad13e8 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py @@ -28,10 +28,12 @@ class ModelV1(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV1"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. Known values are: \"enumMemberV1\" and \"enumMemberV2\".""" + union_prop: "_types.UnionV1" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) @@ -70,10 +72,12 @@ class ModelV2(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV2"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. \"enumMember\"""" + union_prop: "_types.UnionV2" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) 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 b1b012ca6d6..ff8a7b33169 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_client.py b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_client.py index 48248760f37..fa1b779d29c 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_client.py @@ -23,11 +23,11 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable """Test for the ``@madeOptional`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py index 03806ac5897..28315a4ad88 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py @@ -20,11 +20,11 @@ class MadeOptionalClientConfiguration: # pylint: disable=too-many-instance-attr attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py index b4d1bd90719..1e28c153d66 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py @@ -23,11 +23,11 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable """Test for the ``@madeOptional`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py index b43a21b2ed3..bdf7b80ab04 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py @@ -20,11 +20,11 @@ class MadeOptionalClientConfiguration: # pylint: disable=too-many-instance-attr attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py index fc39c72cbaf..e787fe50536 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py @@ -23,6 +23,7 @@ class TestModel(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + changed_prop: Optional[str] = rest_field( name="changedProp", visibility=["read", "create", "update", "delete", "query"] ) 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 a81c0e17fe4..b45e61c2793 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-removed/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_client.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_client.py index d3f951b5e3b..b35bfd067db 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_client.py @@ -23,11 +23,11 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac """Test for the ``@removed`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_configuration.py index 8b91823f993..f1434ed098b 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_configuration.py @@ -20,11 +20,11 @@ class RemovedClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_operations/_operations.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_operations/_operations.py index 8352431292c..7066502edf9 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/_operations/_operations.py @@ -194,7 +194,7 @@ def model_v3( self, body: _models.ModelV3, *, content_type: str = "application/json", **kwargs: Any ) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: ~versioning.removed.models.ModelV3 @@ -209,7 +209,7 @@ def model_v3( @overload def model_v3(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: JSON @@ -224,7 +224,7 @@ def model_v3(self, body: JSON, *, content_type: str = "application/json", **kwar @overload def model_v3(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: IO[bytes] @@ -239,7 +239,7 @@ def model_v3(self, body: IO[bytes], *, content_type: str = "application/json", * @distributed_trace def model_v3(self, body: Union[_models.ModelV3, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Is one of the following types: ModelV3, JSON, IO[bytes] Required. :type body: ~versioning.removed.models.ModelV3 or JSON or IO[bytes] diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_client.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_client.py index 1dc50003446..220fb776f65 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_client.py @@ -23,11 +23,11 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac """Test for the ``@removed`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_configuration.py index 8708ae9f1f3..a5c3df7652e 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_configuration.py @@ -20,11 +20,11 @@ class RemovedClientConfiguration: # pylint: disable=too-many-instance-attribute attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py index 5f265ec2e18..7b87fdb37dc 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py @@ -160,7 +160,7 @@ async def model_v3( self, body: _models.ModelV3, *, content_type: str = "application/json", **kwargs: Any ) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: ~versioning.removed.models.ModelV3 @@ -175,7 +175,7 @@ async def model_v3( @overload async def model_v3(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: JSON @@ -192,7 +192,7 @@ async def model_v3( self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: IO[bytes] @@ -207,7 +207,7 @@ async def model_v3( @distributed_trace_async async def model_v3(self, body: Union[_models.ModelV3, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Is one of the following types: ModelV3, JSON, IO[bytes] Required. :type body: ~versioning.removed.models.ModelV3 or JSON or IO[bytes] diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py index 6b0caf6b2b5..ecb13e81407 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py @@ -28,10 +28,12 @@ class ModelV2(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV2"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. \"enumMemberV2\"""" + union_prop: "_types.UnionV2" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) @@ -68,6 +70,7 @@ class ModelV3(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV3"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) 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 47b3eb3df23..097bd573692 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py index 8d9547b37c7..81737ec495e 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py @@ -25,11 +25,11 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :ivar new_interface: NewInterfaceOperations operations :vartype new_interface: versioning.renamedfrom.operations.NewInterfaceOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py index 8552f072294..df5bee0f347 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py @@ -20,11 +20,11 @@ class RenamedFromClientConfiguration: # pylint: disable=too-many-instance-attri attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py index 30d3e70e91f..ac3a9e95e8d 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py @@ -25,11 +25,11 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :ivar new_interface: NewInterfaceOperations operations :vartype new_interface: versioning.renamedfrom.aio.operations.NewInterfaceOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py index 1add8f6c01a..ec25b7747bf 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py @@ -20,11 +20,11 @@ class RenamedFromClientConfiguration: # pylint: disable=too-many-instance-attri attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py index 0683fe19dee..73aafb88b83 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py @@ -28,10 +28,12 @@ class NewModel(_Model): new_prop: str = rest_field(name="newProp", visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.NewEnum"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. \"newEnumMember\"""" + union_prop: "_types.NewUnion" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) 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 a1417aebca4..c7b3b2e946c 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py index 8292fc2b8c3..a29c8cbcb86 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py @@ -25,11 +25,11 @@ class ReturnTypeChangedFromClient( """Test for the ``@returnTypeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py index f487fb7a661..fc83637498d 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py @@ -20,11 +20,11 @@ class ReturnTypeChangedFromClientConfiguration: # pylint: disable=too-many-inst attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py index 03743135042..69c8e97a974 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py @@ -25,11 +25,11 @@ class ReturnTypeChangedFromClient( """Test for the ``@returnTypeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py index 246ef830520..55f96599c34 100644 --- a/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py @@ -20,11 +20,11 @@ class ReturnTypeChangedFromClientConfiguration: # pylint: disable=too-many-inst attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ 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 d5a4892887f..98675ce6c81 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/pyproject.toml @@ -49,7 +49,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py index acf503ab324..f9434746f72 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py @@ -25,11 +25,11 @@ class TypeChangedFromClient( """Test for the ``@typeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py index ab3ef96897c..a2d6f2c01d6 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py @@ -20,11 +20,11 @@ class TypeChangedFromClientConfiguration: # pylint: disable=too-many-instance-a attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py index 67ba4f4d858..e3cf4f2d995 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py @@ -25,11 +25,11 @@ class TypeChangedFromClient( """Test for the ``@typeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py index 5a68bd94236..8029903a2a2 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py @@ -20,11 +20,11 @@ class TypeChangedFromClientConfiguration: # pylint: disable=too-many-instance-a attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py index 888ce1ff6c1..9091e19094a 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py @@ -23,6 +23,7 @@ class TestModel(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + changed_prop: str = rest_field(name="changedProp", visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 fc15913e05f..bded6e6b36a 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", ] 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 1f99fea00b2..a10b8d16ae4 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", "authentication.http", 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 8ba2be9cab2..174f0b242b4 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", ] diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_client.py b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_client.py index 171a71a4f5f..c66643429d7 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_client.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_client.py @@ -20,9 +20,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.TokenCredential + ~corehttp.credentials.TokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_configuration.py b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_configuration.py index 91799250df1..b30dc23445e 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/_configuration.py @@ -18,9 +18,9 @@ class UnionClientConfiguration: attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.TokenCredential + ~corehttp.credentials.TokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_client.py b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_client.py index 0ee916f5411..24a4c31d2b8 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_client.py @@ -20,9 +20,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.AsyncTokenCredential + ~corehttp.credentials.AsyncTokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_configuration.py index 8d6587ad78c..e29c7f86f11 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/authentication/union/aio/_configuration.py @@ -18,9 +18,9 @@ class UnionClientConfiguration: attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.AsyncTokenCredential + ~corehttp.credentials.AsyncTokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ 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 8e8ced831ae..49f7c432079 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/authentication-union/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "authentication", ] 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 5da7bb0f54c..ccfcb0137fc 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-bytes/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 099b13d4f98..5d19f1ff5b0 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-datetime/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 c3959805b88..9392503fb1d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-duration/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 bf553c9a4a0..4c6927193d8 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/encode-numeric/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "encode", ] 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 a4fa2d4dcb3..8e6b6146aa2 100644 --- a/packages/typespec-python/test/unbranded/generated/generation-subdir/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/generation-subdir/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "generation", ] diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py index 70ba12046f1..a71068a5662 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py @@ -17,6 +17,7 @@ class ReadOnlyModel(_Model): optional_nullable_int_list: Optional[list[int]] = rest_field(name="optionalNullableIntList", visibility=["read"]) """Optional readonly nullable int list.""" + optional_string_record: Optional[dict[str, str]] = rest_field(name="optionalStringRecord", visibility=["read"]) """Optional readonly string dictionary.""" @@ -36,10 +37,13 @@ class VisibilityModel(_Model): read_prop: str = rest_field(name="readProp", visibility=["read"]) """Required string, illustrating a readonly property. Required.""" + create_prop: list[str] = rest_field(name="createProp", visibility=["create"]) """Required string[], illustrating a create property. Required.""" + update_prop: list[int] = rest_field(name="updateProp", visibility=["update"]) """Required int32[], illustrating a update property. Required.""" + delete_prop: bool = rest_field(name="deleteProp", visibility=["delete"]) """Required bool, illustrating a delete property. Required.""" diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml index 51e5f9c4e2e..289f871f52f 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py index 70ba12046f1..a71068a5662 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py @@ -17,6 +17,7 @@ class ReadOnlyModel(_Model): optional_nullable_int_list: Optional[list[int]] = rest_field(name="optionalNullableIntList", visibility=["read"]) """Optional readonly nullable int list.""" + optional_string_record: Optional[dict[str, str]] = rest_field(name="optionalStringRecord", visibility=["read"]) """Optional readonly string dictionary.""" @@ -36,10 +37,13 @@ class VisibilityModel(_Model): read_prop: str = rest_field(name="readProp", visibility=["read"]) """Required string, illustrating a readonly property. Required.""" + create_prop: list[str] = rest_field(name="createProp", visibility=["create"]) """Required string[], illustrating a create property. Required.""" + update_prop: list[int] = rest_field(name="updateProp", visibility=["update"]) """Required int32[], illustrating a update property. Required.""" + delete_prop: bool = rest_field(name="deleteProp", visibility=["delete"]) """Required bool, illustrating a delete property. Required.""" diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml index 3769d15c1e2..c72808cef78 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] 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 d2e7fd1451e..bfbf7c0e1f6 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-basic/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] diff --git a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py index 053836c3ca9..7c969044ac4 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/parameters-body-optionality/parameters/bodyoptionality/aio/_client.py @@ -20,7 +20,7 @@ class BodyOptionalityClient( :ivar optional_explicit: OptionalExplicitOperations operations :vartype optional_explicit: - parameters.bodyoptionality.aio.operations.OptionalExplicitOperations + parameters.bodyoptionality.aio.operations.OptionalExplicitOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ 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 114093bcdb6..4837fc2c288 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 bf9d1a1d91c..73b14cf8126 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 dbf9a96b786..a0dadd4896a 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-path/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 4071cbf0c90..344d1a8c254 100644 --- a/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/parameters-spread/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "parameters", ] 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 d670ed74b70..2542ede9167 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py index e20182c1b31..ecb1673ec6e 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py @@ -63,6 +63,7 @@ class Resource(_Model): name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) map: Optional[dict[str, "_models.InnerModel"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] 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 6d0c247c227..d98f4e5f4d1 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] 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 ada434922de..fa5fa184c34 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/models/_models.py index 893e8b48d5e..e2844883bad 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-multipart/payload/multipart/models/_models.py @@ -49,6 +49,7 @@ class BinaryArrayPartsRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + pictures: list[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -90,16 +91,20 @@ class ComplexHttpPartsModelRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + address: "_models.Address" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) """Required.""" + previous_addresses: list["_models.Address"] = rest_field( name="previousAddresses", visibility=["read", "create", "update", "delete", "query"] ) """Required.""" + pictures: list[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -142,12 +147,15 @@ class ComplexPartsRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + address: "_models.Address" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) """Required.""" + pictures: list[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -275,6 +283,7 @@ class JsonPartRequest(_Model): address: "_models.Address" = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -312,6 +321,7 @@ class MultiBinaryPartsRequest(_Model): name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) """Required.""" + picture: Optional[FileType] = rest_field( visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) @@ -346,6 +356,7 @@ class MultiPartRequest(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + profile_image: FileType = rest_field( name="profileImage", visibility=["read", "create", "update", "delete", "query"], is_multipart_file_input=True ) 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 78379bed916..006319a1182 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-multipart/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/aio/_client.py b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/aio/_client.py index 6fa6ca1150c..59c40609628 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/aio/_client.py @@ -18,7 +18,7 @@ class PageableClient(_PageableClientOperationsMixin): # pylint: disable=client- :ivar server_driven_pagination: ServerDrivenPaginationOperations operations :vartype server_driven_pagination: - payload.pageable.aio.operations.ServerDrivenPaginationOperations + payload.pageable.aio.operations.ServerDrivenPaginationOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py index b2b0cc11f1e..ca49f1fb75a 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py @@ -17,6 +17,7 @@ class Pet(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 1432a744ade..2a39c3fdf3b 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] diff --git a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_client.py b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_client.py index dad2e5c4554..129a31b43e7 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_client.py +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/_client.py @@ -32,34 +32,34 @@ class XmlClient: # pylint: disable=client-accepts-api-version-keyword,too-many- :vartype simple_model_value: payload.xml.operations.SimpleModelValueOperations :ivar model_with_simple_arrays_value: ModelWithSimpleArraysValueOperations operations :vartype model_with_simple_arrays_value: - payload.xml.operations.ModelWithSimpleArraysValueOperations + payload.xml.operations.ModelWithSimpleArraysValueOperations :ivar model_with_array_of_model_value: ModelWithArrayOfModelValueOperations operations :vartype model_with_array_of_model_value: - payload.xml.operations.ModelWithArrayOfModelValueOperations + payload.xml.operations.ModelWithArrayOfModelValueOperations :ivar model_with_optional_field_value: ModelWithOptionalFieldValueOperations operations :vartype model_with_optional_field_value: - payload.xml.operations.ModelWithOptionalFieldValueOperations + payload.xml.operations.ModelWithOptionalFieldValueOperations :ivar model_with_attributes_value: ModelWithAttributesValueOperations operations :vartype model_with_attributes_value: payload.xml.operations.ModelWithAttributesValueOperations :ivar model_with_unwrapped_array_value: ModelWithUnwrappedArrayValueOperations operations :vartype model_with_unwrapped_array_value: - payload.xml.operations.ModelWithUnwrappedArrayValueOperations + payload.xml.operations.ModelWithUnwrappedArrayValueOperations :ivar model_with_renamed_arrays_value: ModelWithRenamedArraysValueOperations operations :vartype model_with_renamed_arrays_value: - payload.xml.operations.ModelWithRenamedArraysValueOperations + payload.xml.operations.ModelWithRenamedArraysValueOperations :ivar model_with_renamed_fields_value: ModelWithRenamedFieldsValueOperations operations :vartype model_with_renamed_fields_value: - payload.xml.operations.ModelWithRenamedFieldsValueOperations + payload.xml.operations.ModelWithRenamedFieldsValueOperations :ivar model_with_empty_array_value: ModelWithEmptyArrayValueOperations operations :vartype model_with_empty_array_value: - payload.xml.operations.ModelWithEmptyArrayValueOperations + payload.xml.operations.ModelWithEmptyArrayValueOperations :ivar model_with_text_value: ModelWithTextValueOperations operations :vartype model_with_text_value: payload.xml.operations.ModelWithTextValueOperations :ivar model_with_dictionary_value: ModelWithDictionaryValueOperations operations :vartype model_with_dictionary_value: payload.xml.operations.ModelWithDictionaryValueOperations :ivar model_with_encoded_names_value: ModelWithEncodedNamesValueOperations operations :vartype model_with_encoded_names_value: - payload.xml.operations.ModelWithEncodedNamesValueOperations + payload.xml.operations.ModelWithEncodedNamesValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/aio/_client.py b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/aio/_client.py index f0707b94024..85249c1a5f2 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/aio/_client.py @@ -32,36 +32,36 @@ class XmlClient: # pylint: disable=client-accepts-api-version-keyword,too-many- :vartype simple_model_value: payload.xml.aio.operations.SimpleModelValueOperations :ivar model_with_simple_arrays_value: ModelWithSimpleArraysValueOperations operations :vartype model_with_simple_arrays_value: - payload.xml.aio.operations.ModelWithSimpleArraysValueOperations + payload.xml.aio.operations.ModelWithSimpleArraysValueOperations :ivar model_with_array_of_model_value: ModelWithArrayOfModelValueOperations operations :vartype model_with_array_of_model_value: - payload.xml.aio.operations.ModelWithArrayOfModelValueOperations + payload.xml.aio.operations.ModelWithArrayOfModelValueOperations :ivar model_with_optional_field_value: ModelWithOptionalFieldValueOperations operations :vartype model_with_optional_field_value: - payload.xml.aio.operations.ModelWithOptionalFieldValueOperations + payload.xml.aio.operations.ModelWithOptionalFieldValueOperations :ivar model_with_attributes_value: ModelWithAttributesValueOperations operations :vartype model_with_attributes_value: - payload.xml.aio.operations.ModelWithAttributesValueOperations + payload.xml.aio.operations.ModelWithAttributesValueOperations :ivar model_with_unwrapped_array_value: ModelWithUnwrappedArrayValueOperations operations :vartype model_with_unwrapped_array_value: - payload.xml.aio.operations.ModelWithUnwrappedArrayValueOperations + payload.xml.aio.operations.ModelWithUnwrappedArrayValueOperations :ivar model_with_renamed_arrays_value: ModelWithRenamedArraysValueOperations operations :vartype model_with_renamed_arrays_value: - payload.xml.aio.operations.ModelWithRenamedArraysValueOperations + payload.xml.aio.operations.ModelWithRenamedArraysValueOperations :ivar model_with_renamed_fields_value: ModelWithRenamedFieldsValueOperations operations :vartype model_with_renamed_fields_value: - payload.xml.aio.operations.ModelWithRenamedFieldsValueOperations + payload.xml.aio.operations.ModelWithRenamedFieldsValueOperations :ivar model_with_empty_array_value: ModelWithEmptyArrayValueOperations operations :vartype model_with_empty_array_value: - payload.xml.aio.operations.ModelWithEmptyArrayValueOperations + payload.xml.aio.operations.ModelWithEmptyArrayValueOperations :ivar model_with_text_value: ModelWithTextValueOperations operations :vartype model_with_text_value: payload.xml.aio.operations.ModelWithTextValueOperations :ivar model_with_dictionary_value: ModelWithDictionaryValueOperations operations :vartype model_with_dictionary_value: - payload.xml.aio.operations.ModelWithDictionaryValueOperations + payload.xml.aio.operations.ModelWithDictionaryValueOperations :ivar model_with_encoded_names_value: ModelWithEncodedNamesValueOperations operations :vartype model_with_encoded_names_value: - payload.xml.aio.operations.ModelWithEncodedNamesValueOperations + payload.xml.aio.operations.ModelWithEncodedNamesValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/models/_models.py index ca725a3a922..277125c5e6f 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/payload/xml/models/_models.py @@ -59,11 +59,13 @@ class ModelWithAttributes(_Model): xml={"attribute": True, "name": "id1", "text": False, "unwrapped": False}, ) """Required.""" + id2: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": True, "name": "id2", "text": False, "unwrapped": False}, ) """Required.""" + enabled: bool = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "enabled", "text": False, "unwrapped": False}, @@ -174,6 +176,7 @@ class ModelWithEncodedNames(_Model): xml={"attribute": False, "name": "SimpleModelData", "text": False, "unwrapped": False}, ) """Required.""" + colors: list[str] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "string", "name": "PossibleColors", "text": False, "unwrapped": False}, @@ -215,6 +218,7 @@ class ModelWithOptionalField(_Model): xml={"attribute": False, "name": "item", "text": False, "unwrapped": False}, ) """Required.""" + value: Optional[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "value", "text": False, "unwrapped": False}, @@ -243,7 +247,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ModelWithRenamedArrays(_Model): """Contains fields of wrapped and unwrapped arrays of primitive types that have different XML - representations. + representations. :ivar colors: Required. :vartype colors: list[str] @@ -256,6 +260,7 @@ class ModelWithRenamedArrays(_Model): xml={"attribute": False, "itemsName": "Colors", "name": "Colors", "text": False, "unwrapped": True}, ) """Required.""" + counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "int32", "name": "Counts", "text": False, "unwrapped": False}, @@ -298,6 +303,7 @@ class ModelWithRenamedFields(_Model): xml={"attribute": False, "name": "InputData", "text": False, "unwrapped": False}, ) """Required.""" + output_data: "_models.SimpleModel" = rest_field( name="outputData", visibility=["read", "create", "update", "delete", "query"], @@ -340,6 +346,7 @@ class ModelWithSimpleArrays(_Model): xml={"attribute": False, "itemsName": "string", "name": "colors", "text": False, "unwrapped": False}, ) """Required.""" + counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, @@ -381,6 +388,7 @@ class ModelWithText(_Model): xml={"attribute": True, "name": "language", "text": False, "unwrapped": False}, ) """Required.""" + content: str = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "content", "text": True, "unwrapped": False}, @@ -422,6 +430,7 @@ class ModelWithUnwrappedArray(_Model): xml={"attribute": False, "itemsName": "colors", "name": "colors", "text": False, "unwrapped": True}, ) """Required.""" + counts: list[int] = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "itemsName": "int32", "name": "counts", "text": False, "unwrapped": False}, @@ -463,6 +472,7 @@ class SimpleModel(_Model): xml={"attribute": False, "name": "name", "text": False, "unwrapped": False}, ) """Required.""" + age: int = rest_field( visibility=["read", "create", "update", "delete", "query"], xml={"attribute": False, "name": "age", "text": False, "unwrapped": False}, 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 41e6fea6cb5..a95dd090890 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/payload-xml/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "payload", ] 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 cb5fb092940..9100428b3f1 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "response", ] diff --git a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/models/_models.py b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/models/_models.py index a22cd5571b8..2289ba30225 100644 --- a/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/response-status-code-range/response/statuscoderange/models/_models.py @@ -45,6 +45,7 @@ class ErrorInRange(_Model): code: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + message: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -78,6 +79,7 @@ class NotFoundError(_Model): code: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"]) """Required.""" diff --git a/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml b/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml index e0f5f6f6a21..f38b571949a 100644 --- a/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/routes/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] 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 72cc3ca28a3..f1f07a96d9d 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "serialization", "serialization.encodedname", 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 0c46a6ffea1..d1ff2cd2a88 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.endpoint", diff --git a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py index 1548cdef036..c7e2fe300cd 100644 --- a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/_client.py @@ -14,7 +14,7 @@ class NotDefinedClient(_NotDefinedClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let - user pass in. + user pass in. :param endpoint: Service host. Required. :type endpoint: str diff --git a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py index 199fa637850..5b7d9e3a581 100644 --- a/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-endpoint-not-defined/server/endpoint/notdefined/aio/_client.py @@ -14,7 +14,7 @@ class NotDefinedClient(_NotDefinedClientOperationsMixin): # pylint: disable=client-accepts-api-version-keyword """Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let - user pass in. + user pass in. :param endpoint: Service host. Required. :type endpoint: str 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 c9f38b4ff65..490fd04d823 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.path", diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_client.py b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_client.py index 5111188837b..1437ebd65a8 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_client.py @@ -16,10 +16,10 @@ class MultipleClient(_MultipleClientOperationsMixin): """MultipleClient. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_configuration.py index 725c329d0a8..b3949f2ef97 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/_configuration.py @@ -14,10 +14,10 @@ class MultipleClientConfiguration: attributes. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_client.py b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_client.py index 50458fa1d66..ba2ea454633 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_client.py @@ -16,10 +16,10 @@ class MultipleClient(_MultipleClientOperationsMixin): """MultipleClient. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_configuration.py index 9d16faa3fb8..7885416dc5c 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-multiple/server/path/multiple/aio/_configuration.py @@ -14,10 +14,10 @@ class MultipleClientConfiguration: attributes. :param endpoint: Pass in `http://localhost:3000 `_ for endpoint. - Required. + Required. :type endpoint: str :keyword api_version: Pass in v1.0 for API version. Known values are "v1.0" and None. Default - value is "v1.0". Note that overriding this default value may result in unsupported behavior. + value is "v1.0". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str or ~server.path.multiple.models.Versions """ 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 321fbdad5f3..844f1c44463 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.path", diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_client.py b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_client.py index cc9e78bcf68..6efa4a73c88 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_client.py @@ -16,7 +16,7 @@ class SingleClient(_SingleClientOperationsMixin): # pylint: disable=client-acce """Illustrates server with a single path parameter @server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_configuration.py index 7ea09e4eab0..968d9905348 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/_configuration.py @@ -14,7 +14,7 @@ class SingleClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_client.py b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_client.py index ea72d5bb061..ea69e5c1109 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_client.py @@ -16,7 +16,7 @@ class SingleClient(_SingleClientOperationsMixin): # pylint: disable=client-acce """Illustrates server with a single path parameter @server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_configuration.py index 081e5d62278..23f8d329e4a 100644 --- a/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-path-single/server/path/single/aio/_configuration.py @@ -14,7 +14,7 @@ class SingleClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ 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 ef2a0624755..255ec4c121e 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.versions", diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_client.py b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_client.py index 05919a4440c..29f4b9d3e3e 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_client.py @@ -16,7 +16,7 @@ class NotVersionedClient(_NotVersionedClientOperationsMixin): # pylint: disable """Illustrates not-versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py index 9c7437f2d9a..e8d75d8a52a 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/_configuration.py @@ -14,7 +14,7 @@ class NotVersionedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py index fd416b17d69..b303d8c3d54 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_client.py @@ -16,7 +16,7 @@ class NotVersionedClient(_NotVersionedClientOperationsMixin): # pylint: disable """Illustrates not-versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py index 1338ecea3f4..9b477b67095 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-not-versioned/server/versions/notversioned/aio/_configuration.py @@ -14,7 +14,7 @@ class NotVersionedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str """ 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 b0d6c670737..ec8037eb2ba 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "server", "server.versions", diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_client.py b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_client.py index e6dc9492ccf..fd404d4bc65 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_client.py @@ -16,10 +16,10 @@ class VersionedClient(_VersionedClientOperationsMixin): """Illustrates versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_configuration.py index c8647475108..37cef9f983c 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/_configuration.py @@ -14,10 +14,10 @@ class VersionedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_client.py b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_client.py index a073ae7bbaf..a5f83847306 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_client.py @@ -16,10 +16,10 @@ class VersionedClient(_VersionedClientOperationsMixin): """Illustrates versioned server. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py index f5d3d708fbd..566b369b623 100644 --- a/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/server-versions-versioned/server/versions/versioned/aio/_configuration.py @@ -14,10 +14,10 @@ class VersionedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword api_version: Default value is "2022-12-01-preview". Note that overriding this default - value may result in unsupported behavior. + value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py index 171a71a4f5f..c66643429d7 100644 --- a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py +++ b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_client.py @@ -20,9 +20,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.TokenCredential + ~corehttp.credentials.TokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py index 06a2a17ea73..71a03dc19b5 100644 --- a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/_configuration.py @@ -18,9 +18,9 @@ class UnionClientConfiguration: attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.TokenCredential + ~corehttp.credentials.TokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py index 0ee916f5411..24a4c31d2b8 100644 --- a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_client.py @@ -20,9 +20,9 @@ class UnionClient(_UnionClientOperationsMixin): # pylint: disable=client-accept """Illustrates clients generated with ApiKey and OAuth2 authentication. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.AsyncTokenCredential + ~corehttp.credentials.AsyncTokenCredential :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py index a3de317a4f4..c1a26d9a70c 100644 --- a/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/setuppy-authentication-union/setuppy/authentication/union/aio/_configuration.py @@ -18,9 +18,9 @@ class UnionClientConfiguration: attributes. :param credential: Credential used to authenticate requests to the service. Is either a key - credential type or a token credential type. Required. + credential type or a token credential type. Required. :type credential: ~corehttp.credentials.ServiceKeyCredential or - ~corehttp.credentials.AsyncTokenCredential + ~corehttp.credentials.AsyncTokenCredential :param endpoint: Service host. Default value is "http://localhost:3000". :type endpoint: str """ 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 94e4044ddfd..a67788908ab 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specialheaders", ] diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py index 68b1dcde5ef..977176e166f 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/_operations/_operations.py @@ -217,9 +217,8 @@ def head_if_modified_since(self, *, if_modified_since: Optional[datetime.datetim """Check when only If-Modified-Since in header is defined. :keyword if_modified_since: A timestamp indicating the last modified time of the resource known - to the - client. The operation will be performed only if the resource on the service has - been modified since the specified time. Default value is None. + to the client. The operation will be performed only if the resource on the service has been + modified since the specified time. Default value is None. :paramtype if_modified_since: ~datetime.datetime :return: bool :rtype: bool @@ -267,8 +266,7 @@ def post_if_unmodified_since( # pylint: disable=inconsistent-return-statements """Check when only If-Unmodified-Since in header is defined. :keyword if_unmodified_since: A timestamp indicating the last modified time of the resource - known to the - client. The operation will be performed only if the resource on the service has + known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. Default value is None. :paramtype if_unmodified_since: ~datetime.datetime :return: None diff --git a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py index 4d8581ee12e..b6c90e1e56c 100644 --- a/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/special-headers-conditional-request/specialheaders/conditionalrequest/aio/_operations/_operations.py @@ -156,9 +156,8 @@ async def head_if_modified_since( """Check when only If-Modified-Since in header is defined. :keyword if_modified_since: A timestamp indicating the last modified time of the resource known - to the - client. The operation will be performed only if the resource on the service has - been modified since the specified time. Default value is None. + to the client. The operation will be performed only if the resource on the service has been + modified since the specified time. Default value is None. :paramtype if_modified_since: ~datetime.datetime :return: bool :rtype: bool @@ -208,8 +207,7 @@ async def post_if_unmodified_since( """Check when only If-Unmodified-Since in header is defined. :keyword if_unmodified_since: A timestamp indicating the last modified time of the resource - known to the - client. The operation will be performed only if the resource on the service has + known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time. Default value is None. :paramtype if_unmodified_since: ~datetime.datetime :return: None 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 4580c52542d..32fe401c23a 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "specialheaders", ] 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 d3032ad194f..5ce5e779929 100644 --- a/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/special-words/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", ] diff --git a/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_client.py b/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_client.py index 06ce296e1f1..3e21b386fe4 100644 --- a/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_client.py +++ b/packages/typespec-python/test/unbranded/generated/special-words/specialwords/_client.py @@ -16,45 +16,9 @@ class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword """Scenarios to verify that reserved words can be used in service and generators will handle it - appropriately. - - Current list of special words - - .. code-block:: txt - - and - as - assert - async - await - break - class - constructor - continue - def - del - elif - else - except - exec - finally - for - from - global - if - import - in - is - lambda - not - or - pass - raise - return - try - while - with - yield. + appropriately. Current list of special words .. code-block:: txt and as assert async await + break class constructor continue def del elif else except exec finally for from global if + import in is lambda not or pass raise return try while with yield. :ivar models: ModelsOperations operations :vartype models: specialwords.operations.ModelsOperations diff --git a/packages/typespec-python/test/unbranded/generated/special-words/specialwords/aio/_client.py b/packages/typespec-python/test/unbranded/generated/special-words/specialwords/aio/_client.py index 3e85666f60b..1aa89358049 100644 --- a/packages/typespec-python/test/unbranded/generated/special-words/specialwords/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/special-words/specialwords/aio/_client.py @@ -16,45 +16,9 @@ class SpecialWordsClient: # pylint: disable=client-accepts-api-version-keyword """Scenarios to verify that reserved words can be used in service and generators will handle it - appropriately. - - Current list of special words - - .. code-block:: txt - - and - as - assert - async - await - break - class - constructor - continue - def - del - elif - else - except - exec - finally - for - from - global - if - import - in - is - lambda - not - or - pass - raise - return - try - while - with - yield. + appropriately. Current list of special words .. code-block:: txt and as assert async await + break class constructor continue def del elif else except exec finally for from global if + import in is lambda not or pass raise return try while with yield. :ivar models: ModelsOperations operations :vartype models: specialwords.aio.operations.ModelsOperations 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 5b6a161f9e3..706e00e5b3d 100644 --- a/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/streaming-jsonl/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "streaming", ] 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 ea795e387bf..079ed8b2432 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-array/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py index 838efd840ac..da63c044668 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py @@ -20,6 +20,7 @@ class InnerModel(_Model): property: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required string property. Required.""" + children: Optional[list["_models.InnerModel"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) 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 964ee777040..d58a94fd494 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/aio/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/aio/_client.py index a01df3d4f6d..69e80fc199c 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/aio/_client.py @@ -47,7 +47,7 @@ class DictionaryClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype model_value: typetest.dictionary.aio.operations.ModelValueOperations :ivar recursive_model_value: RecursiveModelValueOperations operations :vartype recursive_model_value: - typetest.dictionary.aio.operations.RecursiveModelValueOperations + typetest.dictionary.aio.operations.RecursiveModelValueOperations :ivar nullable_float_value: NullableFloatValueOperations operations :vartype nullable_float_value: typetest.dictionary.aio.operations.NullableFloatValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py index a53f1d98b01..e793ec7fa00 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py @@ -20,6 +20,7 @@ class InnerModel(_Model): property: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required string property. Required.""" + children: Optional[dict[str, "_models.InnerModel"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) 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 da6034930d3..af2e373fc03 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.enum", 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 279217be8ca..f19fd75c355 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.enum", 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 db254f43c5b..879dc35df00 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 812db32fc28..982a4a38e37 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py index 0598043777e..1b529b261c7 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py @@ -12,7 +12,7 @@ class Snake(_Model): """Test fixed enum type for discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Cobra + Cobra :ivar kind: discriminator property. Required. "cobra" :vartype kind: str or ~typetest.model.enumdiscriminator.models.SnakeKind @@ -23,6 +23,7 @@ class Snake(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """discriminator property. Required. \"cobra\"""" + length: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Length of the snake. Required.""" @@ -80,7 +81,7 @@ class Dog(_Model): """Test extensible enum type for discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Golden + Golden :ivar kind: discriminator property. Required. "golden" :vartype kind: str or ~typetest.model.enumdiscriminator.models.DogKind @@ -91,6 +92,7 @@ class Dog(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """discriminator property. Required. \"golden\"""" + weight: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Weight of the dog. Required.""" 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 dcc15aec5ab..f7426f1c97d 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py index d38b44fcb13..5e2cf210813 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py @@ -14,7 +14,7 @@ class Fish(_Model): """This is base model for polymorphic multiple levels inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Salmon, Shark + Salmon, Shark :ivar kind: Discriminator property for Fish. Required. Default value is None. :vartype kind: str @@ -25,6 +25,7 @@ class Fish(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind") """Discriminator property for Fish. Required. Default value is None.""" + age: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -49,10 +50,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Shark(Fish, discriminator="shark"): """The second level model in polymorphic multiple levels inheritance and it defines a new - discriminator. + discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - GoblinShark, SawShark + GoblinShark, SawShark :ivar age: Required. :vartype age: int @@ -65,6 +66,7 @@ class Shark(Fish, discriminator="shark"): __mapping__: dict[str, _Model] = {} kind: Literal["shark"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"shark\".""" + sharktype: str = rest_discriminator(name="sharktype", visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is None.""" @@ -124,7 +126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Salmon(Fish, discriminator="salmon"): """The second level model in polymorphic multiple levels inheritance which contains references to - other polymorphic instances. + other polymorphic instances. :ivar age: Required. :vartype age: int @@ -140,6 +142,7 @@ class Salmon(Fish, discriminator="salmon"): kind: Literal["salmon"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"salmon\".""" + friends: Optional[list["_models.Fish"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) hate: Optional[dict[str, "_models.Fish"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) partner: Optional["_models.Fish"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) 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 0d49441651b..1ecb07a32a1 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 5711576f845..b05394033b2 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 be9570a9123..a1b2143ea7b 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py index 218105b583b..7498274ced4 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py @@ -14,7 +14,7 @@ class Bird(_Model): """This is base model for polymorphic single level inheritance with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - Eagle, Goose, SeaGull, Sparrow + Eagle, Goose, SeaGull, Sparrow :ivar kind: Required. Default value is None. :vartype kind: str @@ -25,6 +25,7 @@ class Bird(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is None.""" + wingspan: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -49,10 +50,10 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Dinosaur(_Model): """Define a base class in the legacy way. Discriminator property is not explicitly defined in the - model. + model. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - TRex + TRex :ivar kind: Discriminator property for Dinosaur. Required. Default value is None. :vartype kind: str @@ -63,6 +64,7 @@ class Dinosaur(_Model): __mapping__: dict[str, _Model] = {} kind: str = rest_discriminator(name="kind") """Discriminator property for Dinosaur. Required. Default value is None.""" + size: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -87,7 +89,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Eagle(Bird, discriminator="eagle"): """The second level model in polymorphic single levels inheritance which contains references to - other polymorphic instances. + other polymorphic instances. :ivar wingspan: Required. :vartype wingspan: int @@ -103,6 +105,7 @@ class Eagle(Bird, discriminator="eagle"): kind: Literal["eagle"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"eagle\".""" + friends: Optional[list["_models.Bird"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) hate: Optional[dict[str, "_models.Bird"]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) partner: Optional["_models.Bird"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) 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 baaea4403f9..0c54c59093b 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", 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 9ef0dc53a2d..35bdb60fb35 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.model", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py index 70ba12046f1..a71068a5662 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py @@ -17,6 +17,7 @@ class ReadOnlyModel(_Model): optional_nullable_int_list: Optional[list[int]] = rest_field(name="optionalNullableIntList", visibility=["read"]) """Optional readonly nullable int list.""" + optional_string_record: Optional[dict[str, str]] = rest_field(name="optionalStringRecord", visibility=["read"]) """Optional readonly string dictionary.""" @@ -36,10 +37,13 @@ class VisibilityModel(_Model): read_prop: str = rest_field(name="readProp", visibility=["read"]) """Required string, illustrating a readonly property. Required.""" + create_prop: list[str] = rest_field(name="createProp", visibility=["create"]) """Required string[], illustrating a create property. Required.""" + update_prop: list[int] = rest_field(name="updateProp", visibility=["update"]) """Required int32[], illustrating a update property. Required.""" + delete_prop: bool = rest_field(name="deleteProp", visibility=["delete"]) """Required bool, illustrating a delete property. Required.""" 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 c123e00690b..ab0106266f4 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py index 3c9588ace34..c42d2fa97fc 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/_client.py @@ -49,95 +49,95 @@ class AdditionalPropertiesClient: # pylint: disable=client-accepts-api-version- :ivar extends_unknown: ExtendsUnknownOperations operations :vartype extends_unknown: - typetest.property.additionalproperties.operations.ExtendsUnknownOperations + typetest.property.additionalproperties.operations.ExtendsUnknownOperations :ivar extends_unknown_derived: ExtendsUnknownDerivedOperations operations :vartype extends_unknown_derived: - typetest.property.additionalproperties.operations.ExtendsUnknownDerivedOperations + typetest.property.additionalproperties.operations.ExtendsUnknownDerivedOperations :ivar extends_unknown_discriminated: ExtendsUnknownDiscriminatedOperations operations :vartype extends_unknown_discriminated: - typetest.property.additionalproperties.operations.ExtendsUnknownDiscriminatedOperations + typetest.property.additionalproperties.operations.ExtendsUnknownDiscriminatedOperations :ivar is_unknown: IsUnknownOperations operations :vartype is_unknown: typetest.property.additionalproperties.operations.IsUnknownOperations :ivar is_unknown_derived: IsUnknownDerivedOperations operations :vartype is_unknown_derived: - typetest.property.additionalproperties.operations.IsUnknownDerivedOperations + typetest.property.additionalproperties.operations.IsUnknownDerivedOperations :ivar is_unknown_discriminated: IsUnknownDiscriminatedOperations operations :vartype is_unknown_discriminated: - typetest.property.additionalproperties.operations.IsUnknownDiscriminatedOperations + typetest.property.additionalproperties.operations.IsUnknownDiscriminatedOperations :ivar extends_string: ExtendsStringOperations operations :vartype extends_string: - typetest.property.additionalproperties.operations.ExtendsStringOperations + typetest.property.additionalproperties.operations.ExtendsStringOperations :ivar is_string: IsStringOperations operations :vartype is_string: typetest.property.additionalproperties.operations.IsStringOperations :ivar spread_string: SpreadStringOperations operations :vartype spread_string: - typetest.property.additionalproperties.operations.SpreadStringOperations + typetest.property.additionalproperties.operations.SpreadStringOperations :ivar extends_float: ExtendsFloatOperations operations :vartype extends_float: - typetest.property.additionalproperties.operations.ExtendsFloatOperations + typetest.property.additionalproperties.operations.ExtendsFloatOperations :ivar is_float: IsFloatOperations operations :vartype is_float: typetest.property.additionalproperties.operations.IsFloatOperations :ivar spread_float: SpreadFloatOperations operations :vartype spread_float: typetest.property.additionalproperties.operations.SpreadFloatOperations :ivar extends_model: ExtendsModelOperations operations :vartype extends_model: - typetest.property.additionalproperties.operations.ExtendsModelOperations + typetest.property.additionalproperties.operations.ExtendsModelOperations :ivar is_model: IsModelOperations operations :vartype is_model: typetest.property.additionalproperties.operations.IsModelOperations :ivar spread_model: SpreadModelOperations operations :vartype spread_model: typetest.property.additionalproperties.operations.SpreadModelOperations :ivar extends_model_array: ExtendsModelArrayOperations operations :vartype extends_model_array: - typetest.property.additionalproperties.operations.ExtendsModelArrayOperations + typetest.property.additionalproperties.operations.ExtendsModelArrayOperations :ivar is_model_array: IsModelArrayOperations operations :vartype is_model_array: - typetest.property.additionalproperties.operations.IsModelArrayOperations + typetest.property.additionalproperties.operations.IsModelArrayOperations :ivar spread_model_array: SpreadModelArrayOperations operations :vartype spread_model_array: - typetest.property.additionalproperties.operations.SpreadModelArrayOperations + typetest.property.additionalproperties.operations.SpreadModelArrayOperations :ivar spread_different_string: SpreadDifferentStringOperations operations :vartype spread_different_string: - typetest.property.additionalproperties.operations.SpreadDifferentStringOperations + typetest.property.additionalproperties.operations.SpreadDifferentStringOperations :ivar spread_different_float: SpreadDifferentFloatOperations operations :vartype spread_different_float: - typetest.property.additionalproperties.operations.SpreadDifferentFloatOperations + typetest.property.additionalproperties.operations.SpreadDifferentFloatOperations :ivar spread_different_model: SpreadDifferentModelOperations operations :vartype spread_different_model: - typetest.property.additionalproperties.operations.SpreadDifferentModelOperations + typetest.property.additionalproperties.operations.SpreadDifferentModelOperations :ivar spread_different_model_array: SpreadDifferentModelArrayOperations operations :vartype spread_different_model_array: - typetest.property.additionalproperties.operations.SpreadDifferentModelArrayOperations + typetest.property.additionalproperties.operations.SpreadDifferentModelArrayOperations :ivar extends_different_spread_string: ExtendsDifferentSpreadStringOperations operations :vartype extends_different_spread_string: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadStringOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadStringOperations :ivar extends_different_spread_float: ExtendsDifferentSpreadFloatOperations operations :vartype extends_different_spread_float: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadFloatOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadFloatOperations :ivar extends_different_spread_model: ExtendsDifferentSpreadModelOperations operations :vartype extends_different_spread_model: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelOperations :ivar extends_different_spread_model_array: ExtendsDifferentSpreadModelArrayOperations - operations + operations :vartype extends_different_spread_model_array: - typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelArrayOperations + typetest.property.additionalproperties.operations.ExtendsDifferentSpreadModelArrayOperations :ivar multiple_spread: MultipleSpreadOperations operations :vartype multiple_spread: - typetest.property.additionalproperties.operations.MultipleSpreadOperations + typetest.property.additionalproperties.operations.MultipleSpreadOperations :ivar spread_record_union: SpreadRecordUnionOperations operations :vartype spread_record_union: - typetest.property.additionalproperties.operations.SpreadRecordUnionOperations + typetest.property.additionalproperties.operations.SpreadRecordUnionOperations :ivar spread_record_non_discriminated_union: SpreadRecordNonDiscriminatedUnionOperations - operations + operations :vartype spread_record_non_discriminated_union: - typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnionOperations + typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnionOperations :ivar spread_record_non_discriminated_union2: SpreadRecordNonDiscriminatedUnion2Operations - operations + operations :vartype spread_record_non_discriminated_union2: - typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion2Operations + typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion2Operations :ivar spread_record_non_discriminated_union3: SpreadRecordNonDiscriminatedUnion3Operations - operations + operations :vartype spread_record_non_discriminated_union3: - typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion3Operations + typetest.property.additionalproperties.operations.SpreadRecordNonDiscriminatedUnion3Operations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py index 944cc1e8314..f384afd5129 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/aio/_client.py @@ -49,97 +49,97 @@ class AdditionalPropertiesClient: # pylint: disable=client-accepts-api-version- :ivar extends_unknown: ExtendsUnknownOperations operations :vartype extends_unknown: - typetest.property.additionalproperties.aio.operations.ExtendsUnknownOperations + typetest.property.additionalproperties.aio.operations.ExtendsUnknownOperations :ivar extends_unknown_derived: ExtendsUnknownDerivedOperations operations :vartype extends_unknown_derived: - typetest.property.additionalproperties.aio.operations.ExtendsUnknownDerivedOperations + typetest.property.additionalproperties.aio.operations.ExtendsUnknownDerivedOperations :ivar extends_unknown_discriminated: ExtendsUnknownDiscriminatedOperations operations :vartype extends_unknown_discriminated: - typetest.property.additionalproperties.aio.operations.ExtendsUnknownDiscriminatedOperations + typetest.property.additionalproperties.aio.operations.ExtendsUnknownDiscriminatedOperations :ivar is_unknown: IsUnknownOperations operations :vartype is_unknown: typetest.property.additionalproperties.aio.operations.IsUnknownOperations :ivar is_unknown_derived: IsUnknownDerivedOperations operations :vartype is_unknown_derived: - typetest.property.additionalproperties.aio.operations.IsUnknownDerivedOperations + typetest.property.additionalproperties.aio.operations.IsUnknownDerivedOperations :ivar is_unknown_discriminated: IsUnknownDiscriminatedOperations operations :vartype is_unknown_discriminated: - typetest.property.additionalproperties.aio.operations.IsUnknownDiscriminatedOperations + typetest.property.additionalproperties.aio.operations.IsUnknownDiscriminatedOperations :ivar extends_string: ExtendsStringOperations operations :vartype extends_string: - typetest.property.additionalproperties.aio.operations.ExtendsStringOperations + typetest.property.additionalproperties.aio.operations.ExtendsStringOperations :ivar is_string: IsStringOperations operations :vartype is_string: typetest.property.additionalproperties.aio.operations.IsStringOperations :ivar spread_string: SpreadStringOperations operations :vartype spread_string: - typetest.property.additionalproperties.aio.operations.SpreadStringOperations + typetest.property.additionalproperties.aio.operations.SpreadStringOperations :ivar extends_float: ExtendsFloatOperations operations :vartype extends_float: - typetest.property.additionalproperties.aio.operations.ExtendsFloatOperations + typetest.property.additionalproperties.aio.operations.ExtendsFloatOperations :ivar is_float: IsFloatOperations operations :vartype is_float: typetest.property.additionalproperties.aio.operations.IsFloatOperations :ivar spread_float: SpreadFloatOperations operations :vartype spread_float: - typetest.property.additionalproperties.aio.operations.SpreadFloatOperations + typetest.property.additionalproperties.aio.operations.SpreadFloatOperations :ivar extends_model: ExtendsModelOperations operations :vartype extends_model: - typetest.property.additionalproperties.aio.operations.ExtendsModelOperations + typetest.property.additionalproperties.aio.operations.ExtendsModelOperations :ivar is_model: IsModelOperations operations :vartype is_model: typetest.property.additionalproperties.aio.operations.IsModelOperations :ivar spread_model: SpreadModelOperations operations :vartype spread_model: - typetest.property.additionalproperties.aio.operations.SpreadModelOperations + typetest.property.additionalproperties.aio.operations.SpreadModelOperations :ivar extends_model_array: ExtendsModelArrayOperations operations :vartype extends_model_array: - typetest.property.additionalproperties.aio.operations.ExtendsModelArrayOperations + typetest.property.additionalproperties.aio.operations.ExtendsModelArrayOperations :ivar is_model_array: IsModelArrayOperations operations :vartype is_model_array: - typetest.property.additionalproperties.aio.operations.IsModelArrayOperations + typetest.property.additionalproperties.aio.operations.IsModelArrayOperations :ivar spread_model_array: SpreadModelArrayOperations operations :vartype spread_model_array: - typetest.property.additionalproperties.aio.operations.SpreadModelArrayOperations + typetest.property.additionalproperties.aio.operations.SpreadModelArrayOperations :ivar spread_different_string: SpreadDifferentStringOperations operations :vartype spread_different_string: - typetest.property.additionalproperties.aio.operations.SpreadDifferentStringOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentStringOperations :ivar spread_different_float: SpreadDifferentFloatOperations operations :vartype spread_different_float: - typetest.property.additionalproperties.aio.operations.SpreadDifferentFloatOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentFloatOperations :ivar spread_different_model: SpreadDifferentModelOperations operations :vartype spread_different_model: - typetest.property.additionalproperties.aio.operations.SpreadDifferentModelOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentModelOperations :ivar spread_different_model_array: SpreadDifferentModelArrayOperations operations :vartype spread_different_model_array: - typetest.property.additionalproperties.aio.operations.SpreadDifferentModelArrayOperations + typetest.property.additionalproperties.aio.operations.SpreadDifferentModelArrayOperations :ivar extends_different_spread_string: ExtendsDifferentSpreadStringOperations operations :vartype extends_different_spread_string: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadStringOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadStringOperations :ivar extends_different_spread_float: ExtendsDifferentSpreadFloatOperations operations :vartype extends_different_spread_float: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadFloatOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadFloatOperations :ivar extends_different_spread_model: ExtendsDifferentSpreadModelOperations operations :vartype extends_different_spread_model: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelOperations :ivar extends_different_spread_model_array: ExtendsDifferentSpreadModelArrayOperations - operations + operations :vartype extends_different_spread_model_array: - typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelArrayOperations + typetest.property.additionalproperties.aio.operations.ExtendsDifferentSpreadModelArrayOperations :ivar multiple_spread: MultipleSpreadOperations operations :vartype multiple_spread: - typetest.property.additionalproperties.aio.operations.MultipleSpreadOperations + typetest.property.additionalproperties.aio.operations.MultipleSpreadOperations :ivar spread_record_union: SpreadRecordUnionOperations operations :vartype spread_record_union: - typetest.property.additionalproperties.aio.operations.SpreadRecordUnionOperations + typetest.property.additionalproperties.aio.operations.SpreadRecordUnionOperations :ivar spread_record_non_discriminated_union: SpreadRecordNonDiscriminatedUnionOperations - operations + operations :vartype spread_record_non_discriminated_union: - typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnionOperations + typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnionOperations :ivar spread_record_non_discriminated_union2: SpreadRecordNonDiscriminatedUnion2Operations - operations + operations :vartype spread_record_non_discriminated_union2: - typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion2Operations + typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion2Operations :ivar spread_record_non_discriminated_union3: SpreadRecordNonDiscriminatedUnion3Operations - operations + operations :vartype spread_record_non_discriminated_union3: - typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion3Operations + typetest.property.additionalproperties.aio.operations.SpreadRecordNonDiscriminatedUnion3Operations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py index 046a3261540..ff3beb676ff 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py @@ -41,7 +41,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadFloatDerived(DifferentSpreadFloatRecord): """The model extends from a model that spread Record with the different known property - type. + type. :ivar name: The id property. Required. :vartype name: str @@ -101,7 +101,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelArrayDerived(DifferentSpreadModelArrayRecord): """The model extends from a model that spread Record with the different known - property type. + property type. :ivar known_prop: Required. :vartype known_prop: str @@ -163,7 +163,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadModelDerived(DifferentSpreadModelRecord): """The model extends from a model that spread Record with the different known - property type. + property type. :ivar known_prop: Required. :vartype known_prop: str @@ -225,7 +225,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DifferentSpreadStringDerived(DifferentSpreadStringRecord): """The model extends from a model that spread Record with the different known property - type. + type. :ivar id: The name property. Required. :vartype id: float @@ -412,6 +412,7 @@ class ExtendsUnknownAdditionalPropertiesDerived(ExtendsUnknownAdditionalProperti index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -439,7 +440,7 @@ class ExtendsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disabl """The model extends from Record with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExtendsUnknownAdditionalPropertiesDiscriminatedDerived + ExtendsUnknownAdditionalPropertiesDiscriminatedDerived :ivar name: The name property. Required. :vartype name: str @@ -450,6 +451,7 @@ class ExtendsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disabl __mapping__: dict[str, _Model] = {} name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name property. Required.""" + kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """The discriminator. Required. Default value is None.""" @@ -489,8 +491,10 @@ class ExtendsUnknownAdditionalPropertiesDiscriminatedDerived( kind: Literal["derived"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"derived\".""" + index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -672,6 +676,7 @@ class IsUnknownAdditionalPropertiesDerived(IsUnknownAdditionalProperties): index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -699,7 +704,7 @@ class IsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disable=nam """The model is Record with a discriminator. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - IsUnknownAdditionalPropertiesDiscriminatedDerived + IsUnknownAdditionalPropertiesDiscriminatedDerived :ivar name: The name property. Required. :vartype name: str @@ -710,6 +715,7 @@ class IsUnknownAdditionalPropertiesDiscriminated(_Model): # pylint: disable=nam __mapping__: dict[str, _Model] = {} name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The name property. Required.""" + kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) """The discriminator. Required. Default value is None.""" @@ -749,8 +755,10 @@ class IsUnknownAdditionalPropertiesDiscriminatedDerived( kind: Literal["derived"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore """Required. Default value is \"derived\".""" + index: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The index property. Required.""" + age: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The age property.""" @@ -1070,6 +1078,7 @@ class WidgetData0(_Model): kind: Literal["kind0"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is \"kind0\".""" + foo_prop: str = rest_field(name="fooProp", visibility=["read", "create", "update", "delete", "query"]) """Required.""" @@ -1105,8 +1114,10 @@ class WidgetData1(_Model): kind: Literal["kind1"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is \"kind1\".""" + start: datetime.datetime = rest_field(visibility=["read", "create", "update", "delete", "query"], format="rfc3339") """Required.""" + end: Optional[datetime.datetime] = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -1142,6 +1153,7 @@ class WidgetData2(_Model): kind: Literal["kind1"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required. Default value is \"kind1\".""" + start: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" 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 9c701f3a86d..04631d25885 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py index 541493385a2..2c9996a4f94 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/aio/_client.py @@ -35,10 +35,10 @@ class NullableClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype collections_byte: typetest.property.nullable.aio.operations.CollectionsByteOperations :ivar collections_model: CollectionsModelOperations operations :vartype collections_model: - typetest.property.nullable.aio.operations.CollectionsModelOperations + typetest.property.nullable.aio.operations.CollectionsModelOperations :ivar collections_string: CollectionsStringOperations operations :vartype collections_string: - typetest.property.nullable.aio.operations.CollectionsStringOperations + typetest.property.nullable.aio.operations.CollectionsStringOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py index 74a65e8833b..2505ccfd311 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py @@ -12,7 +12,7 @@ class BytesProperty(_Model): """Template type for testing models with nullable property. Pass in the type of the property you - are looking for. + are looking for. :ivar required_property: Required property. Required. :vartype required_property: str @@ -24,6 +24,7 @@ class BytesProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: bytes = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"], format="base64" ) @@ -61,6 +62,7 @@ class CollectionsByteProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: list[bytes] = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"], format="base64" ) @@ -98,6 +100,7 @@ class CollectionsModelProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: list["_models.InnerModel"] = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -135,6 +138,7 @@ class CollectionsStringProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: list[str] = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -172,6 +176,7 @@ class DatetimeProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: datetime.datetime = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) @@ -209,6 +214,7 @@ class DurationProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: datetime.timedelta = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -263,7 +269,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StringProperty(_Model): """Template type for testing models with nullable property. Pass in the type of the property you - are looking for. + are looking for. :ivar required_property: Required property. Required. :vartype required_property: str @@ -275,6 +281,7 @@ class StringProperty(_Model): name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) """Required property. Required.""" + nullable_property: str = rest_field( name="nullableProperty", visibility=["read", "create", "update", "delete", "query"] ) 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 f8750363c21..ac2ccfec2ec 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_client.py index 82b4163b386..15f1ddefc98 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/_client.py @@ -58,14 +58,14 @@ class OptionalClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype boolean_literal: typetest.property.optional.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.optional.operations.UnionStringLiteralOperations + typetest.property.optional.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: typetest.property.optional.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: typetest.property.optional.operations.UnionFloatLiteralOperations :ivar required_and_optional: RequiredAndOptionalOperations operations :vartype required_and_optional: - typetest.property.optional.operations.RequiredAndOptionalOperations + typetest.property.optional.operations.RequiredAndOptionalOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/aio/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/aio/_client.py index 39870a4ba8e..bb560d296de 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/aio/_client.py @@ -48,7 +48,7 @@ class OptionalClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype collections_byte: typetest.property.optional.aio.operations.CollectionsByteOperations :ivar collections_model: CollectionsModelOperations operations :vartype collections_model: - typetest.property.optional.aio.operations.CollectionsModelOperations + typetest.property.optional.aio.operations.CollectionsModelOperations :ivar string_literal: StringLiteralOperations operations :vartype string_literal: typetest.property.optional.aio.operations.StringLiteralOperations :ivar int_literal: IntLiteralOperations operations @@ -59,15 +59,15 @@ class OptionalClient: # pylint: disable=client-accepts-api-version-keyword,too- :vartype boolean_literal: typetest.property.optional.aio.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.optional.aio.operations.UnionStringLiteralOperations + typetest.property.optional.aio.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: typetest.property.optional.aio.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: - typetest.property.optional.aio.operations.UnionFloatLiteralOperations + typetest.property.optional.aio.operations.UnionFloatLiteralOperations :ivar required_and_optional: RequiredAndOptionalOperations operations :vartype required_and_optional: - typetest.property.optional.aio.operations.RequiredAndOptionalOperations + typetest.property.optional.aio.operations.RequiredAndOptionalOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". :paramtype endpoint: str """ diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py index b2d3558241a..22d739212b3 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py @@ -40,7 +40,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class BytesProperty(_Model): """Template type for testing models with optional property. Pass in the type of the property you - are looking for. + are looking for. :ivar property: Property. :vartype property: bytes @@ -310,6 +310,7 @@ class RequiredAndOptionalProperty(_Model): name="optionalProperty", visibility=["read", "create", "update", "delete", "query"] ) """optional string property.""" + required_property: int = rest_field( name="requiredProperty", visibility=["read", "create", "update", "delete", "query"] ) @@ -364,7 +365,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StringProperty(_Model): """Template type for testing models with optional property. Pass in the type of the property you - are looking for. + are looking for. :ivar property: Property. :vartype property: str 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 f31ef8a56eb..06a9e35cc11 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 @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", "typetest.property", diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py index 920e91040cd..3cdfcd84a0f 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/_client.py @@ -71,7 +71,7 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype model: typetest.property.valuetypes.operations.ModelOperations :ivar collections_string: CollectionsStringOperations operations :vartype collections_string: - typetest.property.valuetypes.operations.CollectionsStringOperations + typetest.property.valuetypes.operations.CollectionsStringOperations :ivar collections_int: CollectionsIntOperations operations :vartype collections_int: typetest.property.valuetypes.operations.CollectionsIntOperations :ivar collections_model: CollectionsModelOperations operations @@ -98,12 +98,12 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype boolean_literal: typetest.property.valuetypes.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.valuetypes.operations.UnionStringLiteralOperations + typetest.property.valuetypes.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: typetest.property.valuetypes.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: - typetest.property.valuetypes.operations.UnionFloatLiteralOperations + typetest.property.valuetypes.operations.UnionFloatLiteralOperations :ivar union_enum_value: UnionEnumValueOperations operations :vartype union_enum_value: typetest.property.valuetypes.operations.UnionEnumValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py index 529c61c49ac..49457f9d850 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/aio/_client.py @@ -71,15 +71,15 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype model: typetest.property.valuetypes.aio.operations.ModelOperations :ivar collections_string: CollectionsStringOperations operations :vartype collections_string: - typetest.property.valuetypes.aio.operations.CollectionsStringOperations + typetest.property.valuetypes.aio.operations.CollectionsStringOperations :ivar collections_int: CollectionsIntOperations operations :vartype collections_int: typetest.property.valuetypes.aio.operations.CollectionsIntOperations :ivar collections_model: CollectionsModelOperations operations :vartype collections_model: - typetest.property.valuetypes.aio.operations.CollectionsModelOperations + typetest.property.valuetypes.aio.operations.CollectionsModelOperations :ivar dictionary_string: DictionaryStringOperations operations :vartype dictionary_string: - typetest.property.valuetypes.aio.operations.DictionaryStringOperations + typetest.property.valuetypes.aio.operations.DictionaryStringOperations :ivar never: NeverOperations operations :vartype never: typetest.property.valuetypes.aio.operations.NeverOperations :ivar unknown_string: UnknownStringOperations operations @@ -100,13 +100,13 @@ class ValueTypesClient: # pylint: disable=client-accepts-api-version-keyword,to :vartype boolean_literal: typetest.property.valuetypes.aio.operations.BooleanLiteralOperations :ivar union_string_literal: UnionStringLiteralOperations operations :vartype union_string_literal: - typetest.property.valuetypes.aio.operations.UnionStringLiteralOperations + typetest.property.valuetypes.aio.operations.UnionStringLiteralOperations :ivar union_int_literal: UnionIntLiteralOperations operations :vartype union_int_literal: - typetest.property.valuetypes.aio.operations.UnionIntLiteralOperations + typetest.property.valuetypes.aio.operations.UnionIntLiteralOperations :ivar union_float_literal: UnionFloatLiteralOperations operations :vartype union_float_literal: - typetest.property.valuetypes.aio.operations.UnionFloatLiteralOperations + typetest.property.valuetypes.aio.operations.UnionFloatLiteralOperations :ivar union_enum_value: UnionEnumValueOperations operations :vartype union_enum_value: typetest.property.valuetypes.aio.operations.UnionEnumValueOperations :keyword endpoint: Service host. Default value is "http://localhost:3000". diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py index fa7afac8b7c..00d24d6d128 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py @@ -558,7 +558,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class UnionEnumValueProperty(_Model): """Template type for testing models with specific properties. Pass in the type of the property you - are looking for. + are looking for. :ivar property: Property. Required. :vartype property: str or ~typetest.property.valuetypes.models.ENUM_VALUE2 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 d6d7464941a..6ec6aa804d4 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-scalar/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] 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 911eadb7f5c..6eb17fe34b6 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/typetest-union/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "typetest", ] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py index fc471ed309e..7f3584c1242 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py @@ -78,10 +78,11 @@ class EnumsOnlyCases(_Model): lr: Literal["left", "right", "up", "down"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the left variant. Required. Is one of the following types: - Literal[\"left\"], Literal[\"right\"], Literal[\"up\"], Literal[\"down\"]""" + Literal[\"left\"], Literal[\"right\"], Literal[\"up\"], Literal[\"down\"]""" + ud: Literal["up", "down"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the up variant. Required. Is either a Literal[\"up\"] type or a - Literal[\"down\"] type.""" + Literal[\"down\"] type.""" @overload def __init__( @@ -407,22 +408,25 @@ class MixedLiteralsCases(_Model): name="stringLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the \"a\" variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" + int_literal: Literal["a", 2, True] = rest_field( name="intLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the 2 variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" + float_literal: Literal["a", 2, True] = rest_field( name="floatLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the 3.3 variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" + boolean_literal: Literal["a", 2, True] = rest_field( name="booleanLiteral", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the true variant. Required. Is one of the following types: - Literal[\"a\"], Literal[2], float, Literal[True]""" + Literal[\"a\"], Literal[2], float, Literal[True]""" @overload def __init__( @@ -468,22 +472,26 @@ class MixedTypesCases(_Model): visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the Cat variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + literal: Union["_models.Cat", Literal["a"], int, bool] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the \"a\" variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + int_property: Union["_models.Cat", Literal["a"], int, bool] = rest_field( name="int", visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the int variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + boolean: Union["_models.Cat", Literal["a"], int, bool] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) """This should be receive/send the boolean variant. Required. Is one of the following types: Cat, - Literal[\"a\"], int, bool""" + Literal[\"a\"], int, bool""" + array: list[Union["_models.Cat", Literal["a"], int, bool]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) @@ -524,6 +532,7 @@ class StringAndArrayCases(_Model): string: Union[str, list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the string variant. Required. Is either a str type or a [str] type.""" + array: Union[str, list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) """This should be receive/send the array variant. Required. Is either a str type or a [str] type.""" 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 0695a6052f3..335bc99c838 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_client.py index 2a7c93b6217..6b05e18561d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_client.py @@ -18,11 +18,11 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :ivar interface_v2: InterfaceV2Operations operations :vartype interface_v2: versioning.added.operations.InterfaceV2Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_configuration.py index 94699139fe5..81f3cf09ef9 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/_configuration.py @@ -14,11 +14,11 @@ class AddedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_client.py index 31c8303444a..55402ff247f 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_client.py @@ -18,11 +18,11 @@ class AddedClient(_AddedClientOperationsMixin): # pylint: disable=client-accept :ivar interface_v2: InterfaceV2Operations operations :vartype interface_v2: versioning.added.aio.operations.InterfaceV2Operations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_configuration.py index b1d08da4ce7..de0a1e7970d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/aio/_configuration.py @@ -14,11 +14,11 @@ class AddedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.added.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py index afae609dd25..6327da3d62d 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py @@ -22,10 +22,12 @@ class ModelV1(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV1"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. Known values are: \"enumMemberV1\" and \"enumMemberV2\".""" + union_prop: "_types.UnionV1" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) @@ -64,10 +66,12 @@ class ModelV2(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV2"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. \"enumMember\"""" + union_prop: "_types.UnionV2" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) 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 d8eedffde81..d6bd0b8dc12 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_client.py index eef40c44902..d4376e5d327 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_client.py @@ -16,11 +16,11 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable """Test for the ``@madeOptional`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py index 1a01e98e580..8eb44921ad5 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/_configuration.py @@ -14,11 +14,11 @@ class MadeOptionalClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py index 20cc04e43ed..85e4131da1b 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_client.py @@ -16,11 +16,11 @@ class MadeOptionalClient(_MadeOptionalClientOperationsMixin): # pylint: disable """Test for the ``@madeOptional`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py index 5fe6f2f1557..d13335b9cdf 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/aio/_configuration.py @@ -14,11 +14,11 @@ class MadeOptionalClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.madeoptional.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py index 41941a5206c..e5ebc6e2e89 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeoptional/versioning/madeoptional/models/_models.py @@ -17,6 +17,7 @@ class TestModel(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + changed_prop: Optional[str] = rest_field( name="changedProp", visibility=["read", "create", "update", "delete", "query"] ) 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 5ba79a8bcc0..9cb6d36eca0 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_client.py index 4ef1ea61472..743022fd019 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_client.py @@ -16,11 +16,11 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac """Test for the ``@removed`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_configuration.py index 575fc035b35..776b1d9beb6 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_configuration.py @@ -14,11 +14,11 @@ class RemovedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_operations/_operations.py index 2fe8b086afb..1759265c119 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/_operations/_operations.py @@ -184,7 +184,7 @@ def model_v3( self, body: _models.ModelV3, *, content_type: str = "application/json", **kwargs: Any ) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: ~versioning.removed.models.ModelV3 @@ -199,7 +199,7 @@ def model_v3( @overload def model_v3(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: JSON @@ -214,7 +214,7 @@ def model_v3(self, body: JSON, *, content_type: str = "application/json", **kwar @overload def model_v3(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: IO[bytes] @@ -228,7 +228,7 @@ def model_v3(self, body: IO[bytes], *, content_type: str = "application/json", * def model_v3(self, body: Union[_models.ModelV3, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Is one of the following types: ModelV3, JSON, IO[bytes] Required. :type body: ~versioning.removed.models.ModelV3 or JSON or IO[bytes] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_client.py index 3772345824a..c060bf85968 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_client.py @@ -16,11 +16,11 @@ class RemovedClient(_RemovedClientOperationsMixin): # pylint: disable=client-ac """Test for the ``@removed`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_configuration.py index add4c9ecb81..573367f45bb 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_configuration.py @@ -14,11 +14,11 @@ class RemovedClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1', 'v2preview' or 'v2' in client. Known values are "v2" - and None. Default value is "v2". Note that overriding this default value may result in - unsupported behavior. + and None. Default value is "v2". Note that overriding this default value may result in + unsupported behavior. :paramtype version: str or ~versioning.removed.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py index 91735507a37..eb6b0b17f2a 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/aio/_operations/_operations.py @@ -151,7 +151,7 @@ async def model_v3( self, body: _models.ModelV3, *, content_type: str = "application/json", **kwargs: Any ) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: ~versioning.removed.models.ModelV3 @@ -166,7 +166,7 @@ async def model_v3( @overload async def model_v3(self, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: JSON @@ -183,7 +183,7 @@ async def model_v3( self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Required. :type body: IO[bytes] @@ -197,7 +197,7 @@ async def model_v3( async def model_v3(self, body: Union[_models.ModelV3, JSON, IO[bytes]], **kwargs: Any) -> _models.ModelV3: """This operation will pass different paths and different request bodies based on different - versions. + versions. :param body: Is one of the following types: ModelV3, JSON, IO[bytes] Required. :type body: ~versioning.removed.models.ModelV3 or JSON or IO[bytes] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py index 083abc9deb1..170aaeee452 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py @@ -22,10 +22,12 @@ class ModelV2(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV2"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. \"enumMemberV2\"""" + union_prop: "_types.UnionV2" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) @@ -62,6 +64,7 @@ class ModelV3(_Model): id: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.EnumV3"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) 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 5dc66c298a3..972cfdbd2a6 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py index 46c49883524..bce6c76e464 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_client.py @@ -18,11 +18,11 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :ivar new_interface: NewInterfaceOperations operations :vartype new_interface: versioning.renamedfrom.operations.NewInterfaceOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py index edb241ab87b..3b046906852 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/_configuration.py @@ -14,11 +14,11 @@ class RenamedFromClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py index e85150ae870..a88b4b7d8bc 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_client.py @@ -18,11 +18,11 @@ class RenamedFromClient(_RenamedFromClientOperationsMixin): # pylint: disable=c :ivar new_interface: NewInterfaceOperations operations :vartype new_interface: versioning.renamedfrom.aio.operations.NewInterfaceOperations :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py index 9b2f0adfedf..4fe9e14db44 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/aio/_configuration.py @@ -14,11 +14,11 @@ class RenamedFromClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.renamedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py index 855e563da3d..945d78ed60b 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedfrom/versioning/renamedfrom/models/_models.py @@ -22,10 +22,12 @@ class NewModel(_Model): new_prop: str = rest_field(name="newProp", visibility=["read", "create", "update", "delete", "query"]) """Required.""" + enum_prop: Union[str, "_models.NewEnum"] = rest_field( name="enumProp", visibility=["read", "create", "update", "delete", "query"] ) """Required. \"newEnumMember\"""" + union_prop: "_types.NewUnion" = rest_field( name="unionProp", visibility=["read", "create", "update", "delete", "query"] ) 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 21577e81813..f8effa7387b 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py index b76af6d8748..75a6d13cc6a 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_client.py @@ -18,11 +18,11 @@ class ReturnTypeChangedFromClient( """Test for the ``@returnTypeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py index 777eab68c44..156d52be494 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/_configuration.py @@ -14,11 +14,11 @@ class ReturnTypeChangedFromClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py index 33e432377de..a5310ca0da4 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_client.py @@ -18,11 +18,11 @@ class ReturnTypeChangedFromClient( """Test for the ``@returnTypeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py index 5ebc66d7769..357df259a95 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-returntypechangedfrom/versioning/returntypechangedfrom/aio/_configuration.py @@ -14,11 +14,11 @@ class ReturnTypeChangedFromClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.returntypechangedfrom.models.Versions """ 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 8119b4e84d8..fe18e1598bc 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/pyproject.toml @@ -39,7 +39,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"} [tool.setuptools.packages.find] exclude = [ "tests*", + "generated_tests*", "samples*", + "generated_samples*", "doc*", "versioning", ] diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py index dd0fbbbc455..9d506fc9e16 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_client.py @@ -18,11 +18,11 @@ class TypeChangedFromClient( """Test for the ``@typeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py index d0b01d82c86..b3dc8cf7eeb 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/_configuration.py @@ -14,11 +14,11 @@ class TypeChangedFromClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py index 2a79688607d..1aa7cc62a52 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_client.py @@ -18,11 +18,11 @@ class TypeChangedFromClient( """Test for the ``@typeChangedFrom`` decorator. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py index a6840414abb..441747e29aa 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/aio/_configuration.py @@ -14,11 +14,11 @@ class TypeChangedFromClientConfiguration: attributes. :param endpoint: Need to be set as '`http://localhost:3000 `_' in - client. Required. + client. Required. :type endpoint: str :keyword version: Need to be set as 'v1' or 'v2' in client. Known values are "v2" and None. - Default value is "v2". Note that overriding this default value may result in unsupported - behavior. + Default value is "v2". Note that overriding this default value may result in unsupported + behavior. :paramtype version: str or ~versioning.typechangedfrom.models.Versions """ diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py index 50d31a1d17d..37e5b27e639 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typechangedfrom/versioning/typechangedfrom/models/_models.py @@ -17,6 +17,7 @@ class TestModel(_Model): prop: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """Required.""" + changed_prop: str = rest_field(name="changedProp", visibility=["read", "create", "update", "delete", "query"]) """Required.""" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59eee1e9e2a..8a016e7d314 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.19.0 - version: 0.19.0(xd3x5iacuy73inmcnqmslujf7u) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz(5f7fqipf5a24hosrop2uwczyrq) 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.19.0 - version: 0.19.0(xd3x5iacuy73inmcnqmslujf7u) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz(5f7fqipf5a24hosrop2uwczyrq) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -102,7 +102,7 @@ importers: version: 0.1.0-alpha.30-dev.6(igdln2jjjvkaem5yy4paqsvzwm) '@azure-tools/typespec-autorest': specifier: ~0.60.0 - version: 0.60.0(mpeik6lrosno7jd4tcgh2q5a2a) + version: 0.60.0(63ilc4b3zszfl6gn2d25fubmxq) '@azure-tools/typespec-azure-core': specifier: ~0.60.0 version: 0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))) @@ -111,10 +111,10 @@ importers: version: 0.60.0(3q4aqqqc666ypjp2v3uihzh2na) '@azure-tools/typespec-azure-rulesets': specifier: ~0.60.0 - version: 0.60.0(@azure-tools/typespec-azure-core@0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.60.0(3q4aqqqc666ypjp2v3uihzh2na))(@azure-tools/typespec-client-generator-core@0.60.2(63xlyx52jlevgzzdlym6oq7z6a))(@typespec/compiler@1.4.0(@types/node@24.1.0)) + version: 0.60.0(@azure-tools/typespec-azure-core@0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.60.0(3q4aqqqc666ypjp2v3uihzh2na))(@azure-tools/typespec-client-generator-core@0.60.3(63xlyx52jlevgzzdlym6oq7z6a))(@typespec/compiler@1.4.0(@types/node@24.1.0)) '@azure-tools/typespec-client-generator-core': - specifier: ~0.60.2 - version: 0.60.2(63xlyx52jlevgzzdlym6oq7z6a) + specifier: ~0.60.3 + version: 0.60.3(63xlyx52jlevgzzdlym6oq7z6a) '@types/fs-extra': specifier: 11.0.4 version: 11.0.4 @@ -261,8 +261,8 @@ packages: '@azure-tools/typespec-client-generator-core': ^0.60.0 '@typespec/compiler': ^1.4.0 - '@azure-tools/typespec-client-generator-core@0.60.2': - resolution: {integrity: sha512-o2IYEDl8aMQyLi5tlvmg3Fgc6Mhr1uUTGcV95tbrHP9f6SdiOG1nlwZE7Qc/gYairZRJD707XTGq6sN7W5/Zqw==} + '@azure-tools/typespec-client-generator-core@0.60.3': + resolution: {integrity: sha512-gcaLRoAJnvqg2tNyEYk+vOMhyP0PJpoZZERuDPB9VLiAAdxl3eTz22vAa3wKvnGFpLDxuvo4+ootEYguRCiwdg==} engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-azure-core': ^0.60.0 @@ -1677,15 +1677,16 @@ packages: peerDependencies: '@typespec/compiler': ^1.4.0 - '@typespec/http-client-python@0.19.0': - resolution: {integrity: sha512-qpRx0iOKPjGXtzLAt+naH4QrzEbxUeHUGLfoaPpvvuT2D00p3BgH+MP4lwg4VU4C1qU7BSTB5FjUhEfMMY5ZaA==} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz} + version: 0.19.0 engines: {node: '>=20.0.0'} peerDependencies: '@azure-tools/typespec-autorest': '>=0.60.0 <1.0.0' '@azure-tools/typespec-azure-core': '>=0.60.0 <1.0.0' '@azure-tools/typespec-azure-resource-manager': '>=0.60.0 <1.0.0' '@azure-tools/typespec-azure-rulesets': '>=0.60.0 <1.0.0' - '@azure-tools/typespec-client-generator-core': '>=0.60.2 <1.0.0' + '@azure-tools/typespec-client-generator-core': '>=0.60.3 <1.0.0' '@typespec/compiler': ^1.4.0 '@typespec/events': '>=0.74.0 <1.0.0' '@typespec/http': ^1.4.0 @@ -4880,11 +4881,11 @@ snapshots: - '@typespec/streams' - supports-color - '@azure-tools/typespec-autorest@0.60.0(mpeik6lrosno7jd4tcgh2q5a2a)': + '@azure-tools/typespec-autorest@0.60.0(63ilc4b3zszfl6gn2d25fubmxq)': dependencies: '@azure-tools/typespec-azure-core': 0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))) '@azure-tools/typespec-azure-resource-manager': 0.60.0(3q4aqqqc666ypjp2v3uihzh2na) - '@azure-tools/typespec-client-generator-core': 0.60.2(63xlyx52jlevgzzdlym6oq7z6a) + '@azure-tools/typespec-client-generator-core': 0.60.3(63xlyx52jlevgzzdlym6oq7z6a) '@typespec/compiler': 1.4.0(@types/node@24.1.0) '@typespec/http': 1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))) '@typespec/openapi': 1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0)))) @@ -4908,14 +4909,14 @@ snapshots: change-case: 5.4.4 pluralize: 8.0.0 - '@azure-tools/typespec-azure-rulesets@0.60.0(@azure-tools/typespec-azure-core@0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.60.0(3q4aqqqc666ypjp2v3uihzh2na))(@azure-tools/typespec-client-generator-core@0.60.2(63xlyx52jlevgzzdlym6oq7z6a))(@typespec/compiler@1.4.0(@types/node@24.1.0))': + '@azure-tools/typespec-azure-rulesets@0.60.0(@azure-tools/typespec-azure-core@0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.60.0(3q4aqqqc666ypjp2v3uihzh2na))(@azure-tools/typespec-client-generator-core@0.60.3(63xlyx52jlevgzzdlym6oq7z6a))(@typespec/compiler@1.4.0(@types/node@24.1.0))': dependencies: '@azure-tools/typespec-azure-core': 0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))) '@azure-tools/typespec-azure-resource-manager': 0.60.0(3q4aqqqc666ypjp2v3uihzh2na) - '@azure-tools/typespec-client-generator-core': 0.60.2(63xlyx52jlevgzzdlym6oq7z6a) + '@azure-tools/typespec-client-generator-core': 0.60.3(63xlyx52jlevgzzdlym6oq7z6a) '@typespec/compiler': 1.4.0(@types/node@24.1.0) - '@azure-tools/typespec-client-generator-core@0.60.2(63xlyx52jlevgzzdlym6oq7z6a)': + '@azure-tools/typespec-client-generator-core@0.60.3(63xlyx52jlevgzzdlym6oq7z6a)': dependencies: '@azure-tools/typespec-azure-core': 0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))) '@typespec/compiler': 1.4.0(@types/node@24.1.0) @@ -6459,13 +6460,13 @@ snapshots: dependencies: '@typespec/compiler': 1.4.0(@types/node@24.1.0) - '@typespec/http-client-python@0.19.0(xd3x5iacuy73inmcnqmslujf7u)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQyODU3OC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.0.tgz(5f7fqipf5a24hosrop2uwczyrq)': dependencies: - '@azure-tools/typespec-autorest': 0.60.0(mpeik6lrosno7jd4tcgh2q5a2a) + '@azure-tools/typespec-autorest': 0.60.0(63ilc4b3zszfl6gn2d25fubmxq) '@azure-tools/typespec-azure-core': 0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))) '@azure-tools/typespec-azure-resource-manager': 0.60.0(3q4aqqqc666ypjp2v3uihzh2na) - '@azure-tools/typespec-azure-rulesets': 0.60.0(@azure-tools/typespec-azure-core@0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.60.0(3q4aqqqc666ypjp2v3uihzh2na))(@azure-tools/typespec-client-generator-core@0.60.2(63xlyx52jlevgzzdlym6oq7z6a))(@typespec/compiler@1.4.0(@types/node@24.1.0)) - '@azure-tools/typespec-client-generator-core': 0.60.2(63xlyx52jlevgzzdlym6oq7z6a) + '@azure-tools/typespec-azure-rulesets': 0.60.0(@azure-tools/typespec-azure-core@0.60.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))(@typespec/rest@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/http@1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0))))))(@azure-tools/typespec-azure-resource-manager@0.60.0(3q4aqqqc666ypjp2v3uihzh2na))(@azure-tools/typespec-client-generator-core@0.60.3(63xlyx52jlevgzzdlym6oq7z6a))(@typespec/compiler@1.4.0(@types/node@24.1.0)) + '@azure-tools/typespec-client-generator-core': 0.60.3(63xlyx52jlevgzzdlym6oq7z6a) '@typespec/compiler': 1.4.0(@types/node@24.1.0) '@typespec/events': 0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0)) '@typespec/http': 1.4.0(@typespec/compiler@1.4.0(@types/node@24.1.0))(@typespec/streams@0.74.0(@typespec/compiler@1.4.0(@types/node@24.1.0)))