Skip to content

Commit 917cfa1

Browse files
author
SDKAuto
committed
CodeGen from PR 23293 in Azure/azure-rest-api-specs
Merge a066af333c20fcf240d3f6edbdedd7f2d5740532 into 2ac8dec9cbc4ad4db7537de603339f069d482078
1 parent 759e36f commit 917cfa1

27 files changed

+333
-164
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "ba733cb319d327bae00886c47975d624145834b0",
2+
"commit": "bbf0ce73ca2ae866ad6cf8919d14687034ba2988",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.0",
6+
"@autorest/python@6.4.3",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/edgeorder/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.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/edgeorder/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/python@6.4.3 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/edgeorder/resource-manager/readme.md"
1111
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
76
# --------------------------------------------------------------------------
87

9-
VERSION = "2.0.0b1"
8+
VERSION = "0.1.0"

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/v2020_12_01_preview/_edge_order_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(
5050
self._config = EdgeOrderManagementClientConfiguration(
5151
credential=credential, subscription_id=subscription_id, **kwargs
5252
)
53-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
53+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5454

5555
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
5656
self._serialize = Serializer(client_models)

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/v2020_12_01_preview/_metadata.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@
109109
"operation_mixins": {
110110
"sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Iterable\"]}}, \"regular\": {\"local\": {\".\": [[\"models\", \"_models\"]]}, \"azurecore\": {\"azure.core.paging\": [\"ItemPaged\"], \"azure.core.polling\": [\"LROPoller\"]}, \"stdlib\": {\"typing\": [\"IO\", \"Optional\", \"Union\"]}}}",
111111
"async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"AsyncIterable\"]}}, \"regular\": {\"local\": {\"..\": [[\"models\", \"_models\"]]}, \"azurecore\": {\"azure.core.async_paging\": [\"AsyncItemPaged\"], \"azure.core.polling\": [\"AsyncLROPoller\"]}, \"stdlib\": {\"typing\": [\"IO\", \"Optional\", \"Union\"]}}}",
112+
"sync_mixin_typing_definitions": "",
113+
"async_mixin_typing_definitions": "",
112114
"operations": {
113115
"list_operations" : {
114116
"sync": {

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/v2020_12_01_preview/_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 = "2.0.0b1"
9+
VERSION = "1.0.0b1"

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/v2020_12_01_preview/aio/_edge_order_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(
5050
self._config = EdgeOrderManagementClientConfiguration(
5151
credential=credential, subscription_id=subscription_id, **kwargs
5252
)
53-
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
53+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5454

5555
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
5656
self._serialize = Serializer(client_models)

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/v2020_12_01_preview/aio/operations/_edge_order_management_client_operations.py

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ async def extract_data(pipeline_response):
133133
async def get_next(next_link=None):
134134
request = prepare_request(next_link)
135135

136+
_stream = False
136137
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
137-
request, stream=False, **kwargs
138+
request, stream=_stream, **kwargs
138139
)
139140
response = pipeline_response.http_response
140141

@@ -226,8 +227,9 @@ async def extract_data(pipeline_response):
226227
async def get_next(next_link=None):
227228
request = prepare_request(next_link)
228229

230+
_stream = False
229231
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
230-
request, stream=False, **kwargs
232+
request, stream=_stream, **kwargs
231233
)
232234
response = pipeline_response.http_response
233235

@@ -404,8 +406,9 @@ async def extract_data(pipeline_response):
404406
async def get_next(next_link=None):
405407
request = prepare_request(next_link)
406408

409+
_stream = False
407410
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
408-
request, stream=False, **kwargs
411+
request, stream=_stream, **kwargs
409412
)
410413
response = pipeline_response.http_response
411414

@@ -572,8 +575,9 @@ async def extract_data(pipeline_response):
572575
async def get_next(next_link=None):
573576
request = prepare_request(next_link)
574577

578+
_stream = False
575579
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
576-
request, stream=False, **kwargs
580+
request, stream=_stream, **kwargs
577581
)
578582
response = pipeline_response.http_response
579583

@@ -664,8 +668,9 @@ async def extract_data(pipeline_response):
664668
async def get_next(next_link=None):
665669
request = prepare_request(next_link)
666670

671+
_stream = False
667672
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
668-
request, stream=False, **kwargs
673+
request, stream=_stream, **kwargs
669674
)
670675
response = pipeline_response.http_response
671676

@@ -755,8 +760,9 @@ async def extract_data(pipeline_response):
755760
async def get_next(next_link=None):
756761
request = prepare_request(next_link)
757762

763+
_stream = False
758764
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
759-
request, stream=False, **kwargs
765+
request, stream=_stream, **kwargs
760766
)
761767
response = pipeline_response.http_response
762768

@@ -861,8 +867,9 @@ async def extract_data(pipeline_response):
861867
async def get_next(next_link=None):
862868
request = prepare_request(next_link)
863869

870+
_stream = False
864871
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
865-
request, stream=False, **kwargs
872+
request, stream=_stream, **kwargs
866873
)
867874
response = pipeline_response.http_response
868875

@@ -960,8 +967,9 @@ async def extract_data(pipeline_response):
960967
async def get_next(next_link=None):
961968
request = prepare_request(next_link)
962969

970+
_stream = False
963971
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
964-
request, stream=False, **kwargs
972+
request, stream=_stream, **kwargs
965973
)
966974
response = pipeline_response.http_response
967975

@@ -1024,8 +1032,9 @@ async def get_address_by_name(
10241032
request = _convert_request(request)
10251033
request.url = self._client.format_url(request.url)
10261034

1035+
_stream = False
10271036
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1028-
request, stream=False, **kwargs
1037+
request, stream=_stream, **kwargs
10291038
)
10301039

10311040
response = pipeline_response.http_response
@@ -1093,8 +1102,9 @@ async def _create_address_initial(
10931102
request = _convert_request(request)
10941103
request.url = self._client.format_url(request.url)
10951104

1105+
_stream = False
10961106
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1097-
request, stream=False, **kwargs
1107+
request, stream=_stream, **kwargs
10981108
)
10991109

11001110
response = pipeline_response.http_response
@@ -1316,8 +1326,9 @@ async def _delete_address_by_name_initial( # pylint: disable=inconsistent-retur
13161326
request = _convert_request(request)
13171327
request.url = self._client.format_url(request.url)
13181328

1329+
_stream = False
13191330
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1320-
request, stream=False, **kwargs
1331+
request, stream=_stream, **kwargs
13211332
)
13221333

13231334
response = pipeline_response.http_response
@@ -1453,8 +1464,9 @@ async def _update_address_initial(
14531464
request = _convert_request(request)
14541465
request.url = self._client.format_url(request.url)
14551466

1467+
_stream = False
14561468
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1457-
request, stream=False, **kwargs
1469+
request, stream=_stream, **kwargs
14581470
)
14591471

14601472
response = pipeline_response.http_response
@@ -1734,8 +1746,9 @@ async def extract_data(pipeline_response):
17341746
async def get_next(next_link=None):
17351747
request = prepare_request(next_link)
17361748

1749+
_stream = False
17371750
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1738-
request, stream=False, **kwargs
1751+
request, stream=_stream, **kwargs
17391752
)
17401753
response = pipeline_response.http_response
17411754

@@ -1799,8 +1812,9 @@ async def get_order_by_name(
17991812
request = _convert_request(request)
18001813
request.url = self._client.format_url(request.url)
18011814

1815+
_stream = False
18021816
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1803-
request, stream=False, **kwargs
1817+
request, stream=_stream, **kwargs
18041818
)
18051819

18061820
response = pipeline_response.http_response
@@ -1914,8 +1928,9 @@ async def extract_data(pipeline_response):
19141928
async def get_next(next_link=None):
19151929
request = prepare_request(next_link)
19161930

1931+
_stream = False
19171932
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1918-
request, stream=False, **kwargs
1933+
request, stream=_stream, **kwargs
19191934
)
19201935
response = pipeline_response.http_response
19211936

@@ -1983,8 +1998,9 @@ async def get_order_item_by_name(
19831998
request = _convert_request(request)
19841999
request.url = self._client.format_url(request.url)
19852000

2001+
_stream = False
19862002
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
1987-
request, stream=False, **kwargs
2003+
request, stream=_stream, **kwargs
19882004
)
19892005

19902006
response = pipeline_response.http_response
@@ -2052,8 +2068,9 @@ async def _create_order_item_initial(
20522068
request = _convert_request(request)
20532069
request.url = self._client.format_url(request.url)
20542070

2071+
_stream = False
20552072
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
2056-
request, stream=False, **kwargs
2073+
request, stream=_stream, **kwargs
20572074
)
20582075

20592076
response = pipeline_response.http_response
@@ -2270,8 +2287,9 @@ async def _delete_order_item_by_name_initial( # pylint: disable=inconsistent-re
22702287
request = _convert_request(request)
22712288
request.url = self._client.format_url(request.url)
22722289

2290+
_stream = False
22732291
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
2274-
request, stream=False, **kwargs
2292+
request, stream=_stream, **kwargs
22752293
)
22762294

22772295
response = pipeline_response.http_response
@@ -2405,8 +2423,9 @@ async def _update_order_item_initial(
24052423
request = _convert_request(request)
24062424
request.url = self._client.format_url(request.url)
24072425

2426+
_stream = False
24082427
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
2409-
request, stream=False, **kwargs
2428+
request, stream=_stream, **kwargs
24102429
)
24112430

24122431
response = pipeline_response.http_response
@@ -2726,8 +2745,9 @@ async def cancel_order_item( # pylint: disable=inconsistent-return-statements
27262745
request = _convert_request(request)
27272746
request.url = self._client.format_url(request.url)
27282747

2748+
_stream = False
27292749
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
2730-
request, stream=False, **kwargs
2750+
request, stream=_stream, **kwargs
27312751
)
27322752

27332753
response = pipeline_response.http_response
@@ -2791,8 +2811,9 @@ async def _return_order_item_initial( # pylint: disable=inconsistent-return-sta
27912811
request = _convert_request(request)
27922812
request.url = self._client.format_url(request.url)
27932813

2814+
_stream = False
27942815
pipeline_response: PipelineResponse = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access
2795-
request, stream=False, **kwargs
2816+
request, stream=_stream, **kwargs
27962817
)
27972818

27982819
response = pipeline_response.http_response

0 commit comments

Comments
 (0)