Skip to content

Commit c3e69a8

Browse files
author
SDKAuto
committed
CodeGen from PR 17640 in Azure/azure-rest-api-specs
Merge 35ff8e7a94f12620d331bdfdbe5f10b53f9bf049 into abb4153
1 parent e7e4764 commit c3e69a8

File tree

679 files changed

+116308
-124657
lines changed

Some content is hidden

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

679 files changed

+116308
-124657
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": "b6b834584cb58a3c2cbe887570fa0942b397dfc7",
7+
"commit": "32c2bdc19e59cf70dd4246a975139baa7f50f08d",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/containerservice/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/containerservice/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/containerservice/resource-manager/readme.md"
1111
}

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_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/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/_container_service_client.py

Lines changed: 29 additions & 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):
@@ -72,12 +71,10 @@ def __init__(
7271
credential, # type: "TokenCredential"
7372
subscription_id, # type: str
7473
api_version=None, # type: Optional[str]
75-
base_url=None, # type: Optional[str]
74+
base_url="https://management.azure.com", # type: str
7675
profile=KnownProfiles.default, # type: KnownProfiles
7776
**kwargs # type: Any
7877
):
79-
if not base_url:
80-
base_url = 'https://management.azure.com'
8178
self._config = ContainerServiceClientConfiguration(credential, subscription_id, **kwargs)
8279
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8380
super(ContainerServiceClient, self).__init__(
@@ -122,6 +119,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
122119
* 2021-08-01: :mod:`v2021_08_01.models<azure.mgmt.containerservice.v2021_08_01.models>`
123120
* 2021-09-01: :mod:`v2021_09_01.models<azure.mgmt.containerservice.v2021_09_01.models>`
124121
* 2021-10-01: :mod:`v2021_10_01.models<azure.mgmt.containerservice.v2021_10_01.models>`
122+
* 2021-11-01-preview: :mod:`v2021_11_01_preview.models<azure.mgmt.containerservice.v2021_11_01_preview.models>`
125123
"""
126124
if api_version == '2017-07-01':
127125
from .v2017_07_01 import models
@@ -210,6 +208,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
210208
elif api_version == '2021-10-01':
211209
from .v2021_10_01 import models
212210
return models
211+
elif api_version == '2021-11-01-preview':
212+
from .v2021_11_01_preview import models
213+
return models
213214
raise ValueError("API version {} is not available".format(api_version))
214215

215216
@property
@@ -238,6 +239,7 @@ def agent_pools(self):
238239
* 2021-08-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2021_08_01.operations.AgentPoolsOperations>`
239240
* 2021-09-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2021_09_01.operations.AgentPoolsOperations>`
240241
* 2021-10-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2021_10_01.operations.AgentPoolsOperations>`
242+
* 2021-11-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.AgentPoolsOperations>`
241243
"""
242244
api_version = self._get_api_version('agent_pools')
243245
if api_version == '2019-02-01':
@@ -284,6 +286,8 @@ def agent_pools(self):
284286
from .v2021_09_01.operations import AgentPoolsOperations as OperationClass
285287
elif api_version == '2021-10-01':
286288
from .v2021_10_01.operations import AgentPoolsOperations as OperationClass
289+
elif api_version == '2021-11-01-preview':
290+
from .v2021_11_01_preview.operations import AgentPoolsOperations as OperationClass
287291
else:
288292
raise ValueError("API version {} does not have operation group 'agent_pools'".format(api_version))
289293
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -313,6 +317,7 @@ def maintenance_configurations(self):
313317
* 2021-08-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2021_08_01.operations.MaintenanceConfigurationsOperations>`
314318
* 2021-09-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2021_09_01.operations.MaintenanceConfigurationsOperations>`
315319
* 2021-10-01: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2021_10_01.operations.MaintenanceConfigurationsOperations>`
320+
* 2021-11-01-preview: :class:`MaintenanceConfigurationsOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.MaintenanceConfigurationsOperations>`
316321
"""
317322
api_version = self._get_api_version('maintenance_configurations')
318323
if api_version == '2020-12-01':
@@ -331,6 +336,8 @@ def maintenance_configurations(self):
331336
from .v2021_09_01.operations import MaintenanceConfigurationsOperations as OperationClass
332337
elif api_version == '2021-10-01':
333338
from .v2021_10_01.operations import MaintenanceConfigurationsOperations as OperationClass
339+
elif api_version == '2021-11-01-preview':
340+
from .v2021_11_01_preview.operations import MaintenanceConfigurationsOperations as OperationClass
334341
else:
335342
raise ValueError("API version {} does not have operation group 'maintenance_configurations'".format(api_version))
336343
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -363,6 +370,7 @@ def managed_clusters(self):
363370
* 2021-08-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2021_08_01.operations.ManagedClustersOperations>`
364371
* 2021-09-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2021_09_01.operations.ManagedClustersOperations>`
365372
* 2021-10-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2021_10_01.operations.ManagedClustersOperations>`
373+
* 2021-11-01-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.ManagedClustersOperations>`
366374
"""
367375
api_version = self._get_api_version('managed_clusters')
368376
if api_version == '2018-03-31':
@@ -413,6 +421,8 @@ def managed_clusters(self):
413421
from .v2021_09_01.operations import ManagedClustersOperations as OperationClass
414422
elif api_version == '2021-10-01':
415423
from .v2021_10_01.operations import ManagedClustersOperations as OperationClass
424+
elif api_version == '2021-11-01-preview':
425+
from .v2021_11_01_preview.operations import ManagedClustersOperations as OperationClass
416426
else:
417427
raise ValueError("API version {} does not have operation group 'managed_clusters'".format(api_version))
418428
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -467,6 +477,7 @@ def operations(self):
467477
* 2021-08-01: :class:`Operations<azure.mgmt.containerservice.v2021_08_01.operations.Operations>`
468478
* 2021-09-01: :class:`Operations<azure.mgmt.containerservice.v2021_09_01.operations.Operations>`
469479
* 2021-10-01: :class:`Operations<azure.mgmt.containerservice.v2021_10_01.operations.Operations>`
480+
* 2021-11-01-preview: :class:`Operations<azure.mgmt.containerservice.v2021_11_01_preview.operations.Operations>`
470481
"""
471482
api_version = self._get_api_version('operations')
472483
if api_version == '2018-03-31':
@@ -517,6 +528,8 @@ def operations(self):
517528
from .v2021_09_01.operations import Operations as OperationClass
518529
elif api_version == '2021-10-01':
519530
from .v2021_10_01.operations import Operations as OperationClass
531+
elif api_version == '2021-11-01-preview':
532+
from .v2021_11_01_preview.operations import Operations as OperationClass
520533
else:
521534
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
522535
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -537,6 +550,7 @@ def private_endpoint_connections(self):
537550
* 2021-08-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2021_08_01.operations.PrivateEndpointConnectionsOperations>`
538551
* 2021-09-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2021_09_01.operations.PrivateEndpointConnectionsOperations>`
539552
* 2021-10-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2021_10_01.operations.PrivateEndpointConnectionsOperations>`
553+
* 2021-11-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.PrivateEndpointConnectionsOperations>`
540554
"""
541555
api_version = self._get_api_version('private_endpoint_connections')
542556
if api_version == '2020-06-01':
@@ -563,6 +577,8 @@ def private_endpoint_connections(self):
563577
from .v2021_09_01.operations import PrivateEndpointConnectionsOperations as OperationClass
564578
elif api_version == '2021-10-01':
565579
from .v2021_10_01.operations import PrivateEndpointConnectionsOperations as OperationClass
580+
elif api_version == '2021-11-01-preview':
581+
from .v2021_11_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
566582
else:
567583
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
568584
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -581,6 +597,7 @@ def private_link_resources(self):
581597
* 2021-08-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2021_08_01.operations.PrivateLinkResourcesOperations>`
582598
* 2021-09-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2021_09_01.operations.PrivateLinkResourcesOperations>`
583599
* 2021-10-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2021_10_01.operations.PrivateLinkResourcesOperations>`
600+
* 2021-11-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.PrivateLinkResourcesOperations>`
584601
"""
585602
api_version = self._get_api_version('private_link_resources')
586603
if api_version == '2020-09-01':
@@ -603,6 +620,8 @@ def private_link_resources(self):
603620
from .v2021_09_01.operations import PrivateLinkResourcesOperations as OperationClass
604621
elif api_version == '2021-10-01':
605622
from .v2021_10_01.operations import PrivateLinkResourcesOperations as OperationClass
623+
elif api_version == '2021-11-01-preview':
624+
from .v2021_11_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
606625
else:
607626
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
608627
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -621,6 +640,7 @@ def resolve_private_link_service_id(self):
621640
* 2021-08-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2021_08_01.operations.ResolvePrivateLinkServiceIdOperations>`
622641
* 2021-09-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2021_09_01.operations.ResolvePrivateLinkServiceIdOperations>`
623642
* 2021-10-01: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2021_10_01.operations.ResolvePrivateLinkServiceIdOperations>`
643+
* 2021-11-01-preview: :class:`ResolvePrivateLinkServiceIdOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.ResolvePrivateLinkServiceIdOperations>`
624644
"""
625645
api_version = self._get_api_version('resolve_private_link_service_id')
626646
if api_version == '2020-09-01':
@@ -643,6 +663,8 @@ def resolve_private_link_service_id(self):
643663
from .v2021_09_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
644664
elif api_version == '2021-10-01':
645665
from .v2021_10_01.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
666+
elif api_version == '2021-11-01-preview':
667+
from .v2021_11_01_preview.operations import ResolvePrivateLinkServiceIdOperations as OperationClass
646668
else:
647669
raise ValueError("API version {} does not have operation group 'resolve_private_link_service_id'".format(api_version))
648670
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -654,6 +676,7 @@ def snapshots(self):
654676
* 2021-08-01: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2021_08_01.operations.SnapshotsOperations>`
655677
* 2021-09-01: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2021_09_01.operations.SnapshotsOperations>`
656678
* 2021-10-01: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2021_10_01.operations.SnapshotsOperations>`
679+
* 2021-11-01-preview: :class:`SnapshotsOperations<azure.mgmt.containerservice.v2021_11_01_preview.operations.SnapshotsOperations>`
657680
"""
658681
api_version = self._get_api_version('snapshots')
659682
if api_version == '2021-08-01':
@@ -662,6 +685,8 @@ def snapshots(self):
662685
from .v2021_09_01.operations import SnapshotsOperations as OperationClass
663686
elif api_version == '2021-10-01':
664687
from .v2021_10_01.operations import SnapshotsOperations as OperationClass
688+
elif api_version == '2021-11-01-preview':
689+
from .v2021_11_01_preview.operations import SnapshotsOperations as OperationClass
665690
else:
666691
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
667692
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/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)