Skip to content

Commit 80b47f1

Browse files
author
SDKAuto
committed
CodeGen from PR 30401 in Azure/azure-rest-api-specs
Merge 34f160bdcf442d3c59f3593a7de658d02a178350 into b478dcdabacb37945ff89daa0eda1ae1afc98db4
1 parent f0c6e8b commit 80b47f1

File tree

144 files changed

+3450
-831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+3450
-831
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "061505b89d5d0bbcc9f980e2276f79ff354ce286",
2+
"commit": "9b1303a1571cde5342cbccf3d91851f5ad4aea2f",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.19",
6+
"@autorest/python@6.19.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/scvmm/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.19 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/scvmm/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/scvmm/resource-manager/readme.md"
1111
}

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class ScVmmMgmtClientConfiguration: # pylint: disable=too-many-instance-attribu
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-10-07". Note that overriding this
31+
:keyword api_version: Api Version. Default value is "2024-06-01". Note that overriding this
3232
default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-10-07")
37+
api_version: str = kwargs.pop("api_version", "2024-06-01")
3838

3939
if credential is None:
4040
raise ValueError("Parameter 'credential' must not be None.")

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/_sc_vmm_mgmt_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -68,7 +69,7 @@ class ScVmmMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too
6869
:type subscription_id: str
6970
:param base_url: Service URL. Default value is "https://management.azure.com".
7071
:type base_url: str
71-
:keyword api_version: Api Version. Default value is "2023-10-07". Note that overriding this
72+
:keyword api_version: Api Version. Default value is "2024-06-01". Note that overriding this
7273
default value may result in unsupported behavior.
7374
:paramtype api_version: str
7475
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -153,7 +154,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
153154
def close(self) -> None:
154155
self._client.close()
155156

156-
def __enter__(self) -> "ScVmmMgmtClient":
157+
def __enter__(self) -> Self:
157158
self._client.__enter__()
158159
return self
159160

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/_serialization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def _json_attemp(data):
144144
# context otherwise.
145145
_LOGGER.critical("Wasn't XML not JSON, failing")
146146
raise DeserializationError("XML is invalid") from err
147+
elif content_type.startswith("text/"):
148+
return data_as_str
147149
raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
148150

149151
@classmethod

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/_vendor.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "1.0.0b1"

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class ScVmmMgmtClientConfiguration: # pylint: disable=too-many-instance-attribu
2828
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
2929
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-10-07". Note that overriding this
31+
:keyword api_version: Api Version. Default value is "2024-06-01". Note that overriding this
3232
default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-10-07")
37+
api_version: str = kwargs.pop("api_version", "2024-06-01")
3838

3939
if credential is None:
4040
raise ValueError("Parameter 'credential' must not be None.")

sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/aio/_sc_vmm_mgmt_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, Awaitable, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import AsyncHttpResponse, HttpRequest
@@ -68,7 +69,7 @@ class ScVmmMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too
6869
:type subscription_id: str
6970
:param base_url: Service URL. Default value is "https://management.azure.com".
7071
:type base_url: str
71-
:keyword api_version: Api Version. Default value is "2023-10-07". Note that overriding this
72+
:keyword api_version: Api Version. Default value is "2024-06-01". Note that overriding this
7273
default value may result in unsupported behavior.
7374
:paramtype api_version: str
7475
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -155,7 +156,7 @@ def _send_request(
155156
async def close(self) -> None:
156157
await self._client.close()
157158

158-
async def __aenter__(self) -> "ScVmmMgmtClient":
159+
async def __aenter__(self) -> Self:
159160
await self._client.__aenter__()
160161
return self
161162

0 commit comments

Comments
 (0)