Skip to content

Commit 47bde35

Browse files
author
Yalin Li
authored
[ACR] Regenerate package (Azure#21819)
1 parent 94a1e45 commit 47bde35

File tree

105 files changed

+7435
-5695
lines changed

Some content is hidden

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

105 files changed

+7435
-5695
lines changed

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,10 +733,9 @@ def update_repository_properties(self, *args, **kwargs):
733733
properties.can_list = kwargs.pop("can_list", properties.can_list)
734734
properties.can_read = kwargs.pop("can_read", properties.can_read)
735735
properties.can_write = kwargs.pop("can_write", properties.can_write)
736-
properties.teleport_enabled = kwargs.pop("teleport_enabled", None)
737736

738737
return RepositoryProperties._from_generated( # pylint: disable=protected-access
739738
self._client.container_registry.update_properties(
740-
repository, properties._to_generated(), **kwargs # pylint: disable=protected-access
739+
repository, value=properties._to_generated(), **kwargs # pylint: disable=protected-access
741740
)
742741
)

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_exchange_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from azure.core.pipeline.policies import SansIOHTTPPolicy
1010

1111
from ._generated import ContainerRegistry
12+
from ._generated.models import PostContentSchemaGrantType
1213
from ._helpers import _parse_challenge, _parse_exp_time
1314
from ._user_agent import USER_AGENT
1415

@@ -73,7 +74,10 @@ def get_refresh_token(self, service, **kwargs):
7374
def exchange_aad_token_for_refresh_token(self, service=None, **kwargs):
7475
# type: (str, Dict[str, Any]) -> str
7576
refresh_token = self._client.authentication.exchange_aad_access_token_for_acr_refresh_token(
76-
service=service, access_token=self._credential.get_token(*self.credential_scopes).token, **kwargs
77+
grant_type=PostContentSchemaGrantType.ACCESS_TOKEN,
78+
service=service,
79+
access_token=self._credential.get_token(*self.credential_scopes).token,
80+
**kwargs
7781
)
7882
return refresh_token.refresh_token
7983

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -11,7 +11,7 @@
1111

1212
if TYPE_CHECKING:
1313
# pylint: disable=unused-import,ungrouped-imports
14-
from typing import Any
14+
from typing import Any, Optional
1515

1616
VERSION = "unknown"
1717

@@ -23,11 +23,14 @@ class ContainerRegistryConfiguration(Configuration):
2323
2424
:param url: Registry login URL.
2525
:type url: str
26+
:param api_version: Api Version. The default value is "2021-07-01".
27+
:type api_version: str
2628
"""
2729

2830
def __init__(
2931
self,
3032
url, # type: str
33+
api_version="2021-07-01", # type: Optional[str]
3134
**kwargs # type: Any
3235
):
3336
# type: (...) -> None
@@ -36,6 +39,7 @@ def __init__(
3639
raise ValueError("Parameter 'url' must not be None.")
3740

3841
self.url = url
42+
self.api_version = api_version
3943
kwargs.setdefault('sdk_moniker', 'containerregistry/{}'.format(VERSION))
4044
self._configure(**kwargs)
4145

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

@@ -16,7 +16,7 @@
1616

1717
if TYPE_CHECKING:
1818
# pylint: disable=unused-import,ungrouped-imports
19-
from typing import Any
19+
from typing import Any, Optional
2020

2121
from azure.core.rest import HttpRequest, HttpResponse
2222

@@ -31,16 +31,19 @@ class ContainerRegistry(object):
3131
:vartype authentication: container_registry.operations.AuthenticationOperations
3232
:param url: Registry login URL.
3333
:type url: str
34+
:param api_version: Api Version. The default value is "2021-07-01".
35+
:type api_version: str
3436
"""
3537

3638
def __init__(
3739
self,
3840
url, # type: str
41+
api_version="2021-07-01", # type: Optional[str]
3942
**kwargs # type: Any
4043
):
4144
# type: (...) -> None
4245
_base_url = '{url}'
43-
self._config = ContainerRegistryConfiguration(url=url, **kwargs)
46+
self._config = ContainerRegistryConfiguration(url=url, api_version=api_version, **kwargs)
4447
self._client = PipelineClient(base_url=_base_url, config=self._config, **kwargs)
4548

4649
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# --------------------------------------------------------------------------
2-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
2+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
33
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
44
# --------------------------------------------------------------------------
55

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

7-
from typing import Any
7+
from typing import Any, Optional
88

99
from azure.core.configuration import Configuration
1010
from azure.core.pipeline import policies
@@ -19,18 +19,22 @@ class ContainerRegistryConfiguration(Configuration):
1919
2020
:param url: Registry login URL.
2121
:type url: str
22+
:param api_version: Api Version. The default value is "2021-07-01".
23+
:type api_version: str
2224
"""
2325

2426
def __init__(
2527
self,
2628
url: str,
29+
api_version: Optional[str] = "2021-07-01",
2730
**kwargs: Any
2831
) -> None:
2932
super(ContainerRegistryConfiguration, self).__init__(**kwargs)
3033
if url is None:
3134
raise ValueError("Parameter 'url' must not be None.")
3235

3336
self.url = url
37+
self.api_version = api_version
3438
kwargs.setdefault('sdk_moniker', 'containerregistry/{}'.format(VERSION))
3539
self._configure(**kwargs)
3640

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_container_registry.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

77
from copy import deepcopy
8-
from typing import Any, Awaitable
8+
from typing import Any, Awaitable, Optional
99

1010
from azure.core import AsyncPipelineClient
1111
from azure.core.rest import AsyncHttpResponse, HttpRequest
@@ -27,15 +27,18 @@ class ContainerRegistry:
2727
:vartype authentication: container_registry.aio.operations.AuthenticationOperations
2828
:param url: Registry login URL.
2929
:type url: str
30+
:param api_version: Api Version. The default value is "2021-07-01".
31+
:type api_version: str
3032
"""
3133

3234
def __init__(
3335
self,
3436
url: str,
37+
api_version: Optional[str] = "2021-07-01",
3538
**kwargs: Any
3639
) -> None:
3740
_base_url = '{url}'
38-
self._config = ContainerRegistryConfiguration(url=url, **kwargs)
41+
self._config = ContainerRegistryConfiguration(url=url, api_version=api_version, **kwargs)
3942
self._client = AsyncPipelineClient(base_url=_base_url, config=self._config, **kwargs)
4043

4144
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}

sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
3-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].0)
3+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.6.6, generator: @autorest/[email protected].2)
44
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
55
# --------------------------------------------------------------------------
66

0 commit comments

Comments
 (0)