@@ -46,7 +46,7 @@ class ContainerServiceClient(MultiApiClientMixin, SDKClient):
46
46
:type profile: azure.profiles.KnownProfiles
47
47
"""
48
48
49
- DEFAULT_API_VERSION = '2020-04 -01'
49
+ DEFAULT_API_VERSION = '2020-06 -01'
50
50
_PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient"
51
51
LATEST_PROFILE = ProfileDefinition ({
52
52
_PROFILE_TAG : {
@@ -91,6 +91,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
91
91
* 2020-02-01: :mod:`v2020_02_01.models<azure.mgmt.containerservice.v2020_02_01.models>`
92
92
* 2020-03-01: :mod:`v2020_03_01.models<azure.mgmt.containerservice.v2020_03_01.models>`
93
93
* 2020-04-01: :mod:`v2020_04_01.models<azure.mgmt.containerservice.v2020_04_01.models>`
94
+ * 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.containerservice.v2020_06_01.models>`
94
95
"""
95
96
if api_version == '2017-07-01' :
96
97
from .v2017_07_01 import models
@@ -143,6 +144,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
143
144
elif api_version == '2020-04-01' :
144
145
from .v2020_04_01 import models
145
146
return models
147
+ elif api_version == '2020-06-01' :
148
+ from .v2020_06_01 import models
149
+ return models
146
150
raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
147
151
148
152
@property
@@ -159,6 +163,7 @@ def agent_pools(self):
159
163
* 2020-02-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_02_01.operations.AgentPoolsOperations>`
160
164
* 2020-03-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_03_01.operations.AgentPoolsOperations>`
161
165
* 2020-04-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_04_01.operations.AgentPoolsOperations>`
166
+ * 2020-06-01: :class:`AgentPoolsOperations<azure.mgmt.containerservice.v2020_06_01.operations.AgentPoolsOperations>`
162
167
"""
163
168
api_version = self ._get_api_version ('agent_pools' )
164
169
if api_version == '2019-02-01' :
@@ -181,6 +186,8 @@ def agent_pools(self):
181
186
from .v2020_03_01 .operations import AgentPoolsOperations as OperationClass
182
187
elif api_version == '2020-04-01' :
183
188
from .v2020_04_01 .operations import AgentPoolsOperations as OperationClass
189
+ elif api_version == '2020-06-01' :
190
+ from .v2020_06_01 .operations import AgentPoolsOperations as OperationClass
184
191
else :
185
192
raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
186
193
return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -214,6 +221,7 @@ def managed_clusters(self):
214
221
* 2020-02-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_02_01.operations.ManagedClustersOperations>`
215
222
* 2020-03-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_03_01.operations.ManagedClustersOperations>`
216
223
* 2020-04-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_04_01.operations.ManagedClustersOperations>`
224
+ * 2020-06-01: :class:`ManagedClustersOperations<azure.mgmt.containerservice.v2020_06_01.operations.ManagedClustersOperations>`
217
225
"""
218
226
api_version = self ._get_api_version ('managed_clusters' )
219
227
if api_version == '2018-03-31' :
@@ -240,6 +248,8 @@ def managed_clusters(self):
240
248
from .v2020_03_01 .operations import ManagedClustersOperations as OperationClass
241
249
elif api_version == '2020-04-01' :
242
250
from .v2020_04_01 .operations import ManagedClustersOperations as OperationClass
251
+ elif api_version == '2020-06-01' :
252
+ from .v2020_06_01 .operations import ManagedClustersOperations as OperationClass
243
253
else :
244
254
raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
245
255
return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
@@ -282,6 +292,7 @@ def operations(self):
282
292
* 2020-02-01: :class:`Operations<azure.mgmt.containerservice.v2020_02_01.operations.Operations>`
283
293
* 2020-03-01: :class:`Operations<azure.mgmt.containerservice.v2020_03_01.operations.Operations>`
284
294
* 2020-04-01: :class:`Operations<azure.mgmt.containerservice.v2020_04_01.operations.Operations>`
295
+ * 2020-06-01: :class:`Operations<azure.mgmt.containerservice.v2020_06_01.operations.Operations>`
285
296
"""
286
297
api_version = self ._get_api_version ('operations' )
287
298
if api_version == '2018-03-31' :
@@ -308,6 +319,21 @@ def operations(self):
308
319
from .v2020_03_01 .operations import Operations as OperationClass
309
320
elif api_version == '2020-04-01' :
310
321
from .v2020_04_01 .operations import Operations as OperationClass
322
+ elif api_version == '2020-06-01' :
323
+ from .v2020_06_01 .operations import Operations as OperationClass
324
+ else :
325
+ raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
326
+ return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
327
+
328
+ @property
329
+ def private_endpoint_connections (self ):
330
+ """Instance depends on the API version:
331
+
332
+ * 2020-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.containerservice.v2020_06_01.operations.PrivateEndpointConnectionsOperations>`
333
+ """
334
+ api_version = self ._get_api_version ('private_endpoint_connections' )
335
+ if api_version == '2020-06-01' :
336
+ from .v2020_06_01 .operations import PrivateEndpointConnectionsOperations as OperationClass
311
337
else :
312
338
raise NotImplementedError ("APIVersion {} is not available" .format (api_version ))
313
339
return OperationClass (self ._client , self .config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
0 commit comments