Skip to content

Commit 900ac07

Browse files
author
SDKAuto
committed
CodeGen from PR 22777 in Azure/azure-rest-api-specs
Merge dd9eb8600e0b8e26d6561d30a628a61f15ca9f5a into 56435032b69cc7ebb5c1052b66c7865d0c48f33c
1 parent 04aa7e9 commit 900ac07

File tree

303 files changed

+4918
-1557
lines changed

Some content is hidden

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

303 files changed

+4918
-1557
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2c4244e5bcb8939167b79f633cdc17a1f0eae9be",
2+
"commit": "85c94ec6fd1f8a25b4a16cd53db418a33f6a9a7b",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.16",
6+
"@autorest/python@6.4.0",
77
"@autorest/modelerfour@4.24.3"
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.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --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: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,34 @@ def agent_pools(self):
178178
self._config.api_version = api_version
179179
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
180180

181+
@property
182+
def archive_versions(self):
183+
"""Instance depends on the API version:
184+
185+
* 2023-01-01-preview: :class:`ArchiveVersionsOperations<azure.mgmt.containerregistry.v2023_01_01_preview.operations.ArchiveVersionsOperations>`
186+
"""
187+
api_version = self._get_api_version('archive_versions')
188+
if api_version == '2023-01-01-preview':
189+
from .v2023_01_01_preview.operations import ArchiveVersionsOperations as OperationClass
190+
else:
191+
raise ValueError("API version {} does not have operation group 'archive_versions'".format(api_version))
192+
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)))
194+
195+
@property
196+
def archives(self):
197+
"""Instance depends on the API version:
198+
199+
* 2023-01-01-preview: :class:`ArchivesOperations<azure.mgmt.containerregistry.v2023_01_01_preview.operations.ArchivesOperations>`
200+
"""
201+
api_version = self._get_api_version('archives')
202+
if api_version == '2023-01-01-preview':
203+
from .v2023_01_01_preview.operations import ArchivesOperations as OperationClass
204+
else:
205+
raise ValueError("API version {} does not have operation group 'archives'".format(api_version))
206+
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)))
208+
181209
@property
182210
def build_steps(self):
183211
"""Instance depends on the API version:

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"

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,34 @@ def agent_pools(self):
178178
self._config.api_version = api_version
179179
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
180180

181+
@property
182+
def archive_versions(self):
183+
"""Instance depends on the API version:
184+
185+
* 2023-01-01-preview: :class:`ArchiveVersionsOperations<azure.mgmt.containerregistry.v2023_01_01_preview.aio.operations.ArchiveVersionsOperations>`
186+
"""
187+
api_version = self._get_api_version('archive_versions')
188+
if api_version == '2023-01-01-preview':
189+
from ..v2023_01_01_preview.aio.operations import ArchiveVersionsOperations as OperationClass
190+
else:
191+
raise ValueError("API version {} does not have operation group 'archive_versions'".format(api_version))
192+
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)))
194+
195+
@property
196+
def archives(self):
197+
"""Instance depends on the API version:
198+
199+
* 2023-01-01-preview: :class:`ArchivesOperations<azure.mgmt.containerregistry.v2023_01_01_preview.aio.operations.ArchivesOperations>`
200+
"""
201+
api_version = self._get_api_version('archives')
202+
if api_version == '2023-01-01-preview':
203+
from ..v2023_01_01_preview.aio.operations import ArchivesOperations as OperationClass
204+
else:
205+
raise ValueError("API version {} does not have operation group 'archives'".format(api_version))
206+
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)))
208+
181209
@property
182210
def build_steps(self):
183211
"""Instance depends on the API version:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ def __enter__(self) -> "ContainerRegistryManagementClient":
9090
self._client.__enter__()
9191
return self
9292

93-
def __exit__(self, *exc_details) -> None:
93+
def __exit__(self, *exc_details: Any) -> None:
9494
self._client.__exit__(*exc_details)
Lines changed: 18 additions & 29 deletions
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/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/_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 = "10.1.0"
9+
VERSION = "1.0.0b1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ async def __aenter__(self) -> "ContainerRegistryManagementClient":
9191
await self._client.__aenter__()
9292
return self
9393

94-
async def __aexit__(self, *exc_details) -> None:
94+
async def __aexit__(self, *exc_details: Any) -> None:
9595
await self._client.__aexit__(*exc_details)
Lines changed: 18 additions & 29 deletions
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/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/aio/operations/_registries_operations.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def check_name_availability(
121121
alphanumeric characters, be globally unique, and between 5 and 50 characters in length.
122122
123123
:param registry_name_check_request: The object containing information for the availability
124-
request. Is either a model type or a IO type. Required.
124+
request. Is either a RegistryNameCheckRequest type or a IO type. Required.
125125
:type registry_name_check_request:
126126
~azure.mgmt.containerregistry.v2017_03_01.models.RegistryNameCheckRequest or IO
127127
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
@@ -409,7 +409,7 @@ async def begin_create(
409409
:param registry_name: The name of the container registry. Required.
410410
:type registry_name: str
411411
:param registry_create_parameters: The parameters for creating a container registry. Is either
412-
a model type or a IO type. Required.
412+
a RegistryCreateParameters type or a IO type. Required.
413413
:type registry_create_parameters:
414414
~azure.mgmt.containerregistry.v2017_03_01.models.RegistryCreateParameters or IO
415415
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
@@ -609,7 +609,7 @@ async def update(
609609
:param registry_name: The name of the container registry. Required.
610610
:type registry_name: str
611611
:param registry_update_parameters: The parameters for updating a container registry. Is either
612-
a model type or a IO type. Required.
612+
a RegistryUpdateParameters type or a IO type. Required.
613613
:type registry_update_parameters:
614614
~azure.mgmt.containerregistry.v2017_03_01.models.RegistryUpdateParameters or IO
615615
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
@@ -983,7 +983,8 @@ async def regenerate_credential(
983983
:param registry_name: The name of the container registry. Required.
984984
:type registry_name: str
985985
:param regenerate_credential_parameters: Specifies name of the password which should be
986-
regenerated -- password or password2. Is either a model type or a IO type. Required.
986+
regenerated -- password or password2. Is either a RegenerateCredentialParameters type or a IO
987+
type. Required.
987988
:type regenerate_credential_parameters:
988989
~azure.mgmt.containerregistry.v2017_03_01.models.RegenerateCredentialParameters or IO
989990
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.

0 commit comments

Comments
 (0)