Skip to content

Commit 9c48a68

Browse files
author
SDKAuto
committed
CodeGen from PR 23113 in Azure/azure-rest-api-specs
Merge 87aebf6459694260e584c985dc437490b33bbc20 into ee157d6bbf6e4c4fdc8a47b380e00ddd56a0e852
1 parent 63427b1 commit 9c48a68

File tree

1,404 files changed

+14874
-8908
lines changed

Some content is hidden

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

1,404 files changed

+14874
-8908
lines changed
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "51d4c24a011e300b9713179e0515fef35bf3f678",
2+
"commit": "b42155d20e96de3c03f665eb2030b3d97c4dbf7f",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].0",
6+
"@autorest/[email protected].3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/compute/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/[email protected].0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/compute/resource-manager/readme.md"
1111
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "29.2.0b1"
8+
VERSION = "0.1.0"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_management_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(
8484
self._config = ComputeManagementClientConfiguration(
8585
credential=credential, subscription_id=subscription_id, **kwargs
8686
)
87-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
87+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8888

8989
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
9090
self._serialize = Serializer(client_models)
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
3-
#
4-
# Copyright (c) Microsoft Corporation. All rights reserved.
5-
#
6-
# The MIT License (MIT)
7-
#
8-
# Permission is hereby granted, free of charge, to any person obtaining a copy
9-
# of this software and associated documentation files (the ""Software""), to
10-
# deal in the Software without restriction, including without limitation the
11-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12-
# sell copies of the Software, and to permit persons to whom the Software is
13-
# furnished to do so, subject to the following conditions:
14-
#
15-
# The above copyright notice and this permission notice shall be included in
16-
# all copies or substantial portions of the Software.
17-
#
18-
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24-
# IN THE SOFTWARE.
25-
#
26-
# --------------------------------------------------------------------------
1+
# ------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# ------------------------------------
5+
"""Customize generated code here.
6+
7+
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
8+
"""
9+
from typing import List
10+
11+
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
12+
2713

28-
# This file is used for handwritten extensions to the generated code. Example:
29-
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3014
def patch_sdk():
31-
pass
15+
"""Do not remove from this file.
16+
17+
`patch_sdk` is a last resort escape hatch that allows you to do customizations
18+
you can't accomplish using the techniques described in
19+
https://aka.ms/azsdk/python/dpcodegen/python/customize
20+
"""

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py

+1-1
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 = "29.2.0b1"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_management_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(
8585
self._config = ComputeManagementClientConfiguration(
8686
credential=credential, subscription_id=subscription_id, **kwargs
8787
)
88-
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
88+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8989

9090
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
9191
self._serialize = Serializer(client_models)
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
1-
# coding=utf-8
2-
# --------------------------------------------------------------------------
3-
#
4-
# Copyright (c) Microsoft Corporation. All rights reserved.
5-
#
6-
# The MIT License (MIT)
7-
#
8-
# Permission is hereby granted, free of charge, to any person obtaining a copy
9-
# of this software and associated documentation files (the ""Software""), to
10-
# deal in the Software without restriction, including without limitation the
11-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12-
# sell copies of the Software, and to permit persons to whom the Software is
13-
# furnished to do so, subject to the following conditions:
14-
#
15-
# The above copyright notice and this permission notice shall be included in
16-
# all copies or substantial portions of the Software.
17-
#
18-
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24-
# IN THE SOFTWARE.
25-
#
26-
# --------------------------------------------------------------------------
1+
# ------------------------------------
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
# ------------------------------------
5+
"""Customize generated code here.
6+
7+
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
8+
"""
9+
from typing import List
10+
11+
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
12+
2713

28-
# This file is used for handwritten extensions to the generated code. Example:
29-
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3014
def patch_sdk():
31-
pass
15+
"""Do not remove from this file.
16+
17+
`patch_sdk` is a last resort escape hatch that allows you to do customizations
18+
you can't accomplish using the techniques described in
19+
https://aka.ms/azsdk/python/dpcodegen/python/customize
20+
"""

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_availability_sets_operations.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ async def create_or_update(
177177
request = _convert_request(request)
178178
request.url = self._client.format_url(request.url)
179179

180+
_stream = False
180181
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
181-
request, stream=False, **kwargs
182+
request, stream=_stream, **kwargs
182183
)
183184

184185
response = pipeline_response.http_response
@@ -239,8 +240,9 @@ async def delete(
239240
request = _convert_request(request)
240241
request.url = self._client.format_url(request.url)
241242

243+
_stream = False
242244
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
243-
request, stream=False, **kwargs
245+
request, stream=_stream, **kwargs
244246
)
245247

246248
response = pipeline_response.http_response
@@ -301,8 +303,9 @@ async def get(self, resource_group_name: str, availability_set_name: str, **kwar
301303
request = _convert_request(request)
302304
request.url = self._client.format_url(request.url)
303305

306+
_stream = False
304307
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
305-
request, stream=False, **kwargs
308+
request, stream=_stream, **kwargs
306309
)
307310

308311
response = pipeline_response.http_response
@@ -390,8 +393,9 @@ async def extract_data(pipeline_response):
390393
async def get_next(next_link=None):
391394
request = prepare_request(next_link)
392395

396+
_stream = False
393397
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
394-
request, stream=False, **kwargs
398+
request, stream=_stream, **kwargs
395399
)
396400
response = pipeline_response.http_response
397401

@@ -481,8 +485,9 @@ async def extract_data(pipeline_response):
481485
async def get_next(next_link=None):
482486
request = prepare_request(next_link)
483487

488+
_stream = False
484489
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
485-
request, stream=False, **kwargs
490+
request, stream=_stream, **kwargs
486491
)
487492
response = pipeline_response.http_response
488493

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_usage_operations.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ async def extract_data(pipeline_response):
125125
async def get_next(next_link=None):
126126
request = prepare_request(next_link)
127127

128+
_stream = False
128129
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
129-
request, stream=False, **kwargs
130+
request, stream=_stream, **kwargs
130131
)
131132
response = pipeline_response.http_response
132133

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extension_images_operations.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ async def get(
106106
request = _convert_request(request)
107107
request.url = self._client.format_url(request.url)
108108

109+
_stream = False
109110
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
110-
request, stream=False, **kwargs
111+
request, stream=_stream, **kwargs
111112
)
112113

113114
response = pipeline_response.http_response
@@ -168,8 +169,9 @@ async def list_types(
168169
request = _convert_request(request)
169170
request.url = self._client.format_url(request.url)
170171

172+
_stream = False
171173
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
172-
request, stream=False, **kwargs
174+
request, stream=_stream, **kwargs
173175
)
174176

175177
response = pipeline_response.http_response
@@ -249,8 +251,9 @@ async def list_versions(
249251
request = _convert_request(request)
250252
request.url = self._client.format_url(request.url)
251253

254+
_stream = False
252255
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
253-
request, stream=False, **kwargs
256+
request, stream=_stream, **kwargs
254257
)
255258

256259
response = pipeline_response.http_response

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extensions_operations.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ async def _create_or_update_initial(
109109
request = _convert_request(request)
110110
request.url = self._client.format_url(request.url)
111111

112+
_stream = False
112113
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
113-
request, stream=False, **kwargs
114+
request, stream=_stream, **kwargs
114115
)
115116

116117
response = pipeline_response.http_response
@@ -351,8 +352,9 @@ async def _update_initial(
351352
request = _convert_request(request)
352353
request.url = self._client.format_url(request.url)
353354

355+
_stream = False
354356
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
355-
request, stream=False, **kwargs
357+
request, stream=_stream, **kwargs
356358
)
357359

358360
response = pipeline_response.http_response
@@ -573,8 +575,9 @@ async def _delete_initial(
573575
request = _convert_request(request)
574576
request.url = self._client.format_url(request.url)
575577

578+
_stream = False
576579
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
577-
request, stream=False, **kwargs
580+
request, stream=_stream, **kwargs
578581
)
579582

580583
response = pipeline_response.http_response
@@ -721,8 +724,9 @@ async def get(
721724
request = _convert_request(request)
722725
request.url = self._client.format_url(request.url)
723726

727+
_stream = False
724728
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
725-
request, stream=False, **kwargs
729+
request, stream=_stream, **kwargs
726730
)
727731

728732
response = pipeline_response.http_response

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_images_operations.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ async def get(
111111
request = _convert_request(request)
112112
request.url = self._client.format_url(request.url)
113113

114+
_stream = False
114115
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
115-
request, stream=False, **kwargs
116+
request, stream=_stream, **kwargs
116117
)
117118

118119
response = pipeline_response.http_response
@@ -197,8 +198,9 @@ async def list(
197198
request = _convert_request(request)
198199
request.url = self._client.format_url(request.url)
199200

201+
_stream = False
200202
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
201-
request, stream=False, **kwargs
203+
request, stream=_stream, **kwargs
202204
)
203205

204206
response = pipeline_response.http_response
@@ -259,8 +261,9 @@ async def list_offers(
259261
request = _convert_request(request)
260262
request.url = self._client.format_url(request.url)
261263

264+
_stream = False
262265
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
263-
request, stream=False, **kwargs
266+
request, stream=_stream, **kwargs
264267
)
265268

266269
response = pipeline_response.http_response
@@ -316,8 +319,9 @@ async def list_publishers(self, location: str, **kwargs: Any) -> List[_models.Vi
316319
request = _convert_request(request)
317320
request.url = self._client.format_url(request.url)
318321

322+
_stream = False
319323
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
320-
request, stream=False, **kwargs
324+
request, stream=_stream, **kwargs
321325
)
322326

323327
response = pipeline_response.http_response
@@ -381,8 +385,9 @@ async def list_skus(
381385
request = _convert_request(request)
382386
request.url = self._client.format_url(request.url)
383387

388+
_stream = False
384389
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
385-
request, stream=False, **kwargs
390+
request, stream=_stream, **kwargs
386391
)
387392

388393
response = pipeline_response.http_response

0 commit comments

Comments
 (0)