Skip to content

Commit f6578e2

Browse files
authored
[AutoPR containerservices/resource-manager] [AKS] add new 2018-03-31 API (#2631)
* Generated from e365e10741ba688b8c3b39b67986e2b6e06e4ddc Rename to ManagedClusterAgentPoolProfile. Its fields have diverged from ContainerServiceAgentPoolProfile. * Generated from 3047e9e632f7c44d4a88f3c768fc1de4dd9f40ec Py version * Generated from d61dfda40f6a7498040fee441c1b23cb6a1bc01a Incorporated review comments
1 parent a801278 commit f6578e2

23 files changed

+946
-100
lines changed

azure-mgmt-containerservice/azure/mgmt/containerservice/container_service_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
import warnings
1312
from msrest.service_client import SDKClient
1413
from msrest import Serializer, Deserializer
1514
from msrestazure import AzureConfiguration
1615
from .version import VERSION
1716
from .operations.container_services_operations import ContainerServicesOperations
17+
from .operations.operations import Operations
1818
from .operations.managed_clusters_operations import ManagedClustersOperations
1919
from . import models
2020

@@ -61,6 +61,8 @@ class ContainerServiceClient(SDKClient):
6161
6262
:ivar container_services: ContainerServices operations
6363
:vartype container_services: azure.mgmt.containerservice.operations.ContainerServicesOperations
64+
:ivar operations: Operations operations
65+
:vartype operations: azure.mgmt.containerservice.operations.Operations
6466
:ivar managed_clusters: ManagedClusters operations
6567
:vartype managed_clusters: azure.mgmt.containerservice.operations.ManagedClustersOperations
6668
@@ -86,5 +88,7 @@ def __init__(
8688

8789
self.container_services = ContainerServicesOperations(
8890
self._client, self.config, self._serialize, self._deserialize)
91+
self.operations = Operations(
92+
self._client, self.config, self._serialize, self._deserialize)
8993
self.managed_clusters = ManagedClustersOperations(
9094
self._client, self.config, self._serialize, self._deserialize)

azure-mgmt-containerservice/azure/mgmt/containerservice/models/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
from .container_service_vm_diagnostics_py3 import ContainerServiceVMDiagnostics
2525
from .container_service_diagnostics_profile_py3 import ContainerServiceDiagnosticsProfile
2626
from .container_service_py3 import ContainerService
27+
from .compute_operation_value_py3 import ComputeOperationValue
28+
from .managed_cluster_agent_pool_profile_py3 import ManagedClusterAgentPoolProfile
29+
from .container_service_network_profile_py3 import ContainerServiceNetworkProfile
30+
from .managed_cluster_addon_profile_py3 import ManagedClusterAddonProfile
31+
from .managed_cluster_aad_profile_py3 import ManagedClusterAADProfile
2732
from .managed_cluster_py3 import ManagedCluster
2833
from .orchestrator_profile_py3 import OrchestratorProfile
2934
from .managed_cluster_access_profile_py3 import ManagedClusterAccessProfile
@@ -46,6 +51,11 @@
4651
from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics
4752
from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile
4853
from .container_service import ContainerService
54+
from .compute_operation_value import ComputeOperationValue
55+
from .managed_cluster_agent_pool_profile import ManagedClusterAgentPoolProfile
56+
from .container_service_network_profile import ContainerServiceNetworkProfile
57+
from .managed_cluster_addon_profile import ManagedClusterAddonProfile
58+
from .managed_cluster_aad_profile import ManagedClusterAADProfile
4959
from .managed_cluster import ManagedCluster
5060
from .orchestrator_profile import OrchestratorProfile
5161
from .managed_cluster_access_profile import ManagedClusterAccessProfile
@@ -54,12 +64,15 @@
5464
from .orchestrator_version_profile import OrchestratorVersionProfile
5565
from .orchestrator_version_profile_list_result import OrchestratorVersionProfileListResult
5666
from .container_service_paged import ContainerServicePaged
67+
from .compute_operation_value_paged import ComputeOperationValuePaged
5768
from .managed_cluster_paged import ManagedClusterPaged
5869
from .container_service_client_enums import (
5970
ContainerServiceStorageProfileTypes,
6071
ContainerServiceVMSizeTypes,
6172
ContainerServiceOrchestratorTypes,
6273
OSType,
74+
NetworkPlugin,
75+
NetworkPolicy,
6376
)
6477

6578
__all__ = [
@@ -77,6 +90,11 @@
7790
'ContainerServiceVMDiagnostics',
7891
'ContainerServiceDiagnosticsProfile',
7992
'ContainerService',
93+
'ComputeOperationValue',
94+
'ManagedClusterAgentPoolProfile',
95+
'ContainerServiceNetworkProfile',
96+
'ManagedClusterAddonProfile',
97+
'ManagedClusterAADProfile',
8098
'ManagedCluster',
8199
'OrchestratorProfile',
82100
'ManagedClusterAccessProfile',
@@ -85,9 +103,12 @@
85103
'OrchestratorVersionProfile',
86104
'OrchestratorVersionProfileListResult',
87105
'ContainerServicePaged',
106+
'ComputeOperationValuePaged',
88107
'ManagedClusterPaged',
89108
'ContainerServiceStorageProfileTypes',
90109
'ContainerServiceVMSizeTypes',
91110
'ContainerServiceOrchestratorTypes',
92111
'OSType',
112+
'NetworkPlugin',
113+
'NetworkPolicy',
93114
]
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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.serialization import Model
13+
14+
15+
class ComputeOperationValue(Model):
16+
"""Describes the properties of a Compute Operation value.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar origin: The origin of the compute operation.
22+
:vartype origin: str
23+
:ivar name: The name of the compute operation.
24+
:vartype name: str
25+
:ivar operation: The display name of the compute operation.
26+
:vartype operation: str
27+
:ivar resource: The display name of the resource the operation applies to.
28+
:vartype resource: str
29+
:ivar description: The description of the operation.
30+
:vartype description: str
31+
:ivar provider: The resource provider for the operation.
32+
:vartype provider: str
33+
"""
34+
35+
_validation = {
36+
'origin': {'readonly': True},
37+
'name': {'readonly': True},
38+
'operation': {'readonly': True},
39+
'resource': {'readonly': True},
40+
'description': {'readonly': True},
41+
'provider': {'readonly': True},
42+
}
43+
44+
_attribute_map = {
45+
'origin': {'key': 'origin', 'type': 'str'},
46+
'name': {'key': 'name', 'type': 'str'},
47+
'operation': {'key': 'display.operation', 'type': 'str'},
48+
'resource': {'key': 'display.resource', 'type': 'str'},
49+
'description': {'key': 'display.description', 'type': 'str'},
50+
'provider': {'key': 'display.provider', 'type': 'str'},
51+
}
52+
53+
def __init__(self, **kwargs):
54+
super(ComputeOperationValue, self).__init__(**kwargs)
55+
self.origin = None
56+
self.name = None
57+
self.operation = None
58+
self.resource = None
59+
self.description = None
60+
self.provider = None
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.paging import Paged
13+
14+
15+
class ComputeOperationValuePaged(Paged):
16+
"""
17+
A paging container for iterating over a list of :class:`ComputeOperationValue <azure.mgmt.containerservice.models.ComputeOperationValue>` object
18+
"""
19+
20+
_attribute_map = {
21+
'next_link': {'key': 'nextLink', 'type': 'str'},
22+
'current_page': {'key': 'value', 'type': '[ComputeOperationValue]'}
23+
}
24+
25+
def __init__(self, *args, **kwargs):
26+
27+
super(ComputeOperationValuePaged, self).__init__(*args, **kwargs)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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.serialization import Model
13+
14+
15+
class ComputeOperationValue(Model):
16+
"""Describes the properties of a Compute Operation value.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar origin: The origin of the compute operation.
22+
:vartype origin: str
23+
:ivar name: The name of the compute operation.
24+
:vartype name: str
25+
:ivar operation: The display name of the compute operation.
26+
:vartype operation: str
27+
:ivar resource: The display name of the resource the operation applies to.
28+
:vartype resource: str
29+
:ivar description: The description of the operation.
30+
:vartype description: str
31+
:ivar provider: The resource provider for the operation.
32+
:vartype provider: str
33+
"""
34+
35+
_validation = {
36+
'origin': {'readonly': True},
37+
'name': {'readonly': True},
38+
'operation': {'readonly': True},
39+
'resource': {'readonly': True},
40+
'description': {'readonly': True},
41+
'provider': {'readonly': True},
42+
}
43+
44+
_attribute_map = {
45+
'origin': {'key': 'origin', 'type': 'str'},
46+
'name': {'key': 'name', 'type': 'str'},
47+
'operation': {'key': 'display.operation', 'type': 'str'},
48+
'resource': {'key': 'display.resource', 'type': 'str'},
49+
'description': {'key': 'display.description', 'type': 'str'},
50+
'provider': {'key': 'display.provider', 'type': 'str'},
51+
}
52+
53+
def __init__(self, **kwargs) -> None:
54+
super(ComputeOperationValue, self).__init__(**kwargs)
55+
self.origin = None
56+
self.name = None
57+
self.operation = None
58+
self.resource = None
59+
self.description = None
60+
self.provider = None

azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ class ContainerServiceAgentPoolProfile(Model):
9999
:type storage_profile: str or
100100
~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes
101101
:param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet
102-
identifier. If you specify either master VNet Subnet, or agent VNet
103-
Subnet, you need to specify both. And they have to be in the same VNet.
102+
identifier.
104103
:type vnet_subnet_id: str
105104
:param os_type: OsType to be used to specify os type. Choose from Linux
106105
and Windows. Default to Linux. Possible values include: 'Linux',

azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile_py3.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ class ContainerServiceAgentPoolProfile(Model):
9999
:type storage_profile: str or
100100
~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes
101101
:param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet
102-
identifier. If you specify either master VNet Subnet, or agent VNet
103-
Subnet, you need to specify both. And they have to be in the same VNet.
102+
identifier.
104103
:type vnet_subnet_id: str
105104
:param os_type: OsType to be used to specify os type. Choose from Linux
106105
and Windows. Default to Linux. Possible values include: 'Linux',

azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_client_enums.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,14 @@ class OSType(str, Enum):
209209

210210
linux = "Linux"
211211
windows = "Windows"
212+
213+
214+
class NetworkPlugin(str, Enum):
215+
216+
azure = "azure"
217+
kubenet = "kubenet"
218+
219+
220+
class NetworkPolicy(str, Enum):
221+
222+
calico = "calico"

azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ class ContainerServiceMasterProfile(Model):
8484
will apply the default osDisk size according to the vmSize specified.
8585
:type os_disk_size_gb: int
8686
:param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet
87-
identifier. If you specify either master VNet Subnet, or agent VNet
88-
Subnet, you need to specify both. And they have to be in the same VNet.
87+
identifier.
8988
:type vnet_subnet_id: str
9089
:param first_consecutive_static_ip: FirstConsecutiveStaticIP used to
9190
specify the first static ip of masters. Default value: "10.240.255.5" .

azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile_py3.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ class ContainerServiceMasterProfile(Model):
8484
will apply the default osDisk size according to the vmSize specified.
8585
:type os_disk_size_gb: int
8686
:param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet
87-
identifier. If you specify either master VNet Subnet, or agent VNet
88-
Subnet, you need to specify both. And they have to be in the same VNet.
87+
identifier.
8988
:type vnet_subnet_id: str
9089
:param first_consecutive_static_ip: FirstConsecutiveStaticIP used to
9190
specify the first static ip of masters. Default value: "10.240.255.5" .

0 commit comments

Comments
 (0)