Skip to content

Commit 2166058

Browse files
author
SDKAuto
committed
CodeGen from PR 31612 in Azure/azure-rest-api-specs
Merge 5fd280181466d512c0a76610e271d7f1634db200 into 5c9d5f957d76d9fea9c513f494660c6c5d3e809a
1 parent 5d2c6bb commit 2166058

File tree

727 files changed

+74222
-63282
lines changed

Some content is hidden

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

727 files changed

+74222
-63282
lines changed

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": "04035c0a032016dc3bcdb8b2c25fd54c59259ad2",
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/s/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)