Skip to content

Commit f7f5269

Browse files
SDKAutomsyyc
andcommitted
CodeGen from PR 15284 in Azure/azure-rest-api-specs
Containerregistry maps datamigration t1 del (Azure#15284) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * t1 del Co-authored-by: msyyc <[email protected]>
1 parent 64128ba commit f7f5269

File tree

60 files changed

+21664
-35
lines changed

Some content is hidden

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

60 files changed

+21664
-35
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"autorest": "3.4.5",
33
"use": [
4-
"@autorest/[email protected].0",
5-
"@autorest/[email protected].1"
4+
"@autorest/[email protected].4",
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "cb635c41dc75e34890f20a26ee509861260c8784",
7+
"commit": "2a8442856438f3c78b7150f4a32270c03fc99d43",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/containerregistry/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].0 --use=@autorest/[email protected].1 --version=3.4.2",
9+
"autorest_command": "autorest specification/containerregistry/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].4 --use=@autorest/[email protected].2 --version=3.4.5",
1010
"readme": "specification/containerregistry/resource-manager/readme.md"
1111
}

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
106106
* 2019-06-01-preview: :mod:`v2019_06_01_preview.models<azure.mgmt.containerregistry.v2019_06_01_preview.models>`
107107
* 2019-12-01-preview: :mod:`v2019_12_01_preview.models<azure.mgmt.containerregistry.v2019_12_01_preview.models>`
108108
* 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.containerregistry.v2020_11_01_preview.models>`
109+
* 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.containerregistry.v2021_06_01_preview.models>`
109110
"""
110111
if api_version == '2017-03-01':
111112
from .v2017_03_01 import models
@@ -137,6 +138,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
137138
elif api_version == '2020-11-01-preview':
138139
from .v2020_11_01_preview import models
139140
return models
141+
elif api_version == '2021-06-01-preview':
142+
from .v2021_06_01_preview import models
143+
return models
140144
raise ValueError("API version {} is not available".format(api_version))
141145

142146
@property
@@ -196,10 +200,13 @@ def connected_registries(self):
196200
"""Instance depends on the API version:
197201
198202
* 2020-11-01-preview: :class:`ConnectedRegistriesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.ConnectedRegistriesOperations>`
203+
* 2021-06-01-preview: :class:`ConnectedRegistriesOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.ConnectedRegistriesOperations>`
199204
"""
200205
api_version = self._get_api_version('connected_registries')
201206
if api_version == '2020-11-01-preview':
202207
from .v2020_11_01_preview.operations import ConnectedRegistriesOperations as OperationClass
208+
elif api_version == '2021-06-01-preview':
209+
from .v2021_06_01_preview.operations import ConnectedRegistriesOperations as OperationClass
203210
else:
204211
raise ValueError("API version {} does not have operation group 'connected_registries'".format(api_version))
205212
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -210,12 +217,15 @@ def export_pipelines(self):
210217
211218
* 2019-12-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.ExportPipelinesOperations>`
212219
* 2020-11-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.ExportPipelinesOperations>`
220+
* 2021-06-01-preview: :class:`ExportPipelinesOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.ExportPipelinesOperations>`
213221
"""
214222
api_version = self._get_api_version('export_pipelines')
215223
if api_version == '2019-12-01-preview':
216224
from .v2019_12_01_preview.operations import ExportPipelinesOperations as OperationClass
217225
elif api_version == '2020-11-01-preview':
218226
from .v2020_11_01_preview.operations import ExportPipelinesOperations as OperationClass
227+
elif api_version == '2021-06-01-preview':
228+
from .v2021_06_01_preview.operations import ExportPipelinesOperations as OperationClass
219229
else:
220230
raise ValueError("API version {} does not have operation group 'export_pipelines'".format(api_version))
221231
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -226,12 +236,15 @@ def import_pipelines(self):
226236
227237
* 2019-12-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.ImportPipelinesOperations>`
228238
* 2020-11-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.ImportPipelinesOperations>`
239+
* 2021-06-01-preview: :class:`ImportPipelinesOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.ImportPipelinesOperations>`
229240
"""
230241
api_version = self._get_api_version('import_pipelines')
231242
if api_version == '2019-12-01-preview':
232243
from .v2019_12_01_preview.operations import ImportPipelinesOperations as OperationClass
233244
elif api_version == '2020-11-01-preview':
234245
from .v2020_11_01_preview.operations import ImportPipelinesOperations as OperationClass
246+
elif api_version == '2021-06-01-preview':
247+
from .v2021_06_01_preview.operations import ImportPipelinesOperations as OperationClass
235248
else:
236249
raise ValueError("API version {} does not have operation group 'import_pipelines'".format(api_version))
237250
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -245,6 +258,7 @@ def operations(self):
245258
* 2019-05-01: :class:`Operations<azure.mgmt.containerregistry.v2019_05_01.operations.Operations>`
246259
* 2019-12-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.Operations>`
247260
* 2020-11-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.Operations>`
261+
* 2021-06-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.Operations>`
248262
"""
249263
api_version = self._get_api_version('operations')
250264
if api_version == '2017-03-01':
@@ -257,6 +271,8 @@ def operations(self):
257271
from .v2019_12_01_preview.operations import Operations as OperationClass
258272
elif api_version == '2020-11-01-preview':
259273
from .v2020_11_01_preview.operations import Operations as OperationClass
274+
elif api_version == '2021-06-01-preview':
275+
from .v2021_06_01_preview.operations import Operations as OperationClass
260276
else:
261277
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
262278
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -267,12 +283,15 @@ def pipeline_runs(self):
267283
268284
* 2019-12-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.PipelineRunsOperations>`
269285
* 2020-11-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.PipelineRunsOperations>`
286+
* 2021-06-01-preview: :class:`PipelineRunsOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.PipelineRunsOperations>`
270287
"""
271288
api_version = self._get_api_version('pipeline_runs')
272289
if api_version == '2019-12-01-preview':
273290
from .v2019_12_01_preview.operations import PipelineRunsOperations as OperationClass
274291
elif api_version == '2020-11-01-preview':
275292
from .v2020_11_01_preview.operations import PipelineRunsOperations as OperationClass
293+
elif api_version == '2021-06-01-preview':
294+
from .v2021_06_01_preview.operations import PipelineRunsOperations as OperationClass
276295
else:
277296
raise ValueError("API version {} does not have operation group 'pipeline_runs'".format(api_version))
278297
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -283,12 +302,15 @@ def private_endpoint_connections(self):
283302
284303
* 2019-12-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.PrivateEndpointConnectionsOperations>`
285304
* 2020-11-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.PrivateEndpointConnectionsOperations>`
305+
* 2021-06-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.PrivateEndpointConnectionsOperations>`
286306
"""
287307
api_version = self._get_api_version('private_endpoint_connections')
288308
if api_version == '2019-12-01-preview':
289309
from .v2019_12_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
290310
elif api_version == '2020-11-01-preview':
291311
from .v2020_11_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
312+
elif api_version == '2021-06-01-preview':
313+
from .v2021_06_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
292314
else:
293315
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
294316
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -307,6 +329,7 @@ def registries(self):
307329
* 2019-06-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.RegistriesOperations>`
308330
* 2019-12-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.RegistriesOperations>`
309331
* 2020-11-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.RegistriesOperations>`
332+
* 2021-06-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.RegistriesOperations>`
310333
"""
311334
api_version = self._get_api_version('registries')
312335
if api_version == '2017-03-01':
@@ -329,6 +352,8 @@ def registries(self):
329352
from .v2019_12_01_preview.operations import RegistriesOperations as OperationClass
330353
elif api_version == '2020-11-01-preview':
331354
from .v2020_11_01_preview.operations import RegistriesOperations as OperationClass
355+
elif api_version == '2021-06-01-preview':
356+
from .v2021_06_01_preview.operations import RegistriesOperations as OperationClass
332357
else:
333358
raise ValueError("API version {} does not have operation group 'registries'".format(api_version))
334359
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -341,6 +366,7 @@ def replications(self):
341366
* 2019-05-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_05_01.operations.ReplicationsOperations>`
342367
* 2019-12-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.ReplicationsOperations>`
343368
* 2020-11-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.ReplicationsOperations>`
369+
* 2021-06-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.ReplicationsOperations>`
344370
"""
345371
api_version = self._get_api_version('replications')
346372
if api_version == '2017-10-01':
@@ -351,6 +377,8 @@ def replications(self):
351377
from .v2019_12_01_preview.operations import ReplicationsOperations as OperationClass
352378
elif api_version == '2020-11-01-preview':
353379
from .v2020_11_01_preview.operations import ReplicationsOperations as OperationClass
380+
elif api_version == '2021-06-01-preview':
381+
from .v2021_06_01_preview.operations import ReplicationsOperations as OperationClass
354382
else:
355383
raise ValueError("API version {} does not have operation group 'replications'".format(api_version))
356384
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -380,12 +408,15 @@ def scope_maps(self):
380408
381409
* 2019-05-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2019_05_01_preview.operations.ScopeMapsOperations>`
382410
* 2020-11-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.ScopeMapsOperations>`
411+
* 2021-06-01-preview: :class:`ScopeMapsOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.ScopeMapsOperations>`
383412
"""
384413
api_version = self._get_api_version('scope_maps')
385414
if api_version == '2019-05-01-preview':
386415
from .v2019_05_01_preview.operations import ScopeMapsOperations as OperationClass
387416
elif api_version == '2020-11-01-preview':
388417
from .v2020_11_01_preview.operations import ScopeMapsOperations as OperationClass
418+
elif api_version == '2021-06-01-preview':
419+
from .v2021_06_01_preview.operations import ScopeMapsOperations as OperationClass
389420
else:
390421
raise ValueError("API version {} does not have operation group 'scope_maps'".format(api_version))
391422
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -428,12 +459,15 @@ def tokens(self):
428459
429460
* 2019-05-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2019_05_01_preview.operations.TokensOperations>`
430461
* 2020-11-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.TokensOperations>`
462+
* 2021-06-01-preview: :class:`TokensOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.TokensOperations>`
431463
"""
432464
api_version = self._get_api_version('tokens')
433465
if api_version == '2019-05-01-preview':
434466
from .v2019_05_01_preview.operations import TokensOperations as OperationClass
435467
elif api_version == '2020-11-01-preview':
436468
from .v2020_11_01_preview.operations import TokensOperations as OperationClass
469+
elif api_version == '2021-06-01-preview':
470+
from .v2021_06_01_preview.operations import TokensOperations as OperationClass
437471
else:
438472
raise ValueError("API version {} does not have operation group 'tokens'".format(api_version))
439473
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -446,6 +480,7 @@ def webhooks(self):
446480
* 2019-05-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_05_01.operations.WebhooksOperations>`
447481
* 2019-12-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.WebhooksOperations>`
448482
* 2020-11-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.WebhooksOperations>`
483+
* 2021-06-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.WebhooksOperations>`
449484
"""
450485
api_version = self._get_api_version('webhooks')
451486
if api_version == '2017-10-01':
@@ -456,6 +491,8 @@ def webhooks(self):
456491
from .v2019_12_01_preview.operations import WebhooksOperations as OperationClass
457492
elif api_version == '2020-11-01-preview':
458493
from .v2020_11_01_preview.operations import WebhooksOperations as OperationClass
494+
elif api_version == '2021-06-01-preview':
495+
from .v2021_06_01_preview.operations import WebhooksOperations as OperationClass
459496
else:
460497
raise ValueError("API version {} does not have operation group 'webhooks'".format(api_version))
461498
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

0 commit comments

Comments
 (0)