Skip to content

Commit 3103a2a

Browse files
author
SDKAuto
committed
CodeGen from PR 18108 in Azure/azure-rest-api-specs
Merge 30f5c579e03201e49c650d7656be02df478518ba into 2b7c4aadd9d7878157c3adc97fd6206fa67bea68
1 parent 24e50a0 commit 3103a2a

Some content is hidden

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

41 files changed

+6228
-10140
lines changed
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/modelerfour@4.19.2"
4+
"@autorest/python@5.12.0",
5+
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "cea6492a1e41b3f3b4f8b4f69bdcc10431e79c0e",
7+
"commit": "59ca37e649de21cdb65668d25eb8f1602b7a3f79",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/edgeorder/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/modelerfour@4.19.2 --version=3.4.5",
9+
"autorest_command": "autorest specification/edgeorder/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/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/edgeorder/resource-manager/readme.md"
1111
}

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_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/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_edge_order_management_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from typing import Any, Optional
2525

2626
from azure.core.credentials import TokenCredential
27-
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2827

2928
class _SDKClient(object):
3029
def __init__(self, *args, **kwargs):
@@ -71,12 +70,10 @@ def __init__(
7170
credential, # type: "TokenCredential"
7271
subscription_id, # type: str
7372
api_version=None, # type: Optional[str]
74-
base_url=None, # type: Optional[str]
73+
base_url="https://management.azure.com", # type: str
7574
profile=KnownProfiles.default, # type: KnownProfiles
7675
**kwargs # type: Any
7776
):
78-
if not base_url:
79-
base_url = 'https://management.azure.com'
8077
self._config = EdgeOrderManagementClientConfiguration(credential, subscription_id, **kwargs)
8178
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8279
super(EdgeOrderManagementClient, self).__init__(

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/_operations_mixin.py

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

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/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/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/aio/_edge_order_management_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
@@ -22,6 +21,7 @@
2221

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

2727
class _SDKClient(object):
@@ -69,12 +69,10 @@ def __init__(
6969
credential: "AsyncTokenCredential",
7070
subscription_id: str,
7171
api_version: Optional[str] = None,
72-
base_url: Optional[str] = None,
72+
base_url: str = "https://management.azure.com",
7373
profile: KnownProfiles = KnownProfiles.default,
7474
**kwargs # type: Any
7575
) -> None:
76-
if not base_url:
77-
base_url = 'https://management.azure.com'
7876
self._config = EdgeOrderManagementClientConfiguration(credential, subscription_id, **kwargs)
7977
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8078
super(EdgeOrderManagementClient, self).__init__(

0 commit comments

Comments
 (0)