Skip to content

Commit 830ccf6

Browse files
azclibotSDKAutomsyycBigCat20196
authored
[AutoRelease] t2-resource-2022-01-25-80078 (Azure#22748)
* CodeGen from PR 17469 in Azure/azure-rest-api-specs config readme and python (Azure#17469) * config readme and python * config python * version,CHANGELOG * skip test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: BigCat20196 <[email protected]>
1 parent 8d5fbf2 commit 830ccf6

File tree

1,074 files changed

+151205
-149651
lines changed

Some content is hidden

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

1,074 files changed

+151205
-149651
lines changed

sdk/eventgrid/azure-mgmt-eventgrid/tests/recordings/test_domain.pyTestMgmtEventGridtest_domain.json

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

sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_mgmt_loganalytics.pyTestMgmtLogAnalyticstest_loganalytics_operations.json

Lines changed: 40 additions & 7268 deletions
Large diffs are not rendered by default.

sdk/resources/azure-mgmt-resource/CHANGELOG.md

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

3+
## 20.1.0 (2022-01-25)
4+
5+
**Features**
6+
7+
- Added operation SubscriptionsOperations.check_zone_peers
8+
- Added operation group PrivateLinkAssociationOperations
9+
- Added operation group ResourceManagementPrivateLinkOperations
10+
- Model ProviderResourceType has a new parameter zone_mappings
11+
312
## 20.0.0 (2021-09-03)
413

514
**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": "c52d1e5eb3aae274b1fb7ebe1b16cabe233879e5",
7+
"commit": "f187094411ec2a52c368560154bd8388210b3618",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/resources/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/resources/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/resources/resource-manager/readme.md"
1111
}

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "20.0.0"
8+
VERSION = "20.1.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/_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/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/_deployment_scripts_client.py

Lines changed: 1 addition & 4 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):
@@ -70,12 +69,10 @@ def __init__(
7069
credential, # type: "TokenCredential"
7170
subscription_id, # type: str
7271
api_version=None, # type: Optional[str]
73-
base_url=None, # type: Optional[str]
72+
base_url="https://management.azure.com", # type: str
7473
profile=KnownProfiles.default, # type: KnownProfiles
7574
**kwargs # type: Any
7675
):
77-
if not base_url:
78-
base_url = 'https://management.azure.com'
7976
self._config = DeploymentScriptsClientConfiguration(credential, subscription_id, **kwargs)
8077
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8178
super(DeploymentScriptsClient, self).__init__(

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "20.0.0"
8+
VERSION = "20.1.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/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)

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/aio/_deployment_scripts_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
from typing import Any, Optional, TYPE_CHECKING
1313

14-
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1514
from azure.mgmt.core import AsyncARMPipelineClient
1615
from azure.profiles import KnownProfiles, ProfileDefinition
1716
from azure.profiles.multiapiclient import MultiApiClientMixin
@@ -21,6 +20,7 @@
2120

2221
if TYPE_CHECKING:
2322
# pylint: disable=unused-import,ungrouped-imports
23+
from azure.core.credentials import TokenCredential
2424
from azure.core.credentials_async import AsyncTokenCredential
2525

2626
class _SDKClient(object):
@@ -68,12 +68,10 @@ def __init__(
6868
credential: "AsyncTokenCredential",
6969
subscription_id: str,
7070
api_version: Optional[str] = None,
71-
base_url: Optional[str] = None,
71+
base_url: str = "https://management.azure.com",
7272
profile: KnownProfiles = KnownProfiles.default,
7373
**kwargs # type: Any
7474
) -> None:
75-
if not base_url:
76-
base_url = 'https://management.azure.com'
7775
self._config = DeploymentScriptsClientConfiguration(credential, subscription_id, **kwargs)
7876
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
7977
super(DeploymentScriptsClient, self).__init__(

0 commit comments

Comments
 (0)