From 5353134693c4ca278c54026f3ffedd918cda0bcb Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Oct 2025 20:29:57 +0000 Subject: [PATCH 1/9] Update dependencies --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index 1a2a8c56dd4..da079ab3f6c 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 21f7deb3ad9..0993806f568 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { From 2e49f2ff6202db135d582ea1e78709262cb61782 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Oct 2025 20:29:59 +0000 Subject: [PATCH 2/9] Add changelog .chronus/changes/auto-iscai-msft-python-addBullet-2025-9-16-16-11-41.md --- ...auto-iscai-msft-python-addBullet-2025-9-16-16-11-41.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .chronus/changes/auto-iscai-msft-python-addBullet-2025-9-16-16-11-41.md diff --git a/.chronus/changes/auto-iscai-msft-python-addBullet-2025-9-16-16-11-41.md b/.chronus/changes/auto-iscai-msft-python-addBullet-2025-9-16-16-11-41.md new file mode 100644 index 00000000000..6f9aab92d49 --- /dev/null +++ b/.chronus/changes/auto-iscai-msft-python-addBullet-2025-9-16-16-11-41.md @@ -0,0 +1,8 @@ +--- +changeKind: fix +packages: + - "@autorest/python" + - "@azure-tools/typespec-python" +--- + +Additional fixes to documentation with bullet points \ No newline at end of file From bc1b35db77e28ed0a67109f37fb4b03145da5f3a Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Oct 2025 20:31:08 +0000 Subject: [PATCH 3/9] Update dependencies (2025-10-16 20:31:08) --- pnpm-lock.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5045bd87eb3..4a4ab6ffb05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1681,8 +1681,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.5.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz} version: 0.19.1 engines: {node: '>=20.0.0'} peerDependencies: @@ -6466,7 +6466,7 @@ snapshots: dependencies: '@typespec/compiler': 1.5.0(@types/node@24.1.0) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ0ODI4Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba)': dependencies: '@azure-tools/typespec-autorest': 0.61.0(yehncn3lp4xzygpesuojuhtg7i) '@azure-tools/typespec-azure-core': 0.61.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/http@1.5.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/streams@0.75.0(@typespec/compiler@1.5.0(@types/node@24.1.0))))(@typespec/rest@0.75.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/http@1.5.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/streams@0.75.0(@typespec/compiler@1.5.0(@types/node@24.1.0))))) From 15ef96e4054aad823b0fe60b7ef67a2a13bd69c6 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Oct 2025 20:36:22 +0000 Subject: [PATCH 4/9] Regenerate for typespec-python (2025-10-16 20:36:22) --- .../core/access/aio/operations/_operations.py | 4 + .../core/access/operations/_operations.py | 4 + .../core/usage/aio/operations/_operations.py | 37 ++++++++ .../core/usage/operations/_operations.py | 37 ++++++++ .../specs/azure/core/traits/models/_enums.py | 2 +- .../commonproperties/models/_models.py | 44 ++++----- .../methodsubscriptionid/models/_models.py | 94 +++++++++---------- .../operationtemplates/models/_models.py | 54 +++++------ .../resources/models/_models.py | 68 +++++++------- .../secondnamespace/models/_models.py | 2 +- .../client/structure/service/_client.py | 1 + .../client/structure/service/aio/_client.py | 1 + .../resiliency/srv/driven2/_client.py | 8 +- .../resiliency/srv/driven2/aio/_client.py | 8 +- .../special-words/specialwords/_client.py | 3 + .../special-words/specialwords/aio/_client.py | 3 + .../property/valuetypes/models/_models.py | 2 +- .../typetest/union/models/_models.py | 24 ++--- .../special-words/specialwords/_client.py | 3 + .../special-words/specialwords/aio/_client.py | 3 + .../property/valuetypes/models/_models.py | 2 +- .../typetest/union/models/_models.py | 24 ++--- 22 files changed, 266 insertions(+), 162 deletions(-) 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 f3d321347d4..88bb949f0a8 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 @@ -547,7 +547,9 @@ def __init__(self, *args, **kwargs) -> None: 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": @@ -615,7 +617,9 @@ async def _operation(self, *, name: str, **kwargs: Any) -> _models._models.Outer 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" 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 24798112077..901011e64df 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 @@ -716,7 +716,9 @@ def __init__(self, *args, **kwargs) -> None: def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: """Expected query parameter: name="Madge" Expected response body: + .. code-block:: json + { "name": "Madge", "inner": @@ -784,7 +786,9 @@ def _operation(self, *, name: str, **kwargs: Any) -> _models._models.OuterModel: 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" 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 31d782e70a2..b843525db56 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 @@ -64,7 +64,9 @@ 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" }. @@ -82,7 +84,9 @@ 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" }. @@ -102,7 +106,9 @@ 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" }. @@ -120,7 +126,9 @@ 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" }. @@ -180,7 +188,9 @@ 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" }. @@ -242,12 +252,18 @@ 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" @@ -269,12 +285,18 @@ 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" @@ -296,12 +318,18 @@ 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" @@ -323,12 +351,18 @@ 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" @@ -402,8 +436,11 @@ 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" 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 cb5318bf59a..5e468d79381 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 @@ -127,7 +127,9 @@ 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" }. @@ -145,7 +147,9 @@ 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" }. @@ -163,7 +167,9 @@ 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" }. @@ -183,7 +189,9 @@ 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" }. @@ -243,7 +251,9 @@ 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" }. @@ -305,12 +315,18 @@ 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" @@ -332,12 +348,18 @@ 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" @@ -359,12 +381,18 @@ 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" @@ -386,12 +414,18 @@ 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" @@ -467,8 +501,11 @@ 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" 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 37e813c500c..1e2417ecdd1 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 @@ -19,5 +19,5 @@ class RepeatabilityResult(str, Enum, metaclass=CaseInsensitiveEnumMeta): 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 + 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-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..3d9d13666b5 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 @@ -137,15 +137,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData """ @@ -165,15 +165,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -210,15 +210,15 @@ class ConfidentialResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -226,7 +226,7 @@ class ConfidentialResource(TrackedResource): :vartype location: str :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.commonproperties.models.ConfidentialResourceProperties + ~azure.resourcemanager.commonproperties.models.ConfidentialResourceProperties """ properties: Optional["_models.ConfidentialResourceProperties"] = rest_field( @@ -314,7 +314,7 @@ class ErrorDetail(_Model): :vartype details: list[~azure.resourcemanager.commonproperties.models.ErrorDetail] :ivar additional_info: The error additional info. :vartype additional_info: - list[~azure.resourcemanager.commonproperties.models.ErrorAdditionalInfo] + list[~azure.resourcemanager.commonproperties.models.ErrorAdditionalInfo] """ code: Optional[str] = rest_field(visibility=["read"]) @@ -397,15 +397,15 @@ class ManagedIdentityTrackedResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -413,7 +413,7 @@ class ManagedIdentityTrackedResource(TrackedResource): :vartype location: str :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.commonproperties.models.ManagedIdentityTrackedResourceProperties + ~azure.resourcemanager.commonproperties.models.ManagedIdentityTrackedResourceProperties :ivar identity: The managed service identities assigned to this resource. :vartype identity: ~azure.resourcemanager.commonproperties.models.ManagedServiceIdentity """ @@ -463,17 +463,17 @@ class ManagedServiceIdentity(_Model): """Managed service identity (system assigned and/or user assigned identities). :ivar principal_id: The service principal ID of the system assigned identity. This property - will only be provided for a system assigned identity. + will only be provided for a system assigned identity. :vartype principal_id: str :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be - provided for a system assigned identity. + provided for a system assigned identity. :vartype tenant_id: str :ivar type: The type of managed identity assigned to this resource. Required. Known values are: - "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :vartype type: str or ~azure.resourcemanager.commonproperties.models.ManagedServiceIdentityType :ivar user_assigned_identities: The identities assigned to this resource by the user. :vartype user_assigned_identities: dict[str, - ~azure.resourcemanager.commonproperties.models.UserAssignedIdentity] + ~azure.resourcemanager.commonproperties.models.UserAssignedIdentity] """ principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) @@ -517,16 +517,16 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or ~azure.resourcemanager.commonproperties.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or - ~azure.resourcemanager.commonproperties.models.CreatedByType + ~azure.resourcemanager.commonproperties.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ 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..f6ee0166d16 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 @@ -45,7 +45,7 @@ class ErrorDetail(_Model): :vartype details: list[~azure.resourcemanager.methodsubscriptionid.models.ErrorDetail] :ivar additional_info: The error additional info. :vartype additional_info: - list[~azure.resourcemanager.methodsubscriptionid.models.ErrorAdditionalInfo] + list[~azure.resourcemanager.methodsubscriptionid.models.ErrorAdditionalInfo] """ code: Optional[str] = rest_field(visibility=["read"]) @@ -94,19 +94,19 @@ class Operation(_Model): """REST API Operation. :ivar name: 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". :vartype name: str :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for - data-plane operations and "false" for Azure Resource Manager/control-plane operations. + data-plane operations and "false" for Azure Resource Manager/control-plane operations. :vartype is_data_action: bool :ivar display: Localized display information for this particular operation. :vartype display: ~azure.resourcemanager.methodsubscriptionid.models.OperationDisplay :ivar origin: 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". + (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system", + and "user,system". :vartype origin: str or ~azure.resourcemanager.methodsubscriptionid.models.Origin :ivar action_type: Extensible enum. Indicates the action type. "Internal" refers to actions - that are for internal only APIs. "Internal" + that are for internal only APIs. "Internal" :vartype action_type: str or ~azure.resourcemanager.methodsubscriptionid.models.ActionType """ @@ -151,16 +151,16 @@ class OperationDisplay(_Model): """Localized display information for and operation. :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft - Monitoring Insights" or "Microsoft Compute". + Monitoring Insights" or "Microsoft Compute". :vartype provider: str :ivar resource: The localized friendly name of the resource type related to this operation. - E.g. "Virtual Machines" or "Job Schedule Collections". + E.g. "Virtual Machines" or "Job Schedule Collections". :vartype resource: str :ivar operation: The concise, localized friendly name for the operation; suitable for - dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". :vartype operation: str :ivar description: The short, localized friendly description of the operation; suitable for - tool tips and detailed views. + tool tips and detailed views. :vartype description: str """ @@ -182,15 +182,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData """ @@ -210,15 +210,15 @@ class ProxyResource(Resource): """Proxy Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData """ @@ -227,15 +227,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -272,15 +272,15 @@ class ResourceGroupResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -288,7 +288,7 @@ class ResourceGroupResource(TrackedResource): :vartype location: str :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.ResourceGroupResourceProperties + ~azure.resourcemanager.methodsubscriptionid.models.ResourceGroupResourceProperties """ properties: Optional["_models.ResourceGroupResourceProperties"] = rest_field( @@ -320,9 +320,9 @@ class ResourceGroupResourceProperties(_Model): """Properties of resource group resource. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar resource_group_setting: The resource group-scoped setting. :vartype resource_group_setting: str """ @@ -360,19 +360,19 @@ class SubscriptionResource(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResourceProperties + ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResourceProperties """ properties: Optional["_models.SubscriptionResourceProperties"] = rest_field( @@ -403,19 +403,19 @@ class SubscriptionResource1(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource1Properties + ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource1Properties """ properties: Optional["_models.SubscriptionResource1Properties"] = rest_field( @@ -445,9 +445,9 @@ class SubscriptionResource1Properties(_Model): """Properties of subscription resource 1. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar description: The description of the resource. :vartype description: str """ @@ -483,19 +483,19 @@ class SubscriptionResource2(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource2Properties + ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource2Properties """ properties: Optional["_models.SubscriptionResource2Properties"] = rest_field( @@ -525,9 +525,9 @@ class SubscriptionResource2Properties(_Model): """Properties of subscription resource 2. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar config_value: The configuration value. :vartype config_value: str """ @@ -564,9 +564,9 @@ class SubscriptionResourceProperties(_Model): """Properties of subscription resource. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar subscription_setting: The subscription-scoped setting. :vartype subscription_setting: str """ @@ -605,17 +605,17 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or - ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType + ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or - ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType + ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ 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..dc16597da64 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 @@ -187,9 +187,9 @@ class CheckNameAvailabilityResponse(_Model): :ivar name_available: Indicates if the resource name is available. :vartype name_available: bool :ivar reason: The reason why the given name is not available. Known values are: "Invalid" and - "AlreadyExists". + "AlreadyExists". :vartype reason: str or - ~azure.resourcemanager.operationtemplates.models.CheckNameAvailabilityReason + ~azure.resourcemanager.operationtemplates.models.CheckNameAvailabilityReason :ivar message: Detailed reason why the given name is not available. :vartype message: str """ @@ -254,7 +254,7 @@ class ErrorDetail(_Model): :vartype details: list[~azure.resourcemanager.operationtemplates.models.ErrorDetail] :ivar additional_info: The error additional info. :vartype additional_info: - list[~azure.resourcemanager.operationtemplates.models.ErrorAdditionalInfo] + list[~azure.resourcemanager.operationtemplates.models.ErrorAdditionalInfo] """ code: Optional[str] = rest_field(visibility=["read"]) @@ -359,19 +359,19 @@ class Operation(_Model): """REST API Operation. :ivar name: 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". :vartype name: str :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for - data-plane operations and "false" for Azure Resource Manager/control-plane operations. + data-plane operations and "false" for Azure Resource Manager/control-plane operations. :vartype is_data_action: bool :ivar display: Localized display information for this particular operation. :vartype display: ~azure.resourcemanager.operationtemplates.models.OperationDisplay :ivar origin: 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". + (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system", + and "user,system". :vartype origin: str or ~azure.resourcemanager.operationtemplates.models.Origin :ivar action_type: Extensible enum. Indicates the action type. "Internal" refers to actions - that are for internal only APIs. "Internal" + that are for internal only APIs. "Internal" :vartype action_type: str or ~azure.resourcemanager.operationtemplates.models.ActionType """ @@ -416,16 +416,16 @@ class OperationDisplay(_Model): """Localized display information for and operation. :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft - Monitoring Insights" or "Microsoft Compute". + Monitoring Insights" or "Microsoft Compute". :vartype provider: str :ivar resource: The localized friendly name of the resource type related to this operation. - E.g. "Virtual Machines" or "Job Schedule Collections". + E.g. "Virtual Machines" or "Job Schedule Collections". :vartype resource: str :ivar operation: The concise, localized friendly name for the operation; suitable for - dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". :vartype operation: str :ivar description: The short, localized friendly description of the operation; suitable for - tool tips and detailed views. + tool tips and detailed views. :vartype description: str """ @@ -447,15 +447,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData """ @@ -475,15 +475,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -520,15 +520,15 @@ class Order(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -606,16 +606,16 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or ~azure.resourcemanager.operationtemplates.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or - ~azure.resourcemanager.operationtemplates.models.CreatedByType + ~azure.resourcemanager.operationtemplates.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ @@ -673,15 +673,15 @@ class Widget(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, 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..46427fd59fb 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 @@ -93,15 +93,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData """ @@ -121,15 +121,15 @@ class ExtensionResource(Resource): """The base extension resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData """ @@ -139,15 +139,15 @@ class ExtensionsResource(ExtensionResource): property type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: ~azure.resourcemanager.resources.models.ExtensionsResourceProperties @@ -182,7 +182,7 @@ class ExtensionsResourceProperties(_Model): :ivar description: The description of the resource. :vartype description: str :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState """ @@ -216,15 +216,15 @@ class ProxyResource(Resource): """Proxy Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData """ @@ -234,15 +234,15 @@ class LocationResource(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: ~azure.resourcemanager.resources.models.LocationResourceProperties @@ -277,7 +277,7 @@ class LocationResourceProperties(_Model): :ivar description: The description of the resource. :vartype description: str :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState """ @@ -311,15 +311,15 @@ class NestedProxyResource(ProxyResource): """Nested child of Top Level Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: ~azure.resourcemanager.resources.models.NestedProxyResourceProperties @@ -352,7 +352,7 @@ class NestedProxyResourceProperties(_Model): """Nested Proxy Resource Properties. :ivar provisioning_state: Provisioning State of the nested child Resource. Known values are: - "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState :ivar description: Nested resource description. :vartype description: str @@ -421,15 +421,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -466,15 +466,15 @@ class SingletonTrackedResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -513,7 +513,7 @@ class SingletonTrackedResourceProperties(_Model): """Singleton Arm Resource Properties. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState :ivar description: The description of the resource. :vartype description: str @@ -551,14 +551,14 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or ~azure.resourcemanager.resources.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or ~azure.resourcemanager.resources.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime @@ -617,15 +617,15 @@ class TopLevelTrackedResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -664,7 +664,7 @@ class TopLevelTrackedResourceProperties(_Model): """Top Level Arm Resource Properties. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState :ivar description: The description of the resource. :vartype description: str 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..0feab07ae3e 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 @@ -19,7 +19,7 @@ class SecondModel(_Model): """SecondModel. :ivar status: Status from second namespace. Required. Known values are: "running" and - "stopped". + "stopped". :vartype status: str or ~client.naming.enumconflict.secondnamespace.models.SecondStatus :ivar description: Description of the item. Required. :vartype description: str 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 440567dc3da..a657b69cc82 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 @@ -23,6 +23,7 @@ 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 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 9358a9503b8..e2f0cca115f 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 @@ -23,6 +23,7 @@ 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 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 585b0f93463..e058a85291b 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 @@ -22,7 +22,9 @@ 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 @@ -30,11 +32,13 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi 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 + 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 api version v2. :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. 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 8fc360c0c54..bd7f0c14624 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 @@ -22,7 +22,9 @@ 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 @@ -30,11 +32,13 @@ class ResiliencyServiceDrivenClient(_ResiliencyServiceDrivenClientOperationsMixi 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 + 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 api version v2. :param endpoint: Need to be set as '`http://localhost:3000 `_' in client. Required. 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 ec8c2dd2389..02159cb48ea 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 @@ -22,8 +22,11 @@ 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 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 1c6efa8dd0d..575b9d8ebc8 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 @@ -22,8 +22,11 @@ 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 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..29f1399244a 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 @@ -651,7 +651,7 @@ class UnionStringLiteralProperty(_Model): """Model with a union of string literal as property. :ivar property: Property. Required. Is either a Literal["hello"] type or a Literal["world"] - type. + type. :vartype property: str or str """ 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..98872172e2e 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 @@ -75,10 +75,10 @@ class EnumsOnlyCases(_Model): """EnumsOnlyCases. :ivar lr: This should be receive/send the left variant. Required. Is one of the following - types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] + types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] :vartype lr: str or str or str or str :ivar ud: This should be receive/send the up variant. Required. Is either a Literal["up"] type - or a Literal["down"] type. + or a Literal["down"] type. :vartype ud: str or str """ @@ -396,16 +396,16 @@ class MixedLiteralsCases(_Model): """MixedLiteralsCases. :ivar string_literal: This should be receive/send the "a" variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype string_literal: str or int or float or bool :ivar int_literal: This should be receive/send the 2 variant. Required. Is one of the following - types: Literal["a"], Literal[2], float, Literal[True] + types: Literal["a"], Literal[2], float, Literal[True] :vartype int_literal: str or int or float or bool :ivar float_literal: This should be receive/send the 3.3 variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype float_literal: str or int or float or bool :ivar boolean_literal: This should be receive/send the true variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype boolean_literal: str or int or float or bool """ @@ -455,16 +455,16 @@ class MixedTypesCases(_Model): """MixedTypesCases. :ivar model: This should be receive/send the Cat variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype model: ~typetest.union.models.Cat or str or int or bool :ivar literal: This should be receive/send the "a" variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype literal: ~typetest.union.models.Cat or str or int or bool :ivar int_property: This should be receive/send the int variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype int_property: ~typetest.union.models.Cat or str or int or bool :ivar boolean: This should be receive/send the boolean variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype boolean: ~typetest.union.models.Cat or str or int or bool :ivar array: This should be receive/send 4 element with Cat, "a", int, and boolean. Required. :vartype array: list[~typetest.union.models.Cat or str or int or bool] @@ -521,10 +521,10 @@ class StringAndArrayCases(_Model): """StringAndArrayCases. :ivar string: This should be receive/send the string variant. Required. Is either a str type or - a [str] type. + a [str] type. :vartype string: str or list[str] :ivar array: This should be receive/send the array variant. Required. Is either a str type or a - [str] type. + [str] type. :vartype array: str or list[str] """ 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 7e48378100e..06ce296e1f1 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 @@ -17,8 +17,11 @@ 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 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 ee64925ce22..3e85666f60b 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 @@ -17,8 +17,11 @@ 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 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..8dea954687f 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 @@ -645,7 +645,7 @@ class UnionStringLiteralProperty(_Model): """Model with a union of string literal as property. :ivar property: Property. Required. Is either a Literal["hello"] type or a Literal["world"] - type. + type. :vartype property: str or str """ 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..af9f7e0339a 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 @@ -69,10 +69,10 @@ class EnumsOnlyCases(_Model): """EnumsOnlyCases. :ivar lr: This should be receive/send the left variant. Required. Is one of the following - types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] + types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] :vartype lr: str or str or str or str :ivar ud: This should be receive/send the up variant. Required. Is either a Literal["up"] type - or a Literal["down"] type. + or a Literal["down"] type. :vartype ud: str or str """ @@ -390,16 +390,16 @@ class MixedLiteralsCases(_Model): """MixedLiteralsCases. :ivar string_literal: This should be receive/send the "a" variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype string_literal: str or int or float or bool :ivar int_literal: This should be receive/send the 2 variant. Required. Is one of the following - types: Literal["a"], Literal[2], float, Literal[True] + types: Literal["a"], Literal[2], float, Literal[True] :vartype int_literal: str or int or float or bool :ivar float_literal: This should be receive/send the 3.3 variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype float_literal: str or int or float or bool :ivar boolean_literal: This should be receive/send the true variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype boolean_literal: str or int or float or bool """ @@ -449,16 +449,16 @@ class MixedTypesCases(_Model): """MixedTypesCases. :ivar model: This should be receive/send the Cat variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype model: ~typetest.union.models.Cat or str or int or bool :ivar literal: This should be receive/send the "a" variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype literal: ~typetest.union.models.Cat or str or int or bool :ivar int_property: This should be receive/send the int variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype int_property: ~typetest.union.models.Cat or str or int or bool :ivar boolean: This should be receive/send the boolean variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype boolean: ~typetest.union.models.Cat or str or int or bool :ivar array: This should be receive/send 4 element with Cat, "a", int, and boolean. Required. :vartype array: list[~typetest.union.models.Cat or str or int or bool] @@ -515,10 +515,10 @@ class StringAndArrayCases(_Model): """StringAndArrayCases. :ivar string: This should be receive/send the string variant. Required. Is either a str type or - a [str] type. + a [str] type. :vartype string: str or list[str] :ivar array: This should be receive/send the array variant. Required. Is either a str type or a - [str] type. + [str] type. :vartype array: str or list[str] """ From 8fb7420982cd82c2af7e63b23a2ddc909c2f36f9 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Thu, 16 Oct 2025 20:51:12 +0000 Subject: [PATCH 5/9] Regenerate for autorest.python (2025-10-16 20:51:12) --- .../custompollerpager/models/_models_py3.py | 10 ++-- .../Lro/lro/models/_models_py3.py | 8 +-- .../batch/paging/models/_models_py3.py | 10 ++-- .../Paging/paging/models/_models_py3.py | 10 ++-- .../storage/models/_models_py3.py | 52 +++++++++---------- .../models/_models_py3.py | 10 ++-- .../bodycomplex/models/_models_py3.py | 14 ++--- .../models/_models_py3.py | 6 +-- .../bodystring/models/_models_py3.py | 2 +- .../errorwithsecrets/models/_models_py3.py | 14 ++--- .../models/_models_py3.py | 2 +- .../modelflattening/models/_models_py3.py | 16 +++--- .../validation/models/_models_py3.py | 2 +- .../Xml/xmlservice/models/_models_py3.py | 38 +++++++------- .../models/_models.py | 38 +++++++------- 15 files changed, 116 insertions(+), 116 deletions(-) diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py index 081063e8f4e..ee5170446ae 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py @@ -99,7 +99,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~custompollerpager.models.OperationResultStatus """ @@ -124,7 +124,7 @@ class PagingGetMultiplePagesLroOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -152,7 +152,7 @@ class PagingGetMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -184,7 +184,7 @@ class PagingGetMultiplePagesWithOffsetOptions(_serialization.Model): :ivar offset: Offset of return value. Required. :vartype offset: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -220,7 +220,7 @@ class PagingGetOdataMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py index 5d065db6ea3..d11ea7b6ef2 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py @@ -18,7 +18,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~lro.models.OperationResultStatus :ivar error: :vartype error: ~lro.models.OperationResultError @@ -139,7 +139,7 @@ class Product(Resource): :ivar provisioning_state: :vartype provisioning_state: str :ivar provisioning_state_values: Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype provisioning_state_values: str or ~lro.models.ProductPropertiesProvisioningStateValues """ @@ -246,9 +246,9 @@ class SubProduct(SubResource): :ivar provisioning_state: :vartype provisioning_state: str :ivar provisioning_state_values: Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype provisioning_state_values: str or - ~lro.models.SubProductPropertiesProvisioningStateValues + ~lro.models.SubProductPropertiesProvisioningStateValues """ _validation = { diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py index d4ce395da09..237f21d14a6 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py @@ -99,7 +99,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~azure.packagemode.batch.paging.models.OperationResultStatus """ @@ -124,7 +124,7 @@ class PagingGetMultiplePagesLroOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -152,7 +152,7 @@ class PagingGetMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -184,7 +184,7 @@ class PagingGetMultiplePagesWithOffsetOptions(_serialization.Model): :ivar offset: Offset of return value. Required. :vartype offset: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -220,7 +220,7 @@ class PagingGetOdataMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py index bdc01bfd9c4..bcd2b09f8a9 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py @@ -99,7 +99,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~paging.models.OperationResultStatus """ @@ -124,7 +124,7 @@ class PagingGetMultiplePagesLroOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -152,7 +152,7 @@ class PagingGetMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -184,7 +184,7 @@ class PagingGetMultiplePagesWithOffsetOptions(_serialization.Model): :ivar offset: Offset of return value. Required. :vartype offset: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -220,7 +220,7 @@ class PagingGetOdataMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py index c28f347711c..2090df93534 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py @@ -39,12 +39,12 @@ class CheckNameAvailabilityResult(_serialization.Model): """The CheckNameAvailability operation response. :ivar name_available: Gets a boolean value that indicates whether the name is available for you - to use. If true, the name is available. If false, the name has already been taken or invalid - and cannot be used. + to use. If true, the name is available. If false, the name has already been taken or invalid + and cannot be used. :vartype name_available: bool :ivar reason: Gets the reason that a storage account name could not be used. The Reason element - is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and - "AlreadyExists". + is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and + "AlreadyExists". :vartype reason: str or ~storage.models.Reason :ivar message: Gets an error message explaining the Reason value in more detail. :vartype message: str @@ -88,7 +88,7 @@ class CustomDomain(_serialization.Model): :ivar name: Gets or sets the custom domain name. Name is the CNAME source. :vartype name: str :ivar use_sub_domain: Indicates whether indirect CName validation is enabled. Default value is - false. This should only be set on updates. + false. This should only be set on updates. :vartype use_sub_domain: bool """ @@ -250,39 +250,39 @@ class StorageAccount(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar provisioning_state: Gets the status of the storage account at the time the operation was - called. Known values are: "Creating", "ResolvingDNS", and "Succeeded". + called. Known values are: "Creating", "ResolvingDNS", and "Succeeded". :vartype provisioning_state: str or ~storage.models.ProvisioningState :ivar account_type: Gets the type of the storage account. Known values are: "Standard_LRS", - "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". :vartype account_type: str or ~storage.models.AccountType :ivar primary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob - endpoint. + queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob + endpoint. :vartype primary_endpoints: ~storage.models.Endpoints :ivar primary_location: Gets the location of the primary for the storage account. :vartype primary_location: str :ivar status_of_primary: Gets the status indicating whether the primary location of the storage - account is available or unavailable. Known values are: "Available" and "Unavailable". + account is available or unavailable. Known values are: "Available" and "Unavailable". :vartype status_of_primary: str or ~storage.models.AccountStatus :ivar last_geo_failover_time: Gets the timestamp of the most recent instance of a failover to - the secondary location. Only the most recent timestamp is retained. This element is not - returned if there has never been a failover instance. Only available if the accountType is - StandardGRS or StandardRAGRS. + the secondary location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the accountType is + StandardGRS or StandardRAGRS. :vartype last_geo_failover_time: ~datetime.datetime :ivar secondary_location: Gets the location of the geo replicated secondary for the storage - account. Only available if the accountType is StandardGRS or StandardRAGRS. + account. Only available if the accountType is StandardGRS or StandardRAGRS. :vartype secondary_location: str :ivar status_of_secondary: Gets the status indicating whether the secondary location of the - storage account is available or unavailable. Only available if the accountType is StandardGRS - or StandardRAGRS. Known values are: "Available" and "Unavailable". + storage account is available or unavailable. Only available if the accountType is StandardGRS + or StandardRAGRS. Known values are: "Available" and "Unavailable". :vartype status_of_secondary: str or ~storage.models.AccountStatus :ivar creation_time: Gets the creation date and time of the storage account in UTC. :vartype creation_time: ~datetime.datetime :ivar custom_domain: Gets the user assigned custom domain assigned to this storage account. :vartype custom_domain: ~storage.models.CustomDomain :ivar secondary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object from the secondary location of the storage account. Only available if the - accountType is StandardRAGRS. + queue or table object from the secondary location of the storage account. Only available if the + accountType is StandardRAGRS. :vartype secondary_endpoints: ~storage.models.Endpoints """ @@ -435,7 +435,7 @@ class StorageAccountCreateParameters(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar account_type: Gets or sets the account type. Known values are: "Standard_LRS", - "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". :vartype account_type: str or ~storage.models.AccountType """ @@ -508,7 +508,7 @@ class StorageAccountListResult(_serialization.Model): :ivar value: Gets the list of storage accounts and their properties. :vartype value: list[~storage.models.StorageAccount] :ivar next_link: Gets the link to the next set of results. Currently this will always be empty - as the API does not support pagination. + as the API does not support pagination. :vartype next_link: str """ @@ -570,13 +570,13 @@ class StorageAccountUpdateParameters(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar account_type: Gets or sets the account type. Note that StandardZRS and PremiumLRS - accounts cannot be changed to other account types, and other account types cannot be changed to - StandardZRS or PremiumLRS. Known values are: "Standard_LRS", "Standard_ZRS", "Standard_GRS", - "Standard_RAGRS", and "Premium_LRS". + accounts cannot be changed to other account types, and other account types cannot be changed to + StandardZRS or PremiumLRS. Known values are: "Standard_LRS", "Standard_ZRS", "Standard_GRS", + "Standard_RAGRS", and "Premium_LRS". :vartype account_type: str or ~storage.models.AccountType :ivar custom_domain: User domain assigned to the storage account. Name is the CNAME source. - Only one custom domain is supported per storage account at this time. To clear the existing - custom domain, use an empty string for the custom domain name property. + Only one custom domain is supported per storage account at this time. To clear the existing + custom domain, use an empty string for the custom domain name property. :vartype custom_domain: ~storage.models.CustomDomain """ @@ -650,7 +650,7 @@ class Usage(_serialization.Model): """Describes Storage Resource Usage. :ivar unit: Gets the unit of measurement. Known values are: "Count", "Bytes", "Seconds", - "Percent", "CountsPerSecond", and "BytesPerSecond". + "Percent", "CountsPerSecond", and "BytesPerSecond". :vartype unit: str or ~storage.models.UsageUnit :ivar current_value: Gets the current count of the allocated resources in the subscription. :vartype current_value: int diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py index 439901ce4c8..f491a5ce22b 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py @@ -19,7 +19,7 @@ class PetAPTrue(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar id: Required. :vartype id: int @@ -73,7 +73,7 @@ class CatAPTrue(PetAPTrue): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar id: Required. :vartype id: int @@ -208,7 +208,7 @@ class PetAPInPropertiesWithAPString(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, str] :ivar id: Required. :vartype id: int @@ -277,7 +277,7 @@ class PetAPObject(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar id: Required. :vartype id: int @@ -331,7 +331,7 @@ class PetAPString(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, str] :ivar id: Required. :vartype id: int 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..dc85e704281 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 @@ -42,7 +42,7 @@ class Basic(msrest.serialization.Model): :ivar id: Basic Id. :vartype id: int :ivar name: Name property with a very long description that does not fit on a single line and a - line break. + line break. :vartype name: str :ivar color: Known values are: "cyan", "Magenta", "YELLOW", and "blacK". :vartype color: str or ~bodycomplex.models.CMYKColors @@ -659,10 +659,10 @@ class DoubleWrapper(msrest.serialization.Model): :ivar field1: :vartype field1: float :ivar - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: :vartype - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float """ _attribute_map = { @@ -688,8 +688,8 @@ def __init__( :keyword field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: :paramtype - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float """ super().__init__(**kwargs) self.field1 = field1 @@ -1214,7 +1214,7 @@ class SmartSalmon(Salmon): :ivar iswild: :vartype iswild: bool :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar college_degree: :vartype college_degree: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py index d5cc95580b2..43cc43a9e74 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py @@ -22,10 +22,10 @@ class Paths14Hl8BdFormsdataurlencodedPetAddPetidPostRequestbodyContentApplicatio All required parameters must be populated in order to send to server. :ivar pet_type: Can take a value of dog, or cat, or fish. Required. Known values are: "dog", - "cat", and "fish". + "cat", and "fish". :vartype pet_type: str or ~bodyformurlencodeddata.models.PetType :ivar pet_food: Can take a value of meat, or fish, or plant. Required. Known values are: - "meat", "fish", and "plant". + "meat", "fish", and "plant". :vartype pet_food: str or ~bodyformurlencodeddata.models.PetFood :ivar pet_age: How many years is it old?. Required. :vartype pet_age: int @@ -95,7 +95,7 @@ class PathsPvivzlFormsdataurlencodedPartialconstantbodyPostRequestbodyContentApp :ivar service: Indicates the name of your Azure container registry. Required. :vartype service: str :ivar aad_access_token: AAD access token, mandatory when grant_type is - access_token_refresh_token or access_token. Required. + access_token_refresh_token or access_token. Required. :vartype aad_access_token: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py index 0512de43feb..1e750a1f927 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py @@ -45,7 +45,7 @@ class RefColorConstant(_serialization.Model): All required parameters must be populated in order to send to server. :ivar color_constant: Referenced Color Constant Description. Required. Default value is - "green-color". + "green-color". :vartype color_constant: str :ivar field1: Sample string. :vartype field1: 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..a3bee97dd5a 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 @@ -20,10 +20,10 @@ class Error(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar code: One of a server-defined set of error codes. Required. Known values are: - "BadParameter" and "Unauthorized". + "BadParameter" and "Unauthorized". :vartype code: str or ~errorwithsecrets.models.ErrorCode :ivar message: A human-readable representation of the error. Required. :vartype message: str @@ -32,7 +32,7 @@ class Error(_serialization.Model): :ivar details: An array of details about specific errors that led to this reported error. :vartype details: list[~errorwithsecrets.models.Error] :ivar innererror: An object containing more specific information than the current object about - the error. + the error. :vartype innererror: ~errorwithsecrets.models.InnerError """ @@ -93,7 +93,7 @@ class ErrorResponse(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar error: The error object. Required. :vartype error: ~errorwithsecrets.models.Error @@ -131,15 +131,15 @@ class InnerError(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar code: One of a server-defined set of error codes. Required. Known values are: - "MissingSharedKey" and "UnauthorizedSharedKey". + "MissingSharedKey" and "UnauthorizedSharedKey". :vartype code: str or ~errorwithsecrets.models.InnerErrorCode :ivar message: Error message. Required. :vartype message: str :ivar innererror: An object containing more specific information than the current object about - the error. + the error. :vartype innererror: ~errorwithsecrets.models.InnerError """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py index 157fe9af036..83626951d3f 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py @@ -22,7 +22,7 @@ class Pet(_serialization.Model): :ivar name: name. :vartype name: str :ivar days_of_week: Type of Pet. Known values are: "Monday", "Tuesday", "Wednesday", - "Thursday", "Friday", "Saturday", and "Sunday". + "Thursday", "Friday", "Saturday", and "Sunday". :vartype days_of_week: str or ~extensibleenumsswagger.models.DaysOfWeekExtensibleEnum :ivar int_enum: Required. Known values are: "1", "2", and "3". :vartype int_enum: str or ~extensibleenumsswagger.models.IntEnum diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py index 1fa25827377..7adc0d1036f 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py @@ -20,8 +20,8 @@ class BaseProduct(_serialization.Model): All required parameters must be populated in order to send to server. :ivar 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 - Los Angeles. Required. + longitude. For example, uberX in San Francisco will have a different product_id than uberX in + Los Angeles. Required. :vartype product_id: str :ivar description: Description of product. :vartype description: str @@ -155,9 +155,9 @@ class FlattenedProduct(Resource): :ivar type_properties_type: :vartype type_properties_type: str :ivar provisioning_state_values: Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype provisioning_state_values: str or - ~modelflattening.models.FlattenedProductPropertiesProvisioningStateValues + ~modelflattening.models.FlattenedProductPropertiesProvisioningStateValues :ivar provisioning_state: :vartype provisioning_state: str """ @@ -222,8 +222,8 @@ class FlattenParameterGroup(_serialization.Model): :ivar simple_body_product: Simple body product to put. :vartype simple_body_product: ~modelflattening.models.SimpleProduct :ivar 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 - Los Angeles. Required. + longitude. For example, uberX in San Francisco will have a different product_id than uberX in + Los Angeles. Required. :vartype product_id: str :ivar description: Description of product. :vartype description: str @@ -409,8 +409,8 @@ class SimpleProduct(BaseProduct): All required parameters must be populated in order to send to server. :ivar 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 - Los Angeles. Required. + longitude. For example, uberX in San Francisco will have a different product_id than uberX in + Los Angeles. Required. :vartype product_id: str :ivar description: Description of product. :vartype description: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py index 20b960b7206..578d399d2a9 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py @@ -134,7 +134,7 @@ class Product(msrest.serialization.Model): :ivar const_string: Constant string. Required. Default value is "constant". :vartype const_string: str :ivar const_string_as_enum: Constant string as Enum. Default value is - "constant_string_as_enum". + "constant_string_as_enum". :vartype const_string_as_enum: str """ 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..946d48c46c5 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 @@ -243,7 +243,7 @@ class BlobProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlservice.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlservice.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlservice.models.LeaseDurationType @@ -270,12 +270,12 @@ class BlobProperties(_serialization.Model): :ivar remaining_retention_days: :vartype remaining_retention_days: int :ivar access_tier: Known values are: "P4", "P6", "P10", "P20", "P30", "P40", "P50", "Hot", - "Cool", and "Archive". + "Cool", and "Archive". :vartype access_tier: str or ~xmlservice.models.AccessTier :ivar access_tier_inferred: :vartype access_tier_inferred: bool :ivar archive_status: Known values are: "rehydrate-pending-to-hot" and - "rehydrate-pending-to-cool". + "rehydrate-pending-to-cool". :vartype archive_status: str or ~xmlservice.models.ArchiveStatus """ @@ -571,7 +571,7 @@ class ContainerProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlservice.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlservice.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlservice.models.LeaseDurationType @@ -637,22 +637,22 @@ class CorsRule(_serialization.Model): All required parameters must be populated in order to send to server. :ivar allowed_origins: The origin domains that are permitted to make a request against the - storage service via CORS. The origin domain is the domain from which the request originates. - Note that the origin must be an exact case-sensitive match with the origin that the user age - sends to the service. You can also use the wildcard character '*' to allow all origin domains - to make requests via CORS. Required. + storage service via CORS. The origin domain is the domain from which the request originates. + Note that the origin must be an exact case-sensitive match with the origin that the user age + sends to the service. You can also use the wildcard character '*' to allow all origin domains + to make requests via CORS. Required. :vartype allowed_origins: str :ivar allowed_methods: The methods (HTTP request verbs) that the origin domain may use for a - CORS request. (comma separated). Required. + CORS request. (comma separated). Required. :vartype allowed_methods: str :ivar allowed_headers: the request headers that the origin domain may specify on the CORS - request. Required. + request. Required. :vartype allowed_headers: str :ivar exposed_headers: The response headers that may be sent in the response to the CORS - request and exposed by the browser to the request issuer. Required. + request and exposed by the browser to the request issuer. Required. :vartype exposed_headers: str :ivar max_age_in_seconds: The maximum amount time that a browser should cache the preflight - OPTIONS request. Required. + OPTIONS request. Required. :vartype max_age_in_seconds: int """ @@ -1007,7 +1007,7 @@ class Metrics(_serialization.Model): :ivar enabled: Indicates whether metrics are enabled for the Blob service. Required. :vartype enabled: bool :ivar include_apis: Indicates whether metrics should generate summary statistics for called API - operations. + operations. :vartype include_apis: bool :ivar retention_policy: the retention policy. :vartype retention_policy: ~xmlservice.models.RetentionPolicy @@ -1124,10 +1124,10 @@ class RetentionPolicy(_serialization.Model): All required parameters must be populated in order to send to server. :ivar enabled: Indicates whether a retention policy is enabled for the storage service. - Required. + Required. :vartype enabled: bool :ivar days: Indicates the number of days that metrics or logging or soft-deleted data should be - retained. All data older than this value will be deleted. + retained. All data older than this value will be deleted. :vartype days: int """ @@ -1348,16 +1348,16 @@ class StorageServiceProperties(_serialization.Model): :ivar logging: Azure Analytics Logging settings. :vartype logging: ~xmlservice.models.Logging :ivar hour_metrics: A summary of request statistics grouped by API in hourly aggregates for - blobs. + blobs. :vartype hour_metrics: ~xmlservice.models.Metrics :ivar minute_metrics: a summary of request statistics grouped by API in minute aggregates for - blobs. + blobs. :vartype minute_metrics: ~xmlservice.models.Metrics :ivar cors: The set of CORS rules. :vartype cors: list[~xmlservice.models.CorsRule] :ivar default_service_version: The default version to use for requests to the Blob service if - an incoming request's version is not specified. Possible values include version 2008-10-27 and - all more recent versions. + an incoming request's version is not specified. Possible values include version 2008-10-27 and + all more recent versions. :vartype default_service_version: str :ivar delete_retention_policy: The Delete Retention Policy for the service. :vartype delete_retention_policy: ~xmlservice.models.RetentionPolicy 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..c61d2b46fa3 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 @@ -243,7 +243,7 @@ class BlobProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlserviceversiontolerant.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlserviceversiontolerant.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlserviceversiontolerant.models.LeaseDurationType @@ -270,12 +270,12 @@ class BlobProperties(_serialization.Model): :ivar remaining_retention_days: :vartype remaining_retention_days: int :ivar access_tier: Known values are: "P4", "P6", "P10", "P20", "P30", "P40", "P50", "Hot", - "Cool", and "Archive". + "Cool", and "Archive". :vartype access_tier: str or ~xmlserviceversiontolerant.models.AccessTier :ivar access_tier_inferred: :vartype access_tier_inferred: bool :ivar archive_status: Known values are: "rehydrate-pending-to-hot" and - "rehydrate-pending-to-cool". + "rehydrate-pending-to-cool". :vartype archive_status: str or ~xmlserviceversiontolerant.models.ArchiveStatus """ @@ -571,7 +571,7 @@ class ContainerProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlserviceversiontolerant.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlserviceversiontolerant.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlserviceversiontolerant.models.LeaseDurationType @@ -637,22 +637,22 @@ class CorsRule(_serialization.Model): All required parameters must be populated in order to send to server. :ivar allowed_origins: The origin domains that are permitted to make a request against the - storage service via CORS. The origin domain is the domain from which the request originates. - Note that the origin must be an exact case-sensitive match with the origin that the user age - sends to the service. You can also use the wildcard character '*' to allow all origin domains - to make requests via CORS. Required. + storage service via CORS. The origin domain is the domain from which the request originates. + Note that the origin must be an exact case-sensitive match with the origin that the user age + sends to the service. You can also use the wildcard character '*' to allow all origin domains + to make requests via CORS. Required. :vartype allowed_origins: str :ivar allowed_methods: The methods (HTTP request verbs) that the origin domain may use for a - CORS request. (comma separated). Required. + CORS request. (comma separated). Required. :vartype allowed_methods: str :ivar allowed_headers: the request headers that the origin domain may specify on the CORS - request. Required. + request. Required. :vartype allowed_headers: str :ivar exposed_headers: The response headers that may be sent in the response to the CORS - request and exposed by the browser to the request issuer. Required. + request and exposed by the browser to the request issuer. Required. :vartype exposed_headers: str :ivar max_age_in_seconds: The maximum amount time that a browser should cache the preflight - OPTIONS request. Required. + OPTIONS request. Required. :vartype max_age_in_seconds: int """ @@ -1007,7 +1007,7 @@ class Metrics(_serialization.Model): :ivar enabled: Indicates whether metrics are enabled for the Blob service. Required. :vartype enabled: bool :ivar include_apis: Indicates whether metrics should generate summary statistics for called API - operations. + operations. :vartype include_apis: bool :ivar retention_policy: the retention policy. :vartype retention_policy: ~xmlserviceversiontolerant.models.RetentionPolicy @@ -1124,10 +1124,10 @@ class RetentionPolicy(_serialization.Model): All required parameters must be populated in order to send to server. :ivar enabled: Indicates whether a retention policy is enabled for the storage service. - Required. + Required. :vartype enabled: bool :ivar days: Indicates the number of days that metrics or logging or soft-deleted data should be - retained. All data older than this value will be deleted. + retained. All data older than this value will be deleted. :vartype days: int """ @@ -1348,16 +1348,16 @@ class StorageServiceProperties(_serialization.Model): :ivar logging: Azure Analytics Logging settings. :vartype logging: ~xmlserviceversiontolerant.models.Logging :ivar hour_metrics: A summary of request statistics grouped by API in hourly aggregates for - blobs. + blobs. :vartype hour_metrics: ~xmlserviceversiontolerant.models.Metrics :ivar minute_metrics: a summary of request statistics grouped by API in minute aggregates for - blobs. + blobs. :vartype minute_metrics: ~xmlserviceversiontolerant.models.Metrics :ivar cors: The set of CORS rules. :vartype cors: ~xmlserviceversiontolerant.models.CorsRule :ivar default_service_version: The default version to use for requests to the Blob service if - an incoming request's version is not specified. Possible values include version 2008-10-27 and - all more recent versions. + an incoming request's version is not specified. Possible values include version 2008-10-27 and + all more recent versions. :vartype default_service_version: str :ivar delete_retention_policy: The Delete Retention Policy for the service. :vartype delete_retention_policy: ~xmlserviceversiontolerant.models.RetentionPolicy From ed70134c1668c67114c019eabecf608621b6d576 Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Fri, 17 Oct 2025 02:41:37 +0000 Subject: [PATCH 6/9] Update dependencies --- packages/autorest.python/package.json | 2 +- packages/typespec-python/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/autorest.python/package.json b/packages/autorest.python/package.json index da079ab3f6c..4903f0c0373 100644 --- a/packages/autorest.python/package.json +++ b/packages/autorest.python/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/autorest.python/blob/main/README.md", "dependencies": { - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", "@autorest/system-requirements": "~1.0.2", "fs-extra": "~11.2.0", "tsx": "~4.19.1" diff --git a/packages/typespec-python/package.json b/packages/typespec-python/package.json index 0993806f568..a44467b4ab0 100644 --- a/packages/typespec-python/package.json +++ b/packages/typespec-python/package.json @@ -67,7 +67,7 @@ "js-yaml": "~4.1.0", "semver": "~7.6.2", "tsx": "~4.19.1", - "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", + "@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz", "fs-extra": "~11.2.0" }, "devDependencies": { From 36fcf56de2365a06166a3504eac6a52c2d330b0e Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Fri, 17 Oct 2025 02:42:40 +0000 Subject: [PATCH 7/9] Update dependencies (2025-10-17 02:42:40) --- pnpm-lock.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4a4ab6ffb05..a3a7ff3d911 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,8 +60,8 @@ importers: specifier: ~1.0.2 version: 1.0.2 '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -82,8 +82,8 @@ importers: packages/typespec-python: dependencies: '@typespec/http-client-python': - specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz - version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) + specifier: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz + version: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba) fs-extra: specifier: ~11.2.0 version: 11.2.0 @@ -1681,8 +1681,8 @@ packages: peerDependencies: '@typespec/compiler': ^1.5.0 - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz': - resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz} + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz': + resolution: {tarball: https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz} version: 0.19.1 engines: {node: '>=20.0.0'} peerDependencies: @@ -6466,7 +6466,7 @@ snapshots: dependencies: '@typespec/compiler': 1.5.0(@types/node@24.1.0) - '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NjA4MS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba)': + '@typespec/http-client-python@https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTQ2NzMzNS9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.19.1.tgz(v262dab2qaapor3zxkb4zsb4ba)': dependencies: '@azure-tools/typespec-autorest': 0.61.0(yehncn3lp4xzygpesuojuhtg7i) '@azure-tools/typespec-azure-core': 0.61.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/http@1.5.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/streams@0.75.0(@typespec/compiler@1.5.0(@types/node@24.1.0))))(@typespec/rest@0.75.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/http@1.5.0(@typespec/compiler@1.5.0(@types/node@24.1.0))(@typespec/streams@0.75.0(@typespec/compiler@1.5.0(@types/node@24.1.0))))) From 0cb802cdcc9b0287b5f02022484fbc396605686d Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Fri, 17 Oct 2025 02:47:46 +0000 Subject: [PATCH 8/9] Regenerate for typespec-python (2025-10-17 02:47:46) --- .../commonproperties/models/_models.py | 44 ++++----- .../methodsubscriptionid/models/_models.py | 94 +++++++++---------- .../operationtemplates/models/_models.py | 54 +++++------ .../resources/models/_models.py | 68 +++++++------- .../secondnamespace/models/_models.py | 2 +- .../property/valuetypes/models/_models.py | 2 +- .../typetest/union/models/_models.py | 24 ++--- .../property/valuetypes/models/_models.py | 2 +- .../typetest/union/models/_models.py | 24 ++--- 9 files changed, 157 insertions(+), 157 deletions(-) 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 3d9d13666b5..f03e1f5e033 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 @@ -137,15 +137,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData """ @@ -165,15 +165,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -210,15 +210,15 @@ class ConfidentialResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -226,7 +226,7 @@ class ConfidentialResource(TrackedResource): :vartype location: str :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.commonproperties.models.ConfidentialResourceProperties + ~azure.resourcemanager.commonproperties.models.ConfidentialResourceProperties """ properties: Optional["_models.ConfidentialResourceProperties"] = rest_field( @@ -314,7 +314,7 @@ class ErrorDetail(_Model): :vartype details: list[~azure.resourcemanager.commonproperties.models.ErrorDetail] :ivar additional_info: The error additional info. :vartype additional_info: - list[~azure.resourcemanager.commonproperties.models.ErrorAdditionalInfo] + list[~azure.resourcemanager.commonproperties.models.ErrorAdditionalInfo] """ code: Optional[str] = rest_field(visibility=["read"]) @@ -397,15 +397,15 @@ class ManagedIdentityTrackedResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.commonproperties.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -413,7 +413,7 @@ class ManagedIdentityTrackedResource(TrackedResource): :vartype location: str :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.commonproperties.models.ManagedIdentityTrackedResourceProperties + ~azure.resourcemanager.commonproperties.models.ManagedIdentityTrackedResourceProperties :ivar identity: The managed service identities assigned to this resource. :vartype identity: ~azure.resourcemanager.commonproperties.models.ManagedServiceIdentity """ @@ -463,17 +463,17 @@ class ManagedServiceIdentity(_Model): """Managed service identity (system assigned and/or user assigned identities). :ivar principal_id: The service principal ID of the system assigned identity. This property - will only be provided for a system assigned identity. + will only be provided for a system assigned identity. :vartype principal_id: str :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be - provided for a system assigned identity. + provided for a system assigned identity. :vartype tenant_id: str :ivar type: The type of managed identity assigned to this resource. Required. Known values are: - "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :vartype type: str or ~azure.resourcemanager.commonproperties.models.ManagedServiceIdentityType :ivar user_assigned_identities: The identities assigned to this resource by the user. :vartype user_assigned_identities: dict[str, - ~azure.resourcemanager.commonproperties.models.UserAssignedIdentity] + ~azure.resourcemanager.commonproperties.models.UserAssignedIdentity] """ principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) @@ -517,16 +517,16 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or ~azure.resourcemanager.commonproperties.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or - ~azure.resourcemanager.commonproperties.models.CreatedByType + ~azure.resourcemanager.commonproperties.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ 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 f6ee0166d16..83b3e54563f 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 @@ -45,7 +45,7 @@ class ErrorDetail(_Model): :vartype details: list[~azure.resourcemanager.methodsubscriptionid.models.ErrorDetail] :ivar additional_info: The error additional info. :vartype additional_info: - list[~azure.resourcemanager.methodsubscriptionid.models.ErrorAdditionalInfo] + list[~azure.resourcemanager.methodsubscriptionid.models.ErrorAdditionalInfo] """ code: Optional[str] = rest_field(visibility=["read"]) @@ -94,19 +94,19 @@ class Operation(_Model): """REST API Operation. :ivar name: 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". :vartype name: str :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for - data-plane operations and "false" for Azure Resource Manager/control-plane operations. + data-plane operations and "false" for Azure Resource Manager/control-plane operations. :vartype is_data_action: bool :ivar display: Localized display information for this particular operation. :vartype display: ~azure.resourcemanager.methodsubscriptionid.models.OperationDisplay :ivar origin: 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". + (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system", + and "user,system". :vartype origin: str or ~azure.resourcemanager.methodsubscriptionid.models.Origin :ivar action_type: Extensible enum. Indicates the action type. "Internal" refers to actions - that are for internal only APIs. "Internal" + that are for internal only APIs. "Internal" :vartype action_type: str or ~azure.resourcemanager.methodsubscriptionid.models.ActionType """ @@ -151,16 +151,16 @@ class OperationDisplay(_Model): """Localized display information for and operation. :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft - Monitoring Insights" or "Microsoft Compute". + Monitoring Insights" or "Microsoft Compute". :vartype provider: str :ivar resource: The localized friendly name of the resource type related to this operation. - E.g. "Virtual Machines" or "Job Schedule Collections". + E.g. "Virtual Machines" or "Job Schedule Collections". :vartype resource: str :ivar operation: The concise, localized friendly name for the operation; suitable for - dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". :vartype operation: str :ivar description: The short, localized friendly description of the operation; suitable for - tool tips and detailed views. + tool tips and detailed views. :vartype description: str """ @@ -182,15 +182,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData """ @@ -210,15 +210,15 @@ class ProxyResource(Resource): """Proxy Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData """ @@ -227,15 +227,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -272,15 +272,15 @@ class ResourceGroupResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -288,7 +288,7 @@ class ResourceGroupResource(TrackedResource): :vartype location: str :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.ResourceGroupResourceProperties + ~azure.resourcemanager.methodsubscriptionid.models.ResourceGroupResourceProperties """ properties: Optional["_models.ResourceGroupResourceProperties"] = rest_field( @@ -320,9 +320,9 @@ class ResourceGroupResourceProperties(_Model): """Properties of resource group resource. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar resource_group_setting: The resource group-scoped setting. :vartype resource_group_setting: str """ @@ -360,19 +360,19 @@ class SubscriptionResource(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResourceProperties + ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResourceProperties """ properties: Optional["_models.SubscriptionResourceProperties"] = rest_field( @@ -403,19 +403,19 @@ class SubscriptionResource1(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource1Properties + ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource1Properties """ properties: Optional["_models.SubscriptionResource1Properties"] = rest_field( @@ -445,9 +445,9 @@ class SubscriptionResource1Properties(_Model): """Properties of subscription resource 1. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar description: The description of the resource. :vartype description: str """ @@ -483,19 +483,19 @@ class SubscriptionResource2(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.methodsubscriptionid.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: - ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource2Properties + ~azure.resourcemanager.methodsubscriptionid.models.SubscriptionResource2Properties """ properties: Optional["_models.SubscriptionResource2Properties"] = rest_field( @@ -525,9 +525,9 @@ class SubscriptionResource2Properties(_Model): """Properties of subscription resource 2. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar config_value: The configuration value. :vartype config_value: str """ @@ -564,9 +564,9 @@ class SubscriptionResourceProperties(_Model): """Properties of subscription resource. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", and "Canceled". + "Failed", and "Canceled". :vartype provisioning_state: str or - ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState + ~azure.resourcemanager.methodsubscriptionid.models.ResourceProvisioningState :ivar subscription_setting: The subscription-scoped setting. :vartype subscription_setting: str """ @@ -605,17 +605,17 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or - ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType + ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or - ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType + ~azure.resourcemanager.methodsubscriptionid.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ 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 dc16597da64..5615de0dcce 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 @@ -187,9 +187,9 @@ class CheckNameAvailabilityResponse(_Model): :ivar name_available: Indicates if the resource name is available. :vartype name_available: bool :ivar reason: The reason why the given name is not available. Known values are: "Invalid" and - "AlreadyExists". + "AlreadyExists". :vartype reason: str or - ~azure.resourcemanager.operationtemplates.models.CheckNameAvailabilityReason + ~azure.resourcemanager.operationtemplates.models.CheckNameAvailabilityReason :ivar message: Detailed reason why the given name is not available. :vartype message: str """ @@ -254,7 +254,7 @@ class ErrorDetail(_Model): :vartype details: list[~azure.resourcemanager.operationtemplates.models.ErrorDetail] :ivar additional_info: The error additional info. :vartype additional_info: - list[~azure.resourcemanager.operationtemplates.models.ErrorAdditionalInfo] + list[~azure.resourcemanager.operationtemplates.models.ErrorAdditionalInfo] """ code: Optional[str] = rest_field(visibility=["read"]) @@ -359,19 +359,19 @@ class Operation(_Model): """REST API Operation. :ivar name: 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". :vartype name: str :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for - data-plane operations and "false" for Azure Resource Manager/control-plane operations. + data-plane operations and "false" for Azure Resource Manager/control-plane operations. :vartype is_data_action: bool :ivar display: Localized display information for this particular operation. :vartype display: ~azure.resourcemanager.operationtemplates.models.OperationDisplay :ivar origin: 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". + (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system", + and "user,system". :vartype origin: str or ~azure.resourcemanager.operationtemplates.models.Origin :ivar action_type: Extensible enum. Indicates the action type. "Internal" refers to actions - that are for internal only APIs. "Internal" + that are for internal only APIs. "Internal" :vartype action_type: str or ~azure.resourcemanager.operationtemplates.models.ActionType """ @@ -416,16 +416,16 @@ class OperationDisplay(_Model): """Localized display information for and operation. :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft - Monitoring Insights" or "Microsoft Compute". + Monitoring Insights" or "Microsoft Compute". :vartype provider: str :ivar resource: The localized friendly name of the resource type related to this operation. - E.g. "Virtual Machines" or "Job Schedule Collections". + E.g. "Virtual Machines" or "Job Schedule Collections". :vartype resource: str :ivar operation: The concise, localized friendly name for the operation; suitable for - dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". :vartype operation: str :ivar description: The short, localized friendly description of the operation; suitable for - tool tips and detailed views. + tool tips and detailed views. :vartype description: str """ @@ -447,15 +447,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData """ @@ -475,15 +475,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -520,15 +520,15 @@ class Order(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -606,16 +606,16 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or ~azure.resourcemanager.operationtemplates.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or - ~azure.resourcemanager.operationtemplates.models.CreatedByType + ~azure.resourcemanager.operationtemplates.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ @@ -673,15 +673,15 @@ class Widget(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.operationtemplates.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, 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 46427fd59fb..f70158052ce 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 @@ -93,15 +93,15 @@ class Resource(_Model): """Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData """ @@ -121,15 +121,15 @@ class ExtensionResource(Resource): """The base extension resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData """ @@ -139,15 +139,15 @@ class ExtensionsResource(ExtensionResource): property type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: ~azure.resourcemanager.resources.models.ExtensionsResourceProperties @@ -182,7 +182,7 @@ class ExtensionsResourceProperties(_Model): :ivar description: The description of the resource. :vartype description: str :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState """ @@ -216,15 +216,15 @@ class ProxyResource(Resource): """Proxy Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData """ @@ -234,15 +234,15 @@ class LocationResource(ProxyResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: ~azure.resourcemanager.resources.models.LocationResourceProperties @@ -277,7 +277,7 @@ class LocationResourceProperties(_Model): :ivar description: The description of the resource. :vartype description: str :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState """ @@ -311,15 +311,15 @@ class NestedProxyResource(ProxyResource): """Nested child of Top Level Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar properties: The resource-specific properties for this resource. :vartype properties: ~azure.resourcemanager.resources.models.NestedProxyResourceProperties @@ -352,7 +352,7 @@ class NestedProxyResourceProperties(_Model): """Nested Proxy Resource Properties. :ivar provisioning_state: Provisioning State of the nested child Resource. Known values are: - "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState :ivar description: Nested resource description. :vartype description: str @@ -421,15 +421,15 @@ class TrackedResource(Resource): """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -466,15 +466,15 @@ class SingletonTrackedResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -513,7 +513,7 @@ class SingletonTrackedResourceProperties(_Model): """Singleton Arm Resource Properties. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState :ivar description: The description of the resource. :vartype description: str @@ -551,14 +551,14 @@ class SystemData(_Model): :ivar created_by: The identity that created the resource. :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". + "User", "Application", "ManagedIdentity", and "Key". :vartype created_by_type: str or ~azure.resourcemanager.resources.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". + are: "User", "Application", "ManagedIdentity", and "Key". :vartype last_modified_by_type: str or ~azure.resourcemanager.resources.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime @@ -617,15 +617,15 @@ class TopLevelTrackedResource(TrackedResource): type. :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". + "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. + information. :vartype system_data: ~azure.resourcemanager.resources.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] @@ -664,7 +664,7 @@ class TopLevelTrackedResourceProperties(_Model): """Top Level Arm Resource Properties. :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.resourcemanager.resources.models.ProvisioningState :ivar description: The description of the resource. :vartype description: str 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 0feab07ae3e..6ce923b2df7 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 @@ -19,7 +19,7 @@ class SecondModel(_Model): """SecondModel. :ivar status: Status from second namespace. Required. Known values are: "running" and - "stopped". + "stopped". :vartype status: str or ~client.naming.enumconflict.secondnamespace.models.SecondStatus :ivar description: Description of the item. Required. :vartype description: str 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 29f1399244a..fab3d9a1070 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 @@ -651,7 +651,7 @@ class UnionStringLiteralProperty(_Model): """Model with a union of string literal as property. :ivar property: Property. Required. Is either a Literal["hello"] type or a Literal["world"] - type. + type. :vartype property: str or str """ 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 98872172e2e..bae8d4888d4 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 @@ -75,10 +75,10 @@ class EnumsOnlyCases(_Model): """EnumsOnlyCases. :ivar lr: This should be receive/send the left variant. Required. Is one of the following - types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] + types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] :vartype lr: str or str or str or str :ivar ud: This should be receive/send the up variant. Required. Is either a Literal["up"] type - or a Literal["down"] type. + or a Literal["down"] type. :vartype ud: str or str """ @@ -396,16 +396,16 @@ class MixedLiteralsCases(_Model): """MixedLiteralsCases. :ivar string_literal: This should be receive/send the "a" variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype string_literal: str or int or float or bool :ivar int_literal: This should be receive/send the 2 variant. Required. Is one of the following - types: Literal["a"], Literal[2], float, Literal[True] + types: Literal["a"], Literal[2], float, Literal[True] :vartype int_literal: str or int or float or bool :ivar float_literal: This should be receive/send the 3.3 variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype float_literal: str or int or float or bool :ivar boolean_literal: This should be receive/send the true variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype boolean_literal: str or int or float or bool """ @@ -455,16 +455,16 @@ class MixedTypesCases(_Model): """MixedTypesCases. :ivar model: This should be receive/send the Cat variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype model: ~typetest.union.models.Cat or str or int or bool :ivar literal: This should be receive/send the "a" variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype literal: ~typetest.union.models.Cat or str or int or bool :ivar int_property: This should be receive/send the int variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype int_property: ~typetest.union.models.Cat or str or int or bool :ivar boolean: This should be receive/send the boolean variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype boolean: ~typetest.union.models.Cat or str or int or bool :ivar array: This should be receive/send 4 element with Cat, "a", int, and boolean. Required. :vartype array: list[~typetest.union.models.Cat or str or int or bool] @@ -521,10 +521,10 @@ class StringAndArrayCases(_Model): """StringAndArrayCases. :ivar string: This should be receive/send the string variant. Required. Is either a str type or - a [str] type. + a [str] type. :vartype string: str or list[str] :ivar array: This should be receive/send the array variant. Required. Is either a str type or a - [str] type. + [str] type. :vartype array: str or list[str] """ 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 8dea954687f..fa7afac8b7c 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 @@ -645,7 +645,7 @@ class UnionStringLiteralProperty(_Model): """Model with a union of string literal as property. :ivar property: Property. Required. Is either a Literal["hello"] type or a Literal["world"] - type. + type. :vartype property: str or str """ 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 af9f7e0339a..fc471ed309e 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 @@ -69,10 +69,10 @@ class EnumsOnlyCases(_Model): """EnumsOnlyCases. :ivar lr: This should be receive/send the left variant. Required. Is one of the following - types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] + types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] :vartype lr: str or str or str or str :ivar ud: This should be receive/send the up variant. Required. Is either a Literal["up"] type - or a Literal["down"] type. + or a Literal["down"] type. :vartype ud: str or str """ @@ -390,16 +390,16 @@ class MixedLiteralsCases(_Model): """MixedLiteralsCases. :ivar string_literal: This should be receive/send the "a" variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype string_literal: str or int or float or bool :ivar int_literal: This should be receive/send the 2 variant. Required. Is one of the following - types: Literal["a"], Literal[2], float, Literal[True] + types: Literal["a"], Literal[2], float, Literal[True] :vartype int_literal: str or int or float or bool :ivar float_literal: This should be receive/send the 3.3 variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype float_literal: str or int or float or bool :ivar boolean_literal: This should be receive/send the true variant. Required. Is one of the - following types: Literal["a"], Literal[2], float, Literal[True] + following types: Literal["a"], Literal[2], float, Literal[True] :vartype boolean_literal: str or int or float or bool """ @@ -449,16 +449,16 @@ class MixedTypesCases(_Model): """MixedTypesCases. :ivar model: This should be receive/send the Cat variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype model: ~typetest.union.models.Cat or str or int or bool :ivar literal: This should be receive/send the "a" variant. Required. Is one of the following - types: Cat, Literal["a"], int, bool + types: Cat, Literal["a"], int, bool :vartype literal: ~typetest.union.models.Cat or str or int or bool :ivar int_property: This should be receive/send the int variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype int_property: ~typetest.union.models.Cat or str or int or bool :ivar boolean: This should be receive/send the boolean variant. Required. Is one of the - following types: Cat, Literal["a"], int, bool + following types: Cat, Literal["a"], int, bool :vartype boolean: ~typetest.union.models.Cat or str or int or bool :ivar array: This should be receive/send 4 element with Cat, "a", int, and boolean. Required. :vartype array: list[~typetest.union.models.Cat or str or int or bool] @@ -515,10 +515,10 @@ class StringAndArrayCases(_Model): """StringAndArrayCases. :ivar string: This should be receive/send the string variant. Required. Is either a str type or - a [str] type. + a [str] type. :vartype string: str or list[str] :ivar array: This should be receive/send the array variant. Required. Is either a str type or a - [str] type. + [str] type. :vartype array: str or list[str] """ From 3606f0e2651513d7958e14c0dc4c742f0ecf44cb Mon Sep 17 00:00:00 2001 From: AutoPrFromHttpClientPython Date: Fri, 17 Oct 2025 04:57:20 +0000 Subject: [PATCH 9/9] Regenerate for autorest.python (2025-10-17 04:57:20) --- .../custompollerpager/models/_models_py3.py | 10 ++-- .../Lro/lro/models/_models_py3.py | 8 +-- .../batch/paging/models/_models_py3.py | 10 ++-- .../Paging/paging/models/_models_py3.py | 10 ++-- .../storage/models/_models_py3.py | 52 +++++++++---------- .../models/_models_py3.py | 10 ++-- .../bodycomplex/models/_models_py3.py | 14 ++--- .../models/_models_py3.py | 6 +-- .../bodystring/models/_models_py3.py | 2 +- .../errorwithsecrets/models/_models_py3.py | 14 ++--- .../models/_models_py3.py | 2 +- .../modelflattening/models/_models_py3.py | 16 +++--- .../validation/models/_models_py3.py | 2 +- .../Xml/xmlservice/models/_models_py3.py | 38 +++++++------- .../models/_models.py | 38 +++++++------- 15 files changed, 116 insertions(+), 116 deletions(-) diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py index ee5170446ae..081063e8f4e 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/models/_models_py3.py @@ -99,7 +99,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~custompollerpager.models.OperationResultStatus """ @@ -124,7 +124,7 @@ class PagingGetMultiplePagesLroOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -152,7 +152,7 @@ class PagingGetMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -184,7 +184,7 @@ class PagingGetMultiplePagesWithOffsetOptions(_serialization.Model): :ivar offset: Offset of return value. Required. :vartype offset: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -220,7 +220,7 @@ class PagingGetOdataMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py index d11ea7b6ef2..5d065db6ea3 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Lro/lro/models/_models_py3.py @@ -18,7 +18,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~lro.models.OperationResultStatus :ivar error: :vartype error: ~lro.models.OperationResultError @@ -139,7 +139,7 @@ class Product(Resource): :ivar provisioning_state: :vartype provisioning_state: str :ivar provisioning_state_values: Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype provisioning_state_values: str or ~lro.models.ProductPropertiesProvisioningStateValues """ @@ -246,9 +246,9 @@ class SubProduct(SubResource): :ivar provisioning_state: :vartype provisioning_state: str :ivar provisioning_state_values: Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype provisioning_state_values: str or - ~lro.models.SubProductPropertiesProvisioningStateValues + ~lro.models.SubProductPropertiesProvisioningStateValues """ _validation = { diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py index 237f21d14a6..d4ce395da09 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/PackageModeBatch/azure/packagemode/batch/paging/models/_models_py3.py @@ -99,7 +99,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~azure.packagemode.batch.paging.models.OperationResultStatus """ @@ -124,7 +124,7 @@ class PagingGetMultiplePagesLroOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -152,7 +152,7 @@ class PagingGetMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -184,7 +184,7 @@ class PagingGetMultiplePagesWithOffsetOptions(_serialization.Model): :ivar offset: Offset of return value. Required. :vartype offset: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -220,7 +220,7 @@ class PagingGetOdataMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py index bcd2b09f8a9..bdc01bfd9c4 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/Paging/paging/models/_models_py3.py @@ -99,7 +99,7 @@ class OperationResult(_serialization.Model): """OperationResult. :ivar status: The status of the request. Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype status: str or ~paging.models.OperationResultStatus """ @@ -124,7 +124,7 @@ class PagingGetMultiplePagesLroOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -152,7 +152,7 @@ class PagingGetMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -184,7 +184,7 @@ class PagingGetMultiplePagesWithOffsetOptions(_serialization.Model): :ivar offset: Offset of return value. Required. :vartype offset: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ @@ -220,7 +220,7 @@ class PagingGetOdataMultiplePagesOptions(_serialization.Model): :ivar maxresults: Sets the maximum number of items to return in the response. :vartype maxresults: int :ivar timeout: Sets the maximum time that the server can spend processing the request, in - seconds. The default is 30 seconds. + seconds. The default is 30 seconds. :vartype timeout: int """ diff --git a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py index 2090df93534..c28f347711c 100644 --- a/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py +++ b/packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/StorageManagementClient/storage/models/_models_py3.py @@ -39,12 +39,12 @@ class CheckNameAvailabilityResult(_serialization.Model): """The CheckNameAvailability operation response. :ivar name_available: Gets a boolean value that indicates whether the name is available for you - to use. If true, the name is available. If false, the name has already been taken or invalid - and cannot be used. + to use. If true, the name is available. If false, the name has already been taken or invalid + and cannot be used. :vartype name_available: bool :ivar reason: Gets the reason that a storage account name could not be used. The Reason element - is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and - "AlreadyExists". + is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and + "AlreadyExists". :vartype reason: str or ~storage.models.Reason :ivar message: Gets an error message explaining the Reason value in more detail. :vartype message: str @@ -88,7 +88,7 @@ class CustomDomain(_serialization.Model): :ivar name: Gets or sets the custom domain name. Name is the CNAME source. :vartype name: str :ivar use_sub_domain: Indicates whether indirect CName validation is enabled. Default value is - false. This should only be set on updates. + false. This should only be set on updates. :vartype use_sub_domain: bool """ @@ -250,39 +250,39 @@ class StorageAccount(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar provisioning_state: Gets the status of the storage account at the time the operation was - called. Known values are: "Creating", "ResolvingDNS", and "Succeeded". + called. Known values are: "Creating", "ResolvingDNS", and "Succeeded". :vartype provisioning_state: str or ~storage.models.ProvisioningState :ivar account_type: Gets the type of the storage account. Known values are: "Standard_LRS", - "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". :vartype account_type: str or ~storage.models.AccountType :ivar primary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob - endpoint. + queue or table object.Note that StandardZRS and PremiumLRS accounts only return the blob + endpoint. :vartype primary_endpoints: ~storage.models.Endpoints :ivar primary_location: Gets the location of the primary for the storage account. :vartype primary_location: str :ivar status_of_primary: Gets the status indicating whether the primary location of the storage - account is available or unavailable. Known values are: "Available" and "Unavailable". + account is available or unavailable. Known values are: "Available" and "Unavailable". :vartype status_of_primary: str or ~storage.models.AccountStatus :ivar last_geo_failover_time: Gets the timestamp of the most recent instance of a failover to - the secondary location. Only the most recent timestamp is retained. This element is not - returned if there has never been a failover instance. Only available if the accountType is - StandardGRS or StandardRAGRS. + the secondary location. Only the most recent timestamp is retained. This element is not + returned if there has never been a failover instance. Only available if the accountType is + StandardGRS or StandardRAGRS. :vartype last_geo_failover_time: ~datetime.datetime :ivar secondary_location: Gets the location of the geo replicated secondary for the storage - account. Only available if the accountType is StandardGRS or StandardRAGRS. + account. Only available if the accountType is StandardGRS or StandardRAGRS. :vartype secondary_location: str :ivar status_of_secondary: Gets the status indicating whether the secondary location of the - storage account is available or unavailable. Only available if the accountType is StandardGRS - or StandardRAGRS. Known values are: "Available" and "Unavailable". + storage account is available or unavailable. Only available if the accountType is StandardGRS + or StandardRAGRS. Known values are: "Available" and "Unavailable". :vartype status_of_secondary: str or ~storage.models.AccountStatus :ivar creation_time: Gets the creation date and time of the storage account in UTC. :vartype creation_time: ~datetime.datetime :ivar custom_domain: Gets the user assigned custom domain assigned to this storage account. :vartype custom_domain: ~storage.models.CustomDomain :ivar secondary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob, - queue or table object from the secondary location of the storage account. Only available if the - accountType is StandardRAGRS. + queue or table object from the secondary location of the storage account. Only available if the + accountType is StandardRAGRS. :vartype secondary_endpoints: ~storage.models.Endpoints """ @@ -435,7 +435,7 @@ class StorageAccountCreateParameters(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar account_type: Gets or sets the account type. Known values are: "Standard_LRS", - "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". + "Standard_ZRS", "Standard_GRS", "Standard_RAGRS", and "Premium_LRS". :vartype account_type: str or ~storage.models.AccountType """ @@ -508,7 +508,7 @@ class StorageAccountListResult(_serialization.Model): :ivar value: Gets the list of storage accounts and their properties. :vartype value: list[~storage.models.StorageAccount] :ivar next_link: Gets the link to the next set of results. Currently this will always be empty - as the API does not support pagination. + as the API does not support pagination. :vartype next_link: str """ @@ -570,13 +570,13 @@ class StorageAccountUpdateParameters(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar account_type: Gets or sets the account type. Note that StandardZRS and PremiumLRS - accounts cannot be changed to other account types, and other account types cannot be changed to - StandardZRS or PremiumLRS. Known values are: "Standard_LRS", "Standard_ZRS", "Standard_GRS", - "Standard_RAGRS", and "Premium_LRS". + accounts cannot be changed to other account types, and other account types cannot be changed to + StandardZRS or PremiumLRS. Known values are: "Standard_LRS", "Standard_ZRS", "Standard_GRS", + "Standard_RAGRS", and "Premium_LRS". :vartype account_type: str or ~storage.models.AccountType :ivar custom_domain: User domain assigned to the storage account. Name is the CNAME source. - Only one custom domain is supported per storage account at this time. To clear the existing - custom domain, use an empty string for the custom domain name property. + Only one custom domain is supported per storage account at this time. To clear the existing + custom domain, use an empty string for the custom domain name property. :vartype custom_domain: ~storage.models.CustomDomain """ @@ -650,7 +650,7 @@ class Usage(_serialization.Model): """Describes Storage Resource Usage. :ivar unit: Gets the unit of measurement. Known values are: "Count", "Bytes", "Seconds", - "Percent", "CountsPerSecond", and "BytesPerSecond". + "Percent", "CountsPerSecond", and "BytesPerSecond". :vartype unit: str or ~storage.models.UsageUnit :ivar current_value: Gets the current count of the allocated resources in the subscription. :vartype current_value: int diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py index f491a5ce22b..439901ce4c8 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/models/_models_py3.py @@ -19,7 +19,7 @@ class PetAPTrue(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar id: Required. :vartype id: int @@ -73,7 +73,7 @@ class CatAPTrue(PetAPTrue): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar id: Required. :vartype id: int @@ -208,7 +208,7 @@ class PetAPInPropertiesWithAPString(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, str] :ivar id: Required. :vartype id: int @@ -277,7 +277,7 @@ class PetAPObject(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar id: Required. :vartype id: int @@ -331,7 +331,7 @@ class PetAPString(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, str] :ivar id: Required. :vartype id: int 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 dc85e704281..b0a3a1dc9d9 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 @@ -42,7 +42,7 @@ class Basic(msrest.serialization.Model): :ivar id: Basic Id. :vartype id: int :ivar name: Name property with a very long description that does not fit on a single line and a - line break. + line break. :vartype name: str :ivar color: Known values are: "cyan", "Magenta", "YELLOW", and "blacK". :vartype color: str or ~bodycomplex.models.CMYKColors @@ -659,10 +659,10 @@ class DoubleWrapper(msrest.serialization.Model): :ivar field1: :vartype field1: float :ivar - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: :vartype - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float """ _attribute_map = { @@ -688,8 +688,8 @@ def __init__( :keyword field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: :paramtype - field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float + field56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float """ super().__init__(**kwargs) self.field1 = field1 @@ -1214,7 +1214,7 @@ class SmartSalmon(Salmon): :ivar iswild: :vartype iswild: bool :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar college_degree: :vartype college_degree: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py index 43cc43a9e74..d5cc95580b2 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyFormUrlEncodedData/bodyformurlencodeddata/models/_models_py3.py @@ -22,10 +22,10 @@ class Paths14Hl8BdFormsdataurlencodedPetAddPetidPostRequestbodyContentApplicatio All required parameters must be populated in order to send to server. :ivar pet_type: Can take a value of dog, or cat, or fish. Required. Known values are: "dog", - "cat", and "fish". + "cat", and "fish". :vartype pet_type: str or ~bodyformurlencodeddata.models.PetType :ivar pet_food: Can take a value of meat, or fish, or plant. Required. Known values are: - "meat", "fish", and "plant". + "meat", "fish", and "plant". :vartype pet_food: str or ~bodyformurlencodeddata.models.PetFood :ivar pet_age: How many years is it old?. Required. :vartype pet_age: int @@ -95,7 +95,7 @@ class PathsPvivzlFormsdataurlencodedPartialconstantbodyPostRequestbodyContentApp :ivar service: Indicates the name of your Azure container registry. Required. :vartype service: str :ivar aad_access_token: AAD access token, mandatory when grant_type is - access_token_refresh_token or access_token. Required. + access_token_refresh_token or access_token. Required. :vartype aad_access_token: str """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py index 1e750a1f927..0512de43feb 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/BodyString/bodystring/models/_models_py3.py @@ -45,7 +45,7 @@ class RefColorConstant(_serialization.Model): All required parameters must be populated in order to send to server. :ivar color_constant: Referenced Color Constant Description. Required. Default value is - "green-color". + "green-color". :vartype color_constant: str :ivar field1: Sample string. :vartype field1: 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 a3bee97dd5a..ab6953a0e01 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 @@ -20,10 +20,10 @@ class Error(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar code: One of a server-defined set of error codes. Required. Known values are: - "BadParameter" and "Unauthorized". + "BadParameter" and "Unauthorized". :vartype code: str or ~errorwithsecrets.models.ErrorCode :ivar message: A human-readable representation of the error. Required. :vartype message: str @@ -32,7 +32,7 @@ class Error(_serialization.Model): :ivar details: An array of details about specific errors that led to this reported error. :vartype details: list[~errorwithsecrets.models.Error] :ivar innererror: An object containing more specific information than the current object about - the error. + the error. :vartype innererror: ~errorwithsecrets.models.InnerError """ @@ -93,7 +93,7 @@ class ErrorResponse(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar error: The error object. Required. :vartype error: ~errorwithsecrets.models.Error @@ -131,15 +131,15 @@ class InnerError(_serialization.Model): All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this - collection. + collection. :vartype additional_properties: dict[str, any] :ivar code: One of a server-defined set of error codes. Required. Known values are: - "MissingSharedKey" and "UnauthorizedSharedKey". + "MissingSharedKey" and "UnauthorizedSharedKey". :vartype code: str or ~errorwithsecrets.models.InnerErrorCode :ivar message: Error message. Required. :vartype message: str :ivar innererror: An object containing more specific information than the current object about - the error. + the error. :vartype innererror: ~errorwithsecrets.models.InnerError """ diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py index 83626951d3f..157fe9af036 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/models/_models_py3.py @@ -22,7 +22,7 @@ class Pet(_serialization.Model): :ivar name: name. :vartype name: str :ivar days_of_week: Type of Pet. Known values are: "Monday", "Tuesday", "Wednesday", - "Thursday", "Friday", "Saturday", and "Sunday". + "Thursday", "Friday", "Saturday", and "Sunday". :vartype days_of_week: str or ~extensibleenumsswagger.models.DaysOfWeekExtensibleEnum :ivar int_enum: Required. Known values are: "1", "2", and "3". :vartype int_enum: str or ~extensibleenumsswagger.models.IntEnum diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py index 7adc0d1036f..1fa25827377 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/models/_models_py3.py @@ -20,8 +20,8 @@ class BaseProduct(_serialization.Model): All required parameters must be populated in order to send to server. :ivar 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 - Los Angeles. Required. + longitude. For example, uberX in San Francisco will have a different product_id than uberX in + Los Angeles. Required. :vartype product_id: str :ivar description: Description of product. :vartype description: str @@ -155,9 +155,9 @@ class FlattenedProduct(Resource): :ivar type_properties_type: :vartype type_properties_type: str :ivar provisioning_state_values: Known values are: "Succeeded", "Failed", "canceled", - "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". + "Accepted", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", and "OK". :vartype provisioning_state_values: str or - ~modelflattening.models.FlattenedProductPropertiesProvisioningStateValues + ~modelflattening.models.FlattenedProductPropertiesProvisioningStateValues :ivar provisioning_state: :vartype provisioning_state: str """ @@ -222,8 +222,8 @@ class FlattenParameterGroup(_serialization.Model): :ivar simple_body_product: Simple body product to put. :vartype simple_body_product: ~modelflattening.models.SimpleProduct :ivar 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 - Los Angeles. Required. + longitude. For example, uberX in San Francisco will have a different product_id than uberX in + Los Angeles. Required. :vartype product_id: str :ivar description: Description of product. :vartype description: str @@ -409,8 +409,8 @@ class SimpleProduct(BaseProduct): All required parameters must be populated in order to send to server. :ivar 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 - Los Angeles. Required. + longitude. For example, uberX in San Francisco will have a different product_id than uberX in + Los Angeles. Required. :vartype product_id: str :ivar description: Description of product. :vartype description: str diff --git a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py index 578d399d2a9..20b960b7206 100644 --- a/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py +++ b/packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/models/_models_py3.py @@ -134,7 +134,7 @@ class Product(msrest.serialization.Model): :ivar const_string: Constant string. Required. Default value is "constant". :vartype const_string: str :ivar const_string_as_enum: Constant string as Enum. Default value is - "constant_string_as_enum". + "constant_string_as_enum". :vartype const_string_as_enum: str """ 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 946d48c46c5..68fd54b1dad 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 @@ -243,7 +243,7 @@ class BlobProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlservice.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlservice.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlservice.models.LeaseDurationType @@ -270,12 +270,12 @@ class BlobProperties(_serialization.Model): :ivar remaining_retention_days: :vartype remaining_retention_days: int :ivar access_tier: Known values are: "P4", "P6", "P10", "P20", "P30", "P40", "P50", "Hot", - "Cool", and "Archive". + "Cool", and "Archive". :vartype access_tier: str or ~xmlservice.models.AccessTier :ivar access_tier_inferred: :vartype access_tier_inferred: bool :ivar archive_status: Known values are: "rehydrate-pending-to-hot" and - "rehydrate-pending-to-cool". + "rehydrate-pending-to-cool". :vartype archive_status: str or ~xmlservice.models.ArchiveStatus """ @@ -571,7 +571,7 @@ class ContainerProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlservice.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlservice.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlservice.models.LeaseDurationType @@ -637,22 +637,22 @@ class CorsRule(_serialization.Model): All required parameters must be populated in order to send to server. :ivar allowed_origins: The origin domains that are permitted to make a request against the - storage service via CORS. The origin domain is the domain from which the request originates. - Note that the origin must be an exact case-sensitive match with the origin that the user age - sends to the service. You can also use the wildcard character '*' to allow all origin domains - to make requests via CORS. Required. + storage service via CORS. The origin domain is the domain from which the request originates. + Note that the origin must be an exact case-sensitive match with the origin that the user age + sends to the service. You can also use the wildcard character '*' to allow all origin domains + to make requests via CORS. Required. :vartype allowed_origins: str :ivar allowed_methods: The methods (HTTP request verbs) that the origin domain may use for a - CORS request. (comma separated). Required. + CORS request. (comma separated). Required. :vartype allowed_methods: str :ivar allowed_headers: the request headers that the origin domain may specify on the CORS - request. Required. + request. Required. :vartype allowed_headers: str :ivar exposed_headers: The response headers that may be sent in the response to the CORS - request and exposed by the browser to the request issuer. Required. + request and exposed by the browser to the request issuer. Required. :vartype exposed_headers: str :ivar max_age_in_seconds: The maximum amount time that a browser should cache the preflight - OPTIONS request. Required. + OPTIONS request. Required. :vartype max_age_in_seconds: int """ @@ -1007,7 +1007,7 @@ class Metrics(_serialization.Model): :ivar enabled: Indicates whether metrics are enabled for the Blob service. Required. :vartype enabled: bool :ivar include_apis: Indicates whether metrics should generate summary statistics for called API - operations. + operations. :vartype include_apis: bool :ivar retention_policy: the retention policy. :vartype retention_policy: ~xmlservice.models.RetentionPolicy @@ -1124,10 +1124,10 @@ class RetentionPolicy(_serialization.Model): All required parameters must be populated in order to send to server. :ivar enabled: Indicates whether a retention policy is enabled for the storage service. - Required. + Required. :vartype enabled: bool :ivar days: Indicates the number of days that metrics or logging or soft-deleted data should be - retained. All data older than this value will be deleted. + retained. All data older than this value will be deleted. :vartype days: int """ @@ -1348,16 +1348,16 @@ class StorageServiceProperties(_serialization.Model): :ivar logging: Azure Analytics Logging settings. :vartype logging: ~xmlservice.models.Logging :ivar hour_metrics: A summary of request statistics grouped by API in hourly aggregates for - blobs. + blobs. :vartype hour_metrics: ~xmlservice.models.Metrics :ivar minute_metrics: a summary of request statistics grouped by API in minute aggregates for - blobs. + blobs. :vartype minute_metrics: ~xmlservice.models.Metrics :ivar cors: The set of CORS rules. :vartype cors: list[~xmlservice.models.CorsRule] :ivar default_service_version: The default version to use for requests to the Blob service if - an incoming request's version is not specified. Possible values include version 2008-10-27 and - all more recent versions. + an incoming request's version is not specified. Possible values include version 2008-10-27 and + all more recent versions. :vartype default_service_version: str :ivar delete_retention_policy: The Delete Retention Policy for the service. :vartype delete_retention_policy: ~xmlservice.models.RetentionPolicy 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 c61d2b46fa3..74faed8fcc6 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 @@ -243,7 +243,7 @@ class BlobProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlserviceversiontolerant.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlserviceversiontolerant.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlserviceversiontolerant.models.LeaseDurationType @@ -270,12 +270,12 @@ class BlobProperties(_serialization.Model): :ivar remaining_retention_days: :vartype remaining_retention_days: int :ivar access_tier: Known values are: "P4", "P6", "P10", "P20", "P30", "P40", "P50", "Hot", - "Cool", and "Archive". + "Cool", and "Archive". :vartype access_tier: str or ~xmlserviceversiontolerant.models.AccessTier :ivar access_tier_inferred: :vartype access_tier_inferred: bool :ivar archive_status: Known values are: "rehydrate-pending-to-hot" and - "rehydrate-pending-to-cool". + "rehydrate-pending-to-cool". :vartype archive_status: str or ~xmlserviceversiontolerant.models.ArchiveStatus """ @@ -571,7 +571,7 @@ class ContainerProperties(_serialization.Model): :ivar lease_status: Known values are: "locked" and "unlocked". :vartype lease_status: str or ~xmlserviceversiontolerant.models.LeaseStatusType :ivar lease_state: Known values are: "available", "leased", "expired", "breaking", and - "broken". + "broken". :vartype lease_state: str or ~xmlserviceversiontolerant.models.LeaseStateType :ivar lease_duration: Known values are: "infinite" and "fixed". :vartype lease_duration: str or ~xmlserviceversiontolerant.models.LeaseDurationType @@ -637,22 +637,22 @@ class CorsRule(_serialization.Model): All required parameters must be populated in order to send to server. :ivar allowed_origins: The origin domains that are permitted to make a request against the - storage service via CORS. The origin domain is the domain from which the request originates. - Note that the origin must be an exact case-sensitive match with the origin that the user age - sends to the service. You can also use the wildcard character '*' to allow all origin domains - to make requests via CORS. Required. + storage service via CORS. The origin domain is the domain from which the request originates. + Note that the origin must be an exact case-sensitive match with the origin that the user age + sends to the service. You can also use the wildcard character '*' to allow all origin domains + to make requests via CORS. Required. :vartype allowed_origins: str :ivar allowed_methods: The methods (HTTP request verbs) that the origin domain may use for a - CORS request. (comma separated). Required. + CORS request. (comma separated). Required. :vartype allowed_methods: str :ivar allowed_headers: the request headers that the origin domain may specify on the CORS - request. Required. + request. Required. :vartype allowed_headers: str :ivar exposed_headers: The response headers that may be sent in the response to the CORS - request and exposed by the browser to the request issuer. Required. + request and exposed by the browser to the request issuer. Required. :vartype exposed_headers: str :ivar max_age_in_seconds: The maximum amount time that a browser should cache the preflight - OPTIONS request. Required. + OPTIONS request. Required. :vartype max_age_in_seconds: int """ @@ -1007,7 +1007,7 @@ class Metrics(_serialization.Model): :ivar enabled: Indicates whether metrics are enabled for the Blob service. Required. :vartype enabled: bool :ivar include_apis: Indicates whether metrics should generate summary statistics for called API - operations. + operations. :vartype include_apis: bool :ivar retention_policy: the retention policy. :vartype retention_policy: ~xmlserviceversiontolerant.models.RetentionPolicy @@ -1124,10 +1124,10 @@ class RetentionPolicy(_serialization.Model): All required parameters must be populated in order to send to server. :ivar enabled: Indicates whether a retention policy is enabled for the storage service. - Required. + Required. :vartype enabled: bool :ivar days: Indicates the number of days that metrics or logging or soft-deleted data should be - retained. All data older than this value will be deleted. + retained. All data older than this value will be deleted. :vartype days: int """ @@ -1348,16 +1348,16 @@ class StorageServiceProperties(_serialization.Model): :ivar logging: Azure Analytics Logging settings. :vartype logging: ~xmlserviceversiontolerant.models.Logging :ivar hour_metrics: A summary of request statistics grouped by API in hourly aggregates for - blobs. + blobs. :vartype hour_metrics: ~xmlserviceversiontolerant.models.Metrics :ivar minute_metrics: a summary of request statistics grouped by API in minute aggregates for - blobs. + blobs. :vartype minute_metrics: ~xmlserviceversiontolerant.models.Metrics :ivar cors: The set of CORS rules. :vartype cors: ~xmlserviceversiontolerant.models.CorsRule :ivar default_service_version: The default version to use for requests to the Blob service if - an incoming request's version is not specified. Possible values include version 2008-10-27 and - all more recent versions. + an incoming request's version is not specified. Possible values include version 2008-10-27 and + all more recent versions. :vartype default_service_version: str :ivar delete_retention_policy: The Delete Retention Policy for the service. :vartype delete_retention_policy: ~xmlserviceversiontolerant.models.RetentionPolicy