Skip to content

Commit 92abb29

Browse files
[AutoRelease] t2-containerregistry-2025-02-21-27085(can only be merged by SDK owner) (Azure#39815)
* code and test * Update version to 12.0.0 and changelog * Update release date in CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent af5efc9 commit 92abb29

File tree

432 files changed

+63
-214179
lines changed

Some content is hidden

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

432 files changed

+63
-214179
lines changed

sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 12.0.0 (2025-02-24)
4+
5+
### Breaking Changes
6+
- Removed subfolders of some unused Api-Versions for smaller package size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change.
7+
38
## 11.0.0 (2024-02-19)
49

510
### Features Added

sdk/containerregistry/azure-mgmt-containerregistry/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "e6bf6e8f8ff8b3325aa2618b712d5c3bad770631",
2+
"commit": "cca6912f2ae4c5b93f34702a5d2b7d412ca1e02c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.26.4",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/containerregistry/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/containerregistry/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/containerregistry/resource-manager/readme.md",
1111
"package-2023-08-preview-only": "2023-08-29 18:41:57 -0700 3e3098d6b9302e166b611ce72b3392786d3ea0f7 Microsoft.ContainerRegistry/preview/2023-08-01-preview/containerregistry.json",
1212
"package-2023-07-only": "2023-08-16 14:55:49 -0700 d5631d7fbffb672434457b5f2f16cdc6691356f9 Microsoft.ContainerRegistry/stable/2023-07-01/containerregistry.json",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ContainerRegistryManagementClientConfiguration:
2727
2828
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
30+
:param subscription_id: The Microsoft Azure subscription ID. Required.
3131
:type subscription_id: str
3232
"""
3333

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

Lines changed: 16 additions & 347 deletions
Large diffs are not rendered by default.

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
309309
return ET.Element(tag)
310310

311311

312-
class Model(object):
312+
class Model:
313313
"""Mixin for all client request body/response body models to support
314314
serialization and deserialization.
315315
"""
@@ -562,7 +562,7 @@ def _decode_attribute_map_key(key):
562562
return key.replace("\\.", ".")
563563

564564

565-
class Serializer(object): # pylint: disable=too-many-public-methods
565+
class Serializer: # pylint: disable=too-many-public-methods
566566
"""Request object model serializer."""
567567

568568
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1440,7 +1440,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
14401440
return children[0]
14411441

14421442

1443-
class Deserializer(object):
1443+
class Deserializer:
14441444
"""Response object model deserializer.
14451445
14461446
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1682,17 +1682,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
16821682
subtype = getattr(response, "_subtype_map", {})
16831683
try:
16841684
readonly = [
1685-
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
1685+
k
1686+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1687+
if v.get("readonly")
16861688
]
16871689
const = [
1688-
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
1690+
k
1691+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1692+
if v.get("constant")
16891693
]
16901694
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
16911695
response_obj = response(**kwargs)
16921696
for attr in readonly:
16931697
setattr(response_obj, attr, attrs.get(attr))
16941698
if additional_properties:
1695-
response_obj.additional_properties = additional_properties
1699+
response_obj.additional_properties = additional_properties # type: ignore
16961700
return response_obj
16971701
except TypeError as err:
16981702
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "11.0.0"
12+
VERSION = "12.0.0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ContainerRegistryManagementClientConfiguration:
2727
2828
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
30-
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
30+
:param subscription_id: The Microsoft Azure subscription ID. Required.
3131
:type subscription_id: str
3232
"""
3333

0 commit comments

Comments
 (0)