2323 from typing import Any , Optional
2424
2525 from azure .core .credentials import TokenCredential
26- from azure .core .pipeline .transport import HttpRequest , HttpResponse
2726
2827class _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 )))
0 commit comments