Skip to content

Commit 765e94a

Browse files
author
SDKAuto
committed
CodeGen from PR 24426 in Azure/azure-rest-api-specs
Merge 447ede9a4d632a8649e7e13f8ef343493038138b into 8dfc1c2e704bdaefa89d6f5c2c5a7f0d14519db2
1 parent 7deb01f commit 765e94a

File tree

363 files changed

+9056
-9685
lines changed

Some content is hidden

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

363 files changed

+9056
-9685
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2c4244e5bcb8939167b79f633cdc17a1f0eae9be",
2+
"commit": "54d0f824bcb128f8c841febeb1fd8c9e693e6286",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.9.6",
55
"use": [
6-
"@autorest/python@6.2.16",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.6.0",
7+
"@autorest/modelerfour@4.26.2"
88
],
9-
"autorest_command": "autorest specification/containerregistry/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.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerregistry/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.6.0 --use=@autorest/modelerfour@4.26.2 --version=3.9.6 --version-tolerant=False",
1010
"readme": "specification/containerregistry/resource-manager/readme.md"
1111
}

sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/_container_registry_management_client.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def __init__(
7878
profile: KnownProfiles=KnownProfiles.default,
7979
**kwargs: Any
8080
):
81+
if api_version:
82+
kwargs.setdefault('api_version', api_version)
8183
self._config = ContainerRegistryManagementClientConfiguration(credential, subscription_id, **kwargs)
8284
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8385
super(ContainerRegistryManagementClient, self).__init__(
@@ -176,7 +178,7 @@ def agent_pools(self):
176178
else:
177179
raise ValueError("API version {} does not have operation group 'agent_pools'".format(api_version))
178180
self._config.api_version = api_version
179-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
181+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
180182

181183
@property
182184
def build_steps(self):
@@ -190,7 +192,7 @@ def build_steps(self):
190192
else:
191193
raise ValueError("API version {} does not have operation group 'build_steps'".format(api_version))
192194
self._config.api_version = api_version
193-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
195+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
194196

195197
@property
196198
def build_tasks(self):
@@ -204,7 +206,7 @@ def build_tasks(self):
204206
else:
205207
raise ValueError("API version {} does not have operation group 'build_tasks'".format(api_version))
206208
self._config.api_version = api_version
207-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
209+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
208210

209211
@property
210212
def builds(self):
@@ -218,7 +220,7 @@ def builds(self):
218220
else:
219221
raise ValueError("API version {} does not have operation group 'builds'".format(api_version))
220222
self._config.api_version = api_version
221-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
223+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
222224

223225
@property
224226
def cache_rules(self):
@@ -232,7 +234,7 @@ def cache_rules(self):
232234
else:
233235
raise ValueError("API version {} does not have operation group 'cache_rules'".format(api_version))
234236
self._config.api_version = api_version
235-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
237+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
236238

237239
@property
238240
def connected_registries(self):
@@ -261,7 +263,7 @@ def connected_registries(self):
261263
else:
262264
raise ValueError("API version {} does not have operation group 'connected_registries'".format(api_version))
263265
self._config.api_version = api_version
264-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
266+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
265267

266268
@property
267269
def credential_sets(self):
@@ -275,7 +277,7 @@ def credential_sets(self):
275277
else:
276278
raise ValueError("API version {} does not have operation group 'credential_sets'".format(api_version))
277279
self._config.api_version = api_version
278-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
280+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
279281

280282
@property
281283
def export_pipelines(self):
@@ -307,7 +309,7 @@ def export_pipelines(self):
307309
else:
308310
raise ValueError("API version {} does not have operation group 'export_pipelines'".format(api_version))
309311
self._config.api_version = api_version
310-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
312+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
311313

312314
@property
313315
def import_pipelines(self):
@@ -339,7 +341,7 @@ def import_pipelines(self):
339341
else:
340342
raise ValueError("API version {} does not have operation group 'import_pipelines'".format(api_version))
341343
self._config.api_version = api_version
342-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
344+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
343345

344346
@property
345347
def operations(self):
@@ -386,7 +388,7 @@ def operations(self):
386388
else:
387389
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
388390
self._config.api_version = api_version
389-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
391+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
390392

391393
@property
392394
def pipeline_runs(self):
@@ -418,7 +420,7 @@ def pipeline_runs(self):
418420
else:
419421
raise ValueError("API version {} does not have operation group 'pipeline_runs'".format(api_version))
420422
self._config.api_version = api_version
421-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
423+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
422424

423425
@property
424426
def private_endpoint_connections(self):
@@ -456,7 +458,7 @@ def private_endpoint_connections(self):
456458
else:
457459
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
458460
self._config.api_version = api_version
459-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
461+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
460462

461463
@property
462464
def registries(self):
@@ -518,7 +520,7 @@ def registries(self):
518520
else:
519521
raise ValueError("API version {} does not have operation group 'registries'".format(api_version))
520522
self._config.api_version = api_version
521-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
523+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
522524

523525
@property
524526
def replications(self):
@@ -562,7 +564,7 @@ def replications(self):
562564
else:
563565
raise ValueError("API version {} does not have operation group 'replications'".format(api_version))
564566
self._config.api_version = api_version
565-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
567+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
566568

567569
@property
568570
def runs(self):
@@ -582,7 +584,7 @@ def runs(self):
582584
else:
583585
raise ValueError("API version {} does not have operation group 'runs'".format(api_version))
584586
self._config.api_version = api_version
585-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
587+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
586588

587589
@property
588590
def scope_maps(self):
@@ -617,7 +619,7 @@ def scope_maps(self):
617619
else:
618620
raise ValueError("API version {} does not have operation group 'scope_maps'".format(api_version))
619621
self._config.api_version = api_version
620-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
622+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
621623

622624
@property
623625
def task_runs(self):
@@ -631,7 +633,7 @@ def task_runs(self):
631633
else:
632634
raise ValueError("API version {} does not have operation group 'task_runs'".format(api_version))
633635
self._config.api_version = api_version
634-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
636+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
635637

636638
@property
637639
def tasks(self):
@@ -651,7 +653,7 @@ def tasks(self):
651653
else:
652654
raise ValueError("API version {} does not have operation group 'tasks'".format(api_version))
653655
self._config.api_version = api_version
654-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
656+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
655657

656658
@property
657659
def tokens(self):
@@ -686,7 +688,7 @@ def tokens(self):
686688
else:
687689
raise ValueError("API version {} does not have operation group 'tokens'".format(api_version))
688690
self._config.api_version = api_version
689-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
691+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
690692

691693
@property
692694
def webhooks(self):
@@ -730,7 +732,7 @@ def webhooks(self):
730732
else:
731733
raise ValueError("API version {} does not have operation group 'webhooks'".format(api_version))
732734
self._config.api_version = api_version
733-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
735+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
734736

735737
def close(self):
736738
self._client.close()

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
631631
if xml_desc.get("attr", False):
632632
if xml_ns:
633633
ET.register_namespace(xml_prefix, xml_ns)
634-
xml_name = "{}{}".format(xml_ns, xml_name)
634+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
635635
serialized.set(xml_name, new_attr) # type: ignore
636636
continue
637637
if xml_desc.get("text", False):
@@ -1273,7 +1273,7 @@ def _extract_name_from_internal_type(internal_type):
12731273
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
12741274
xml_ns = internal_type_xml_map.get("ns", None)
12751275
if xml_ns:
1276-
xml_name = "{}{}".format(xml_ns, xml_name)
1276+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
12771277
return xml_name
12781278

12791279

@@ -1297,7 +1297,7 @@ def xml_key_extractor(attr, attr_desc, data):
12971297
# Integrate namespace if necessary
12981298
xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
12991299
if xml_ns:
1300-
xml_name = "{}{}".format(xml_ns, xml_name)
1300+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
13011301

13021302
# If it's an attribute, that's simple
13031303
if xml_desc.get("attr", False):

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
6-
#
7-
# Code generated by Microsoft (R) AutoRest Code Generator.
8-
# Changes may cause incorrect behavior and will be lost if the code is
9-
# regenerated.
106
# --------------------------------------------------------------------------
117

12-
VERSION = "10.1.0"
8+
VERSION = "0.1.0"

0 commit comments

Comments
 (0)