Skip to content

Commit f930965

Browse files
[AutoRelease] t2-containerregistry-2024-12-10-60943(can only be merged by SDK owner) (Azure#38810)
* code and test * update changelog * Update CHANGELOG.md * update testcases * Update release date in CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent cbfb46e commit f930965

File tree

735 files changed

+74413
-63284
lines changed

Some content is hidden

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

735 files changed

+74413
-63284
lines changed

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

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

3+
## 11.0.0 (2024-02-19)
4+
5+
### Features Added
6+
7+
- Model ConnectedRegistry has a new parameter garbage_collection
8+
- Model ConnectedRegistryUpdateParameters has a new parameter garbage_collection
9+
- Model Registry has a new parameter auto_generated_domain_name_label_scope
10+
- Model RegistryNameCheckRequest has a new parameter auto_generated_domain_name_label_scope
11+
- Model RegistryNameCheckRequest has a new parameter resource_group_name
12+
- Model RegistryNameStatus has a new parameter available_login_server_name
13+
14+
### Breaking Changes
15+
16+
- Removed operation group BuildStepsOperations
17+
- Removed operation group BuildTasksOperations
18+
- Removed operation group BuildsOperations
19+
320
## 10.3.0 (2023-11-20)
421

522
### Features Added

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Container Registry Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.8+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "bf204aab860f2eb58a9d346b00d44760f2a9b0a2",
2+
"commit": "e6bf6e8f8ff8b3325aa2618b712d5c3bad770631",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.7.1",
7-
"@autorest/modelerfour@4.26.2"
6+
"@autorest/python@6.26.4",
7+
"@autorest/modelerfour@4.27.0"
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.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --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.26.4 --use=@autorest/modelerfour@4.27.0 --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/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
# --------------------------------------------------------------------------
88

99
from ._container_registry_management_client import ContainerRegistryManagementClient
10-
11-
__all__ = ["ContainerRegistryManagementClient"]
10+
__all__ = ['ContainerRegistryManagementClient']
1211

1312
try:
1413
from ._patch import patch_sdk # type: ignore
15-
1614
patch_sdk()
1715
except ImportError:
1816
pass

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

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# --------------------------------------------------------------------------
1111
from typing import Any, TYPE_CHECKING
1212

13-
from azure.core.configuration import Configuration
1413
from azure.core.pipeline import policies
1514
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1615

@@ -20,8 +19,7 @@
2019
# pylint: disable=unused-import,ungrouped-imports
2120
from azure.core.credentials import TokenCredential
2221

23-
24-
class ContainerRegistryManagementClientConfiguration(Configuration):
22+
class ContainerRegistryManagementClientConfiguration:
2523
"""Configuration for ContainerRegistryManagementClient.
2624
2725
Note that all parameters used to create this instance are saved as instance
@@ -33,30 +31,36 @@ class ContainerRegistryManagementClientConfiguration(Configuration):
3331
:type subscription_id: str
3432
"""
3533

36-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any):
34+
def __init__(
35+
self,
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
):
3740
if credential is None:
3841
raise ValueError("Parameter 'credential' must not be None.")
3942
if subscription_id is None:
4043
raise ValueError("Parameter 'subscription_id' must not be None.")
41-
super(ContainerRegistryManagementClientConfiguration, self).__init__(**kwargs)
4244

4345
self.credential = credential
4446
self.subscription_id = subscription_id
45-
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
46-
kwargs.setdefault("sdk_moniker", "azure-mgmt-containerregistry/{}".format(VERSION))
47+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
48+
kwargs.setdefault('sdk_moniker', 'azure-mgmt-containerregistry/{}'.format(VERSION))
49+
self.polling_interval = kwargs.get("polling_interval", 30)
4750
self._configure(**kwargs)
4851

49-
def _configure(self, **kwargs: Any):
50-
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
51-
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
52-
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
53-
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
54-
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
55-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
56-
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
57-
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
58-
self.authentication_policy = kwargs.get("authentication_policy")
52+
def _configure(
53+
self,
54+
**kwargs: Any
55+
):
56+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
57+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
58+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
59+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
60+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
61+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
62+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
63+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
64+
self.authentication_policy = kwargs.get('authentication_policy')
5965
if self.credential and not self.authentication_policy:
60-
self.authentication_policy = ARMChallengeAuthenticationPolicy(
61-
self.credential, *self.credential_scopes, **kwargs
62-
)
66+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)