Skip to content

Commit 98988d2

Browse files
00Kai0SDKAuto
and
SDKAuto
authored
T1 containerservice 2020 12 30 (#15948)
* CodeGen from PR 12216 in Azure/azure-rest-api-specs Update readme.python.md (#12216) * test,version,CHANGELOG Co-authored-by: SDKAuto <[email protected]>
1 parent e188de6 commit 98988d2

19 files changed

+9951
-1
lines changed

sdk/containerservice/azure-mgmt-containerservice/CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Release History
22

3+
## 11.0.0 (2020-12-30)
4+
5+
**Features**
6+
7+
- Model SysctlConfig has a new parameter net_core_wmem_default
8+
- Model SysctlConfig has a new parameter net_core_rmem_default
9+
- Model AgentPool has a new parameter kubelet_disk_type
10+
- Model AgentPool has a new parameter enable_encryption_at_host
11+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter kubelet_disk_type
12+
- Model ManagedClusterAgentPoolProfileProperties has a new parameter enable_encryption_at_host
13+
- Model ManagedClusterPropertiesAutoScalerProfile has a new parameter max_node_provision_time
14+
- Model KubeletConfig has a new parameter pod_max_pids
15+
- Model KubeletConfig has a new parameter container_log_max_size_mb
16+
- Model KubeletConfig has a new parameter container_log_max_files
17+
- Model ManagedClusterAgentPoolProfile has a new parameter kubelet_disk_type
18+
- Model ManagedClusterAgentPoolProfile has a new parameter enable_encryption_at_host
19+
- Added operation group MaintenanceConfigurationsOperations
20+
21+
**Breaking changes**
22+
23+
- Model SysctlConfig no longer has parameter net_ipv4_tcp_wmem
24+
- Model SysctlConfig no longer has parameter net_ipv4_tcp_rmem
25+
326
## 10.1.0 (2020-11-17)
427

528
**Features**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import ContainerServiceClientConfiguration
13+
from ._container_service_client import ContainerServiceClient
14+
__all__ = ['ContainerServiceClient', 'ContainerServiceClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ContainerServiceClientConfiguration(AzureConfiguration):
17+
"""Configuration for ContainerServiceClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Subscription credentials which uniquely identify
25+
Microsoft Azure subscription. The subscription ID forms part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(ContainerServiceClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import ContainerServiceClientConfiguration
16+
from .operations import Operations
17+
from .operations import ManagedClustersOperations
18+
from .operations import MaintenanceConfigurationsOperations
19+
from .operations import AgentPoolsOperations
20+
from .operations import PrivateEndpointConnectionsOperations
21+
from .operations import PrivateLinkResourcesOperations
22+
from .operations import ResolvePrivateLinkServiceIdOperations
23+
from . import models
24+
25+
26+
class ContainerServiceClient(SDKClient):
27+
"""The Container Service Client.
28+
29+
:ivar config: Configuration for client.
30+
:vartype config: ContainerServiceClientConfiguration
31+
32+
:ivar operations: Operations operations
33+
:vartype operations: azure.mgmt.containerservice.v2020_12_01.operations.Operations
34+
:ivar managed_clusters: ManagedClusters operations
35+
:vartype managed_clusters: azure.mgmt.containerservice.v2020_12_01.operations.ManagedClustersOperations
36+
:ivar maintenance_configurations: MaintenanceConfigurations operations
37+
:vartype maintenance_configurations: azure.mgmt.containerservice.v2020_12_01.operations.MaintenanceConfigurationsOperations
38+
:ivar agent_pools: AgentPools operations
39+
:vartype agent_pools: azure.mgmt.containerservice.v2020_12_01.operations.AgentPoolsOperations
40+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
41+
:vartype private_endpoint_connections: azure.mgmt.containerservice.v2020_12_01.operations.PrivateEndpointConnectionsOperations
42+
:ivar private_link_resources: PrivateLinkResources operations
43+
:vartype private_link_resources: azure.mgmt.containerservice.v2020_12_01.operations.PrivateLinkResourcesOperations
44+
:ivar resolve_private_link_service_id: ResolvePrivateLinkServiceId operations
45+
:vartype resolve_private_link_service_id: azure.mgmt.containerservice.v2020_12_01.operations.ResolvePrivateLinkServiceIdOperations
46+
47+
:param credentials: Credentials needed for the client to connect to Azure.
48+
:type credentials: :mod:`A msrestazure Credentials
49+
object<msrestazure.azure_active_directory>`
50+
:param subscription_id: Subscription credentials which uniquely identify
51+
Microsoft Azure subscription. The subscription ID forms part of the URI
52+
for every service call.
53+
:type subscription_id: str
54+
:param str base_url: Service URL
55+
"""
56+
57+
def __init__(
58+
self, credentials, subscription_id, base_url=None):
59+
60+
self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url)
61+
super(ContainerServiceClient, self).__init__(self.config.credentials, self.config)
62+
63+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
64+
self.api_version = '2020-12-01'
65+
self._serialize = Serializer(client_models)
66+
self._deserialize = Deserializer(client_models)
67+
68+
self.operations = Operations(
69+
self._client, self.config, self._serialize, self._deserialize)
70+
self.managed_clusters = ManagedClustersOperations(
71+
self._client, self.config, self._serialize, self._deserialize)
72+
self.maintenance_configurations = MaintenanceConfigurationsOperations(
73+
self._client, self.config, self._serialize, self._deserialize)
74+
self.agent_pools = AgentPoolsOperations(
75+
self._client, self.config, self._serialize, self._deserialize)
76+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
77+
self._client, self.config, self._serialize, self._deserialize)
78+
self.private_link_resources = PrivateLinkResourcesOperations(
79+
self._client, self.config, self._serialize, self._deserialize)
80+
self.resolve_private_link_service_id = ResolvePrivateLinkServiceIdOperations(
81+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)