Skip to content

Commit d4bdcc1

Browse files
azclibotSDKAutomsyyc
authored
[AutoRelease] t2-containerregistry-2022-01-14-86489 (#22504)
* CodeGen from PR 17357 in Azure/azure-rest-api-specs Update readme.python.md (#17357) * version,CHANGELOG * Update CHANGELOG.md Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 3c94944 commit d4bdcc1

File tree

355 files changed

+61549
-59449
lines changed

Some content is hidden

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

355 files changed

+61549
-59449
lines changed

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

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

3+
## 9.0.0 (2022-01-19)
4+
5+
**Features**
6+
7+
- Added operation RegistriesOperations.get_private_link_resource
8+
9+
**Breaking changes**
10+
11+
- Model NetworkRuleSet no longer has parameter virtual_network_rules
12+
- Model Registry no longer has parameter anonymous_pull_enabled
13+
- Model RegistryUpdateParameters no longer has parameter anonymous_pull_enabled
14+
- Removed operation RegistriesOperations.begin_generate_credentials
15+
316
## 8.2.0 (2021-10-26)
417

518
**Features**
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.5",
2+
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.8.4",
5-
"@autorest/[email protected].2"
4+
"@autorest/python@5.12.0",
5+
"@autorest/[email protected].3"
66
],
7-
"commit": "99d3931e458882c3402aad2f971e46e961a1e78c",
7+
"commit": "28e4e1474839c9a41bb8b7bc70774776f9d62c10",
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/python@5.8.4 --use=@autorest/[email protected].2 --version=3.4.5",
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 --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/[email protected].3 --version=3.7.2",
1010
"readme": "specification/containerregistry/resource-manager/readme.md"
1111
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
15-
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
15+
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1616

1717
from ._version import VERSION
1818

@@ -68,4 +68,4 @@ def _configure(
6868
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
6969
self.authentication_policy = kwargs.get('authentication_policy')
7070
if self.credential and not self.authentication_policy:
71-
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
71+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

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

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from typing import Any, Optional
2424

2525
from azure.core.credentials import TokenCredential
26-
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2726

2827
class _SDKClient(object):
2928
def __init__(self, *args, **kwargs):
@@ -56,16 +55,24 @@ class ContainerRegistryManagementClient(MultiApiClientMixin, _SDKClient):
5655
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5756
"""
5857

59-
DEFAULT_API_VERSION = '2019-05-01'
58+
DEFAULT_API_VERSION = '2021-09-01'
6059
_PROFILE_TAG = "azure.mgmt.containerregistry.ContainerRegistryManagementClient"
6160
LATEST_PROFILE = ProfileDefinition({
6261
_PROFILE_TAG: {
6362
None: DEFAULT_API_VERSION,
63+
'agent_pools': '2019-06-01-preview',
6464
'build_steps': '2018-02-01-preview',
6565
'build_tasks': '2018-02-01-preview',
6666
'builds': '2018-02-01-preview',
67+
'connected_registries': '2021-08-01-preview',
68+
'export_pipelines': '2021-08-01-preview',
69+
'import_pipelines': '2021-08-01-preview',
70+
'pipeline_runs': '2021-08-01-preview',
6771
'runs': '2019-04-01',
72+
'scope_maps': '2021-08-01-preview',
73+
'task_runs': '2019-06-01-preview',
6874
'tasks': '2019-04-01',
75+
'tokens': '2021-08-01-preview',
6976
}},
7077
_PROFILE_TAG + " latest"
7178
)
@@ -75,12 +82,10 @@ def __init__(
7582
credential, # type: "TokenCredential"
7683
subscription_id, # type: str
7784
api_version=None, # type: Optional[str]
78-
base_url=None, # type: Optional[str]
85+
base_url="https://management.azure.com", # type: str
7986
profile=KnownProfiles.default, # type: KnownProfiles
8087
**kwargs # type: Any
8188
):
82-
if not base_url:
83-
base_url = 'https://management.azure.com'
8489
self._config = ContainerRegistryManagementClientConfiguration(credential, subscription_id, **kwargs)
8590
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8691
super(ContainerRegistryManagementClient, self).__init__(
@@ -108,6 +113,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
108113
* 2020-11-01-preview: :mod:`v2020_11_01_preview.models<azure.mgmt.containerregistry.v2020_11_01_preview.models>`
109114
* 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.containerregistry.v2021_06_01_preview.models>`
110115
* 2021-08-01-preview: :mod:`v2021_08_01_preview.models<azure.mgmt.containerregistry.v2021_08_01_preview.models>`
116+
* 2021-09-01: :mod:`v2021_09_01.models<azure.mgmt.containerregistry.v2021_09_01.models>`
111117
"""
112118
if api_version == '2017-03-01':
113119
from .v2017_03_01 import models
@@ -145,6 +151,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
145151
elif api_version == '2021-08-01-preview':
146152
from .v2021_08_01_preview import models
147153
return models
154+
elif api_version == '2021-09-01':
155+
from .v2021_09_01 import models
156+
return models
148157
raise ValueError("API version {} is not available".format(api_version))
149158

150159
@property
@@ -273,6 +282,7 @@ def operations(self):
273282
* 2020-11-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.Operations>`
274283
* 2021-06-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.Operations>`
275284
* 2021-08-01-preview: :class:`Operations<azure.mgmt.containerregistry.v2021_08_01_preview.operations.Operations>`
285+
* 2021-09-01: :class:`Operations<azure.mgmt.containerregistry.v2021_09_01.operations.Operations>`
276286
"""
277287
api_version = self._get_api_version('operations')
278288
if api_version == '2017-03-01':
@@ -289,6 +299,8 @@ def operations(self):
289299
from .v2021_06_01_preview.operations import Operations as OperationClass
290300
elif api_version == '2021-08-01-preview':
291301
from .v2021_08_01_preview.operations import Operations as OperationClass
302+
elif api_version == '2021-09-01':
303+
from .v2021_09_01.operations import Operations as OperationClass
292304
else:
293305
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
294306
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -323,6 +335,7 @@ def private_endpoint_connections(self):
323335
* 2020-11-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.PrivateEndpointConnectionsOperations>`
324336
* 2021-06-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.PrivateEndpointConnectionsOperations>`
325337
* 2021-08-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2021_08_01_preview.operations.PrivateEndpointConnectionsOperations>`
338+
* 2021-09-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerregistry.v2021_09_01.operations.PrivateEndpointConnectionsOperations>`
326339
"""
327340
api_version = self._get_api_version('private_endpoint_connections')
328341
if api_version == '2019-12-01-preview':
@@ -333,6 +346,8 @@ def private_endpoint_connections(self):
333346
from .v2021_06_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
334347
elif api_version == '2021-08-01-preview':
335348
from .v2021_08_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
349+
elif api_version == '2021-09-01':
350+
from .v2021_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass
336351
else:
337352
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
338353
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -353,6 +368,7 @@ def registries(self):
353368
* 2020-11-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.RegistriesOperations>`
354369
* 2021-06-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.RegistriesOperations>`
355370
* 2021-08-01-preview: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2021_08_01_preview.operations.RegistriesOperations>`
371+
* 2021-09-01: :class:`RegistriesOperations<azure.mgmt.containerregistry.v2021_09_01.operations.RegistriesOperations>`
356372
"""
357373
api_version = self._get_api_version('registries')
358374
if api_version == '2017-03-01':
@@ -379,6 +395,8 @@ def registries(self):
379395
from .v2021_06_01_preview.operations import RegistriesOperations as OperationClass
380396
elif api_version == '2021-08-01-preview':
381397
from .v2021_08_01_preview.operations import RegistriesOperations as OperationClass
398+
elif api_version == '2021-09-01':
399+
from .v2021_09_01.operations import RegistriesOperations as OperationClass
382400
else:
383401
raise ValueError("API version {} does not have operation group 'registries'".format(api_version))
384402
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -393,6 +411,7 @@ def replications(self):
393411
* 2020-11-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.ReplicationsOperations>`
394412
* 2021-06-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.ReplicationsOperations>`
395413
* 2021-08-01-preview: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2021_08_01_preview.operations.ReplicationsOperations>`
414+
* 2021-09-01: :class:`ReplicationsOperations<azure.mgmt.containerregistry.v2021_09_01.operations.ReplicationsOperations>`
396415
"""
397416
api_version = self._get_api_version('replications')
398417
if api_version == '2017-10-01':
@@ -407,6 +426,8 @@ def replications(self):
407426
from .v2021_06_01_preview.operations import ReplicationsOperations as OperationClass
408427
elif api_version == '2021-08-01-preview':
409428
from .v2021_08_01_preview.operations import ReplicationsOperations as OperationClass
429+
elif api_version == '2021-09-01':
430+
from .v2021_09_01.operations import ReplicationsOperations as OperationClass
410431
else:
411432
raise ValueError("API version {} does not have operation group 'replications'".format(api_version))
412433
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -516,6 +537,7 @@ def webhooks(self):
516537
* 2020-11-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2020_11_01_preview.operations.WebhooksOperations>`
517538
* 2021-06-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2021_06_01_preview.operations.WebhooksOperations>`
518539
* 2021-08-01-preview: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2021_08_01_preview.operations.WebhooksOperations>`
540+
* 2021-09-01: :class:`WebhooksOperations<azure.mgmt.containerregistry.v2021_09_01.operations.WebhooksOperations>`
519541
"""
520542
api_version = self._get_api_version('webhooks')
521543
if api_version == '2017-10-01':
@@ -530,6 +552,8 @@ def webhooks(self):
530552
from .v2021_06_01_preview.operations import WebhooksOperations as OperationClass
531553
elif api_version == '2021-08-01-preview':
532554
from .v2021_08_01_preview.operations import WebhooksOperations as OperationClass
555+
elif api_version == '2021-09-01':
556+
from .v2021_09_01.operations import WebhooksOperations as OperationClass
533557
else:
534558
raise ValueError("API version {} does not have operation group 'webhooks'".format(api_version))
535559
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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 = "8.2.0"
12+
VERSION = "9.0.0"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
15-
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
15+
from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
1616

1717
from .._version import VERSION
1818

@@ -64,4 +64,4 @@ def _configure(
6464
self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
6565
self.authentication_policy = kwargs.get('authentication_policy')
6666
if self.credential and not self.authentication_policy:
67-
self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
67+
self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)