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

[ReleasePR azure-mgmt-containerservice] Revert "allow disabling of runcommand (#15092)" #15309

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import ContainerServiceClientConfiguration
from ._container_service_client import ContainerServiceClient
__all__ = ['ContainerServiceClient', 'ContainerServiceClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class ContainerServiceClientConfiguration(AzureConfiguration):
"""Configuration for ContainerServiceClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(ContainerServiceClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import ContainerServiceClientConfiguration
from .operations import Operations
from .operations import ManagedClustersOperations
from .operations import AgentPoolsOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import ResolvePrivateLinkServiceIdOperations
from . import models


class ContainerServiceClient(SDKClient):
"""The Container Service Client.

:ivar config: Configuration for client.
:vartype config: ContainerServiceClientConfiguration

:ivar operations: Operations operations
:vartype operations: azure.mgmt.containerservice.v2020_11_01.operations.Operations
:ivar managed_clusters: ManagedClusters operations
:vartype managed_clusters: azure.mgmt.containerservice.v2020_11_01.operations.ManagedClustersOperations
:ivar agent_pools: AgentPools operations
:vartype agent_pools: azure.mgmt.containerservice.v2020_11_01.operations.AgentPoolsOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.containerservice.v2020_11_01.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.containerservice.v2020_11_01.operations.PrivateLinkResourcesOperations
:ivar resolve_private_link_service_id: ResolvePrivateLinkServiceId operations
:vartype resolve_private_link_service_id: azure.mgmt.containerservice.v2020_11_01.operations.ResolvePrivateLinkServiceIdOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url)
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 = '2020-11-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

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)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.resolve_private_link_service_id = ResolvePrivateLinkServiceIdOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

try:
from ._models_py3 import AgentPool
from ._models_py3 import AgentPoolAvailableVersions
from ._models_py3 import AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem
from ._models_py3 import AgentPoolUpgradeProfile
from ._models_py3 import AgentPoolUpgradeProfilePropertiesUpgradesItem
from ._models_py3 import AgentPoolUpgradeSettings
from ._models_py3 import ContainerServiceDiagnosticsProfile
from ._models_py3 import ContainerServiceLinuxProfile
from ._models_py3 import ContainerServiceMasterProfile
from ._models_py3 import ContainerServiceNetworkProfile
from ._models_py3 import ContainerServiceSshConfiguration
from ._models_py3 import ContainerServiceSshPublicKey
from ._models_py3 import ContainerServiceVMDiagnostics
from ._models_py3 import CredentialResult
from ._models_py3 import CredentialResults
from ._models_py3 import KubeletConfig
from ._models_py3 import LinuxOSConfig
from ._models_py3 import ManagedCluster
from ._models_py3 import ManagedClusterAADProfile
from ._models_py3 import ManagedClusterAccessProfile
from ._models_py3 import ManagedClusterAddonProfile
from ._models_py3 import ManagedClusterAddonProfileIdentity
from ._models_py3 import ManagedClusterAgentPoolProfile
from ._models_py3 import ManagedClusterAgentPoolProfileProperties
from ._models_py3 import ManagedClusterAPIServerAccessProfile
from ._models_py3 import ManagedClusterAutoUpgradeProfile
from ._models_py3 import ManagedClusterIdentity
from ._models_py3 import ManagedClusterIdentityUserAssignedIdentitiesValue
from ._models_py3 import ManagedClusterLoadBalancerProfile
from ._models_py3 import ManagedClusterLoadBalancerProfileManagedOutboundIPs
from ._models_py3 import ManagedClusterLoadBalancerProfileOutboundIPPrefixes
from ._models_py3 import ManagedClusterLoadBalancerProfileOutboundIPs
from ._models_py3 import ManagedClusterPodIdentity
from ._models_py3 import ManagedClusterPodIdentityException
from ._models_py3 import ManagedClusterPodIdentityProfile
from ._models_py3 import ManagedClusterPodIdentityProvisioningInfo
from ._models_py3 import ManagedClusterPoolUpgradeProfile
from ._models_py3 import ManagedClusterPoolUpgradeProfileUpgradesItem
from ._models_py3 import ManagedClusterPropertiesAutoScalerProfile
from ._models_py3 import ManagedClusterPropertiesIdentityProfileValue
from ._models_py3 import ManagedClusterServicePrincipalProfile
from ._models_py3 import ManagedClusterSKU
from ._models_py3 import ManagedClusterUpgradeProfile
from ._models_py3 import ManagedClusterWindowsProfile
from ._models_py3 import OperationValue
from ._models_py3 import PowerState
from ._models_py3 import PrivateEndpoint
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateEndpointConnectionListResult
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkResourcesListResult
from ._models_py3 import PrivateLinkServiceConnectionState
from ._models_py3 import Resource
from ._models_py3 import ResourceReference
from ._models_py3 import SubResource
from ._models_py3 import SysctlConfig
from ._models_py3 import TagsObject
from ._models_py3 import UserAssignedIdentity
except (SyntaxError, ImportError):
from ._models import AgentPool
from ._models import AgentPoolAvailableVersions
from ._models import AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem
from ._models import AgentPoolUpgradeProfile
from ._models import AgentPoolUpgradeProfilePropertiesUpgradesItem
from ._models import AgentPoolUpgradeSettings
from ._models import ContainerServiceDiagnosticsProfile
from ._models import ContainerServiceLinuxProfile
from ._models import ContainerServiceMasterProfile
from ._models import ContainerServiceNetworkProfile
from ._models import ContainerServiceSshConfiguration
from ._models import ContainerServiceSshPublicKey
from ._models import ContainerServiceVMDiagnostics
from ._models import CredentialResult
from ._models import CredentialResults
from ._models import KubeletConfig
from ._models import LinuxOSConfig
from ._models import ManagedCluster
from ._models import ManagedClusterAADProfile
from ._models import ManagedClusterAccessProfile
from ._models import ManagedClusterAddonProfile
from ._models import ManagedClusterAddonProfileIdentity
from ._models import ManagedClusterAgentPoolProfile
from ._models import ManagedClusterAgentPoolProfileProperties
from ._models import ManagedClusterAPIServerAccessProfile
from ._models import ManagedClusterAutoUpgradeProfile
from ._models import ManagedClusterIdentity
from ._models import ManagedClusterIdentityUserAssignedIdentitiesValue
from ._models import ManagedClusterLoadBalancerProfile
from ._models import ManagedClusterLoadBalancerProfileManagedOutboundIPs
from ._models import ManagedClusterLoadBalancerProfileOutboundIPPrefixes
from ._models import ManagedClusterLoadBalancerProfileOutboundIPs
from ._models import ManagedClusterPodIdentity
from ._models import ManagedClusterPodIdentityException
from ._models import ManagedClusterPodIdentityProfile
from ._models import ManagedClusterPodIdentityProvisioningInfo
from ._models import ManagedClusterPoolUpgradeProfile
from ._models import ManagedClusterPoolUpgradeProfileUpgradesItem
from ._models import ManagedClusterPropertiesAutoScalerProfile
from ._models import ManagedClusterPropertiesIdentityProfileValue
from ._models import ManagedClusterServicePrincipalProfile
from ._models import ManagedClusterSKU
from ._models import ManagedClusterUpgradeProfile
from ._models import ManagedClusterWindowsProfile
from ._models import OperationValue
from ._models import PowerState
from ._models import PrivateEndpoint
from ._models import PrivateEndpointConnection
from ._models import PrivateEndpointConnectionListResult
from ._models import PrivateLinkResource
from ._models import PrivateLinkResourcesListResult
from ._models import PrivateLinkServiceConnectionState
from ._models import Resource
from ._models import ResourceReference
from ._models import SubResource
from ._models import SysctlConfig
from ._models import TagsObject
from ._models import UserAssignedIdentity
from ._paged_models import AgentPoolPaged
from ._paged_models import ManagedClusterPaged
from ._paged_models import OperationValuePaged
from ._container_service_client_enums import (
ContainerServiceStorageProfileTypes,
ContainerServiceVMSizeTypes,
OSDiskType,
OSType,
AgentPoolType,
AgentPoolMode,
Code,
ScaleSetPriority,
ScaleSetEvictionPolicy,
LicenseType,
NetworkPlugin,
NetworkPolicy,
NetworkMode,
OutboundType,
LoadBalancerSku,
ManagedClusterPodIdentityProvisioningState,
UpgradeChannel,
Expander,
ResourceIdentityType,
ManagedClusterSKUName,
ManagedClusterSKUTier,
PrivateEndpointConnectionProvisioningState,
ConnectionStatus,
)

__all__ = [
'AgentPool',
'AgentPoolAvailableVersions',
'AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem',
'AgentPoolUpgradeProfile',
'AgentPoolUpgradeProfilePropertiesUpgradesItem',
'AgentPoolUpgradeSettings',
'ContainerServiceDiagnosticsProfile',
'ContainerServiceLinuxProfile',
'ContainerServiceMasterProfile',
'ContainerServiceNetworkProfile',
'ContainerServiceSshConfiguration',
'ContainerServiceSshPublicKey',
'ContainerServiceVMDiagnostics',
'CredentialResult',
'CredentialResults',
'KubeletConfig',
'LinuxOSConfig',
'ManagedCluster',
'ManagedClusterAADProfile',
'ManagedClusterAccessProfile',
'ManagedClusterAddonProfile',
'ManagedClusterAddonProfileIdentity',
'ManagedClusterAgentPoolProfile',
'ManagedClusterAgentPoolProfileProperties',
'ManagedClusterAPIServerAccessProfile',
'ManagedClusterAutoUpgradeProfile',
'ManagedClusterIdentity',
'ManagedClusterIdentityUserAssignedIdentitiesValue',
'ManagedClusterLoadBalancerProfile',
'ManagedClusterLoadBalancerProfileManagedOutboundIPs',
'ManagedClusterLoadBalancerProfileOutboundIPPrefixes',
'ManagedClusterLoadBalancerProfileOutboundIPs',
'ManagedClusterPodIdentity',
'ManagedClusterPodIdentityException',
'ManagedClusterPodIdentityProfile',
'ManagedClusterPodIdentityProvisioningInfo',
'ManagedClusterPoolUpgradeProfile',
'ManagedClusterPoolUpgradeProfileUpgradesItem',
'ManagedClusterPropertiesAutoScalerProfile',
'ManagedClusterPropertiesIdentityProfileValue',
'ManagedClusterServicePrincipalProfile',
'ManagedClusterSKU',
'ManagedClusterUpgradeProfile',
'ManagedClusterWindowsProfile',
'OperationValue',
'PowerState',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateEndpointConnectionListResult',
'PrivateLinkResource',
'PrivateLinkResourcesListResult',
'PrivateLinkServiceConnectionState',
'Resource',
'ResourceReference',
'SubResource',
'SysctlConfig',
'TagsObject',
'UserAssignedIdentity',
'OperationValuePaged',
'ManagedClusterPaged',
'AgentPoolPaged',
'ContainerServiceStorageProfileTypes',
'ContainerServiceVMSizeTypes',
'OSDiskType',
'OSType',
'AgentPoolType',
'AgentPoolMode',
'Code',
'ScaleSetPriority',
'ScaleSetEvictionPolicy',
'LicenseType',
'NetworkPlugin',
'NetworkPolicy',
'NetworkMode',
'OutboundType',
'LoadBalancerSku',
'ManagedClusterPodIdentityProvisioningState',
'UpgradeChannel',
'Expander',
'ResourceIdentityType',
'ManagedClusterSKUName',
'ManagedClusterSKUTier',
'PrivateEndpointConnectionProvisioningState',
'ConnectionStatus',
]
Loading