Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] containerservice/resource-manager #5009

Merged
merged 7 commits into from
May 3, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,13 @@ def agent_pools(self):
"""Instance depends on the API version:

* 2019-02-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2019_02_01.operations.AgentPoolsOperations>`
* 2019-04-30: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2019_04_30.operations.AgentPoolsOperations>`
"""
api_version = self._get_api_version('agent_pools')
if api_version == '2019-02-01':
from .v2019_02_01.operations import AgentPoolsOperations as OperationClass
elif api_version == '2019-04-30':
from .v2019_04_30.operations import AgentPoolsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -162,6 +165,7 @@ def managed_clusters(self):
* 2018-03-31: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2018_03_31.operations.ManagedClustersOperations>`
* 2018-08-01-preview: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2018_08_01_preview.operations.ManagedClustersOperations>`
* 2019-02-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2019_02_01.operations.ManagedClustersOperations>`
* 2019-04-30: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2019_04_30.operations.ManagedClustersOperations>`
"""
api_version = self._get_api_version('managed_clusters')
if api_version == '2018-03-31':
Expand All @@ -170,6 +174,8 @@ def managed_clusters(self):
from .v2018_08_01_preview.operations import ManagedClustersOperations as OperationClass
elif api_version == '2019-02-01':
from .v2019_02_01.operations import ManagedClustersOperations as OperationClass
elif api_version == '2019-04-30':
from .v2019_04_30.operations import ManagedClustersOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -197,6 +203,7 @@ def operations(self):
* 2018-03-31: :class:`Operations<azure.mgmt.containerservice.v2018_03_31.operations.Operations>`
* 2018-08-01-preview: :class:`Operations<azure.mgmt.containerservice.v2018_08_01_preview.operations.Operations>`
* 2019-02-01: :class:`Operations<azure.mgmt.containerservice.v2019_02_01.operations.Operations>`
* 2019-04-30: :class:`Operations<azure.mgmt.containerservice.v2019_04_30.operations.Operations>`
"""
api_version = self._get_api_version('operations')
if api_version == '2018-03-31':
Expand All @@ -205,6 +212,8 @@ def operations(self):
from .v2018_08_01_preview.operations import Operations as OperationClass
elif api_version == '2019-02-01':
from .v2019_02_01.operations import Operations as OperationClass
elif api_version == '2019-04-30':
from .v2019_04_30.operations import Operations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.open_shift_managed_clusters_operations import OpenShiftManagedClustersOperations
from .operations.operations import Operations
from .operations.managed_clusters_operations import ManagedClustersOperations
from .operations.agent_pools_operations import AgentPoolsOperations
from . import models


Expand Down Expand Up @@ -59,6 +62,12 @@ class ContainerServiceClient(SDKClient):

:ivar open_shift_managed_clusters: OpenShiftManagedClusters operations
:vartype open_shift_managed_clusters: azure.mgmt.containerservice.v2019_04_30.operations.OpenShiftManagedClustersOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.containerservice.v2019_04_30.operations.Operations
:ivar managed_clusters: ManagedClusters operations
:vartype managed_clusters: azure.mgmt.containerservice.v2019_04_30.operations.ManagedClustersOperations
:ivar agent_pools: AgentPools operations
:vartype agent_pools: azure.mgmt.containerservice.v2019_04_30.operations.AgentPoolsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -77,9 +86,14 @@ def __init__(
super(ContainerServiceClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-04-30'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.open_shift_managed_clusters = OpenShiftManagedClustersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_clusters = ManagedClustersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.agent_pools = AgentPoolsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,30 @@
from .open_shift_managed_cluster_py3 import OpenShiftManagedCluster
from .open_shift_managed_cluster_aad_identity_provider_py3 import OpenShiftManagedClusterAADIdentityProvider
from .tags_object_py3 import TagsObject
from .operation_value_py3 import OperationValue
from .sub_resource_py3 import SubResource
from .managed_cluster_service_principal_profile_py3 import ManagedClusterServicePrincipalProfile
from .container_service_master_profile_py3 import ContainerServiceMasterProfile
from .managed_cluster_agent_pool_profile_properties_py3 import ManagedClusterAgentPoolProfileProperties
from .managed_cluster_agent_pool_profile_py3 import ManagedClusterAgentPoolProfile
from .agent_pool_py3 import AgentPool
from .managed_cluster_windows_profile_py3 import ManagedClusterWindowsProfile
from .container_service_ssh_public_key_py3 import ContainerServiceSshPublicKey
from .container_service_ssh_configuration_py3 import ContainerServiceSshConfiguration
from .container_service_linux_profile_py3 import ContainerServiceLinuxProfile
from .container_service_network_profile_py3 import ContainerServiceNetworkProfile
from .container_service_vm_diagnostics_py3 import ContainerServiceVMDiagnostics
from .container_service_diagnostics_profile_py3 import ContainerServiceDiagnosticsProfile
from .managed_cluster_addon_profile_py3 import ManagedClusterAddonProfile
from .managed_cluster_aad_profile_py3 import ManagedClusterAADProfile
from .managed_cluster_identity_py3 import ManagedClusterIdentity
from .managed_cluster_py3 import ManagedCluster
from .managed_cluster_access_profile_py3 import ManagedClusterAccessProfile
from .managed_cluster_pool_upgrade_profile_upgrades_item_py3 import ManagedClusterPoolUpgradeProfileUpgradesItem
from .managed_cluster_pool_upgrade_profile_py3 import ManagedClusterPoolUpgradeProfile
from .managed_cluster_upgrade_profile_py3 import ManagedClusterUpgradeProfile
from .credential_result_py3 import CredentialResult
from .credential_results_py3 import CredentialResults
except (SyntaxError, ImportError):
from .resource import Resource
from .purchase_plan import PurchasePlan
Expand All @@ -35,11 +59,45 @@
from .open_shift_managed_cluster import OpenShiftManagedCluster
from .open_shift_managed_cluster_aad_identity_provider import OpenShiftManagedClusterAADIdentityProvider
from .tags_object import TagsObject
from .operation_value import OperationValue
from .sub_resource import SubResource
from .managed_cluster_service_principal_profile import ManagedClusterServicePrincipalProfile
from .container_service_master_profile import ContainerServiceMasterProfile
from .managed_cluster_agent_pool_profile_properties import ManagedClusterAgentPoolProfileProperties
from .managed_cluster_agent_pool_profile import ManagedClusterAgentPoolProfile
from .agent_pool import AgentPool
from .managed_cluster_windows_profile import ManagedClusterWindowsProfile
from .container_service_ssh_public_key import ContainerServiceSshPublicKey
from .container_service_ssh_configuration import ContainerServiceSshConfiguration
from .container_service_linux_profile import ContainerServiceLinuxProfile
from .container_service_network_profile import ContainerServiceNetworkProfile
from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics
from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile
from .managed_cluster_addon_profile import ManagedClusterAddonProfile
from .managed_cluster_aad_profile import ManagedClusterAADProfile
from .managed_cluster_identity import ManagedClusterIdentity
from .managed_cluster import ManagedCluster
from .managed_cluster_access_profile import ManagedClusterAccessProfile
from .managed_cluster_pool_upgrade_profile_upgrades_item import ManagedClusterPoolUpgradeProfileUpgradesItem
from .managed_cluster_pool_upgrade_profile import ManagedClusterPoolUpgradeProfile
from .managed_cluster_upgrade_profile import ManagedClusterUpgradeProfile
from .credential_result import CredentialResult
from .credential_results import CredentialResults
from .open_shift_managed_cluster_paged import OpenShiftManagedClusterPaged
from .operation_value_paged import OperationValuePaged
from .managed_cluster_paged import ManagedClusterPaged
from .agent_pool_paged import AgentPoolPaged
from .container_service_client_enums import (
OSType,
OpenShiftContainerServiceVMSize,
OpenShiftAgentPoolProfileRole,
ContainerServiceStorageProfileTypes,
ContainerServiceVMSizeTypes,
AgentPoolType,
NetworkPlugin,
NetworkPolicy,
LoadBalancerSku,
ResourceIdentityType,
)

__all__ = [
Expand All @@ -55,8 +113,42 @@
'OpenShiftManagedCluster',
'OpenShiftManagedClusterAADIdentityProvider',
'TagsObject',
'OperationValue',
'SubResource',
'ManagedClusterServicePrincipalProfile',
'ContainerServiceMasterProfile',
'ManagedClusterAgentPoolProfileProperties',
'ManagedClusterAgentPoolProfile',
'AgentPool',
'ManagedClusterWindowsProfile',
'ContainerServiceSshPublicKey',
'ContainerServiceSshConfiguration',
'ContainerServiceLinuxProfile',
'ContainerServiceNetworkProfile',
'ContainerServiceVMDiagnostics',
'ContainerServiceDiagnosticsProfile',
'ManagedClusterAddonProfile',
'ManagedClusterAADProfile',
'ManagedClusterIdentity',
'ManagedCluster',
'ManagedClusterAccessProfile',
'ManagedClusterPoolUpgradeProfileUpgradesItem',
'ManagedClusterPoolUpgradeProfile',
'ManagedClusterUpgradeProfile',
'CredentialResult',
'CredentialResults',
'OpenShiftManagedClusterPaged',
'OperationValuePaged',
'ManagedClusterPaged',
'AgentPoolPaged',
'OSType',
'OpenShiftContainerServiceVMSize',
'OpenShiftAgentPoolProfileRole',
'ContainerServiceStorageProfileTypes',
'ContainerServiceVMSizeTypes',
'AgentPoolType',
'NetworkPlugin',
'NetworkPolicy',
'LoadBalancerSku',
'ResourceIdentityType',
]
Loading