hyperstack 1.43.0a0__py3-none-any.whl → 1.46.1a0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hyperstack/__init__.py +7 -2
- hyperstack/api/__init__.py +2 -1
- hyperstack/api/alive_api.py +10 -10
- hyperstack/api/api_key_api.py +7 -7
- hyperstack/api/auth_api.py +69 -69
- hyperstack/api/beta_access_api.py +50 -50
- hyperstack/api/billing_api.py +1659 -1659
- hyperstack/api/calculate_api.py +7 -7
- hyperstack/api/callbacks_api.py +21 -21
- hyperstack/api/cluster_events_api.py +7 -7
- hyperstack/api/clusters_api.py +669 -370
- hyperstack/api/compliance_api.py +21 -21
- hyperstack/api/credit_api.py +7 -7
- hyperstack/api/customer_contract_api.py +139 -139
- hyperstack/api/dashboard_api.py +7 -7
- hyperstack/api/deployment_api.py +7 -7
- hyperstack/api/environment_api.py +107 -107
- hyperstack/api/{admin_api.py → fip_exclusions_api.py} +44 -28
- hyperstack/api/firewall_attachment_api.py +7 -7
- hyperstack/api/firewalls_api.py +145 -145
- hyperstack/api/floating_ip_api.py +14 -14
- hyperstack/api/image_api.py +14 -14
- hyperstack/api/payment_api.py +102 -102
- hyperstack/api/profile_api.py +56 -56
- hyperstack/api/snapshot_events_api.py +7 -7
- hyperstack/api/snapshots_api.py +167 -167
- hyperstack/api/stock_api.py +7 -7
- hyperstack/api/template_api.py +76 -76
- hyperstack/api/user_api.py +76 -76
- hyperstack/api/user_detail_choice_api.py +10 -10
- hyperstack/api/virtual_machine_api.py +799 -782
- hyperstack/api/virtual_machine_events_api.py +7 -7
- hyperstack/api/vnc_url_api.py +53 -53
- hyperstack/api/volume_api.py +77 -77
- hyperstack/api/volume_attachment_api.py +21 -21
- hyperstack/api/vouchers_api.py +326 -0
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/__init__.py +4 -0
- hyperstack/models/delete_cluster_nodes_fields.py +87 -0
- hyperstack/models/redeem_voucher_payload.py +87 -0
- hyperstack/models/voucher.py +91 -0
- hyperstack/models/voucher_redeem_response_schema.py +95 -0
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/METADATA +1 -1
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/RECORD +47 -42
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.43.0a0.dist-info → hyperstack-1.46.1a0.dist-info}/top_level.txt +0 -0
hyperstack/api/clusters_api.py
CHANGED
|
@@ -29,6 +29,7 @@ from ..models.cluster_versions import ClusterVersions
|
|
|
29
29
|
from ..models.create_cluster_node_fields import CreateClusterNodeFields
|
|
30
30
|
from ..models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
|
|
31
31
|
from ..models.create_cluster_payload import CreateClusterPayload
|
|
32
|
+
from ..models.delete_cluster_nodes_fields import DeleteClusterNodesFields
|
|
32
33
|
from ..models.manual_reconciliation_model import ManualReconciliationModel
|
|
33
34
|
from ..models.master_flavors_response import MasterFlavorsResponse
|
|
34
35
|
from ..models.name_available_model import NameAvailableModel
|
|
@@ -54,9 +55,9 @@ class ClustersApi:
|
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
@validate_call
|
|
57
|
-
def
|
|
58
|
+
def create_cluster(
|
|
58
59
|
self,
|
|
59
|
-
|
|
60
|
+
payload: CreateClusterPayload,
|
|
60
61
|
_request_timeout: Union[
|
|
61
62
|
None,
|
|
62
63
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -69,12 +70,12 @@ class ClustersApi:
|
|
|
69
70
|
_content_type: Optional[StrictStr] = None,
|
|
70
71
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
71
72
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
72
|
-
) ->
|
|
73
|
-
"""
|
|
73
|
+
) -> ClusterResponse:
|
|
74
|
+
"""Create Cluster
|
|
74
75
|
|
|
75
76
|
|
|
76
|
-
:param
|
|
77
|
-
:type
|
|
77
|
+
:param payload: (required)
|
|
78
|
+
:type payload: CreateClusterPayload
|
|
78
79
|
:param _request_timeout: timeout setting for this request. If one
|
|
79
80
|
number provided, it will be total request
|
|
80
81
|
timeout. It can also be a pair (tuple) of
|
|
@@ -97,8 +98,8 @@ class ClustersApi:
|
|
|
97
98
|
:return: Returns the result object.
|
|
98
99
|
""" # noqa: E501
|
|
99
100
|
|
|
100
|
-
_param = self.
|
|
101
|
-
|
|
101
|
+
_param = self._create_cluster_serialize(
|
|
102
|
+
payload=payload,
|
|
102
103
|
_request_auth=_request_auth,
|
|
103
104
|
_content_type=_content_type,
|
|
104
105
|
_headers=_headers,
|
|
@@ -106,10 +107,12 @@ class ClustersApi:
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
109
|
-
'
|
|
110
|
+
'201': "ClusterResponse",
|
|
110
111
|
'400': "ErrorResponseModel",
|
|
111
112
|
'401': "ErrorResponseModel",
|
|
112
113
|
'404': "ErrorResponseModel",
|
|
114
|
+
'409': "ErrorResponseModel",
|
|
115
|
+
'422': "ErrorResponseModel",
|
|
113
116
|
'500': None,
|
|
114
117
|
}
|
|
115
118
|
response_data = self.api_client.call_api(
|
|
@@ -124,9 +127,9 @@ class ClustersApi:
|
|
|
124
127
|
|
|
125
128
|
|
|
126
129
|
@validate_call
|
|
127
|
-
def
|
|
130
|
+
def create_cluster_with_http_info(
|
|
128
131
|
self,
|
|
129
|
-
|
|
132
|
+
payload: CreateClusterPayload,
|
|
130
133
|
_request_timeout: Union[
|
|
131
134
|
None,
|
|
132
135
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -139,12 +142,12 @@ class ClustersApi:
|
|
|
139
142
|
_content_type: Optional[StrictStr] = None,
|
|
140
143
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
141
144
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
142
|
-
) -> ApiResponse[
|
|
143
|
-
"""
|
|
145
|
+
) -> ApiResponse[ClusterResponse]:
|
|
146
|
+
"""Create Cluster
|
|
144
147
|
|
|
145
148
|
|
|
146
|
-
:param
|
|
147
|
-
:type
|
|
149
|
+
:param payload: (required)
|
|
150
|
+
:type payload: CreateClusterPayload
|
|
148
151
|
:param _request_timeout: timeout setting for this request. If one
|
|
149
152
|
number provided, it will be total request
|
|
150
153
|
timeout. It can also be a pair (tuple) of
|
|
@@ -167,8 +170,8 @@ class ClustersApi:
|
|
|
167
170
|
:return: Returns the result object.
|
|
168
171
|
""" # noqa: E501
|
|
169
172
|
|
|
170
|
-
_param = self.
|
|
171
|
-
|
|
173
|
+
_param = self._create_cluster_serialize(
|
|
174
|
+
payload=payload,
|
|
172
175
|
_request_auth=_request_auth,
|
|
173
176
|
_content_type=_content_type,
|
|
174
177
|
_headers=_headers,
|
|
@@ -176,10 +179,12 @@ class ClustersApi:
|
|
|
176
179
|
)
|
|
177
180
|
|
|
178
181
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
179
|
-
'
|
|
182
|
+
'201': "ClusterResponse",
|
|
180
183
|
'400': "ErrorResponseModel",
|
|
181
184
|
'401': "ErrorResponseModel",
|
|
182
185
|
'404': "ErrorResponseModel",
|
|
186
|
+
'409': "ErrorResponseModel",
|
|
187
|
+
'422': "ErrorResponseModel",
|
|
183
188
|
'500': None,
|
|
184
189
|
}
|
|
185
190
|
response_data = self.api_client.call_api(
|
|
@@ -194,9 +199,9 @@ class ClustersApi:
|
|
|
194
199
|
|
|
195
200
|
|
|
196
201
|
@validate_call
|
|
197
|
-
def
|
|
202
|
+
def create_cluster_without_preload_content(
|
|
198
203
|
self,
|
|
199
|
-
|
|
204
|
+
payload: CreateClusterPayload,
|
|
200
205
|
_request_timeout: Union[
|
|
201
206
|
None,
|
|
202
207
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -210,11 +215,11 @@ class ClustersApi:
|
|
|
210
215
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
211
216
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
212
217
|
) -> RESTResponseType:
|
|
213
|
-
"""
|
|
218
|
+
"""Create Cluster
|
|
214
219
|
|
|
215
220
|
|
|
216
|
-
:param
|
|
217
|
-
:type
|
|
221
|
+
:param payload: (required)
|
|
222
|
+
:type payload: CreateClusterPayload
|
|
218
223
|
:param _request_timeout: timeout setting for this request. If one
|
|
219
224
|
number provided, it will be total request
|
|
220
225
|
timeout. It can also be a pair (tuple) of
|
|
@@ -237,8 +242,8 @@ class ClustersApi:
|
|
|
237
242
|
:return: Returns the result object.
|
|
238
243
|
""" # noqa: E501
|
|
239
244
|
|
|
240
|
-
_param = self.
|
|
241
|
-
|
|
245
|
+
_param = self._create_cluster_serialize(
|
|
246
|
+
payload=payload,
|
|
242
247
|
_request_auth=_request_auth,
|
|
243
248
|
_content_type=_content_type,
|
|
244
249
|
_headers=_headers,
|
|
@@ -246,10 +251,12 @@ class ClustersApi:
|
|
|
246
251
|
)
|
|
247
252
|
|
|
248
253
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
249
|
-
'
|
|
254
|
+
'201': "ClusterResponse",
|
|
250
255
|
'400': "ErrorResponseModel",
|
|
251
256
|
'401': "ErrorResponseModel",
|
|
252
257
|
'404': "ErrorResponseModel",
|
|
258
|
+
'409': "ErrorResponseModel",
|
|
259
|
+
'422': "ErrorResponseModel",
|
|
253
260
|
'500': None,
|
|
254
261
|
}
|
|
255
262
|
response_data = self.api_client.call_api(
|
|
@@ -259,9 +266,9 @@ class ClustersApi:
|
|
|
259
266
|
return response_data.response
|
|
260
267
|
|
|
261
268
|
|
|
262
|
-
def
|
|
269
|
+
def _create_cluster_serialize(
|
|
263
270
|
self,
|
|
264
|
-
|
|
271
|
+
payload,
|
|
265
272
|
_request_auth,
|
|
266
273
|
_content_type,
|
|
267
274
|
_headers,
|
|
@@ -283,12 +290,12 @@ class ClustersApi:
|
|
|
283
290
|
_body_params: Optional[bytes] = None
|
|
284
291
|
|
|
285
292
|
# process the path parameters
|
|
286
|
-
if cluster_id is not None:
|
|
287
|
-
_path_params['cluster_id'] = cluster_id
|
|
288
293
|
# process the query parameters
|
|
289
294
|
# process the header parameters
|
|
290
295
|
# process the form parameters
|
|
291
296
|
# process the body parameter
|
|
297
|
+
if payload is not None:
|
|
298
|
+
_body_params = payload
|
|
292
299
|
|
|
293
300
|
|
|
294
301
|
# set the HTTP header `Accept`
|
|
@@ -299,6 +306,19 @@ class ClustersApi:
|
|
|
299
306
|
]
|
|
300
307
|
)
|
|
301
308
|
|
|
309
|
+
# set the HTTP header `Content-Type`
|
|
310
|
+
if _content_type:
|
|
311
|
+
_header_params['Content-Type'] = _content_type
|
|
312
|
+
else:
|
|
313
|
+
_default_content_type = (
|
|
314
|
+
self.api_client.select_header_content_type(
|
|
315
|
+
[
|
|
316
|
+
'application/json'
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
)
|
|
320
|
+
if _default_content_type is not None:
|
|
321
|
+
_header_params['Content-Type'] = _default_content_type
|
|
302
322
|
|
|
303
323
|
# authentication setting
|
|
304
324
|
_auth_settings: List[str] = [
|
|
@@ -307,7 +327,7 @@ class ClustersApi:
|
|
|
307
327
|
|
|
308
328
|
return self.api_client.param_serialize(
|
|
309
329
|
method='POST',
|
|
310
|
-
resource_path='/core/clusters
|
|
330
|
+
resource_path='/core/clusters',
|
|
311
331
|
path_params=_path_params,
|
|
312
332
|
query_params=_query_params,
|
|
313
333
|
header_params=_header_params,
|
|
@@ -324,9 +344,10 @@ class ClustersApi:
|
|
|
324
344
|
|
|
325
345
|
|
|
326
346
|
@validate_call
|
|
327
|
-
def
|
|
347
|
+
def create_node(
|
|
328
348
|
self,
|
|
329
|
-
|
|
349
|
+
cluster_id: StrictInt,
|
|
350
|
+
payload: CreateClusterNodeFields,
|
|
330
351
|
_request_timeout: Union[
|
|
331
352
|
None,
|
|
332
353
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -339,12 +360,14 @@ class ClustersApi:
|
|
|
339
360
|
_content_type: Optional[StrictStr] = None,
|
|
340
361
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
341
362
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
342
|
-
) ->
|
|
343
|
-
"""Create
|
|
363
|
+
) -> ClusterNodesListResponse:
|
|
364
|
+
"""Create Node
|
|
344
365
|
|
|
345
366
|
|
|
367
|
+
:param cluster_id: (required)
|
|
368
|
+
:type cluster_id: int
|
|
346
369
|
:param payload: (required)
|
|
347
|
-
:type payload:
|
|
370
|
+
:type payload: CreateClusterNodeFields
|
|
348
371
|
:param _request_timeout: timeout setting for this request. If one
|
|
349
372
|
number provided, it will be total request
|
|
350
373
|
timeout. It can also be a pair (tuple) of
|
|
@@ -367,7 +390,8 @@ class ClustersApi:
|
|
|
367
390
|
:return: Returns the result object.
|
|
368
391
|
""" # noqa: E501
|
|
369
392
|
|
|
370
|
-
_param = self.
|
|
393
|
+
_param = self._create_node_serialize(
|
|
394
|
+
cluster_id=cluster_id,
|
|
371
395
|
payload=payload,
|
|
372
396
|
_request_auth=_request_auth,
|
|
373
397
|
_content_type=_content_type,
|
|
@@ -376,12 +400,11 @@ class ClustersApi:
|
|
|
376
400
|
)
|
|
377
401
|
|
|
378
402
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
379
|
-
'201': "
|
|
403
|
+
'201': "ClusterNodesListResponse",
|
|
380
404
|
'400': "ErrorResponseModel",
|
|
381
405
|
'401': "ErrorResponseModel",
|
|
382
406
|
'404': "ErrorResponseModel",
|
|
383
407
|
'409': "ErrorResponseModel",
|
|
384
|
-
'422': "ErrorResponseModel",
|
|
385
408
|
'500': None,
|
|
386
409
|
}
|
|
387
410
|
response_data = self.api_client.call_api(
|
|
@@ -396,9 +419,10 @@ class ClustersApi:
|
|
|
396
419
|
|
|
397
420
|
|
|
398
421
|
@validate_call
|
|
399
|
-
def
|
|
422
|
+
def create_node_with_http_info(
|
|
400
423
|
self,
|
|
401
|
-
|
|
424
|
+
cluster_id: StrictInt,
|
|
425
|
+
payload: CreateClusterNodeFields,
|
|
402
426
|
_request_timeout: Union[
|
|
403
427
|
None,
|
|
404
428
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -411,12 +435,14 @@ class ClustersApi:
|
|
|
411
435
|
_content_type: Optional[StrictStr] = None,
|
|
412
436
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
413
437
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
414
|
-
) -> ApiResponse[
|
|
415
|
-
"""Create
|
|
438
|
+
) -> ApiResponse[ClusterNodesListResponse]:
|
|
439
|
+
"""Create Node
|
|
416
440
|
|
|
417
441
|
|
|
442
|
+
:param cluster_id: (required)
|
|
443
|
+
:type cluster_id: int
|
|
418
444
|
:param payload: (required)
|
|
419
|
-
:type payload:
|
|
445
|
+
:type payload: CreateClusterNodeFields
|
|
420
446
|
:param _request_timeout: timeout setting for this request. If one
|
|
421
447
|
number provided, it will be total request
|
|
422
448
|
timeout. It can also be a pair (tuple) of
|
|
@@ -439,7 +465,8 @@ class ClustersApi:
|
|
|
439
465
|
:return: Returns the result object.
|
|
440
466
|
""" # noqa: E501
|
|
441
467
|
|
|
442
|
-
_param = self.
|
|
468
|
+
_param = self._create_node_serialize(
|
|
469
|
+
cluster_id=cluster_id,
|
|
443
470
|
payload=payload,
|
|
444
471
|
_request_auth=_request_auth,
|
|
445
472
|
_content_type=_content_type,
|
|
@@ -448,12 +475,11 @@ class ClustersApi:
|
|
|
448
475
|
)
|
|
449
476
|
|
|
450
477
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
451
|
-
'201': "
|
|
478
|
+
'201': "ClusterNodesListResponse",
|
|
452
479
|
'400': "ErrorResponseModel",
|
|
453
480
|
'401': "ErrorResponseModel",
|
|
454
481
|
'404': "ErrorResponseModel",
|
|
455
482
|
'409': "ErrorResponseModel",
|
|
456
|
-
'422': "ErrorResponseModel",
|
|
457
483
|
'500': None,
|
|
458
484
|
}
|
|
459
485
|
response_data = self.api_client.call_api(
|
|
@@ -468,9 +494,10 @@ class ClustersApi:
|
|
|
468
494
|
|
|
469
495
|
|
|
470
496
|
@validate_call
|
|
471
|
-
def
|
|
497
|
+
def create_node_without_preload_content(
|
|
472
498
|
self,
|
|
473
|
-
|
|
499
|
+
cluster_id: StrictInt,
|
|
500
|
+
payload: CreateClusterNodeFields,
|
|
474
501
|
_request_timeout: Union[
|
|
475
502
|
None,
|
|
476
503
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -484,11 +511,13 @@ class ClustersApi:
|
|
|
484
511
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
485
512
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
486
513
|
) -> RESTResponseType:
|
|
487
|
-
"""Create
|
|
514
|
+
"""Create Node
|
|
488
515
|
|
|
489
516
|
|
|
517
|
+
:param cluster_id: (required)
|
|
518
|
+
:type cluster_id: int
|
|
490
519
|
:param payload: (required)
|
|
491
|
-
:type payload:
|
|
520
|
+
:type payload: CreateClusterNodeFields
|
|
492
521
|
:param _request_timeout: timeout setting for this request. If one
|
|
493
522
|
number provided, it will be total request
|
|
494
523
|
timeout. It can also be a pair (tuple) of
|
|
@@ -511,7 +540,8 @@ class ClustersApi:
|
|
|
511
540
|
:return: Returns the result object.
|
|
512
541
|
""" # noqa: E501
|
|
513
542
|
|
|
514
|
-
_param = self.
|
|
543
|
+
_param = self._create_node_serialize(
|
|
544
|
+
cluster_id=cluster_id,
|
|
515
545
|
payload=payload,
|
|
516
546
|
_request_auth=_request_auth,
|
|
517
547
|
_content_type=_content_type,
|
|
@@ -520,12 +550,11 @@ class ClustersApi:
|
|
|
520
550
|
)
|
|
521
551
|
|
|
522
552
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
523
|
-
'201': "
|
|
553
|
+
'201': "ClusterNodesListResponse",
|
|
524
554
|
'400': "ErrorResponseModel",
|
|
525
555
|
'401': "ErrorResponseModel",
|
|
526
556
|
'404': "ErrorResponseModel",
|
|
527
557
|
'409': "ErrorResponseModel",
|
|
528
|
-
'422': "ErrorResponseModel",
|
|
529
558
|
'500': None,
|
|
530
559
|
}
|
|
531
560
|
response_data = self.api_client.call_api(
|
|
@@ -535,8 +564,9 @@ class ClustersApi:
|
|
|
535
564
|
return response_data.response
|
|
536
565
|
|
|
537
566
|
|
|
538
|
-
def
|
|
567
|
+
def _create_node_serialize(
|
|
539
568
|
self,
|
|
569
|
+
cluster_id,
|
|
540
570
|
payload,
|
|
541
571
|
_request_auth,
|
|
542
572
|
_content_type,
|
|
@@ -559,6 +589,8 @@ class ClustersApi:
|
|
|
559
589
|
_body_params: Optional[bytes] = None
|
|
560
590
|
|
|
561
591
|
# process the path parameters
|
|
592
|
+
if cluster_id is not None:
|
|
593
|
+
_path_params['cluster_id'] = cluster_id
|
|
562
594
|
# process the query parameters
|
|
563
595
|
# process the header parameters
|
|
564
596
|
# process the form parameters
|
|
@@ -596,7 +628,7 @@ class ClustersApi:
|
|
|
596
628
|
|
|
597
629
|
return self.api_client.param_serialize(
|
|
598
630
|
method='POST',
|
|
599
|
-
resource_path='/core/clusters',
|
|
631
|
+
resource_path='/core/clusters/{cluster_id}/nodes',
|
|
600
632
|
path_params=_path_params,
|
|
601
633
|
query_params=_query_params,
|
|
602
634
|
header_params=_header_params,
|
|
@@ -613,10 +645,10 @@ class ClustersApi:
|
|
|
613
645
|
|
|
614
646
|
|
|
615
647
|
@validate_call
|
|
616
|
-
def
|
|
648
|
+
def create_node_group(
|
|
617
649
|
self,
|
|
618
650
|
cluster_id: StrictInt,
|
|
619
|
-
payload:
|
|
651
|
+
payload: CreateClusterNodeGroupPayload,
|
|
620
652
|
_request_timeout: Union[
|
|
621
653
|
None,
|
|
622
654
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -629,14 +661,14 @@ class ClustersApi:
|
|
|
629
661
|
_content_type: Optional[StrictStr] = None,
|
|
630
662
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
631
663
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
632
|
-
) ->
|
|
633
|
-
"""Create
|
|
664
|
+
) -> ClusterNodeGroupsCreateResponse:
|
|
665
|
+
"""Create a node group in a cluster
|
|
634
666
|
|
|
635
667
|
|
|
636
668
|
:param cluster_id: (required)
|
|
637
669
|
:type cluster_id: int
|
|
638
670
|
:param payload: (required)
|
|
639
|
-
:type payload:
|
|
671
|
+
:type payload: CreateClusterNodeGroupPayload
|
|
640
672
|
:param _request_timeout: timeout setting for this request. If one
|
|
641
673
|
number provided, it will be total request
|
|
642
674
|
timeout. It can also be a pair (tuple) of
|
|
@@ -659,7 +691,7 @@ class ClustersApi:
|
|
|
659
691
|
:return: Returns the result object.
|
|
660
692
|
""" # noqa: E501
|
|
661
693
|
|
|
662
|
-
_param = self.
|
|
694
|
+
_param = self._create_node_group_serialize(
|
|
663
695
|
cluster_id=cluster_id,
|
|
664
696
|
payload=payload,
|
|
665
697
|
_request_auth=_request_auth,
|
|
@@ -669,7 +701,7 @@ class ClustersApi:
|
|
|
669
701
|
)
|
|
670
702
|
|
|
671
703
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
672
|
-
'201': "
|
|
704
|
+
'201': "ClusterNodeGroupsCreateResponse",
|
|
673
705
|
'400': "ErrorResponseModel",
|
|
674
706
|
'401': "ErrorResponseModel",
|
|
675
707
|
'404': "ErrorResponseModel",
|
|
@@ -688,10 +720,10 @@ class ClustersApi:
|
|
|
688
720
|
|
|
689
721
|
|
|
690
722
|
@validate_call
|
|
691
|
-
def
|
|
723
|
+
def create_node_group_with_http_info(
|
|
692
724
|
self,
|
|
693
725
|
cluster_id: StrictInt,
|
|
694
|
-
payload:
|
|
726
|
+
payload: CreateClusterNodeGroupPayload,
|
|
695
727
|
_request_timeout: Union[
|
|
696
728
|
None,
|
|
697
729
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -704,14 +736,14 @@ class ClustersApi:
|
|
|
704
736
|
_content_type: Optional[StrictStr] = None,
|
|
705
737
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
706
738
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
707
|
-
) -> ApiResponse[
|
|
708
|
-
"""Create
|
|
739
|
+
) -> ApiResponse[ClusterNodeGroupsCreateResponse]:
|
|
740
|
+
"""Create a node group in a cluster
|
|
709
741
|
|
|
710
742
|
|
|
711
743
|
:param cluster_id: (required)
|
|
712
744
|
:type cluster_id: int
|
|
713
745
|
:param payload: (required)
|
|
714
|
-
:type payload:
|
|
746
|
+
:type payload: CreateClusterNodeGroupPayload
|
|
715
747
|
:param _request_timeout: timeout setting for this request. If one
|
|
716
748
|
number provided, it will be total request
|
|
717
749
|
timeout. It can also be a pair (tuple) of
|
|
@@ -734,7 +766,7 @@ class ClustersApi:
|
|
|
734
766
|
:return: Returns the result object.
|
|
735
767
|
""" # noqa: E501
|
|
736
768
|
|
|
737
|
-
_param = self.
|
|
769
|
+
_param = self._create_node_group_serialize(
|
|
738
770
|
cluster_id=cluster_id,
|
|
739
771
|
payload=payload,
|
|
740
772
|
_request_auth=_request_auth,
|
|
@@ -744,7 +776,7 @@ class ClustersApi:
|
|
|
744
776
|
)
|
|
745
777
|
|
|
746
778
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
747
|
-
'201': "
|
|
779
|
+
'201': "ClusterNodeGroupsCreateResponse",
|
|
748
780
|
'400': "ErrorResponseModel",
|
|
749
781
|
'401': "ErrorResponseModel",
|
|
750
782
|
'404': "ErrorResponseModel",
|
|
@@ -763,10 +795,10 @@ class ClustersApi:
|
|
|
763
795
|
|
|
764
796
|
|
|
765
797
|
@validate_call
|
|
766
|
-
def
|
|
798
|
+
def create_node_group_without_preload_content(
|
|
767
799
|
self,
|
|
768
800
|
cluster_id: StrictInt,
|
|
769
|
-
payload:
|
|
801
|
+
payload: CreateClusterNodeGroupPayload,
|
|
770
802
|
_request_timeout: Union[
|
|
771
803
|
None,
|
|
772
804
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -780,13 +812,13 @@ class ClustersApi:
|
|
|
780
812
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
781
813
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
782
814
|
) -> RESTResponseType:
|
|
783
|
-
"""Create
|
|
815
|
+
"""Create a node group in a cluster
|
|
784
816
|
|
|
785
817
|
|
|
786
818
|
:param cluster_id: (required)
|
|
787
819
|
:type cluster_id: int
|
|
788
820
|
:param payload: (required)
|
|
789
|
-
:type payload:
|
|
821
|
+
:type payload: CreateClusterNodeGroupPayload
|
|
790
822
|
:param _request_timeout: timeout setting for this request. If one
|
|
791
823
|
number provided, it will be total request
|
|
792
824
|
timeout. It can also be a pair (tuple) of
|
|
@@ -809,7 +841,7 @@ class ClustersApi:
|
|
|
809
841
|
:return: Returns the result object.
|
|
810
842
|
""" # noqa: E501
|
|
811
843
|
|
|
812
|
-
_param = self.
|
|
844
|
+
_param = self._create_node_group_serialize(
|
|
813
845
|
cluster_id=cluster_id,
|
|
814
846
|
payload=payload,
|
|
815
847
|
_request_auth=_request_auth,
|
|
@@ -819,7 +851,7 @@ class ClustersApi:
|
|
|
819
851
|
)
|
|
820
852
|
|
|
821
853
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
822
|
-
'201': "
|
|
854
|
+
'201': "ClusterNodeGroupsCreateResponse",
|
|
823
855
|
'400': "ErrorResponseModel",
|
|
824
856
|
'401': "ErrorResponseModel",
|
|
825
857
|
'404': "ErrorResponseModel",
|
|
@@ -833,7 +865,7 @@ class ClustersApi:
|
|
|
833
865
|
return response_data.response
|
|
834
866
|
|
|
835
867
|
|
|
836
|
-
def
|
|
868
|
+
def _create_node_group_serialize(
|
|
837
869
|
self,
|
|
838
870
|
cluster_id,
|
|
839
871
|
payload,
|
|
@@ -896,8 +928,278 @@ class ClustersApi:
|
|
|
896
928
|
]
|
|
897
929
|
|
|
898
930
|
return self.api_client.param_serialize(
|
|
899
|
-
method='POST',
|
|
900
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
931
|
+
method='POST',
|
|
932
|
+
resource_path='/core/clusters/{cluster_id}/node-groups',
|
|
933
|
+
path_params=_path_params,
|
|
934
|
+
query_params=_query_params,
|
|
935
|
+
header_params=_header_params,
|
|
936
|
+
body=_body_params,
|
|
937
|
+
post_params=_form_params,
|
|
938
|
+
files=_files,
|
|
939
|
+
auth_settings=_auth_settings,
|
|
940
|
+
collection_formats=_collection_formats,
|
|
941
|
+
_host=_host,
|
|
942
|
+
_request_auth=_request_auth
|
|
943
|
+
)
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
@validate_call
|
|
949
|
+
def delete_cluster(
|
|
950
|
+
self,
|
|
951
|
+
id: StrictInt,
|
|
952
|
+
_request_timeout: Union[
|
|
953
|
+
None,
|
|
954
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
955
|
+
Tuple[
|
|
956
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
957
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
958
|
+
]
|
|
959
|
+
] = None,
|
|
960
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
961
|
+
_content_type: Optional[StrictStr] = None,
|
|
962
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
963
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
964
|
+
) -> ResponseModel:
|
|
965
|
+
"""Delete a cluster
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
:param id: (required)
|
|
969
|
+
:type id: int
|
|
970
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
971
|
+
number provided, it will be total request
|
|
972
|
+
timeout. It can also be a pair (tuple) of
|
|
973
|
+
(connection, read) timeouts.
|
|
974
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
975
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
976
|
+
request; this effectively ignores the
|
|
977
|
+
authentication in the spec for a single request.
|
|
978
|
+
:type _request_auth: dict, optional
|
|
979
|
+
:param _content_type: force content-type for the request.
|
|
980
|
+
:type _content_type: str, Optional
|
|
981
|
+
:param _headers: set to override the headers for a single
|
|
982
|
+
request; this effectively ignores the headers
|
|
983
|
+
in the spec for a single request.
|
|
984
|
+
:type _headers: dict, optional
|
|
985
|
+
:param _host_index: set to override the host_index for a single
|
|
986
|
+
request; this effectively ignores the host_index
|
|
987
|
+
in the spec for a single request.
|
|
988
|
+
:type _host_index: int, optional
|
|
989
|
+
:return: Returns the result object.
|
|
990
|
+
""" # noqa: E501
|
|
991
|
+
|
|
992
|
+
_param = self._delete_cluster_serialize(
|
|
993
|
+
id=id,
|
|
994
|
+
_request_auth=_request_auth,
|
|
995
|
+
_content_type=_content_type,
|
|
996
|
+
_headers=_headers,
|
|
997
|
+
_host_index=_host_index
|
|
998
|
+
)
|
|
999
|
+
|
|
1000
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1001
|
+
'200': "ResponseModel",
|
|
1002
|
+
'400': "ErrorResponseModel",
|
|
1003
|
+
'401': "ErrorResponseModel",
|
|
1004
|
+
'404': "ErrorResponseModel",
|
|
1005
|
+
'500': None,
|
|
1006
|
+
}
|
|
1007
|
+
response_data = self.api_client.call_api(
|
|
1008
|
+
*_param,
|
|
1009
|
+
_request_timeout=_request_timeout
|
|
1010
|
+
)
|
|
1011
|
+
response_data.read()
|
|
1012
|
+
return self.api_client.response_deserialize(
|
|
1013
|
+
response_data=response_data,
|
|
1014
|
+
response_types_map=_response_types_map,
|
|
1015
|
+
).data
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
@validate_call
|
|
1019
|
+
def delete_cluster_with_http_info(
|
|
1020
|
+
self,
|
|
1021
|
+
id: StrictInt,
|
|
1022
|
+
_request_timeout: Union[
|
|
1023
|
+
None,
|
|
1024
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1025
|
+
Tuple[
|
|
1026
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1027
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1028
|
+
]
|
|
1029
|
+
] = None,
|
|
1030
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1031
|
+
_content_type: Optional[StrictStr] = None,
|
|
1032
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1033
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1034
|
+
) -> ApiResponse[ResponseModel]:
|
|
1035
|
+
"""Delete a cluster
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
:param id: (required)
|
|
1039
|
+
:type id: int
|
|
1040
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1041
|
+
number provided, it will be total request
|
|
1042
|
+
timeout. It can also be a pair (tuple) of
|
|
1043
|
+
(connection, read) timeouts.
|
|
1044
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1045
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1046
|
+
request; this effectively ignores the
|
|
1047
|
+
authentication in the spec for a single request.
|
|
1048
|
+
:type _request_auth: dict, optional
|
|
1049
|
+
:param _content_type: force content-type for the request.
|
|
1050
|
+
:type _content_type: str, Optional
|
|
1051
|
+
:param _headers: set to override the headers for a single
|
|
1052
|
+
request; this effectively ignores the headers
|
|
1053
|
+
in the spec for a single request.
|
|
1054
|
+
:type _headers: dict, optional
|
|
1055
|
+
:param _host_index: set to override the host_index for a single
|
|
1056
|
+
request; this effectively ignores the host_index
|
|
1057
|
+
in the spec for a single request.
|
|
1058
|
+
:type _host_index: int, optional
|
|
1059
|
+
:return: Returns the result object.
|
|
1060
|
+
""" # noqa: E501
|
|
1061
|
+
|
|
1062
|
+
_param = self._delete_cluster_serialize(
|
|
1063
|
+
id=id,
|
|
1064
|
+
_request_auth=_request_auth,
|
|
1065
|
+
_content_type=_content_type,
|
|
1066
|
+
_headers=_headers,
|
|
1067
|
+
_host_index=_host_index
|
|
1068
|
+
)
|
|
1069
|
+
|
|
1070
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1071
|
+
'200': "ResponseModel",
|
|
1072
|
+
'400': "ErrorResponseModel",
|
|
1073
|
+
'401': "ErrorResponseModel",
|
|
1074
|
+
'404': "ErrorResponseModel",
|
|
1075
|
+
'500': None,
|
|
1076
|
+
}
|
|
1077
|
+
response_data = self.api_client.call_api(
|
|
1078
|
+
*_param,
|
|
1079
|
+
_request_timeout=_request_timeout
|
|
1080
|
+
)
|
|
1081
|
+
response_data.read()
|
|
1082
|
+
return self.api_client.response_deserialize(
|
|
1083
|
+
response_data=response_data,
|
|
1084
|
+
response_types_map=_response_types_map,
|
|
1085
|
+
)
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
@validate_call
|
|
1089
|
+
def delete_cluster_without_preload_content(
|
|
1090
|
+
self,
|
|
1091
|
+
id: StrictInt,
|
|
1092
|
+
_request_timeout: Union[
|
|
1093
|
+
None,
|
|
1094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1095
|
+
Tuple[
|
|
1096
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1097
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1098
|
+
]
|
|
1099
|
+
] = None,
|
|
1100
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1101
|
+
_content_type: Optional[StrictStr] = None,
|
|
1102
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1103
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1104
|
+
) -> RESTResponseType:
|
|
1105
|
+
"""Delete a cluster
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
:param id: (required)
|
|
1109
|
+
:type id: int
|
|
1110
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1111
|
+
number provided, it will be total request
|
|
1112
|
+
timeout. It can also be a pair (tuple) of
|
|
1113
|
+
(connection, read) timeouts.
|
|
1114
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1115
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1116
|
+
request; this effectively ignores the
|
|
1117
|
+
authentication in the spec for a single request.
|
|
1118
|
+
:type _request_auth: dict, optional
|
|
1119
|
+
:param _content_type: force content-type for the request.
|
|
1120
|
+
:type _content_type: str, Optional
|
|
1121
|
+
:param _headers: set to override the headers for a single
|
|
1122
|
+
request; this effectively ignores the headers
|
|
1123
|
+
in the spec for a single request.
|
|
1124
|
+
:type _headers: dict, optional
|
|
1125
|
+
:param _host_index: set to override the host_index for a single
|
|
1126
|
+
request; this effectively ignores the host_index
|
|
1127
|
+
in the spec for a single request.
|
|
1128
|
+
:type _host_index: int, optional
|
|
1129
|
+
:return: Returns the result object.
|
|
1130
|
+
""" # noqa: E501
|
|
1131
|
+
|
|
1132
|
+
_param = self._delete_cluster_serialize(
|
|
1133
|
+
id=id,
|
|
1134
|
+
_request_auth=_request_auth,
|
|
1135
|
+
_content_type=_content_type,
|
|
1136
|
+
_headers=_headers,
|
|
1137
|
+
_host_index=_host_index
|
|
1138
|
+
)
|
|
1139
|
+
|
|
1140
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1141
|
+
'200': "ResponseModel",
|
|
1142
|
+
'400': "ErrorResponseModel",
|
|
1143
|
+
'401': "ErrorResponseModel",
|
|
1144
|
+
'404': "ErrorResponseModel",
|
|
1145
|
+
'500': None,
|
|
1146
|
+
}
|
|
1147
|
+
response_data = self.api_client.call_api(
|
|
1148
|
+
*_param,
|
|
1149
|
+
_request_timeout=_request_timeout
|
|
1150
|
+
)
|
|
1151
|
+
return response_data.response
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
def _delete_cluster_serialize(
|
|
1155
|
+
self,
|
|
1156
|
+
id,
|
|
1157
|
+
_request_auth,
|
|
1158
|
+
_content_type,
|
|
1159
|
+
_headers,
|
|
1160
|
+
_host_index,
|
|
1161
|
+
) -> RequestSerialized:
|
|
1162
|
+
|
|
1163
|
+
_host = None
|
|
1164
|
+
|
|
1165
|
+
_collection_formats: Dict[str, str] = {
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
_path_params: Dict[str, str] = {}
|
|
1169
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1170
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1171
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1172
|
+
_files: Dict[
|
|
1173
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1174
|
+
] = {}
|
|
1175
|
+
_body_params: Optional[bytes] = None
|
|
1176
|
+
|
|
1177
|
+
# process the path parameters
|
|
1178
|
+
if id is not None:
|
|
1179
|
+
_path_params['id'] = id
|
|
1180
|
+
# process the query parameters
|
|
1181
|
+
# process the header parameters
|
|
1182
|
+
# process the form parameters
|
|
1183
|
+
# process the body parameter
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
# set the HTTP header `Accept`
|
|
1187
|
+
if 'Accept' not in _header_params:
|
|
1188
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1189
|
+
[
|
|
1190
|
+
'application/json'
|
|
1191
|
+
]
|
|
1192
|
+
)
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
# authentication setting
|
|
1196
|
+
_auth_settings: List[str] = [
|
|
1197
|
+
'apiKey'
|
|
1198
|
+
]
|
|
1199
|
+
|
|
1200
|
+
return self.api_client.param_serialize(
|
|
1201
|
+
method='DELETE',
|
|
1202
|
+
resource_path='/core/clusters/{id}',
|
|
901
1203
|
path_params=_path_params,
|
|
902
1204
|
query_params=_query_params,
|
|
903
1205
|
header_params=_header_params,
|
|
@@ -914,10 +1216,10 @@ class ClustersApi:
|
|
|
914
1216
|
|
|
915
1217
|
|
|
916
1218
|
@validate_call
|
|
917
|
-
def
|
|
1219
|
+
def delete_cluster_node(
|
|
918
1220
|
self,
|
|
919
1221
|
cluster_id: StrictInt,
|
|
920
|
-
|
|
1222
|
+
node_id: StrictInt,
|
|
921
1223
|
_request_timeout: Union[
|
|
922
1224
|
None,
|
|
923
1225
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -930,14 +1232,14 @@ class ClustersApi:
|
|
|
930
1232
|
_content_type: Optional[StrictStr] = None,
|
|
931
1233
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
932
1234
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
933
|
-
) ->
|
|
934
|
-
"""
|
|
1235
|
+
) -> ResponseModel:
|
|
1236
|
+
"""Delete Cluster Node
|
|
935
1237
|
|
|
936
1238
|
|
|
937
1239
|
:param cluster_id: (required)
|
|
938
1240
|
:type cluster_id: int
|
|
939
|
-
:param
|
|
940
|
-
:type
|
|
1241
|
+
:param node_id: (required)
|
|
1242
|
+
:type node_id: int
|
|
941
1243
|
:param _request_timeout: timeout setting for this request. If one
|
|
942
1244
|
number provided, it will be total request
|
|
943
1245
|
timeout. It can also be a pair (tuple) of
|
|
@@ -960,9 +1262,9 @@ class ClustersApi:
|
|
|
960
1262
|
:return: Returns the result object.
|
|
961
1263
|
""" # noqa: E501
|
|
962
1264
|
|
|
963
|
-
_param = self.
|
|
1265
|
+
_param = self._delete_cluster_node_serialize(
|
|
964
1266
|
cluster_id=cluster_id,
|
|
965
|
-
|
|
1267
|
+
node_id=node_id,
|
|
966
1268
|
_request_auth=_request_auth,
|
|
967
1269
|
_content_type=_content_type,
|
|
968
1270
|
_headers=_headers,
|
|
@@ -970,11 +1272,10 @@ class ClustersApi:
|
|
|
970
1272
|
)
|
|
971
1273
|
|
|
972
1274
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
973
|
-
'
|
|
1275
|
+
'200': "ResponseModel",
|
|
974
1276
|
'400': "ErrorResponseModel",
|
|
975
1277
|
'401': "ErrorResponseModel",
|
|
976
1278
|
'404': "ErrorResponseModel",
|
|
977
|
-
'409': "ErrorResponseModel",
|
|
978
1279
|
'500': None,
|
|
979
1280
|
}
|
|
980
1281
|
response_data = self.api_client.call_api(
|
|
@@ -989,10 +1290,10 @@ class ClustersApi:
|
|
|
989
1290
|
|
|
990
1291
|
|
|
991
1292
|
@validate_call
|
|
992
|
-
def
|
|
1293
|
+
def delete_cluster_node_with_http_info(
|
|
993
1294
|
self,
|
|
994
1295
|
cluster_id: StrictInt,
|
|
995
|
-
|
|
1296
|
+
node_id: StrictInt,
|
|
996
1297
|
_request_timeout: Union[
|
|
997
1298
|
None,
|
|
998
1299
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1005,14 +1306,14 @@ class ClustersApi:
|
|
|
1005
1306
|
_content_type: Optional[StrictStr] = None,
|
|
1006
1307
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1007
1308
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1008
|
-
) -> ApiResponse[
|
|
1009
|
-
"""
|
|
1309
|
+
) -> ApiResponse[ResponseModel]:
|
|
1310
|
+
"""Delete Cluster Node
|
|
1010
1311
|
|
|
1011
1312
|
|
|
1012
1313
|
:param cluster_id: (required)
|
|
1013
1314
|
:type cluster_id: int
|
|
1014
|
-
:param
|
|
1015
|
-
:type
|
|
1315
|
+
:param node_id: (required)
|
|
1316
|
+
:type node_id: int
|
|
1016
1317
|
:param _request_timeout: timeout setting for this request. If one
|
|
1017
1318
|
number provided, it will be total request
|
|
1018
1319
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1035,9 +1336,9 @@ class ClustersApi:
|
|
|
1035
1336
|
:return: Returns the result object.
|
|
1036
1337
|
""" # noqa: E501
|
|
1037
1338
|
|
|
1038
|
-
_param = self.
|
|
1339
|
+
_param = self._delete_cluster_node_serialize(
|
|
1039
1340
|
cluster_id=cluster_id,
|
|
1040
|
-
|
|
1341
|
+
node_id=node_id,
|
|
1041
1342
|
_request_auth=_request_auth,
|
|
1042
1343
|
_content_type=_content_type,
|
|
1043
1344
|
_headers=_headers,
|
|
@@ -1045,11 +1346,10 @@ class ClustersApi:
|
|
|
1045
1346
|
)
|
|
1046
1347
|
|
|
1047
1348
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1048
|
-
'
|
|
1349
|
+
'200': "ResponseModel",
|
|
1049
1350
|
'400': "ErrorResponseModel",
|
|
1050
1351
|
'401': "ErrorResponseModel",
|
|
1051
1352
|
'404': "ErrorResponseModel",
|
|
1052
|
-
'409': "ErrorResponseModel",
|
|
1053
1353
|
'500': None,
|
|
1054
1354
|
}
|
|
1055
1355
|
response_data = self.api_client.call_api(
|
|
@@ -1064,10 +1364,10 @@ class ClustersApi:
|
|
|
1064
1364
|
|
|
1065
1365
|
|
|
1066
1366
|
@validate_call
|
|
1067
|
-
def
|
|
1367
|
+
def delete_cluster_node_without_preload_content(
|
|
1068
1368
|
self,
|
|
1069
1369
|
cluster_id: StrictInt,
|
|
1070
|
-
|
|
1370
|
+
node_id: StrictInt,
|
|
1071
1371
|
_request_timeout: Union[
|
|
1072
1372
|
None,
|
|
1073
1373
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1081,13 +1381,13 @@ class ClustersApi:
|
|
|
1081
1381
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1082
1382
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1083
1383
|
) -> RESTResponseType:
|
|
1084
|
-
"""
|
|
1384
|
+
"""Delete Cluster Node
|
|
1085
1385
|
|
|
1086
1386
|
|
|
1087
1387
|
:param cluster_id: (required)
|
|
1088
1388
|
:type cluster_id: int
|
|
1089
|
-
:param
|
|
1090
|
-
:type
|
|
1389
|
+
:param node_id: (required)
|
|
1390
|
+
:type node_id: int
|
|
1091
1391
|
:param _request_timeout: timeout setting for this request. If one
|
|
1092
1392
|
number provided, it will be total request
|
|
1093
1393
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1110,9 +1410,9 @@ class ClustersApi:
|
|
|
1110
1410
|
:return: Returns the result object.
|
|
1111
1411
|
""" # noqa: E501
|
|
1112
1412
|
|
|
1113
|
-
_param = self.
|
|
1413
|
+
_param = self._delete_cluster_node_serialize(
|
|
1114
1414
|
cluster_id=cluster_id,
|
|
1115
|
-
|
|
1415
|
+
node_id=node_id,
|
|
1116
1416
|
_request_auth=_request_auth,
|
|
1117
1417
|
_content_type=_content_type,
|
|
1118
1418
|
_headers=_headers,
|
|
@@ -1120,11 +1420,10 @@ class ClustersApi:
|
|
|
1120
1420
|
)
|
|
1121
1421
|
|
|
1122
1422
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1123
|
-
'
|
|
1423
|
+
'200': "ResponseModel",
|
|
1124
1424
|
'400': "ErrorResponseModel",
|
|
1125
1425
|
'401': "ErrorResponseModel",
|
|
1126
1426
|
'404': "ErrorResponseModel",
|
|
1127
|
-
'409': "ErrorResponseModel",
|
|
1128
1427
|
'500': None,
|
|
1129
1428
|
}
|
|
1130
1429
|
response_data = self.api_client.call_api(
|
|
@@ -1134,10 +1433,10 @@ class ClustersApi:
|
|
|
1134
1433
|
return response_data.response
|
|
1135
1434
|
|
|
1136
1435
|
|
|
1137
|
-
def
|
|
1436
|
+
def _delete_cluster_node_serialize(
|
|
1138
1437
|
self,
|
|
1139
1438
|
cluster_id,
|
|
1140
|
-
|
|
1439
|
+
node_id,
|
|
1141
1440
|
_request_auth,
|
|
1142
1441
|
_content_type,
|
|
1143
1442
|
_headers,
|
|
@@ -1161,12 +1460,12 @@ class ClustersApi:
|
|
|
1161
1460
|
# process the path parameters
|
|
1162
1461
|
if cluster_id is not None:
|
|
1163
1462
|
_path_params['cluster_id'] = cluster_id
|
|
1463
|
+
if node_id is not None:
|
|
1464
|
+
_path_params['node_id'] = node_id
|
|
1164
1465
|
# process the query parameters
|
|
1165
1466
|
# process the header parameters
|
|
1166
1467
|
# process the form parameters
|
|
1167
1468
|
# process the body parameter
|
|
1168
|
-
if payload is not None:
|
|
1169
|
-
_body_params = payload
|
|
1170
1469
|
|
|
1171
1470
|
|
|
1172
1471
|
# set the HTTP header `Accept`
|
|
@@ -1177,19 +1476,6 @@ class ClustersApi:
|
|
|
1177
1476
|
]
|
|
1178
1477
|
)
|
|
1179
1478
|
|
|
1180
|
-
# set the HTTP header `Content-Type`
|
|
1181
|
-
if _content_type:
|
|
1182
|
-
_header_params['Content-Type'] = _content_type
|
|
1183
|
-
else:
|
|
1184
|
-
_default_content_type = (
|
|
1185
|
-
self.api_client.select_header_content_type(
|
|
1186
|
-
[
|
|
1187
|
-
'application/json'
|
|
1188
|
-
]
|
|
1189
|
-
)
|
|
1190
|
-
)
|
|
1191
|
-
if _default_content_type is not None:
|
|
1192
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1193
1479
|
|
|
1194
1480
|
# authentication setting
|
|
1195
1481
|
_auth_settings: List[str] = [
|
|
@@ -1197,8 +1483,8 @@ class ClustersApi:
|
|
|
1197
1483
|
]
|
|
1198
1484
|
|
|
1199
1485
|
return self.api_client.param_serialize(
|
|
1200
|
-
method='
|
|
1201
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
1486
|
+
method='DELETE',
|
|
1487
|
+
resource_path='/core/clusters/{cluster_id}/nodes/{node_id}',
|
|
1202
1488
|
path_params=_path_params,
|
|
1203
1489
|
query_params=_query_params,
|
|
1204
1490
|
header_params=_header_params,
|
|
@@ -1215,9 +1501,10 @@ class ClustersApi:
|
|
|
1215
1501
|
|
|
1216
1502
|
|
|
1217
1503
|
@validate_call
|
|
1218
|
-
def
|
|
1504
|
+
def delete_cluster_nodes(
|
|
1219
1505
|
self,
|
|
1220
|
-
|
|
1506
|
+
cluster_id: StrictInt,
|
|
1507
|
+
payload: DeleteClusterNodesFields,
|
|
1221
1508
|
_request_timeout: Union[
|
|
1222
1509
|
None,
|
|
1223
1510
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1231,11 +1518,13 @@ class ClustersApi:
|
|
|
1231
1518
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1232
1519
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1233
1520
|
) -> ResponseModel:
|
|
1234
|
-
"""Delete
|
|
1521
|
+
"""Delete Multiple Cluster Nodes
|
|
1235
1522
|
|
|
1236
1523
|
|
|
1237
|
-
:param
|
|
1238
|
-
:type
|
|
1524
|
+
:param cluster_id: (required)
|
|
1525
|
+
:type cluster_id: int
|
|
1526
|
+
:param payload: (required)
|
|
1527
|
+
:type payload: DeleteClusterNodesFields
|
|
1239
1528
|
:param _request_timeout: timeout setting for this request. If one
|
|
1240
1529
|
number provided, it will be total request
|
|
1241
1530
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1258,8 +1547,9 @@ class ClustersApi:
|
|
|
1258
1547
|
:return: Returns the result object.
|
|
1259
1548
|
""" # noqa: E501
|
|
1260
1549
|
|
|
1261
|
-
_param = self.
|
|
1262
|
-
|
|
1550
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
1551
|
+
cluster_id=cluster_id,
|
|
1552
|
+
payload=payload,
|
|
1263
1553
|
_request_auth=_request_auth,
|
|
1264
1554
|
_content_type=_content_type,
|
|
1265
1555
|
_headers=_headers,
|
|
@@ -1285,9 +1575,10 @@ class ClustersApi:
|
|
|
1285
1575
|
|
|
1286
1576
|
|
|
1287
1577
|
@validate_call
|
|
1288
|
-
def
|
|
1578
|
+
def delete_cluster_nodes_with_http_info(
|
|
1289
1579
|
self,
|
|
1290
|
-
|
|
1580
|
+
cluster_id: StrictInt,
|
|
1581
|
+
payload: DeleteClusterNodesFields,
|
|
1291
1582
|
_request_timeout: Union[
|
|
1292
1583
|
None,
|
|
1293
1584
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1301,11 +1592,13 @@ class ClustersApi:
|
|
|
1301
1592
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1302
1593
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1303
1594
|
) -> ApiResponse[ResponseModel]:
|
|
1304
|
-
"""Delete
|
|
1595
|
+
"""Delete Multiple Cluster Nodes
|
|
1305
1596
|
|
|
1306
1597
|
|
|
1307
|
-
:param
|
|
1308
|
-
:type
|
|
1598
|
+
:param cluster_id: (required)
|
|
1599
|
+
:type cluster_id: int
|
|
1600
|
+
:param payload: (required)
|
|
1601
|
+
:type payload: DeleteClusterNodesFields
|
|
1309
1602
|
:param _request_timeout: timeout setting for this request. If one
|
|
1310
1603
|
number provided, it will be total request
|
|
1311
1604
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1328,8 +1621,9 @@ class ClustersApi:
|
|
|
1328
1621
|
:return: Returns the result object.
|
|
1329
1622
|
""" # noqa: E501
|
|
1330
1623
|
|
|
1331
|
-
_param = self.
|
|
1332
|
-
|
|
1624
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
1625
|
+
cluster_id=cluster_id,
|
|
1626
|
+
payload=payload,
|
|
1333
1627
|
_request_auth=_request_auth,
|
|
1334
1628
|
_content_type=_content_type,
|
|
1335
1629
|
_headers=_headers,
|
|
@@ -1355,9 +1649,10 @@ class ClustersApi:
|
|
|
1355
1649
|
|
|
1356
1650
|
|
|
1357
1651
|
@validate_call
|
|
1358
|
-
def
|
|
1652
|
+
def delete_cluster_nodes_without_preload_content(
|
|
1359
1653
|
self,
|
|
1360
|
-
|
|
1654
|
+
cluster_id: StrictInt,
|
|
1655
|
+
payload: DeleteClusterNodesFields,
|
|
1361
1656
|
_request_timeout: Union[
|
|
1362
1657
|
None,
|
|
1363
1658
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1371,11 +1666,13 @@ class ClustersApi:
|
|
|
1371
1666
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1372
1667
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1373
1668
|
) -> RESTResponseType:
|
|
1374
|
-
"""Delete
|
|
1669
|
+
"""Delete Multiple Cluster Nodes
|
|
1375
1670
|
|
|
1376
1671
|
|
|
1377
|
-
:param
|
|
1378
|
-
:type
|
|
1672
|
+
:param cluster_id: (required)
|
|
1673
|
+
:type cluster_id: int
|
|
1674
|
+
:param payload: (required)
|
|
1675
|
+
:type payload: DeleteClusterNodesFields
|
|
1379
1676
|
:param _request_timeout: timeout setting for this request. If one
|
|
1380
1677
|
number provided, it will be total request
|
|
1381
1678
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1398,8 +1695,9 @@ class ClustersApi:
|
|
|
1398
1695
|
:return: Returns the result object.
|
|
1399
1696
|
""" # noqa: E501
|
|
1400
1697
|
|
|
1401
|
-
_param = self.
|
|
1402
|
-
|
|
1698
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
1699
|
+
cluster_id=cluster_id,
|
|
1700
|
+
payload=payload,
|
|
1403
1701
|
_request_auth=_request_auth,
|
|
1404
1702
|
_content_type=_content_type,
|
|
1405
1703
|
_headers=_headers,
|
|
@@ -1420,9 +1718,10 @@ class ClustersApi:
|
|
|
1420
1718
|
return response_data.response
|
|
1421
1719
|
|
|
1422
1720
|
|
|
1423
|
-
def
|
|
1721
|
+
def _delete_cluster_nodes_serialize(
|
|
1424
1722
|
self,
|
|
1425
|
-
|
|
1723
|
+
cluster_id,
|
|
1724
|
+
payload,
|
|
1426
1725
|
_request_auth,
|
|
1427
1726
|
_content_type,
|
|
1428
1727
|
_headers,
|
|
@@ -1444,12 +1743,14 @@ class ClustersApi:
|
|
|
1444
1743
|
_body_params: Optional[bytes] = None
|
|
1445
1744
|
|
|
1446
1745
|
# process the path parameters
|
|
1447
|
-
if
|
|
1448
|
-
_path_params['
|
|
1746
|
+
if cluster_id is not None:
|
|
1747
|
+
_path_params['cluster_id'] = cluster_id
|
|
1449
1748
|
# process the query parameters
|
|
1450
1749
|
# process the header parameters
|
|
1451
1750
|
# process the form parameters
|
|
1452
1751
|
# process the body parameter
|
|
1752
|
+
if payload is not None:
|
|
1753
|
+
_body_params = payload
|
|
1453
1754
|
|
|
1454
1755
|
|
|
1455
1756
|
# set the HTTP header `Accept`
|
|
@@ -1460,6 +1761,19 @@ class ClustersApi:
|
|
|
1460
1761
|
]
|
|
1461
1762
|
)
|
|
1462
1763
|
|
|
1764
|
+
# set the HTTP header `Content-Type`
|
|
1765
|
+
if _content_type:
|
|
1766
|
+
_header_params['Content-Type'] = _content_type
|
|
1767
|
+
else:
|
|
1768
|
+
_default_content_type = (
|
|
1769
|
+
self.api_client.select_header_content_type(
|
|
1770
|
+
[
|
|
1771
|
+
'application/json'
|
|
1772
|
+
]
|
|
1773
|
+
)
|
|
1774
|
+
)
|
|
1775
|
+
if _default_content_type is not None:
|
|
1776
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1463
1777
|
|
|
1464
1778
|
# authentication setting
|
|
1465
1779
|
_auth_settings: List[str] = [
|
|
@@ -1467,8 +1781,8 @@ class ClustersApi:
|
|
|
1467
1781
|
]
|
|
1468
1782
|
|
|
1469
1783
|
return self.api_client.param_serialize(
|
|
1470
|
-
method='
|
|
1471
|
-
resource_path='/core/clusters/{
|
|
1784
|
+
method='POST',
|
|
1785
|
+
resource_path='/core/clusters/{cluster_id}/nodes/delete',
|
|
1472
1786
|
path_params=_path_params,
|
|
1473
1787
|
query_params=_query_params,
|
|
1474
1788
|
header_params=_header_params,
|
|
@@ -1485,7 +1799,7 @@ class ClustersApi:
|
|
|
1485
1799
|
|
|
1486
1800
|
|
|
1487
1801
|
@validate_call
|
|
1488
|
-
def
|
|
1802
|
+
def delete_node_group(
|
|
1489
1803
|
self,
|
|
1490
1804
|
cluster_id: StrictInt,
|
|
1491
1805
|
node_group_id: StrictInt,
|
|
@@ -1531,7 +1845,7 @@ class ClustersApi:
|
|
|
1531
1845
|
:return: Returns the result object.
|
|
1532
1846
|
""" # noqa: E501
|
|
1533
1847
|
|
|
1534
|
-
_param = self.
|
|
1848
|
+
_param = self._delete_node_group_serialize(
|
|
1535
1849
|
cluster_id=cluster_id,
|
|
1536
1850
|
node_group_id=node_group_id,
|
|
1537
1851
|
_request_auth=_request_auth,
|
|
@@ -1560,7 +1874,7 @@ class ClustersApi:
|
|
|
1560
1874
|
|
|
1561
1875
|
|
|
1562
1876
|
@validate_call
|
|
1563
|
-
def
|
|
1877
|
+
def delete_node_group_with_http_info(
|
|
1564
1878
|
self,
|
|
1565
1879
|
cluster_id: StrictInt,
|
|
1566
1880
|
node_group_id: StrictInt,
|
|
@@ -1606,7 +1920,7 @@ class ClustersApi:
|
|
|
1606
1920
|
:return: Returns the result object.
|
|
1607
1921
|
""" # noqa: E501
|
|
1608
1922
|
|
|
1609
|
-
_param = self.
|
|
1923
|
+
_param = self._delete_node_group_serialize(
|
|
1610
1924
|
cluster_id=cluster_id,
|
|
1611
1925
|
node_group_id=node_group_id,
|
|
1612
1926
|
_request_auth=_request_auth,
|
|
@@ -1635,7 +1949,7 @@ class ClustersApi:
|
|
|
1635
1949
|
|
|
1636
1950
|
|
|
1637
1951
|
@validate_call
|
|
1638
|
-
def
|
|
1952
|
+
def delete_node_group_without_preload_content(
|
|
1639
1953
|
self,
|
|
1640
1954
|
cluster_id: StrictInt,
|
|
1641
1955
|
node_group_id: StrictInt,
|
|
@@ -1681,7 +1995,7 @@ class ClustersApi:
|
|
|
1681
1995
|
:return: Returns the result object.
|
|
1682
1996
|
""" # noqa: E501
|
|
1683
1997
|
|
|
1684
|
-
_param = self.
|
|
1998
|
+
_param = self._delete_node_group_serialize(
|
|
1685
1999
|
cluster_id=cluster_id,
|
|
1686
2000
|
node_group_id=node_group_id,
|
|
1687
2001
|
_request_auth=_request_auth,
|
|
@@ -1705,7 +2019,7 @@ class ClustersApi:
|
|
|
1705
2019
|
return response_data.response
|
|
1706
2020
|
|
|
1707
2021
|
|
|
1708
|
-
def
|
|
2022
|
+
def _delete_node_group_serialize(
|
|
1709
2023
|
self,
|
|
1710
2024
|
cluster_id,
|
|
1711
2025
|
node_group_id,
|
|
@@ -1773,10 +2087,9 @@ class ClustersApi:
|
|
|
1773
2087
|
|
|
1774
2088
|
|
|
1775
2089
|
@validate_call
|
|
1776
|
-
def
|
|
2090
|
+
def fetch_cluster_name_availability(
|
|
1777
2091
|
self,
|
|
1778
|
-
|
|
1779
|
-
node_id: StrictInt,
|
|
2092
|
+
name: StrictStr,
|
|
1780
2093
|
_request_timeout: Union[
|
|
1781
2094
|
None,
|
|
1782
2095
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1789,14 +2102,13 @@ class ClustersApi:
|
|
|
1789
2102
|
_content_type: Optional[StrictStr] = None,
|
|
1790
2103
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1791
2104
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1792
|
-
) ->
|
|
1793
|
-
"""
|
|
2105
|
+
) -> NameAvailableModel:
|
|
2106
|
+
"""Fetch cluster name availability
|
|
1794
2107
|
|
|
2108
|
+
Check if a Cluster name is available
|
|
1795
2109
|
|
|
1796
|
-
:param
|
|
1797
|
-
:type
|
|
1798
|
-
:param node_id: (required)
|
|
1799
|
-
:type node_id: int
|
|
2110
|
+
:param name: (required)
|
|
2111
|
+
:type name: str
|
|
1800
2112
|
:param _request_timeout: timeout setting for this request. If one
|
|
1801
2113
|
number provided, it will be total request
|
|
1802
2114
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1819,9 +2131,8 @@ class ClustersApi:
|
|
|
1819
2131
|
:return: Returns the result object.
|
|
1820
2132
|
""" # noqa: E501
|
|
1821
2133
|
|
|
1822
|
-
_param = self.
|
|
1823
|
-
|
|
1824
|
-
node_id=node_id,
|
|
2134
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2135
|
+
name=name,
|
|
1825
2136
|
_request_auth=_request_auth,
|
|
1826
2137
|
_content_type=_content_type,
|
|
1827
2138
|
_headers=_headers,
|
|
@@ -1829,7 +2140,7 @@ class ClustersApi:
|
|
|
1829
2140
|
)
|
|
1830
2141
|
|
|
1831
2142
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1832
|
-
'200': "
|
|
2143
|
+
'200': "NameAvailableModel",
|
|
1833
2144
|
'400': "ErrorResponseModel",
|
|
1834
2145
|
'401': "ErrorResponseModel",
|
|
1835
2146
|
'404': "ErrorResponseModel",
|
|
@@ -1847,10 +2158,9 @@ class ClustersApi:
|
|
|
1847
2158
|
|
|
1848
2159
|
|
|
1849
2160
|
@validate_call
|
|
1850
|
-
def
|
|
2161
|
+
def fetch_cluster_name_availability_with_http_info(
|
|
1851
2162
|
self,
|
|
1852
|
-
|
|
1853
|
-
node_id: StrictInt,
|
|
2163
|
+
name: StrictStr,
|
|
1854
2164
|
_request_timeout: Union[
|
|
1855
2165
|
None,
|
|
1856
2166
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1863,14 +2173,13 @@ class ClustersApi:
|
|
|
1863
2173
|
_content_type: Optional[StrictStr] = None,
|
|
1864
2174
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1865
2175
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1866
|
-
) -> ApiResponse[
|
|
1867
|
-
"""
|
|
2176
|
+
) -> ApiResponse[NameAvailableModel]:
|
|
2177
|
+
"""Fetch cluster name availability
|
|
1868
2178
|
|
|
2179
|
+
Check if a Cluster name is available
|
|
1869
2180
|
|
|
1870
|
-
:param
|
|
1871
|
-
:type
|
|
1872
|
-
:param node_id: (required)
|
|
1873
|
-
:type node_id: int
|
|
2181
|
+
:param name: (required)
|
|
2182
|
+
:type name: str
|
|
1874
2183
|
:param _request_timeout: timeout setting for this request. If one
|
|
1875
2184
|
number provided, it will be total request
|
|
1876
2185
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1893,9 +2202,8 @@ class ClustersApi:
|
|
|
1893
2202
|
:return: Returns the result object.
|
|
1894
2203
|
""" # noqa: E501
|
|
1895
2204
|
|
|
1896
|
-
_param = self.
|
|
1897
|
-
|
|
1898
|
-
node_id=node_id,
|
|
2205
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2206
|
+
name=name,
|
|
1899
2207
|
_request_auth=_request_auth,
|
|
1900
2208
|
_content_type=_content_type,
|
|
1901
2209
|
_headers=_headers,
|
|
@@ -1903,7 +2211,7 @@ class ClustersApi:
|
|
|
1903
2211
|
)
|
|
1904
2212
|
|
|
1905
2213
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1906
|
-
'200': "
|
|
2214
|
+
'200': "NameAvailableModel",
|
|
1907
2215
|
'400': "ErrorResponseModel",
|
|
1908
2216
|
'401': "ErrorResponseModel",
|
|
1909
2217
|
'404': "ErrorResponseModel",
|
|
@@ -1921,10 +2229,9 @@ class ClustersApi:
|
|
|
1921
2229
|
|
|
1922
2230
|
|
|
1923
2231
|
@validate_call
|
|
1924
|
-
def
|
|
2232
|
+
def fetch_cluster_name_availability_without_preload_content(
|
|
1925
2233
|
self,
|
|
1926
|
-
|
|
1927
|
-
node_id: StrictInt,
|
|
2234
|
+
name: StrictStr,
|
|
1928
2235
|
_request_timeout: Union[
|
|
1929
2236
|
None,
|
|
1930
2237
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1938,13 +2245,12 @@ class ClustersApi:
|
|
|
1938
2245
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1939
2246
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1940
2247
|
) -> RESTResponseType:
|
|
1941
|
-
"""
|
|
2248
|
+
"""Fetch cluster name availability
|
|
1942
2249
|
|
|
2250
|
+
Check if a Cluster name is available
|
|
1943
2251
|
|
|
1944
|
-
:param
|
|
1945
|
-
:type
|
|
1946
|
-
:param node_id: (required)
|
|
1947
|
-
:type node_id: int
|
|
2252
|
+
:param name: (required)
|
|
2253
|
+
:type name: str
|
|
1948
2254
|
:param _request_timeout: timeout setting for this request. If one
|
|
1949
2255
|
number provided, it will be total request
|
|
1950
2256
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1967,9 +2273,8 @@ class ClustersApi:
|
|
|
1967
2273
|
:return: Returns the result object.
|
|
1968
2274
|
""" # noqa: E501
|
|
1969
2275
|
|
|
1970
|
-
_param = self.
|
|
1971
|
-
|
|
1972
|
-
node_id=node_id,
|
|
2276
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2277
|
+
name=name,
|
|
1973
2278
|
_request_auth=_request_auth,
|
|
1974
2279
|
_content_type=_content_type,
|
|
1975
2280
|
_headers=_headers,
|
|
@@ -1977,7 +2282,7 @@ class ClustersApi:
|
|
|
1977
2282
|
)
|
|
1978
2283
|
|
|
1979
2284
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1980
|
-
'200': "
|
|
2285
|
+
'200': "NameAvailableModel",
|
|
1981
2286
|
'400': "ErrorResponseModel",
|
|
1982
2287
|
'401': "ErrorResponseModel",
|
|
1983
2288
|
'404': "ErrorResponseModel",
|
|
@@ -1990,10 +2295,9 @@ class ClustersApi:
|
|
|
1990
2295
|
return response_data.response
|
|
1991
2296
|
|
|
1992
2297
|
|
|
1993
|
-
def
|
|
2298
|
+
def _fetch_cluster_name_availability_serialize(
|
|
1994
2299
|
self,
|
|
1995
|
-
|
|
1996
|
-
node_id,
|
|
2300
|
+
name,
|
|
1997
2301
|
_request_auth,
|
|
1998
2302
|
_content_type,
|
|
1999
2303
|
_headers,
|
|
@@ -2015,10 +2319,8 @@ class ClustersApi:
|
|
|
2015
2319
|
_body_params: Optional[bytes] = None
|
|
2016
2320
|
|
|
2017
2321
|
# process the path parameters
|
|
2018
|
-
if
|
|
2019
|
-
_path_params['
|
|
2020
|
-
if node_id is not None:
|
|
2021
|
-
_path_params['node_id'] = node_id
|
|
2322
|
+
if name is not None:
|
|
2323
|
+
_path_params['name'] = name
|
|
2022
2324
|
# process the query parameters
|
|
2023
2325
|
# process the header parameters
|
|
2024
2326
|
# process the form parameters
|
|
@@ -2040,8 +2342,8 @@ class ClustersApi:
|
|
|
2040
2342
|
]
|
|
2041
2343
|
|
|
2042
2344
|
return self.api_client.param_serialize(
|
|
2043
|
-
method='
|
|
2044
|
-
resource_path='/core/clusters/
|
|
2345
|
+
method='GET',
|
|
2346
|
+
resource_path='/core/clusters/name-availability/{name}',
|
|
2045
2347
|
path_params=_path_params,
|
|
2046
2348
|
query_params=_query_params,
|
|
2047
2349
|
header_params=_header_params,
|
|
@@ -2058,9 +2360,8 @@ class ClustersApi:
|
|
|
2058
2360
|
|
|
2059
2361
|
|
|
2060
2362
|
@validate_call
|
|
2061
|
-
def
|
|
2363
|
+
def get_cluster_master_flavors(
|
|
2062
2364
|
self,
|
|
2063
|
-
name: StrictStr,
|
|
2064
2365
|
_request_timeout: Union[
|
|
2065
2366
|
None,
|
|
2066
2367
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2073,13 +2374,10 @@ class ClustersApi:
|
|
|
2073
2374
|
_content_type: Optional[StrictStr] = None,
|
|
2074
2375
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2075
2376
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2076
|
-
) ->
|
|
2077
|
-
"""
|
|
2377
|
+
) -> MasterFlavorsResponse:
|
|
2378
|
+
"""Get Cluster Master Flavors
|
|
2078
2379
|
|
|
2079
|
-
Check if a Cluster name is available
|
|
2080
2380
|
|
|
2081
|
-
:param name: (required)
|
|
2082
|
-
:type name: str
|
|
2083
2381
|
:param _request_timeout: timeout setting for this request. If one
|
|
2084
2382
|
number provided, it will be total request
|
|
2085
2383
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2102,8 +2400,7 @@ class ClustersApi:
|
|
|
2102
2400
|
:return: Returns the result object.
|
|
2103
2401
|
""" # noqa: E501
|
|
2104
2402
|
|
|
2105
|
-
_param = self.
|
|
2106
|
-
name=name,
|
|
2403
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2107
2404
|
_request_auth=_request_auth,
|
|
2108
2405
|
_content_type=_content_type,
|
|
2109
2406
|
_headers=_headers,
|
|
@@ -2111,10 +2408,9 @@ class ClustersApi:
|
|
|
2111
2408
|
)
|
|
2112
2409
|
|
|
2113
2410
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2114
|
-
'200': "
|
|
2411
|
+
'200': "MasterFlavorsResponse",
|
|
2115
2412
|
'400': "ErrorResponseModel",
|
|
2116
2413
|
'401': "ErrorResponseModel",
|
|
2117
|
-
'404': "ErrorResponseModel",
|
|
2118
2414
|
'500': None,
|
|
2119
2415
|
}
|
|
2120
2416
|
response_data = self.api_client.call_api(
|
|
@@ -2129,9 +2425,8 @@ class ClustersApi:
|
|
|
2129
2425
|
|
|
2130
2426
|
|
|
2131
2427
|
@validate_call
|
|
2132
|
-
def
|
|
2428
|
+
def get_cluster_master_flavors_with_http_info(
|
|
2133
2429
|
self,
|
|
2134
|
-
name: StrictStr,
|
|
2135
2430
|
_request_timeout: Union[
|
|
2136
2431
|
None,
|
|
2137
2432
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2144,13 +2439,10 @@ class ClustersApi:
|
|
|
2144
2439
|
_content_type: Optional[StrictStr] = None,
|
|
2145
2440
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2146
2441
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2147
|
-
) -> ApiResponse[
|
|
2148
|
-
"""
|
|
2442
|
+
) -> ApiResponse[MasterFlavorsResponse]:
|
|
2443
|
+
"""Get Cluster Master Flavors
|
|
2149
2444
|
|
|
2150
|
-
Check if a Cluster name is available
|
|
2151
2445
|
|
|
2152
|
-
:param name: (required)
|
|
2153
|
-
:type name: str
|
|
2154
2446
|
:param _request_timeout: timeout setting for this request. If one
|
|
2155
2447
|
number provided, it will be total request
|
|
2156
2448
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2173,8 +2465,7 @@ class ClustersApi:
|
|
|
2173
2465
|
:return: Returns the result object.
|
|
2174
2466
|
""" # noqa: E501
|
|
2175
2467
|
|
|
2176
|
-
_param = self.
|
|
2177
|
-
name=name,
|
|
2468
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2178
2469
|
_request_auth=_request_auth,
|
|
2179
2470
|
_content_type=_content_type,
|
|
2180
2471
|
_headers=_headers,
|
|
@@ -2182,10 +2473,9 @@ class ClustersApi:
|
|
|
2182
2473
|
)
|
|
2183
2474
|
|
|
2184
2475
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2185
|
-
'200': "
|
|
2476
|
+
'200': "MasterFlavorsResponse",
|
|
2186
2477
|
'400': "ErrorResponseModel",
|
|
2187
2478
|
'401': "ErrorResponseModel",
|
|
2188
|
-
'404': "ErrorResponseModel",
|
|
2189
2479
|
'500': None,
|
|
2190
2480
|
}
|
|
2191
2481
|
response_data = self.api_client.call_api(
|
|
@@ -2200,9 +2490,8 @@ class ClustersApi:
|
|
|
2200
2490
|
|
|
2201
2491
|
|
|
2202
2492
|
@validate_call
|
|
2203
|
-
def
|
|
2493
|
+
def get_cluster_master_flavors_without_preload_content(
|
|
2204
2494
|
self,
|
|
2205
|
-
name: StrictStr,
|
|
2206
2495
|
_request_timeout: Union[
|
|
2207
2496
|
None,
|
|
2208
2497
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2216,12 +2505,9 @@ class ClustersApi:
|
|
|
2216
2505
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2217
2506
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2218
2507
|
) -> RESTResponseType:
|
|
2219
|
-
"""
|
|
2508
|
+
"""Get Cluster Master Flavors
|
|
2220
2509
|
|
|
2221
|
-
Check if a Cluster name is available
|
|
2222
2510
|
|
|
2223
|
-
:param name: (required)
|
|
2224
|
-
:type name: str
|
|
2225
2511
|
:param _request_timeout: timeout setting for this request. If one
|
|
2226
2512
|
number provided, it will be total request
|
|
2227
2513
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2244,8 +2530,7 @@ class ClustersApi:
|
|
|
2244
2530
|
:return: Returns the result object.
|
|
2245
2531
|
""" # noqa: E501
|
|
2246
2532
|
|
|
2247
|
-
_param = self.
|
|
2248
|
-
name=name,
|
|
2533
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2249
2534
|
_request_auth=_request_auth,
|
|
2250
2535
|
_content_type=_content_type,
|
|
2251
2536
|
_headers=_headers,
|
|
@@ -2253,10 +2538,9 @@ class ClustersApi:
|
|
|
2253
2538
|
)
|
|
2254
2539
|
|
|
2255
2540
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2256
|
-
'200': "
|
|
2541
|
+
'200': "MasterFlavorsResponse",
|
|
2257
2542
|
'400': "ErrorResponseModel",
|
|
2258
2543
|
'401': "ErrorResponseModel",
|
|
2259
|
-
'404': "ErrorResponseModel",
|
|
2260
2544
|
'500': None,
|
|
2261
2545
|
}
|
|
2262
2546
|
response_data = self.api_client.call_api(
|
|
@@ -2266,9 +2550,8 @@ class ClustersApi:
|
|
|
2266
2550
|
return response_data.response
|
|
2267
2551
|
|
|
2268
2552
|
|
|
2269
|
-
def
|
|
2553
|
+
def _get_cluster_master_flavors_serialize(
|
|
2270
2554
|
self,
|
|
2271
|
-
name,
|
|
2272
2555
|
_request_auth,
|
|
2273
2556
|
_content_type,
|
|
2274
2557
|
_headers,
|
|
@@ -2290,8 +2573,6 @@ class ClustersApi:
|
|
|
2290
2573
|
_body_params: Optional[bytes] = None
|
|
2291
2574
|
|
|
2292
2575
|
# process the path parameters
|
|
2293
|
-
if name is not None:
|
|
2294
|
-
_path_params['name'] = name
|
|
2295
2576
|
# process the query parameters
|
|
2296
2577
|
# process the header parameters
|
|
2297
2578
|
# process the form parameters
|
|
@@ -2314,7 +2595,7 @@ class ClustersApi:
|
|
|
2314
2595
|
|
|
2315
2596
|
return self.api_client.param_serialize(
|
|
2316
2597
|
method='GET',
|
|
2317
|
-
resource_path='/core/clusters/
|
|
2598
|
+
resource_path='/core/clusters/master-flavors',
|
|
2318
2599
|
path_params=_path_params,
|
|
2319
2600
|
query_params=_query_params,
|
|
2320
2601
|
header_params=_header_params,
|
|
@@ -2331,8 +2612,9 @@ class ClustersApi:
|
|
|
2331
2612
|
|
|
2332
2613
|
|
|
2333
2614
|
@validate_call
|
|
2334
|
-
def
|
|
2615
|
+
def get_cluster_nodes(
|
|
2335
2616
|
self,
|
|
2617
|
+
cluster_id: StrictInt,
|
|
2336
2618
|
_request_timeout: Union[
|
|
2337
2619
|
None,
|
|
2338
2620
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2345,10 +2627,12 @@ class ClustersApi:
|
|
|
2345
2627
|
_content_type: Optional[StrictStr] = None,
|
|
2346
2628
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2347
2629
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2348
|
-
) ->
|
|
2349
|
-
"""Get Cluster
|
|
2630
|
+
) -> ClusterNodesListResponse:
|
|
2631
|
+
"""Get Cluster Nodes
|
|
2350
2632
|
|
|
2351
2633
|
|
|
2634
|
+
:param cluster_id: (required)
|
|
2635
|
+
:type cluster_id: int
|
|
2352
2636
|
:param _request_timeout: timeout setting for this request. If one
|
|
2353
2637
|
number provided, it will be total request
|
|
2354
2638
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2371,7 +2655,8 @@ class ClustersApi:
|
|
|
2371
2655
|
:return: Returns the result object.
|
|
2372
2656
|
""" # noqa: E501
|
|
2373
2657
|
|
|
2374
|
-
_param = self.
|
|
2658
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2659
|
+
cluster_id=cluster_id,
|
|
2375
2660
|
_request_auth=_request_auth,
|
|
2376
2661
|
_content_type=_content_type,
|
|
2377
2662
|
_headers=_headers,
|
|
@@ -2379,9 +2664,10 @@ class ClustersApi:
|
|
|
2379
2664
|
)
|
|
2380
2665
|
|
|
2381
2666
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2382
|
-
'200': "
|
|
2667
|
+
'200': "ClusterNodesListResponse",
|
|
2383
2668
|
'400': "ErrorResponseModel",
|
|
2384
2669
|
'401': "ErrorResponseModel",
|
|
2670
|
+
'404': "ErrorResponseModel",
|
|
2385
2671
|
'500': None,
|
|
2386
2672
|
}
|
|
2387
2673
|
response_data = self.api_client.call_api(
|
|
@@ -2396,8 +2682,9 @@ class ClustersApi:
|
|
|
2396
2682
|
|
|
2397
2683
|
|
|
2398
2684
|
@validate_call
|
|
2399
|
-
def
|
|
2685
|
+
def get_cluster_nodes_with_http_info(
|
|
2400
2686
|
self,
|
|
2687
|
+
cluster_id: StrictInt,
|
|
2401
2688
|
_request_timeout: Union[
|
|
2402
2689
|
None,
|
|
2403
2690
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2410,10 +2697,12 @@ class ClustersApi:
|
|
|
2410
2697
|
_content_type: Optional[StrictStr] = None,
|
|
2411
2698
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2412
2699
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2413
|
-
) -> ApiResponse[
|
|
2414
|
-
"""Get Cluster
|
|
2700
|
+
) -> ApiResponse[ClusterNodesListResponse]:
|
|
2701
|
+
"""Get Cluster Nodes
|
|
2415
2702
|
|
|
2416
2703
|
|
|
2704
|
+
:param cluster_id: (required)
|
|
2705
|
+
:type cluster_id: int
|
|
2417
2706
|
:param _request_timeout: timeout setting for this request. If one
|
|
2418
2707
|
number provided, it will be total request
|
|
2419
2708
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2436,7 +2725,8 @@ class ClustersApi:
|
|
|
2436
2725
|
:return: Returns the result object.
|
|
2437
2726
|
""" # noqa: E501
|
|
2438
2727
|
|
|
2439
|
-
_param = self.
|
|
2728
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2729
|
+
cluster_id=cluster_id,
|
|
2440
2730
|
_request_auth=_request_auth,
|
|
2441
2731
|
_content_type=_content_type,
|
|
2442
2732
|
_headers=_headers,
|
|
@@ -2444,9 +2734,10 @@ class ClustersApi:
|
|
|
2444
2734
|
)
|
|
2445
2735
|
|
|
2446
2736
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2447
|
-
'200': "
|
|
2737
|
+
'200': "ClusterNodesListResponse",
|
|
2448
2738
|
'400': "ErrorResponseModel",
|
|
2449
2739
|
'401': "ErrorResponseModel",
|
|
2740
|
+
'404': "ErrorResponseModel",
|
|
2450
2741
|
'500': None,
|
|
2451
2742
|
}
|
|
2452
2743
|
response_data = self.api_client.call_api(
|
|
@@ -2461,8 +2752,9 @@ class ClustersApi:
|
|
|
2461
2752
|
|
|
2462
2753
|
|
|
2463
2754
|
@validate_call
|
|
2464
|
-
def
|
|
2755
|
+
def get_cluster_nodes_without_preload_content(
|
|
2465
2756
|
self,
|
|
2757
|
+
cluster_id: StrictInt,
|
|
2466
2758
|
_request_timeout: Union[
|
|
2467
2759
|
None,
|
|
2468
2760
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2476,9 +2768,11 @@ class ClustersApi:
|
|
|
2476
2768
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2477
2769
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2478
2770
|
) -> RESTResponseType:
|
|
2479
|
-
"""Get Cluster
|
|
2771
|
+
"""Get Cluster Nodes
|
|
2480
2772
|
|
|
2481
2773
|
|
|
2774
|
+
:param cluster_id: (required)
|
|
2775
|
+
:type cluster_id: int
|
|
2482
2776
|
:param _request_timeout: timeout setting for this request. If one
|
|
2483
2777
|
number provided, it will be total request
|
|
2484
2778
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2501,7 +2795,8 @@ class ClustersApi:
|
|
|
2501
2795
|
:return: Returns the result object.
|
|
2502
2796
|
""" # noqa: E501
|
|
2503
2797
|
|
|
2504
|
-
_param = self.
|
|
2798
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2799
|
+
cluster_id=cluster_id,
|
|
2505
2800
|
_request_auth=_request_auth,
|
|
2506
2801
|
_content_type=_content_type,
|
|
2507
2802
|
_headers=_headers,
|
|
@@ -2509,9 +2804,10 @@ class ClustersApi:
|
|
|
2509
2804
|
)
|
|
2510
2805
|
|
|
2511
2806
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2512
|
-
'200': "
|
|
2807
|
+
'200': "ClusterNodesListResponse",
|
|
2513
2808
|
'400': "ErrorResponseModel",
|
|
2514
2809
|
'401': "ErrorResponseModel",
|
|
2810
|
+
'404': "ErrorResponseModel",
|
|
2515
2811
|
'500': None,
|
|
2516
2812
|
}
|
|
2517
2813
|
response_data = self.api_client.call_api(
|
|
@@ -2521,8 +2817,9 @@ class ClustersApi:
|
|
|
2521
2817
|
return response_data.response
|
|
2522
2818
|
|
|
2523
2819
|
|
|
2524
|
-
def
|
|
2820
|
+
def _get_cluster_nodes_serialize(
|
|
2525
2821
|
self,
|
|
2822
|
+
cluster_id,
|
|
2526
2823
|
_request_auth,
|
|
2527
2824
|
_content_type,
|
|
2528
2825
|
_headers,
|
|
@@ -2544,6 +2841,8 @@ class ClustersApi:
|
|
|
2544
2841
|
_body_params: Optional[bytes] = None
|
|
2545
2842
|
|
|
2546
2843
|
# process the path parameters
|
|
2844
|
+
if cluster_id is not None:
|
|
2845
|
+
_path_params['cluster_id'] = cluster_id
|
|
2547
2846
|
# process the query parameters
|
|
2548
2847
|
# process the header parameters
|
|
2549
2848
|
# process the form parameters
|
|
@@ -2566,7 +2865,7 @@ class ClustersApi:
|
|
|
2566
2865
|
|
|
2567
2866
|
return self.api_client.param_serialize(
|
|
2568
2867
|
method='GET',
|
|
2569
|
-
resource_path='/core/clusters/
|
|
2868
|
+
resource_path='/core/clusters/{cluster_id}/nodes',
|
|
2570
2869
|
path_params=_path_params,
|
|
2571
2870
|
query_params=_query_params,
|
|
2572
2871
|
header_params=_header_params,
|
|
@@ -2583,9 +2882,9 @@ class ClustersApi:
|
|
|
2583
2882
|
|
|
2584
2883
|
|
|
2585
2884
|
@validate_call
|
|
2586
|
-
def
|
|
2885
|
+
def get_cluster_versions(
|
|
2587
2886
|
self,
|
|
2588
|
-
|
|
2887
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
2589
2888
|
_request_timeout: Union[
|
|
2590
2889
|
None,
|
|
2591
2890
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2598,12 +2897,13 @@ class ClustersApi:
|
|
|
2598
2897
|
_content_type: Optional[StrictStr] = None,
|
|
2599
2898
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2600
2899
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2601
|
-
) ->
|
|
2602
|
-
"""
|
|
2900
|
+
) -> ClusterVersions:
|
|
2901
|
+
"""List Cluster Versions
|
|
2603
2902
|
|
|
2903
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
2604
2904
|
|
|
2605
|
-
:param
|
|
2606
|
-
:type
|
|
2905
|
+
:param region: Filter versions by region name (optional)
|
|
2906
|
+
:type region: str
|
|
2607
2907
|
:param _request_timeout: timeout setting for this request. If one
|
|
2608
2908
|
number provided, it will be total request
|
|
2609
2909
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2626,8 +2926,8 @@ class ClustersApi:
|
|
|
2626
2926
|
:return: Returns the result object.
|
|
2627
2927
|
""" # noqa: E501
|
|
2628
2928
|
|
|
2629
|
-
_param = self.
|
|
2630
|
-
|
|
2929
|
+
_param = self._get_cluster_versions_serialize(
|
|
2930
|
+
region=region,
|
|
2631
2931
|
_request_auth=_request_auth,
|
|
2632
2932
|
_content_type=_content_type,
|
|
2633
2933
|
_headers=_headers,
|
|
@@ -2635,10 +2935,9 @@ class ClustersApi:
|
|
|
2635
2935
|
)
|
|
2636
2936
|
|
|
2637
2937
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2638
|
-
'200': "
|
|
2938
|
+
'200': "ClusterVersions",
|
|
2639
2939
|
'400': "ErrorResponseModel",
|
|
2640
2940
|
'401': "ErrorResponseModel",
|
|
2641
|
-
'404': "ErrorResponseModel",
|
|
2642
2941
|
'500': None,
|
|
2643
2942
|
}
|
|
2644
2943
|
response_data = self.api_client.call_api(
|
|
@@ -2653,9 +2952,9 @@ class ClustersApi:
|
|
|
2653
2952
|
|
|
2654
2953
|
|
|
2655
2954
|
@validate_call
|
|
2656
|
-
def
|
|
2955
|
+
def get_cluster_versions_with_http_info(
|
|
2657
2956
|
self,
|
|
2658
|
-
|
|
2957
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
2659
2958
|
_request_timeout: Union[
|
|
2660
2959
|
None,
|
|
2661
2960
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2668,12 +2967,13 @@ class ClustersApi:
|
|
|
2668
2967
|
_content_type: Optional[StrictStr] = None,
|
|
2669
2968
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2670
2969
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2671
|
-
) -> ApiResponse[
|
|
2672
|
-
"""
|
|
2970
|
+
) -> ApiResponse[ClusterVersions]:
|
|
2971
|
+
"""List Cluster Versions
|
|
2673
2972
|
|
|
2973
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
2674
2974
|
|
|
2675
|
-
:param
|
|
2676
|
-
:type
|
|
2975
|
+
:param region: Filter versions by region name (optional)
|
|
2976
|
+
:type region: str
|
|
2677
2977
|
:param _request_timeout: timeout setting for this request. If one
|
|
2678
2978
|
number provided, it will be total request
|
|
2679
2979
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2696,8 +2996,8 @@ class ClustersApi:
|
|
|
2696
2996
|
:return: Returns the result object.
|
|
2697
2997
|
""" # noqa: E501
|
|
2698
2998
|
|
|
2699
|
-
_param = self.
|
|
2700
|
-
|
|
2999
|
+
_param = self._get_cluster_versions_serialize(
|
|
3000
|
+
region=region,
|
|
2701
3001
|
_request_auth=_request_auth,
|
|
2702
3002
|
_content_type=_content_type,
|
|
2703
3003
|
_headers=_headers,
|
|
@@ -2705,10 +3005,9 @@ class ClustersApi:
|
|
|
2705
3005
|
)
|
|
2706
3006
|
|
|
2707
3007
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2708
|
-
'200': "
|
|
3008
|
+
'200': "ClusterVersions",
|
|
2709
3009
|
'400': "ErrorResponseModel",
|
|
2710
3010
|
'401': "ErrorResponseModel",
|
|
2711
|
-
'404': "ErrorResponseModel",
|
|
2712
3011
|
'500': None,
|
|
2713
3012
|
}
|
|
2714
3013
|
response_data = self.api_client.call_api(
|
|
@@ -2723,9 +3022,9 @@ class ClustersApi:
|
|
|
2723
3022
|
|
|
2724
3023
|
|
|
2725
3024
|
@validate_call
|
|
2726
|
-
def
|
|
3025
|
+
def get_cluster_versions_without_preload_content(
|
|
2727
3026
|
self,
|
|
2728
|
-
|
|
3027
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
2729
3028
|
_request_timeout: Union[
|
|
2730
3029
|
None,
|
|
2731
3030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2739,11 +3038,12 @@ class ClustersApi:
|
|
|
2739
3038
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2740
3039
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2741
3040
|
) -> RESTResponseType:
|
|
2742
|
-
"""
|
|
3041
|
+
"""List Cluster Versions
|
|
2743
3042
|
|
|
3043
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
2744
3044
|
|
|
2745
|
-
:param
|
|
2746
|
-
:type
|
|
3045
|
+
:param region: Filter versions by region name (optional)
|
|
3046
|
+
:type region: str
|
|
2747
3047
|
:param _request_timeout: timeout setting for this request. If one
|
|
2748
3048
|
number provided, it will be total request
|
|
2749
3049
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2766,8 +3066,8 @@ class ClustersApi:
|
|
|
2766
3066
|
:return: Returns the result object.
|
|
2767
3067
|
""" # noqa: E501
|
|
2768
3068
|
|
|
2769
|
-
_param = self.
|
|
2770
|
-
|
|
3069
|
+
_param = self._get_cluster_versions_serialize(
|
|
3070
|
+
region=region,
|
|
2771
3071
|
_request_auth=_request_auth,
|
|
2772
3072
|
_content_type=_content_type,
|
|
2773
3073
|
_headers=_headers,
|
|
@@ -2775,10 +3075,9 @@ class ClustersApi:
|
|
|
2775
3075
|
)
|
|
2776
3076
|
|
|
2777
3077
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2778
|
-
'200': "
|
|
3078
|
+
'200': "ClusterVersions",
|
|
2779
3079
|
'400': "ErrorResponseModel",
|
|
2780
3080
|
'401': "ErrorResponseModel",
|
|
2781
|
-
'404': "ErrorResponseModel",
|
|
2782
3081
|
'500': None,
|
|
2783
3082
|
}
|
|
2784
3083
|
response_data = self.api_client.call_api(
|
|
@@ -2788,9 +3087,9 @@ class ClustersApi:
|
|
|
2788
3087
|
return response_data.response
|
|
2789
3088
|
|
|
2790
3089
|
|
|
2791
|
-
def
|
|
3090
|
+
def _get_cluster_versions_serialize(
|
|
2792
3091
|
self,
|
|
2793
|
-
|
|
3092
|
+
region,
|
|
2794
3093
|
_request_auth,
|
|
2795
3094
|
_content_type,
|
|
2796
3095
|
_headers,
|
|
@@ -2812,9 +3111,11 @@ class ClustersApi:
|
|
|
2812
3111
|
_body_params: Optional[bytes] = None
|
|
2813
3112
|
|
|
2814
3113
|
# process the path parameters
|
|
2815
|
-
if cluster_id is not None:
|
|
2816
|
-
_path_params['cluster_id'] = cluster_id
|
|
2817
3114
|
# process the query parameters
|
|
3115
|
+
if region is not None:
|
|
3116
|
+
|
|
3117
|
+
_query_params.append(('region', region))
|
|
3118
|
+
|
|
2818
3119
|
# process the header parameters
|
|
2819
3120
|
# process the form parameters
|
|
2820
3121
|
# process the body parameter
|
|
@@ -2836,7 +3137,7 @@ class ClustersApi:
|
|
|
2836
3137
|
|
|
2837
3138
|
return self.api_client.param_serialize(
|
|
2838
3139
|
method='GET',
|
|
2839
|
-
resource_path='/core/clusters/
|
|
3140
|
+
resource_path='/core/clusters/versions',
|
|
2840
3141
|
path_params=_path_params,
|
|
2841
3142
|
query_params=_query_params,
|
|
2842
3143
|
header_params=_header_params,
|
|
@@ -2853,9 +3154,10 @@ class ClustersApi:
|
|
|
2853
3154
|
|
|
2854
3155
|
|
|
2855
3156
|
@validate_call
|
|
2856
|
-
def
|
|
3157
|
+
def get_node_group(
|
|
2857
3158
|
self,
|
|
2858
|
-
|
|
3159
|
+
cluster_id: StrictInt,
|
|
3160
|
+
node_group_id: StrictInt,
|
|
2859
3161
|
_request_timeout: Union[
|
|
2860
3162
|
None,
|
|
2861
3163
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2868,13 +3170,14 @@ class ClustersApi:
|
|
|
2868
3170
|
_content_type: Optional[StrictStr] = None,
|
|
2869
3171
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2870
3172
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2871
|
-
) ->
|
|
2872
|
-
"""
|
|
3173
|
+
) -> ClusterNodeGroupsGetResponse:
|
|
3174
|
+
"""Retrieve a node group in a cluster
|
|
2873
3175
|
|
|
2874
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
2875
3176
|
|
|
2876
|
-
:param
|
|
2877
|
-
:type
|
|
3177
|
+
:param cluster_id: (required)
|
|
3178
|
+
:type cluster_id: int
|
|
3179
|
+
:param node_group_id: (required)
|
|
3180
|
+
:type node_group_id: int
|
|
2878
3181
|
:param _request_timeout: timeout setting for this request. If one
|
|
2879
3182
|
number provided, it will be total request
|
|
2880
3183
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2897,8 +3200,9 @@ class ClustersApi:
|
|
|
2897
3200
|
:return: Returns the result object.
|
|
2898
3201
|
""" # noqa: E501
|
|
2899
3202
|
|
|
2900
|
-
_param = self.
|
|
2901
|
-
|
|
3203
|
+
_param = self._get_node_group_serialize(
|
|
3204
|
+
cluster_id=cluster_id,
|
|
3205
|
+
node_group_id=node_group_id,
|
|
2902
3206
|
_request_auth=_request_auth,
|
|
2903
3207
|
_content_type=_content_type,
|
|
2904
3208
|
_headers=_headers,
|
|
@@ -2906,9 +3210,10 @@ class ClustersApi:
|
|
|
2906
3210
|
)
|
|
2907
3211
|
|
|
2908
3212
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2909
|
-
'200': "
|
|
3213
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
2910
3214
|
'400': "ErrorResponseModel",
|
|
2911
3215
|
'401': "ErrorResponseModel",
|
|
3216
|
+
'404': "ErrorResponseModel",
|
|
2912
3217
|
'500': None,
|
|
2913
3218
|
}
|
|
2914
3219
|
response_data = self.api_client.call_api(
|
|
@@ -2923,9 +3228,10 @@ class ClustersApi:
|
|
|
2923
3228
|
|
|
2924
3229
|
|
|
2925
3230
|
@validate_call
|
|
2926
|
-
def
|
|
3231
|
+
def get_node_group_with_http_info(
|
|
2927
3232
|
self,
|
|
2928
|
-
|
|
3233
|
+
cluster_id: StrictInt,
|
|
3234
|
+
node_group_id: StrictInt,
|
|
2929
3235
|
_request_timeout: Union[
|
|
2930
3236
|
None,
|
|
2931
3237
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2938,13 +3244,14 @@ class ClustersApi:
|
|
|
2938
3244
|
_content_type: Optional[StrictStr] = None,
|
|
2939
3245
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2940
3246
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2941
|
-
) -> ApiResponse[
|
|
2942
|
-
"""
|
|
3247
|
+
) -> ApiResponse[ClusterNodeGroupsGetResponse]:
|
|
3248
|
+
"""Retrieve a node group in a cluster
|
|
2943
3249
|
|
|
2944
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
2945
3250
|
|
|
2946
|
-
:param
|
|
2947
|
-
:type
|
|
3251
|
+
:param cluster_id: (required)
|
|
3252
|
+
:type cluster_id: int
|
|
3253
|
+
:param node_group_id: (required)
|
|
3254
|
+
:type node_group_id: int
|
|
2948
3255
|
:param _request_timeout: timeout setting for this request. If one
|
|
2949
3256
|
number provided, it will be total request
|
|
2950
3257
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2967,8 +3274,9 @@ class ClustersApi:
|
|
|
2967
3274
|
:return: Returns the result object.
|
|
2968
3275
|
""" # noqa: E501
|
|
2969
3276
|
|
|
2970
|
-
_param = self.
|
|
2971
|
-
|
|
3277
|
+
_param = self._get_node_group_serialize(
|
|
3278
|
+
cluster_id=cluster_id,
|
|
3279
|
+
node_group_id=node_group_id,
|
|
2972
3280
|
_request_auth=_request_auth,
|
|
2973
3281
|
_content_type=_content_type,
|
|
2974
3282
|
_headers=_headers,
|
|
@@ -2976,9 +3284,10 @@ class ClustersApi:
|
|
|
2976
3284
|
)
|
|
2977
3285
|
|
|
2978
3286
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2979
|
-
'200': "
|
|
3287
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
2980
3288
|
'400': "ErrorResponseModel",
|
|
2981
3289
|
'401': "ErrorResponseModel",
|
|
3290
|
+
'404': "ErrorResponseModel",
|
|
2982
3291
|
'500': None,
|
|
2983
3292
|
}
|
|
2984
3293
|
response_data = self.api_client.call_api(
|
|
@@ -2993,9 +3302,10 @@ class ClustersApi:
|
|
|
2993
3302
|
|
|
2994
3303
|
|
|
2995
3304
|
@validate_call
|
|
2996
|
-
def
|
|
3305
|
+
def get_node_group_without_preload_content(
|
|
2997
3306
|
self,
|
|
2998
|
-
|
|
3307
|
+
cluster_id: StrictInt,
|
|
3308
|
+
node_group_id: StrictInt,
|
|
2999
3309
|
_request_timeout: Union[
|
|
3000
3310
|
None,
|
|
3001
3311
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3009,12 +3319,13 @@ class ClustersApi:
|
|
|
3009
3319
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3010
3320
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3011
3321
|
) -> RESTResponseType:
|
|
3012
|
-
"""
|
|
3322
|
+
"""Retrieve a node group in a cluster
|
|
3013
3323
|
|
|
3014
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
3015
3324
|
|
|
3016
|
-
:param
|
|
3017
|
-
:type
|
|
3325
|
+
:param cluster_id: (required)
|
|
3326
|
+
:type cluster_id: int
|
|
3327
|
+
:param node_group_id: (required)
|
|
3328
|
+
:type node_group_id: int
|
|
3018
3329
|
:param _request_timeout: timeout setting for this request. If one
|
|
3019
3330
|
number provided, it will be total request
|
|
3020
3331
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3037,8 +3348,9 @@ class ClustersApi:
|
|
|
3037
3348
|
:return: Returns the result object.
|
|
3038
3349
|
""" # noqa: E501
|
|
3039
3350
|
|
|
3040
|
-
_param = self.
|
|
3041
|
-
|
|
3351
|
+
_param = self._get_node_group_serialize(
|
|
3352
|
+
cluster_id=cluster_id,
|
|
3353
|
+
node_group_id=node_group_id,
|
|
3042
3354
|
_request_auth=_request_auth,
|
|
3043
3355
|
_content_type=_content_type,
|
|
3044
3356
|
_headers=_headers,
|
|
@@ -3046,9 +3358,10 @@ class ClustersApi:
|
|
|
3046
3358
|
)
|
|
3047
3359
|
|
|
3048
3360
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3049
|
-
'200': "
|
|
3361
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3050
3362
|
'400': "ErrorResponseModel",
|
|
3051
3363
|
'401': "ErrorResponseModel",
|
|
3364
|
+
'404': "ErrorResponseModel",
|
|
3052
3365
|
'500': None,
|
|
3053
3366
|
}
|
|
3054
3367
|
response_data = self.api_client.call_api(
|
|
@@ -3058,9 +3371,10 @@ class ClustersApi:
|
|
|
3058
3371
|
return response_data.response
|
|
3059
3372
|
|
|
3060
3373
|
|
|
3061
|
-
def
|
|
3374
|
+
def _get_node_group_serialize(
|
|
3062
3375
|
self,
|
|
3063
|
-
|
|
3376
|
+
cluster_id,
|
|
3377
|
+
node_group_id,
|
|
3064
3378
|
_request_auth,
|
|
3065
3379
|
_content_type,
|
|
3066
3380
|
_headers,
|
|
@@ -3082,11 +3396,11 @@ class ClustersApi:
|
|
|
3082
3396
|
_body_params: Optional[bytes] = None
|
|
3083
3397
|
|
|
3084
3398
|
# process the path parameters
|
|
3399
|
+
if cluster_id is not None:
|
|
3400
|
+
_path_params['cluster_id'] = cluster_id
|
|
3401
|
+
if node_group_id is not None:
|
|
3402
|
+
_path_params['node_group_id'] = node_group_id
|
|
3085
3403
|
# process the query parameters
|
|
3086
|
-
if region is not None:
|
|
3087
|
-
|
|
3088
|
-
_query_params.append(('region', region))
|
|
3089
|
-
|
|
3090
3404
|
# process the header parameters
|
|
3091
3405
|
# process the form parameters
|
|
3092
3406
|
# process the body parameter
|
|
@@ -3108,7 +3422,7 @@ class ClustersApi:
|
|
|
3108
3422
|
|
|
3109
3423
|
return self.api_client.param_serialize(
|
|
3110
3424
|
method='GET',
|
|
3111
|
-
resource_path='/core/clusters/
|
|
3425
|
+
resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
|
|
3112
3426
|
path_params=_path_params,
|
|
3113
3427
|
query_params=_query_params,
|
|
3114
3428
|
header_params=_header_params,
|
|
@@ -3985,10 +4299,9 @@ class ClustersApi:
|
|
|
3985
4299
|
|
|
3986
4300
|
|
|
3987
4301
|
@validate_call
|
|
3988
|
-
def
|
|
4302
|
+
def reconcile_cluster(
|
|
3989
4303
|
self,
|
|
3990
4304
|
cluster_id: StrictInt,
|
|
3991
|
-
node_group_id: StrictInt,
|
|
3992
4305
|
_request_timeout: Union[
|
|
3993
4306
|
None,
|
|
3994
4307
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4001,14 +4314,12 @@ class ClustersApi:
|
|
|
4001
4314
|
_content_type: Optional[StrictStr] = None,
|
|
4002
4315
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4003
4316
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4004
|
-
) ->
|
|
4005
|
-
"""
|
|
4317
|
+
) -> ManualReconciliationModel:
|
|
4318
|
+
"""Reconcile a cluster
|
|
4006
4319
|
|
|
4007
4320
|
|
|
4008
4321
|
:param cluster_id: (required)
|
|
4009
4322
|
:type cluster_id: int
|
|
4010
|
-
:param node_group_id: (required)
|
|
4011
|
-
:type node_group_id: int
|
|
4012
4323
|
:param _request_timeout: timeout setting for this request. If one
|
|
4013
4324
|
number provided, it will be total request
|
|
4014
4325
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4031,9 +4342,8 @@ class ClustersApi:
|
|
|
4031
4342
|
:return: Returns the result object.
|
|
4032
4343
|
""" # noqa: E501
|
|
4033
4344
|
|
|
4034
|
-
_param = self.
|
|
4345
|
+
_param = self._reconcile_cluster_serialize(
|
|
4035
4346
|
cluster_id=cluster_id,
|
|
4036
|
-
node_group_id=node_group_id,
|
|
4037
4347
|
_request_auth=_request_auth,
|
|
4038
4348
|
_content_type=_content_type,
|
|
4039
4349
|
_headers=_headers,
|
|
@@ -4041,7 +4351,7 @@ class ClustersApi:
|
|
|
4041
4351
|
)
|
|
4042
4352
|
|
|
4043
4353
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4044
|
-
'200': "
|
|
4354
|
+
'200': "ManualReconciliationModel",
|
|
4045
4355
|
'400': "ErrorResponseModel",
|
|
4046
4356
|
'401': "ErrorResponseModel",
|
|
4047
4357
|
'404': "ErrorResponseModel",
|
|
@@ -4059,10 +4369,9 @@ class ClustersApi:
|
|
|
4059
4369
|
|
|
4060
4370
|
|
|
4061
4371
|
@validate_call
|
|
4062
|
-
def
|
|
4372
|
+
def reconcile_cluster_with_http_info(
|
|
4063
4373
|
self,
|
|
4064
4374
|
cluster_id: StrictInt,
|
|
4065
|
-
node_group_id: StrictInt,
|
|
4066
4375
|
_request_timeout: Union[
|
|
4067
4376
|
None,
|
|
4068
4377
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4075,14 +4384,12 @@ class ClustersApi:
|
|
|
4075
4384
|
_content_type: Optional[StrictStr] = None,
|
|
4076
4385
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4077
4386
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4078
|
-
) -> ApiResponse[
|
|
4079
|
-
"""
|
|
4387
|
+
) -> ApiResponse[ManualReconciliationModel]:
|
|
4388
|
+
"""Reconcile a cluster
|
|
4080
4389
|
|
|
4081
4390
|
|
|
4082
4391
|
:param cluster_id: (required)
|
|
4083
4392
|
:type cluster_id: int
|
|
4084
|
-
:param node_group_id: (required)
|
|
4085
|
-
:type node_group_id: int
|
|
4086
4393
|
:param _request_timeout: timeout setting for this request. If one
|
|
4087
4394
|
number provided, it will be total request
|
|
4088
4395
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4105,9 +4412,8 @@ class ClustersApi:
|
|
|
4105
4412
|
:return: Returns the result object.
|
|
4106
4413
|
""" # noqa: E501
|
|
4107
4414
|
|
|
4108
|
-
_param = self.
|
|
4415
|
+
_param = self._reconcile_cluster_serialize(
|
|
4109
4416
|
cluster_id=cluster_id,
|
|
4110
|
-
node_group_id=node_group_id,
|
|
4111
4417
|
_request_auth=_request_auth,
|
|
4112
4418
|
_content_type=_content_type,
|
|
4113
4419
|
_headers=_headers,
|
|
@@ -4115,7 +4421,7 @@ class ClustersApi:
|
|
|
4115
4421
|
)
|
|
4116
4422
|
|
|
4117
4423
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4118
|
-
'200': "
|
|
4424
|
+
'200': "ManualReconciliationModel",
|
|
4119
4425
|
'400': "ErrorResponseModel",
|
|
4120
4426
|
'401': "ErrorResponseModel",
|
|
4121
4427
|
'404': "ErrorResponseModel",
|
|
@@ -4133,10 +4439,9 @@ class ClustersApi:
|
|
|
4133
4439
|
|
|
4134
4440
|
|
|
4135
4441
|
@validate_call
|
|
4136
|
-
def
|
|
4442
|
+
def reconcile_cluster_without_preload_content(
|
|
4137
4443
|
self,
|
|
4138
4444
|
cluster_id: StrictInt,
|
|
4139
|
-
node_group_id: StrictInt,
|
|
4140
4445
|
_request_timeout: Union[
|
|
4141
4446
|
None,
|
|
4142
4447
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4150,13 +4455,11 @@ class ClustersApi:
|
|
|
4150
4455
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4151
4456
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4152
4457
|
) -> RESTResponseType:
|
|
4153
|
-
"""
|
|
4458
|
+
"""Reconcile a cluster
|
|
4154
4459
|
|
|
4155
4460
|
|
|
4156
4461
|
:param cluster_id: (required)
|
|
4157
4462
|
:type cluster_id: int
|
|
4158
|
-
:param node_group_id: (required)
|
|
4159
|
-
:type node_group_id: int
|
|
4160
4463
|
:param _request_timeout: timeout setting for this request. If one
|
|
4161
4464
|
number provided, it will be total request
|
|
4162
4465
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4179,9 +4482,8 @@ class ClustersApi:
|
|
|
4179
4482
|
:return: Returns the result object.
|
|
4180
4483
|
""" # noqa: E501
|
|
4181
4484
|
|
|
4182
|
-
_param = self.
|
|
4485
|
+
_param = self._reconcile_cluster_serialize(
|
|
4183
4486
|
cluster_id=cluster_id,
|
|
4184
|
-
node_group_id=node_group_id,
|
|
4185
4487
|
_request_auth=_request_auth,
|
|
4186
4488
|
_content_type=_content_type,
|
|
4187
4489
|
_headers=_headers,
|
|
@@ -4189,7 +4491,7 @@ class ClustersApi:
|
|
|
4189
4491
|
)
|
|
4190
4492
|
|
|
4191
4493
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4192
|
-
'200': "
|
|
4494
|
+
'200': "ManualReconciliationModel",
|
|
4193
4495
|
'400': "ErrorResponseModel",
|
|
4194
4496
|
'401': "ErrorResponseModel",
|
|
4195
4497
|
'404': "ErrorResponseModel",
|
|
@@ -4202,10 +4504,9 @@ class ClustersApi:
|
|
|
4202
4504
|
return response_data.response
|
|
4203
4505
|
|
|
4204
4506
|
|
|
4205
|
-
def
|
|
4507
|
+
def _reconcile_cluster_serialize(
|
|
4206
4508
|
self,
|
|
4207
4509
|
cluster_id,
|
|
4208
|
-
node_group_id,
|
|
4209
4510
|
_request_auth,
|
|
4210
4511
|
_content_type,
|
|
4211
4512
|
_headers,
|
|
@@ -4229,8 +4530,6 @@ class ClustersApi:
|
|
|
4229
4530
|
# process the path parameters
|
|
4230
4531
|
if cluster_id is not None:
|
|
4231
4532
|
_path_params['cluster_id'] = cluster_id
|
|
4232
|
-
if node_group_id is not None:
|
|
4233
|
-
_path_params['node_group_id'] = node_group_id
|
|
4234
4533
|
# process the query parameters
|
|
4235
4534
|
# process the header parameters
|
|
4236
4535
|
# process the form parameters
|
|
@@ -4252,8 +4551,8 @@ class ClustersApi:
|
|
|
4252
4551
|
]
|
|
4253
4552
|
|
|
4254
4553
|
return self.api_client.param_serialize(
|
|
4255
|
-
method='
|
|
4256
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
4554
|
+
method='POST',
|
|
4555
|
+
resource_path='/core/clusters/{cluster_id}/reconcile',
|
|
4257
4556
|
path_params=_path_params,
|
|
4258
4557
|
query_params=_query_params,
|
|
4259
4558
|
header_params=_header_params,
|
|
@@ -4270,7 +4569,7 @@ class ClustersApi:
|
|
|
4270
4569
|
|
|
4271
4570
|
|
|
4272
4571
|
@validate_call
|
|
4273
|
-
def
|
|
4572
|
+
def update_node_group(
|
|
4274
4573
|
self,
|
|
4275
4574
|
cluster_id: StrictInt,
|
|
4276
4575
|
node_group_id: StrictInt,
|
|
@@ -4319,7 +4618,7 @@ class ClustersApi:
|
|
|
4319
4618
|
:return: Returns the result object.
|
|
4320
4619
|
""" # noqa: E501
|
|
4321
4620
|
|
|
4322
|
-
_param = self.
|
|
4621
|
+
_param = self._update_node_group_serialize(
|
|
4323
4622
|
cluster_id=cluster_id,
|
|
4324
4623
|
node_group_id=node_group_id,
|
|
4325
4624
|
payload=payload,
|
|
@@ -4349,7 +4648,7 @@ class ClustersApi:
|
|
|
4349
4648
|
|
|
4350
4649
|
|
|
4351
4650
|
@validate_call
|
|
4352
|
-
def
|
|
4651
|
+
def update_node_group_with_http_info(
|
|
4353
4652
|
self,
|
|
4354
4653
|
cluster_id: StrictInt,
|
|
4355
4654
|
node_group_id: StrictInt,
|
|
@@ -4398,7 +4697,7 @@ class ClustersApi:
|
|
|
4398
4697
|
:return: Returns the result object.
|
|
4399
4698
|
""" # noqa: E501
|
|
4400
4699
|
|
|
4401
|
-
_param = self.
|
|
4700
|
+
_param = self._update_node_group_serialize(
|
|
4402
4701
|
cluster_id=cluster_id,
|
|
4403
4702
|
node_group_id=node_group_id,
|
|
4404
4703
|
payload=payload,
|
|
@@ -4428,7 +4727,7 @@ class ClustersApi:
|
|
|
4428
4727
|
|
|
4429
4728
|
|
|
4430
4729
|
@validate_call
|
|
4431
|
-
def
|
|
4730
|
+
def update_node_group_without_preload_content(
|
|
4432
4731
|
self,
|
|
4433
4732
|
cluster_id: StrictInt,
|
|
4434
4733
|
node_group_id: StrictInt,
|
|
@@ -4477,7 +4776,7 @@ class ClustersApi:
|
|
|
4477
4776
|
:return: Returns the result object.
|
|
4478
4777
|
""" # noqa: E501
|
|
4479
4778
|
|
|
4480
|
-
_param = self.
|
|
4779
|
+
_param = self._update_node_group_serialize(
|
|
4481
4780
|
cluster_id=cluster_id,
|
|
4482
4781
|
node_group_id=node_group_id,
|
|
4483
4782
|
payload=payload,
|
|
@@ -4502,7 +4801,7 @@ class ClustersApi:
|
|
|
4502
4801
|
return response_data.response
|
|
4503
4802
|
|
|
4504
4803
|
|
|
4505
|
-
def
|
|
4804
|
+
def _update_node_group_serialize(
|
|
4506
4805
|
self,
|
|
4507
4806
|
cluster_id,
|
|
4508
4807
|
node_group_id,
|