hyperstack 1.45.2a0__py3-none-any.whl → 1.46.2a0__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 +2 -1
- hyperstack/api/__init__.py +1 -0
- hyperstack/api/alive_api.py +10 -10
- hyperstack/api/api_key_api.py +7 -7
- 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 +445 -445
- 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/fip_exclusions_api.py +313 -0
- 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_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/generate_update_api_key_payload.py +3 -2
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/METADATA +1 -1
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/RECORD +41 -40
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.45.2a0.dist-info → hyperstack-1.46.2a0.dist-info}/top_level.txt +0 -0
hyperstack/api/clusters_api.py
CHANGED
|
@@ -55,9 +55,9 @@ class ClustersApi:
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
@validate_call
|
|
58
|
-
def
|
|
58
|
+
def create_cluster(
|
|
59
59
|
self,
|
|
60
|
-
|
|
60
|
+
payload: CreateClusterPayload,
|
|
61
61
|
_request_timeout: Union[
|
|
62
62
|
None,
|
|
63
63
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -70,12 +70,12 @@ class ClustersApi:
|
|
|
70
70
|
_content_type: Optional[StrictStr] = None,
|
|
71
71
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
72
72
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
73
|
-
) ->
|
|
74
|
-
"""
|
|
73
|
+
) -> ClusterResponse:
|
|
74
|
+
"""Create Cluster
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
:param
|
|
78
|
-
:type
|
|
77
|
+
:param payload: (required)
|
|
78
|
+
:type payload: CreateClusterPayload
|
|
79
79
|
:param _request_timeout: timeout setting for this request. If one
|
|
80
80
|
number provided, it will be total request
|
|
81
81
|
timeout. It can also be a pair (tuple) of
|
|
@@ -98,8 +98,8 @@ class ClustersApi:
|
|
|
98
98
|
:return: Returns the result object.
|
|
99
99
|
""" # noqa: E501
|
|
100
100
|
|
|
101
|
-
_param = self.
|
|
102
|
-
|
|
101
|
+
_param = self._create_cluster_serialize(
|
|
102
|
+
payload=payload,
|
|
103
103
|
_request_auth=_request_auth,
|
|
104
104
|
_content_type=_content_type,
|
|
105
105
|
_headers=_headers,
|
|
@@ -107,10 +107,12 @@ class ClustersApi:
|
|
|
107
107
|
)
|
|
108
108
|
|
|
109
109
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
110
|
-
'
|
|
110
|
+
'201': "ClusterResponse",
|
|
111
111
|
'400': "ErrorResponseModel",
|
|
112
112
|
'401': "ErrorResponseModel",
|
|
113
113
|
'404': "ErrorResponseModel",
|
|
114
|
+
'409': "ErrorResponseModel",
|
|
115
|
+
'422': "ErrorResponseModel",
|
|
114
116
|
'500': None,
|
|
115
117
|
}
|
|
116
118
|
response_data = self.api_client.call_api(
|
|
@@ -125,9 +127,9 @@ class ClustersApi:
|
|
|
125
127
|
|
|
126
128
|
|
|
127
129
|
@validate_call
|
|
128
|
-
def
|
|
130
|
+
def create_cluster_with_http_info(
|
|
129
131
|
self,
|
|
130
|
-
|
|
132
|
+
payload: CreateClusterPayload,
|
|
131
133
|
_request_timeout: Union[
|
|
132
134
|
None,
|
|
133
135
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -140,12 +142,12 @@ class ClustersApi:
|
|
|
140
142
|
_content_type: Optional[StrictStr] = None,
|
|
141
143
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
142
144
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
143
|
-
) -> ApiResponse[
|
|
144
|
-
"""
|
|
145
|
+
) -> ApiResponse[ClusterResponse]:
|
|
146
|
+
"""Create Cluster
|
|
145
147
|
|
|
146
148
|
|
|
147
|
-
:param
|
|
148
|
-
:type
|
|
149
|
+
:param payload: (required)
|
|
150
|
+
:type payload: CreateClusterPayload
|
|
149
151
|
:param _request_timeout: timeout setting for this request. If one
|
|
150
152
|
number provided, it will be total request
|
|
151
153
|
timeout. It can also be a pair (tuple) of
|
|
@@ -168,8 +170,8 @@ class ClustersApi:
|
|
|
168
170
|
:return: Returns the result object.
|
|
169
171
|
""" # noqa: E501
|
|
170
172
|
|
|
171
|
-
_param = self.
|
|
172
|
-
|
|
173
|
+
_param = self._create_cluster_serialize(
|
|
174
|
+
payload=payload,
|
|
173
175
|
_request_auth=_request_auth,
|
|
174
176
|
_content_type=_content_type,
|
|
175
177
|
_headers=_headers,
|
|
@@ -177,10 +179,12 @@ class ClustersApi:
|
|
|
177
179
|
)
|
|
178
180
|
|
|
179
181
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
180
|
-
'
|
|
182
|
+
'201': "ClusterResponse",
|
|
181
183
|
'400': "ErrorResponseModel",
|
|
182
184
|
'401': "ErrorResponseModel",
|
|
183
185
|
'404': "ErrorResponseModel",
|
|
186
|
+
'409': "ErrorResponseModel",
|
|
187
|
+
'422': "ErrorResponseModel",
|
|
184
188
|
'500': None,
|
|
185
189
|
}
|
|
186
190
|
response_data = self.api_client.call_api(
|
|
@@ -195,9 +199,9 @@ class ClustersApi:
|
|
|
195
199
|
|
|
196
200
|
|
|
197
201
|
@validate_call
|
|
198
|
-
def
|
|
202
|
+
def create_cluster_without_preload_content(
|
|
199
203
|
self,
|
|
200
|
-
|
|
204
|
+
payload: CreateClusterPayload,
|
|
201
205
|
_request_timeout: Union[
|
|
202
206
|
None,
|
|
203
207
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -211,11 +215,11 @@ class ClustersApi:
|
|
|
211
215
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
212
216
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
213
217
|
) -> RESTResponseType:
|
|
214
|
-
"""
|
|
218
|
+
"""Create Cluster
|
|
215
219
|
|
|
216
220
|
|
|
217
|
-
:param
|
|
218
|
-
:type
|
|
221
|
+
:param payload: (required)
|
|
222
|
+
:type payload: CreateClusterPayload
|
|
219
223
|
:param _request_timeout: timeout setting for this request. If one
|
|
220
224
|
number provided, it will be total request
|
|
221
225
|
timeout. It can also be a pair (tuple) of
|
|
@@ -238,8 +242,8 @@ class ClustersApi:
|
|
|
238
242
|
:return: Returns the result object.
|
|
239
243
|
""" # noqa: E501
|
|
240
244
|
|
|
241
|
-
_param = self.
|
|
242
|
-
|
|
245
|
+
_param = self._create_cluster_serialize(
|
|
246
|
+
payload=payload,
|
|
243
247
|
_request_auth=_request_auth,
|
|
244
248
|
_content_type=_content_type,
|
|
245
249
|
_headers=_headers,
|
|
@@ -247,10 +251,12 @@ class ClustersApi:
|
|
|
247
251
|
)
|
|
248
252
|
|
|
249
253
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
250
|
-
'
|
|
254
|
+
'201': "ClusterResponse",
|
|
251
255
|
'400': "ErrorResponseModel",
|
|
252
256
|
'401': "ErrorResponseModel",
|
|
253
257
|
'404': "ErrorResponseModel",
|
|
258
|
+
'409': "ErrorResponseModel",
|
|
259
|
+
'422': "ErrorResponseModel",
|
|
254
260
|
'500': None,
|
|
255
261
|
}
|
|
256
262
|
response_data = self.api_client.call_api(
|
|
@@ -260,9 +266,9 @@ class ClustersApi:
|
|
|
260
266
|
return response_data.response
|
|
261
267
|
|
|
262
268
|
|
|
263
|
-
def
|
|
269
|
+
def _create_cluster_serialize(
|
|
264
270
|
self,
|
|
265
|
-
|
|
271
|
+
payload,
|
|
266
272
|
_request_auth,
|
|
267
273
|
_content_type,
|
|
268
274
|
_headers,
|
|
@@ -284,12 +290,12 @@ class ClustersApi:
|
|
|
284
290
|
_body_params: Optional[bytes] = None
|
|
285
291
|
|
|
286
292
|
# process the path parameters
|
|
287
|
-
if cluster_id is not None:
|
|
288
|
-
_path_params['cluster_id'] = cluster_id
|
|
289
293
|
# process the query parameters
|
|
290
294
|
# process the header parameters
|
|
291
295
|
# process the form parameters
|
|
292
296
|
# process the body parameter
|
|
297
|
+
if payload is not None:
|
|
298
|
+
_body_params = payload
|
|
293
299
|
|
|
294
300
|
|
|
295
301
|
# set the HTTP header `Accept`
|
|
@@ -300,6 +306,19 @@ class ClustersApi:
|
|
|
300
306
|
]
|
|
301
307
|
)
|
|
302
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
|
|
303
322
|
|
|
304
323
|
# authentication setting
|
|
305
324
|
_auth_settings: List[str] = [
|
|
@@ -308,7 +327,7 @@ class ClustersApi:
|
|
|
308
327
|
|
|
309
328
|
return self.api_client.param_serialize(
|
|
310
329
|
method='POST',
|
|
311
|
-
resource_path='/core/clusters
|
|
330
|
+
resource_path='/core/clusters',
|
|
312
331
|
path_params=_path_params,
|
|
313
332
|
query_params=_query_params,
|
|
314
333
|
header_params=_header_params,
|
|
@@ -325,9 +344,10 @@ class ClustersApi:
|
|
|
325
344
|
|
|
326
345
|
|
|
327
346
|
@validate_call
|
|
328
|
-
def
|
|
347
|
+
def create_node(
|
|
329
348
|
self,
|
|
330
|
-
|
|
349
|
+
cluster_id: StrictInt,
|
|
350
|
+
payload: CreateClusterNodeFields,
|
|
331
351
|
_request_timeout: Union[
|
|
332
352
|
None,
|
|
333
353
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -340,12 +360,14 @@ class ClustersApi:
|
|
|
340
360
|
_content_type: Optional[StrictStr] = None,
|
|
341
361
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
342
362
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
343
|
-
) ->
|
|
344
|
-
"""Create
|
|
363
|
+
) -> ClusterNodesListResponse:
|
|
364
|
+
"""Create Node
|
|
345
365
|
|
|
346
366
|
|
|
367
|
+
:param cluster_id: (required)
|
|
368
|
+
:type cluster_id: int
|
|
347
369
|
:param payload: (required)
|
|
348
|
-
:type payload:
|
|
370
|
+
:type payload: CreateClusterNodeFields
|
|
349
371
|
:param _request_timeout: timeout setting for this request. If one
|
|
350
372
|
number provided, it will be total request
|
|
351
373
|
timeout. It can also be a pair (tuple) of
|
|
@@ -368,7 +390,8 @@ class ClustersApi:
|
|
|
368
390
|
:return: Returns the result object.
|
|
369
391
|
""" # noqa: E501
|
|
370
392
|
|
|
371
|
-
_param = self.
|
|
393
|
+
_param = self._create_node_serialize(
|
|
394
|
+
cluster_id=cluster_id,
|
|
372
395
|
payload=payload,
|
|
373
396
|
_request_auth=_request_auth,
|
|
374
397
|
_content_type=_content_type,
|
|
@@ -377,12 +400,11 @@ class ClustersApi:
|
|
|
377
400
|
)
|
|
378
401
|
|
|
379
402
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
380
|
-
'201': "
|
|
403
|
+
'201': "ClusterNodesListResponse",
|
|
381
404
|
'400': "ErrorResponseModel",
|
|
382
405
|
'401': "ErrorResponseModel",
|
|
383
406
|
'404': "ErrorResponseModel",
|
|
384
407
|
'409': "ErrorResponseModel",
|
|
385
|
-
'422': "ErrorResponseModel",
|
|
386
408
|
'500': None,
|
|
387
409
|
}
|
|
388
410
|
response_data = self.api_client.call_api(
|
|
@@ -397,9 +419,10 @@ class ClustersApi:
|
|
|
397
419
|
|
|
398
420
|
|
|
399
421
|
@validate_call
|
|
400
|
-
def
|
|
422
|
+
def create_node_with_http_info(
|
|
401
423
|
self,
|
|
402
|
-
|
|
424
|
+
cluster_id: StrictInt,
|
|
425
|
+
payload: CreateClusterNodeFields,
|
|
403
426
|
_request_timeout: Union[
|
|
404
427
|
None,
|
|
405
428
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -412,12 +435,14 @@ class ClustersApi:
|
|
|
412
435
|
_content_type: Optional[StrictStr] = None,
|
|
413
436
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
414
437
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
415
|
-
) -> ApiResponse[
|
|
416
|
-
"""Create
|
|
438
|
+
) -> ApiResponse[ClusterNodesListResponse]:
|
|
439
|
+
"""Create Node
|
|
417
440
|
|
|
418
441
|
|
|
442
|
+
:param cluster_id: (required)
|
|
443
|
+
:type cluster_id: int
|
|
419
444
|
:param payload: (required)
|
|
420
|
-
:type payload:
|
|
445
|
+
:type payload: CreateClusterNodeFields
|
|
421
446
|
:param _request_timeout: timeout setting for this request. If one
|
|
422
447
|
number provided, it will be total request
|
|
423
448
|
timeout. It can also be a pair (tuple) of
|
|
@@ -440,7 +465,8 @@ class ClustersApi:
|
|
|
440
465
|
:return: Returns the result object.
|
|
441
466
|
""" # noqa: E501
|
|
442
467
|
|
|
443
|
-
_param = self.
|
|
468
|
+
_param = self._create_node_serialize(
|
|
469
|
+
cluster_id=cluster_id,
|
|
444
470
|
payload=payload,
|
|
445
471
|
_request_auth=_request_auth,
|
|
446
472
|
_content_type=_content_type,
|
|
@@ -449,12 +475,11 @@ class ClustersApi:
|
|
|
449
475
|
)
|
|
450
476
|
|
|
451
477
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
452
|
-
'201': "
|
|
478
|
+
'201': "ClusterNodesListResponse",
|
|
453
479
|
'400': "ErrorResponseModel",
|
|
454
480
|
'401': "ErrorResponseModel",
|
|
455
481
|
'404': "ErrorResponseModel",
|
|
456
482
|
'409': "ErrorResponseModel",
|
|
457
|
-
'422': "ErrorResponseModel",
|
|
458
483
|
'500': None,
|
|
459
484
|
}
|
|
460
485
|
response_data = self.api_client.call_api(
|
|
@@ -469,9 +494,10 @@ class ClustersApi:
|
|
|
469
494
|
|
|
470
495
|
|
|
471
496
|
@validate_call
|
|
472
|
-
def
|
|
497
|
+
def create_node_without_preload_content(
|
|
473
498
|
self,
|
|
474
|
-
|
|
499
|
+
cluster_id: StrictInt,
|
|
500
|
+
payload: CreateClusterNodeFields,
|
|
475
501
|
_request_timeout: Union[
|
|
476
502
|
None,
|
|
477
503
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -485,11 +511,13 @@ class ClustersApi:
|
|
|
485
511
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
486
512
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
487
513
|
) -> RESTResponseType:
|
|
488
|
-
"""Create
|
|
514
|
+
"""Create Node
|
|
489
515
|
|
|
490
516
|
|
|
517
|
+
:param cluster_id: (required)
|
|
518
|
+
:type cluster_id: int
|
|
491
519
|
:param payload: (required)
|
|
492
|
-
:type payload:
|
|
520
|
+
:type payload: CreateClusterNodeFields
|
|
493
521
|
:param _request_timeout: timeout setting for this request. If one
|
|
494
522
|
number provided, it will be total request
|
|
495
523
|
timeout. It can also be a pair (tuple) of
|
|
@@ -512,7 +540,8 @@ class ClustersApi:
|
|
|
512
540
|
:return: Returns the result object.
|
|
513
541
|
""" # noqa: E501
|
|
514
542
|
|
|
515
|
-
_param = self.
|
|
543
|
+
_param = self._create_node_serialize(
|
|
544
|
+
cluster_id=cluster_id,
|
|
516
545
|
payload=payload,
|
|
517
546
|
_request_auth=_request_auth,
|
|
518
547
|
_content_type=_content_type,
|
|
@@ -521,12 +550,11 @@ class ClustersApi:
|
|
|
521
550
|
)
|
|
522
551
|
|
|
523
552
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
524
|
-
'201': "
|
|
553
|
+
'201': "ClusterNodesListResponse",
|
|
525
554
|
'400': "ErrorResponseModel",
|
|
526
555
|
'401': "ErrorResponseModel",
|
|
527
556
|
'404': "ErrorResponseModel",
|
|
528
557
|
'409': "ErrorResponseModel",
|
|
529
|
-
'422': "ErrorResponseModel",
|
|
530
558
|
'500': None,
|
|
531
559
|
}
|
|
532
560
|
response_data = self.api_client.call_api(
|
|
@@ -536,8 +564,9 @@ class ClustersApi:
|
|
|
536
564
|
return response_data.response
|
|
537
565
|
|
|
538
566
|
|
|
539
|
-
def
|
|
567
|
+
def _create_node_serialize(
|
|
540
568
|
self,
|
|
569
|
+
cluster_id,
|
|
541
570
|
payload,
|
|
542
571
|
_request_auth,
|
|
543
572
|
_content_type,
|
|
@@ -560,6 +589,8 @@ class ClustersApi:
|
|
|
560
589
|
_body_params: Optional[bytes] = None
|
|
561
590
|
|
|
562
591
|
# process the path parameters
|
|
592
|
+
if cluster_id is not None:
|
|
593
|
+
_path_params['cluster_id'] = cluster_id
|
|
563
594
|
# process the query parameters
|
|
564
595
|
# process the header parameters
|
|
565
596
|
# process the form parameters
|
|
@@ -597,7 +628,7 @@ class ClustersApi:
|
|
|
597
628
|
|
|
598
629
|
return self.api_client.param_serialize(
|
|
599
630
|
method='POST',
|
|
600
|
-
resource_path='/core/clusters',
|
|
631
|
+
resource_path='/core/clusters/{cluster_id}/nodes',
|
|
601
632
|
path_params=_path_params,
|
|
602
633
|
query_params=_query_params,
|
|
603
634
|
header_params=_header_params,
|
|
@@ -614,10 +645,10 @@ class ClustersApi:
|
|
|
614
645
|
|
|
615
646
|
|
|
616
647
|
@validate_call
|
|
617
|
-
def
|
|
648
|
+
def create_node_group(
|
|
618
649
|
self,
|
|
619
650
|
cluster_id: StrictInt,
|
|
620
|
-
payload:
|
|
651
|
+
payload: CreateClusterNodeGroupPayload,
|
|
621
652
|
_request_timeout: Union[
|
|
622
653
|
None,
|
|
623
654
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -630,14 +661,14 @@ class ClustersApi:
|
|
|
630
661
|
_content_type: Optional[StrictStr] = None,
|
|
631
662
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
632
663
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
633
|
-
) ->
|
|
634
|
-
"""Create
|
|
664
|
+
) -> ClusterNodeGroupsCreateResponse:
|
|
665
|
+
"""Create a node group in a cluster
|
|
635
666
|
|
|
636
667
|
|
|
637
668
|
:param cluster_id: (required)
|
|
638
669
|
:type cluster_id: int
|
|
639
670
|
:param payload: (required)
|
|
640
|
-
:type payload:
|
|
671
|
+
:type payload: CreateClusterNodeGroupPayload
|
|
641
672
|
:param _request_timeout: timeout setting for this request. If one
|
|
642
673
|
number provided, it will be total request
|
|
643
674
|
timeout. It can also be a pair (tuple) of
|
|
@@ -660,7 +691,7 @@ class ClustersApi:
|
|
|
660
691
|
:return: Returns the result object.
|
|
661
692
|
""" # noqa: E501
|
|
662
693
|
|
|
663
|
-
_param = self.
|
|
694
|
+
_param = self._create_node_group_serialize(
|
|
664
695
|
cluster_id=cluster_id,
|
|
665
696
|
payload=payload,
|
|
666
697
|
_request_auth=_request_auth,
|
|
@@ -670,7 +701,7 @@ class ClustersApi:
|
|
|
670
701
|
)
|
|
671
702
|
|
|
672
703
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
673
|
-
'201': "
|
|
704
|
+
'201': "ClusterNodeGroupsCreateResponse",
|
|
674
705
|
'400': "ErrorResponseModel",
|
|
675
706
|
'401': "ErrorResponseModel",
|
|
676
707
|
'404': "ErrorResponseModel",
|
|
@@ -689,10 +720,10 @@ class ClustersApi:
|
|
|
689
720
|
|
|
690
721
|
|
|
691
722
|
@validate_call
|
|
692
|
-
def
|
|
723
|
+
def create_node_group_with_http_info(
|
|
693
724
|
self,
|
|
694
725
|
cluster_id: StrictInt,
|
|
695
|
-
payload:
|
|
726
|
+
payload: CreateClusterNodeGroupPayload,
|
|
696
727
|
_request_timeout: Union[
|
|
697
728
|
None,
|
|
698
729
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -705,14 +736,14 @@ class ClustersApi:
|
|
|
705
736
|
_content_type: Optional[StrictStr] = None,
|
|
706
737
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
707
738
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
708
|
-
) -> ApiResponse[
|
|
709
|
-
"""Create
|
|
739
|
+
) -> ApiResponse[ClusterNodeGroupsCreateResponse]:
|
|
740
|
+
"""Create a node group in a cluster
|
|
710
741
|
|
|
711
742
|
|
|
712
743
|
:param cluster_id: (required)
|
|
713
744
|
:type cluster_id: int
|
|
714
745
|
:param payload: (required)
|
|
715
|
-
:type payload:
|
|
746
|
+
:type payload: CreateClusterNodeGroupPayload
|
|
716
747
|
:param _request_timeout: timeout setting for this request. If one
|
|
717
748
|
number provided, it will be total request
|
|
718
749
|
timeout. It can also be a pair (tuple) of
|
|
@@ -735,7 +766,7 @@ class ClustersApi:
|
|
|
735
766
|
:return: Returns the result object.
|
|
736
767
|
""" # noqa: E501
|
|
737
768
|
|
|
738
|
-
_param = self.
|
|
769
|
+
_param = self._create_node_group_serialize(
|
|
739
770
|
cluster_id=cluster_id,
|
|
740
771
|
payload=payload,
|
|
741
772
|
_request_auth=_request_auth,
|
|
@@ -745,7 +776,7 @@ class ClustersApi:
|
|
|
745
776
|
)
|
|
746
777
|
|
|
747
778
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
748
|
-
'201': "
|
|
779
|
+
'201': "ClusterNodeGroupsCreateResponse",
|
|
749
780
|
'400': "ErrorResponseModel",
|
|
750
781
|
'401': "ErrorResponseModel",
|
|
751
782
|
'404': "ErrorResponseModel",
|
|
@@ -764,10 +795,10 @@ class ClustersApi:
|
|
|
764
795
|
|
|
765
796
|
|
|
766
797
|
@validate_call
|
|
767
|
-
def
|
|
798
|
+
def create_node_group_without_preload_content(
|
|
768
799
|
self,
|
|
769
800
|
cluster_id: StrictInt,
|
|
770
|
-
payload:
|
|
801
|
+
payload: CreateClusterNodeGroupPayload,
|
|
771
802
|
_request_timeout: Union[
|
|
772
803
|
None,
|
|
773
804
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -781,13 +812,13 @@ class ClustersApi:
|
|
|
781
812
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
782
813
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
783
814
|
) -> RESTResponseType:
|
|
784
|
-
"""Create
|
|
815
|
+
"""Create a node group in a cluster
|
|
785
816
|
|
|
786
817
|
|
|
787
818
|
:param cluster_id: (required)
|
|
788
819
|
:type cluster_id: int
|
|
789
820
|
:param payload: (required)
|
|
790
|
-
:type payload:
|
|
821
|
+
:type payload: CreateClusterNodeGroupPayload
|
|
791
822
|
:param _request_timeout: timeout setting for this request. If one
|
|
792
823
|
number provided, it will be total request
|
|
793
824
|
timeout. It can also be a pair (tuple) of
|
|
@@ -810,7 +841,7 @@ class ClustersApi:
|
|
|
810
841
|
:return: Returns the result object.
|
|
811
842
|
""" # noqa: E501
|
|
812
843
|
|
|
813
|
-
_param = self.
|
|
844
|
+
_param = self._create_node_group_serialize(
|
|
814
845
|
cluster_id=cluster_id,
|
|
815
846
|
payload=payload,
|
|
816
847
|
_request_auth=_request_auth,
|
|
@@ -820,7 +851,7 @@ class ClustersApi:
|
|
|
820
851
|
)
|
|
821
852
|
|
|
822
853
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
823
|
-
'201': "
|
|
854
|
+
'201': "ClusterNodeGroupsCreateResponse",
|
|
824
855
|
'400': "ErrorResponseModel",
|
|
825
856
|
'401': "ErrorResponseModel",
|
|
826
857
|
'404': "ErrorResponseModel",
|
|
@@ -834,7 +865,7 @@ class ClustersApi:
|
|
|
834
865
|
return response_data.response
|
|
835
866
|
|
|
836
867
|
|
|
837
|
-
def
|
|
868
|
+
def _create_node_group_serialize(
|
|
838
869
|
self,
|
|
839
870
|
cluster_id,
|
|
840
871
|
payload,
|
|
@@ -898,7 +929,7 @@ class ClustersApi:
|
|
|
898
929
|
|
|
899
930
|
return self.api_client.param_serialize(
|
|
900
931
|
method='POST',
|
|
901
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
932
|
+
resource_path='/core/clusters/{cluster_id}/node-groups',
|
|
902
933
|
path_params=_path_params,
|
|
903
934
|
query_params=_query_params,
|
|
904
935
|
header_params=_header_params,
|
|
@@ -915,10 +946,9 @@ class ClustersApi:
|
|
|
915
946
|
|
|
916
947
|
|
|
917
948
|
@validate_call
|
|
918
|
-
def
|
|
949
|
+
def delete_cluster(
|
|
919
950
|
self,
|
|
920
|
-
|
|
921
|
-
payload: CreateClusterNodeGroupPayload,
|
|
951
|
+
id: StrictInt,
|
|
922
952
|
_request_timeout: Union[
|
|
923
953
|
None,
|
|
924
954
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -931,14 +961,12 @@ class ClustersApi:
|
|
|
931
961
|
_content_type: Optional[StrictStr] = None,
|
|
932
962
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
933
963
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
934
|
-
) ->
|
|
935
|
-
"""
|
|
964
|
+
) -> ResponseModel:
|
|
965
|
+
"""Delete a cluster
|
|
936
966
|
|
|
937
967
|
|
|
938
|
-
:param
|
|
939
|
-
:type
|
|
940
|
-
:param payload: (required)
|
|
941
|
-
:type payload: CreateClusterNodeGroupPayload
|
|
968
|
+
:param id: (required)
|
|
969
|
+
:type id: int
|
|
942
970
|
:param _request_timeout: timeout setting for this request. If one
|
|
943
971
|
number provided, it will be total request
|
|
944
972
|
timeout. It can also be a pair (tuple) of
|
|
@@ -961,9 +989,8 @@ class ClustersApi:
|
|
|
961
989
|
:return: Returns the result object.
|
|
962
990
|
""" # noqa: E501
|
|
963
991
|
|
|
964
|
-
_param = self.
|
|
965
|
-
|
|
966
|
-
payload=payload,
|
|
992
|
+
_param = self._delete_cluster_serialize(
|
|
993
|
+
id=id,
|
|
967
994
|
_request_auth=_request_auth,
|
|
968
995
|
_content_type=_content_type,
|
|
969
996
|
_headers=_headers,
|
|
@@ -971,11 +998,10 @@ class ClustersApi:
|
|
|
971
998
|
)
|
|
972
999
|
|
|
973
1000
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
974
|
-
'
|
|
1001
|
+
'200': "ResponseModel",
|
|
975
1002
|
'400': "ErrorResponseModel",
|
|
976
1003
|
'401': "ErrorResponseModel",
|
|
977
1004
|
'404': "ErrorResponseModel",
|
|
978
|
-
'409': "ErrorResponseModel",
|
|
979
1005
|
'500': None,
|
|
980
1006
|
}
|
|
981
1007
|
response_data = self.api_client.call_api(
|
|
@@ -990,10 +1016,9 @@ class ClustersApi:
|
|
|
990
1016
|
|
|
991
1017
|
|
|
992
1018
|
@validate_call
|
|
993
|
-
def
|
|
1019
|
+
def delete_cluster_with_http_info(
|
|
994
1020
|
self,
|
|
995
|
-
|
|
996
|
-
payload: CreateClusterNodeGroupPayload,
|
|
1021
|
+
id: StrictInt,
|
|
997
1022
|
_request_timeout: Union[
|
|
998
1023
|
None,
|
|
999
1024
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1006,14 +1031,12 @@ class ClustersApi:
|
|
|
1006
1031
|
_content_type: Optional[StrictStr] = None,
|
|
1007
1032
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1008
1033
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1009
|
-
) -> ApiResponse[
|
|
1010
|
-
"""
|
|
1034
|
+
) -> ApiResponse[ResponseModel]:
|
|
1035
|
+
"""Delete a cluster
|
|
1011
1036
|
|
|
1012
1037
|
|
|
1013
|
-
:param
|
|
1014
|
-
:type
|
|
1015
|
-
:param payload: (required)
|
|
1016
|
-
:type payload: CreateClusterNodeGroupPayload
|
|
1038
|
+
:param id: (required)
|
|
1039
|
+
:type id: int
|
|
1017
1040
|
:param _request_timeout: timeout setting for this request. If one
|
|
1018
1041
|
number provided, it will be total request
|
|
1019
1042
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1036,9 +1059,8 @@ class ClustersApi:
|
|
|
1036
1059
|
:return: Returns the result object.
|
|
1037
1060
|
""" # noqa: E501
|
|
1038
1061
|
|
|
1039
|
-
_param = self.
|
|
1040
|
-
|
|
1041
|
-
payload=payload,
|
|
1062
|
+
_param = self._delete_cluster_serialize(
|
|
1063
|
+
id=id,
|
|
1042
1064
|
_request_auth=_request_auth,
|
|
1043
1065
|
_content_type=_content_type,
|
|
1044
1066
|
_headers=_headers,
|
|
@@ -1046,11 +1068,10 @@ class ClustersApi:
|
|
|
1046
1068
|
)
|
|
1047
1069
|
|
|
1048
1070
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1049
|
-
'
|
|
1071
|
+
'200': "ResponseModel",
|
|
1050
1072
|
'400': "ErrorResponseModel",
|
|
1051
1073
|
'401': "ErrorResponseModel",
|
|
1052
1074
|
'404': "ErrorResponseModel",
|
|
1053
|
-
'409': "ErrorResponseModel",
|
|
1054
1075
|
'500': None,
|
|
1055
1076
|
}
|
|
1056
1077
|
response_data = self.api_client.call_api(
|
|
@@ -1065,10 +1086,9 @@ class ClustersApi:
|
|
|
1065
1086
|
|
|
1066
1087
|
|
|
1067
1088
|
@validate_call
|
|
1068
|
-
def
|
|
1089
|
+
def delete_cluster_without_preload_content(
|
|
1069
1090
|
self,
|
|
1070
|
-
|
|
1071
|
-
payload: CreateClusterNodeGroupPayload,
|
|
1091
|
+
id: StrictInt,
|
|
1072
1092
|
_request_timeout: Union[
|
|
1073
1093
|
None,
|
|
1074
1094
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1082,13 +1102,11 @@ class ClustersApi:
|
|
|
1082
1102
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1083
1103
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1084
1104
|
) -> RESTResponseType:
|
|
1085
|
-
"""
|
|
1105
|
+
"""Delete a cluster
|
|
1086
1106
|
|
|
1087
1107
|
|
|
1088
|
-
:param
|
|
1089
|
-
:type
|
|
1090
|
-
:param payload: (required)
|
|
1091
|
-
:type payload: CreateClusterNodeGroupPayload
|
|
1108
|
+
:param id: (required)
|
|
1109
|
+
:type id: int
|
|
1092
1110
|
:param _request_timeout: timeout setting for this request. If one
|
|
1093
1111
|
number provided, it will be total request
|
|
1094
1112
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1111,9 +1129,8 @@ class ClustersApi:
|
|
|
1111
1129
|
:return: Returns the result object.
|
|
1112
1130
|
""" # noqa: E501
|
|
1113
1131
|
|
|
1114
|
-
_param = self.
|
|
1115
|
-
|
|
1116
|
-
payload=payload,
|
|
1132
|
+
_param = self._delete_cluster_serialize(
|
|
1133
|
+
id=id,
|
|
1117
1134
|
_request_auth=_request_auth,
|
|
1118
1135
|
_content_type=_content_type,
|
|
1119
1136
|
_headers=_headers,
|
|
@@ -1121,11 +1138,10 @@ class ClustersApi:
|
|
|
1121
1138
|
)
|
|
1122
1139
|
|
|
1123
1140
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1124
|
-
'
|
|
1141
|
+
'200': "ResponseModel",
|
|
1125
1142
|
'400': "ErrorResponseModel",
|
|
1126
1143
|
'401': "ErrorResponseModel",
|
|
1127
1144
|
'404': "ErrorResponseModel",
|
|
1128
|
-
'409': "ErrorResponseModel",
|
|
1129
1145
|
'500': None,
|
|
1130
1146
|
}
|
|
1131
1147
|
response_data = self.api_client.call_api(
|
|
@@ -1135,10 +1151,9 @@ class ClustersApi:
|
|
|
1135
1151
|
return response_data.response
|
|
1136
1152
|
|
|
1137
1153
|
|
|
1138
|
-
def
|
|
1154
|
+
def _delete_cluster_serialize(
|
|
1139
1155
|
self,
|
|
1140
|
-
|
|
1141
|
-
payload,
|
|
1156
|
+
id,
|
|
1142
1157
|
_request_auth,
|
|
1143
1158
|
_content_type,
|
|
1144
1159
|
_headers,
|
|
@@ -1160,14 +1175,12 @@ class ClustersApi:
|
|
|
1160
1175
|
_body_params: Optional[bytes] = None
|
|
1161
1176
|
|
|
1162
1177
|
# process the path parameters
|
|
1163
|
-
if
|
|
1164
|
-
_path_params['
|
|
1178
|
+
if id is not None:
|
|
1179
|
+
_path_params['id'] = id
|
|
1165
1180
|
# process the query parameters
|
|
1166
1181
|
# process the header parameters
|
|
1167
1182
|
# process the form parameters
|
|
1168
1183
|
# process the body parameter
|
|
1169
|
-
if payload is not None:
|
|
1170
|
-
_body_params = payload
|
|
1171
1184
|
|
|
1172
1185
|
|
|
1173
1186
|
# set the HTTP header `Accept`
|
|
@@ -1178,19 +1191,6 @@ class ClustersApi:
|
|
|
1178
1191
|
]
|
|
1179
1192
|
)
|
|
1180
1193
|
|
|
1181
|
-
# set the HTTP header `Content-Type`
|
|
1182
|
-
if _content_type:
|
|
1183
|
-
_header_params['Content-Type'] = _content_type
|
|
1184
|
-
else:
|
|
1185
|
-
_default_content_type = (
|
|
1186
|
-
self.api_client.select_header_content_type(
|
|
1187
|
-
[
|
|
1188
|
-
'application/json'
|
|
1189
|
-
]
|
|
1190
|
-
)
|
|
1191
|
-
)
|
|
1192
|
-
if _default_content_type is not None:
|
|
1193
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1194
1194
|
|
|
1195
1195
|
# authentication setting
|
|
1196
1196
|
_auth_settings: List[str] = [
|
|
@@ -1198,8 +1198,8 @@ class ClustersApi:
|
|
|
1198
1198
|
]
|
|
1199
1199
|
|
|
1200
1200
|
return self.api_client.param_serialize(
|
|
1201
|
-
method='
|
|
1202
|
-
resource_path='/core/clusters/{
|
|
1201
|
+
method='DELETE',
|
|
1202
|
+
resource_path='/core/clusters/{id}',
|
|
1203
1203
|
path_params=_path_params,
|
|
1204
1204
|
query_params=_query_params,
|
|
1205
1205
|
header_params=_header_params,
|
|
@@ -1216,9 +1216,10 @@ class ClustersApi:
|
|
|
1216
1216
|
|
|
1217
1217
|
|
|
1218
1218
|
@validate_call
|
|
1219
|
-
def
|
|
1219
|
+
def delete_cluster_node(
|
|
1220
1220
|
self,
|
|
1221
|
-
|
|
1221
|
+
cluster_id: StrictInt,
|
|
1222
|
+
node_id: StrictInt,
|
|
1222
1223
|
_request_timeout: Union[
|
|
1223
1224
|
None,
|
|
1224
1225
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1232,11 +1233,13 @@ class ClustersApi:
|
|
|
1232
1233
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1233
1234
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1234
1235
|
) -> ResponseModel:
|
|
1235
|
-
"""Delete
|
|
1236
|
+
"""Delete Cluster Node
|
|
1236
1237
|
|
|
1237
1238
|
|
|
1238
|
-
:param
|
|
1239
|
-
:type
|
|
1239
|
+
:param cluster_id: (required)
|
|
1240
|
+
:type cluster_id: int
|
|
1241
|
+
:param node_id: (required)
|
|
1242
|
+
:type node_id: int
|
|
1240
1243
|
:param _request_timeout: timeout setting for this request. If one
|
|
1241
1244
|
number provided, it will be total request
|
|
1242
1245
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1259,8 +1262,9 @@ class ClustersApi:
|
|
|
1259
1262
|
:return: Returns the result object.
|
|
1260
1263
|
""" # noqa: E501
|
|
1261
1264
|
|
|
1262
|
-
_param = self.
|
|
1263
|
-
|
|
1265
|
+
_param = self._delete_cluster_node_serialize(
|
|
1266
|
+
cluster_id=cluster_id,
|
|
1267
|
+
node_id=node_id,
|
|
1264
1268
|
_request_auth=_request_auth,
|
|
1265
1269
|
_content_type=_content_type,
|
|
1266
1270
|
_headers=_headers,
|
|
@@ -1286,9 +1290,10 @@ class ClustersApi:
|
|
|
1286
1290
|
|
|
1287
1291
|
|
|
1288
1292
|
@validate_call
|
|
1289
|
-
def
|
|
1293
|
+
def delete_cluster_node_with_http_info(
|
|
1290
1294
|
self,
|
|
1291
|
-
|
|
1295
|
+
cluster_id: StrictInt,
|
|
1296
|
+
node_id: StrictInt,
|
|
1292
1297
|
_request_timeout: Union[
|
|
1293
1298
|
None,
|
|
1294
1299
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1302,11 +1307,13 @@ class ClustersApi:
|
|
|
1302
1307
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1303
1308
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1304
1309
|
) -> ApiResponse[ResponseModel]:
|
|
1305
|
-
"""Delete
|
|
1310
|
+
"""Delete Cluster Node
|
|
1306
1311
|
|
|
1307
1312
|
|
|
1308
|
-
:param
|
|
1309
|
-
:type
|
|
1313
|
+
:param cluster_id: (required)
|
|
1314
|
+
:type cluster_id: int
|
|
1315
|
+
:param node_id: (required)
|
|
1316
|
+
:type node_id: int
|
|
1310
1317
|
:param _request_timeout: timeout setting for this request. If one
|
|
1311
1318
|
number provided, it will be total request
|
|
1312
1319
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1329,8 +1336,9 @@ class ClustersApi:
|
|
|
1329
1336
|
:return: Returns the result object.
|
|
1330
1337
|
""" # noqa: E501
|
|
1331
1338
|
|
|
1332
|
-
_param = self.
|
|
1333
|
-
|
|
1339
|
+
_param = self._delete_cluster_node_serialize(
|
|
1340
|
+
cluster_id=cluster_id,
|
|
1341
|
+
node_id=node_id,
|
|
1334
1342
|
_request_auth=_request_auth,
|
|
1335
1343
|
_content_type=_content_type,
|
|
1336
1344
|
_headers=_headers,
|
|
@@ -1356,9 +1364,10 @@ class ClustersApi:
|
|
|
1356
1364
|
|
|
1357
1365
|
|
|
1358
1366
|
@validate_call
|
|
1359
|
-
def
|
|
1367
|
+
def delete_cluster_node_without_preload_content(
|
|
1360
1368
|
self,
|
|
1361
|
-
|
|
1369
|
+
cluster_id: StrictInt,
|
|
1370
|
+
node_id: StrictInt,
|
|
1362
1371
|
_request_timeout: Union[
|
|
1363
1372
|
None,
|
|
1364
1373
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1372,11 +1381,13 @@ class ClustersApi:
|
|
|
1372
1381
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1373
1382
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1374
1383
|
) -> RESTResponseType:
|
|
1375
|
-
"""Delete
|
|
1384
|
+
"""Delete Cluster Node
|
|
1376
1385
|
|
|
1377
1386
|
|
|
1378
|
-
:param
|
|
1379
|
-
:type
|
|
1387
|
+
:param cluster_id: (required)
|
|
1388
|
+
:type cluster_id: int
|
|
1389
|
+
:param node_id: (required)
|
|
1390
|
+
:type node_id: int
|
|
1380
1391
|
:param _request_timeout: timeout setting for this request. If one
|
|
1381
1392
|
number provided, it will be total request
|
|
1382
1393
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1399,8 +1410,9 @@ class ClustersApi:
|
|
|
1399
1410
|
:return: Returns the result object.
|
|
1400
1411
|
""" # noqa: E501
|
|
1401
1412
|
|
|
1402
|
-
_param = self.
|
|
1403
|
-
|
|
1413
|
+
_param = self._delete_cluster_node_serialize(
|
|
1414
|
+
cluster_id=cluster_id,
|
|
1415
|
+
node_id=node_id,
|
|
1404
1416
|
_request_auth=_request_auth,
|
|
1405
1417
|
_content_type=_content_type,
|
|
1406
1418
|
_headers=_headers,
|
|
@@ -1421,9 +1433,10 @@ class ClustersApi:
|
|
|
1421
1433
|
return response_data.response
|
|
1422
1434
|
|
|
1423
1435
|
|
|
1424
|
-
def
|
|
1436
|
+
def _delete_cluster_node_serialize(
|
|
1425
1437
|
self,
|
|
1426
|
-
|
|
1438
|
+
cluster_id,
|
|
1439
|
+
node_id,
|
|
1427
1440
|
_request_auth,
|
|
1428
1441
|
_content_type,
|
|
1429
1442
|
_headers,
|
|
@@ -1445,8 +1458,10 @@ class ClustersApi:
|
|
|
1445
1458
|
_body_params: Optional[bytes] = None
|
|
1446
1459
|
|
|
1447
1460
|
# process the path parameters
|
|
1448
|
-
if
|
|
1449
|
-
_path_params['
|
|
1461
|
+
if cluster_id is not None:
|
|
1462
|
+
_path_params['cluster_id'] = cluster_id
|
|
1463
|
+
if node_id is not None:
|
|
1464
|
+
_path_params['node_id'] = node_id
|
|
1450
1465
|
# process the query parameters
|
|
1451
1466
|
# process the header parameters
|
|
1452
1467
|
# process the form parameters
|
|
@@ -1469,7 +1484,7 @@ class ClustersApi:
|
|
|
1469
1484
|
|
|
1470
1485
|
return self.api_client.param_serialize(
|
|
1471
1486
|
method='DELETE',
|
|
1472
|
-
resource_path='/core/clusters/{
|
|
1487
|
+
resource_path='/core/clusters/{cluster_id}/nodes/{node_id}',
|
|
1473
1488
|
path_params=_path_params,
|
|
1474
1489
|
query_params=_query_params,
|
|
1475
1490
|
header_params=_header_params,
|
|
@@ -1486,10 +1501,10 @@ class ClustersApi:
|
|
|
1486
1501
|
|
|
1487
1502
|
|
|
1488
1503
|
@validate_call
|
|
1489
|
-
def
|
|
1504
|
+
def delete_cluster_nodes(
|
|
1490
1505
|
self,
|
|
1491
1506
|
cluster_id: StrictInt,
|
|
1492
|
-
|
|
1507
|
+
payload: DeleteClusterNodesFields,
|
|
1493
1508
|
_request_timeout: Union[
|
|
1494
1509
|
None,
|
|
1495
1510
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1503,13 +1518,13 @@ class ClustersApi:
|
|
|
1503
1518
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1504
1519
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1505
1520
|
) -> ResponseModel:
|
|
1506
|
-
"""Delete
|
|
1521
|
+
"""Delete Multiple Cluster Nodes
|
|
1507
1522
|
|
|
1508
1523
|
|
|
1509
1524
|
:param cluster_id: (required)
|
|
1510
1525
|
:type cluster_id: int
|
|
1511
|
-
:param
|
|
1512
|
-
:type
|
|
1526
|
+
:param payload: (required)
|
|
1527
|
+
:type payload: DeleteClusterNodesFields
|
|
1513
1528
|
:param _request_timeout: timeout setting for this request. If one
|
|
1514
1529
|
number provided, it will be total request
|
|
1515
1530
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1532,9 +1547,9 @@ class ClustersApi:
|
|
|
1532
1547
|
:return: Returns the result object.
|
|
1533
1548
|
""" # noqa: E501
|
|
1534
1549
|
|
|
1535
|
-
_param = self.
|
|
1550
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
1536
1551
|
cluster_id=cluster_id,
|
|
1537
|
-
|
|
1552
|
+
payload=payload,
|
|
1538
1553
|
_request_auth=_request_auth,
|
|
1539
1554
|
_content_type=_content_type,
|
|
1540
1555
|
_headers=_headers,
|
|
@@ -1546,7 +1561,6 @@ class ClustersApi:
|
|
|
1546
1561
|
'400': "ErrorResponseModel",
|
|
1547
1562
|
'401': "ErrorResponseModel",
|
|
1548
1563
|
'404': "ErrorResponseModel",
|
|
1549
|
-
'409': "ErrorResponseModel",
|
|
1550
1564
|
'500': None,
|
|
1551
1565
|
}
|
|
1552
1566
|
response_data = self.api_client.call_api(
|
|
@@ -1561,10 +1575,10 @@ class ClustersApi:
|
|
|
1561
1575
|
|
|
1562
1576
|
|
|
1563
1577
|
@validate_call
|
|
1564
|
-
def
|
|
1578
|
+
def delete_cluster_nodes_with_http_info(
|
|
1565
1579
|
self,
|
|
1566
1580
|
cluster_id: StrictInt,
|
|
1567
|
-
|
|
1581
|
+
payload: DeleteClusterNodesFields,
|
|
1568
1582
|
_request_timeout: Union[
|
|
1569
1583
|
None,
|
|
1570
1584
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1578,13 +1592,13 @@ class ClustersApi:
|
|
|
1578
1592
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1579
1593
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1580
1594
|
) -> ApiResponse[ResponseModel]:
|
|
1581
|
-
"""Delete
|
|
1595
|
+
"""Delete Multiple Cluster Nodes
|
|
1582
1596
|
|
|
1583
1597
|
|
|
1584
1598
|
:param cluster_id: (required)
|
|
1585
1599
|
:type cluster_id: int
|
|
1586
|
-
:param
|
|
1587
|
-
:type
|
|
1600
|
+
:param payload: (required)
|
|
1601
|
+
:type payload: DeleteClusterNodesFields
|
|
1588
1602
|
:param _request_timeout: timeout setting for this request. If one
|
|
1589
1603
|
number provided, it will be total request
|
|
1590
1604
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1607,9 +1621,9 @@ class ClustersApi:
|
|
|
1607
1621
|
:return: Returns the result object.
|
|
1608
1622
|
""" # noqa: E501
|
|
1609
1623
|
|
|
1610
|
-
_param = self.
|
|
1624
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
1611
1625
|
cluster_id=cluster_id,
|
|
1612
|
-
|
|
1626
|
+
payload=payload,
|
|
1613
1627
|
_request_auth=_request_auth,
|
|
1614
1628
|
_content_type=_content_type,
|
|
1615
1629
|
_headers=_headers,
|
|
@@ -1621,7 +1635,6 @@ class ClustersApi:
|
|
|
1621
1635
|
'400': "ErrorResponseModel",
|
|
1622
1636
|
'401': "ErrorResponseModel",
|
|
1623
1637
|
'404': "ErrorResponseModel",
|
|
1624
|
-
'409': "ErrorResponseModel",
|
|
1625
1638
|
'500': None,
|
|
1626
1639
|
}
|
|
1627
1640
|
response_data = self.api_client.call_api(
|
|
@@ -1636,10 +1649,10 @@ class ClustersApi:
|
|
|
1636
1649
|
|
|
1637
1650
|
|
|
1638
1651
|
@validate_call
|
|
1639
|
-
def
|
|
1652
|
+
def delete_cluster_nodes_without_preload_content(
|
|
1640
1653
|
self,
|
|
1641
1654
|
cluster_id: StrictInt,
|
|
1642
|
-
|
|
1655
|
+
payload: DeleteClusterNodesFields,
|
|
1643
1656
|
_request_timeout: Union[
|
|
1644
1657
|
None,
|
|
1645
1658
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1653,13 +1666,13 @@ class ClustersApi:
|
|
|
1653
1666
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1654
1667
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1655
1668
|
) -> RESTResponseType:
|
|
1656
|
-
"""Delete
|
|
1669
|
+
"""Delete Multiple Cluster Nodes
|
|
1657
1670
|
|
|
1658
1671
|
|
|
1659
1672
|
:param cluster_id: (required)
|
|
1660
1673
|
:type cluster_id: int
|
|
1661
|
-
:param
|
|
1662
|
-
:type
|
|
1674
|
+
:param payload: (required)
|
|
1675
|
+
:type payload: DeleteClusterNodesFields
|
|
1663
1676
|
:param _request_timeout: timeout setting for this request. If one
|
|
1664
1677
|
number provided, it will be total request
|
|
1665
1678
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1682,9 +1695,9 @@ class ClustersApi:
|
|
|
1682
1695
|
:return: Returns the result object.
|
|
1683
1696
|
""" # noqa: E501
|
|
1684
1697
|
|
|
1685
|
-
_param = self.
|
|
1698
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
1686
1699
|
cluster_id=cluster_id,
|
|
1687
|
-
|
|
1700
|
+
payload=payload,
|
|
1688
1701
|
_request_auth=_request_auth,
|
|
1689
1702
|
_content_type=_content_type,
|
|
1690
1703
|
_headers=_headers,
|
|
@@ -1696,7 +1709,6 @@ class ClustersApi:
|
|
|
1696
1709
|
'400': "ErrorResponseModel",
|
|
1697
1710
|
'401': "ErrorResponseModel",
|
|
1698
1711
|
'404': "ErrorResponseModel",
|
|
1699
|
-
'409': "ErrorResponseModel",
|
|
1700
1712
|
'500': None,
|
|
1701
1713
|
}
|
|
1702
1714
|
response_data = self.api_client.call_api(
|
|
@@ -1706,10 +1718,10 @@ class ClustersApi:
|
|
|
1706
1718
|
return response_data.response
|
|
1707
1719
|
|
|
1708
1720
|
|
|
1709
|
-
def
|
|
1721
|
+
def _delete_cluster_nodes_serialize(
|
|
1710
1722
|
self,
|
|
1711
1723
|
cluster_id,
|
|
1712
|
-
|
|
1724
|
+
payload,
|
|
1713
1725
|
_request_auth,
|
|
1714
1726
|
_content_type,
|
|
1715
1727
|
_headers,
|
|
@@ -1733,12 +1745,12 @@ class ClustersApi:
|
|
|
1733
1745
|
# process the path parameters
|
|
1734
1746
|
if cluster_id is not None:
|
|
1735
1747
|
_path_params['cluster_id'] = cluster_id
|
|
1736
|
-
if node_group_id is not None:
|
|
1737
|
-
_path_params['node_group_id'] = node_group_id
|
|
1738
1748
|
# process the query parameters
|
|
1739
1749
|
# process the header parameters
|
|
1740
1750
|
# process the form parameters
|
|
1741
1751
|
# process the body parameter
|
|
1752
|
+
if payload is not None:
|
|
1753
|
+
_body_params = payload
|
|
1742
1754
|
|
|
1743
1755
|
|
|
1744
1756
|
# set the HTTP header `Accept`
|
|
@@ -1749,6 +1761,19 @@ class ClustersApi:
|
|
|
1749
1761
|
]
|
|
1750
1762
|
)
|
|
1751
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
|
|
1752
1777
|
|
|
1753
1778
|
# authentication setting
|
|
1754
1779
|
_auth_settings: List[str] = [
|
|
@@ -1756,8 +1781,8 @@ class ClustersApi:
|
|
|
1756
1781
|
]
|
|
1757
1782
|
|
|
1758
1783
|
return self.api_client.param_serialize(
|
|
1759
|
-
method='
|
|
1760
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
1784
|
+
method='POST',
|
|
1785
|
+
resource_path='/core/clusters/{cluster_id}/nodes/delete',
|
|
1761
1786
|
path_params=_path_params,
|
|
1762
1787
|
query_params=_query_params,
|
|
1763
1788
|
header_params=_header_params,
|
|
@@ -1774,10 +1799,10 @@ class ClustersApi:
|
|
|
1774
1799
|
|
|
1775
1800
|
|
|
1776
1801
|
@validate_call
|
|
1777
|
-
def
|
|
1802
|
+
def delete_node_group(
|
|
1778
1803
|
self,
|
|
1779
1804
|
cluster_id: StrictInt,
|
|
1780
|
-
|
|
1805
|
+
node_group_id: StrictInt,
|
|
1781
1806
|
_request_timeout: Union[
|
|
1782
1807
|
None,
|
|
1783
1808
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1791,13 +1816,13 @@ class ClustersApi:
|
|
|
1791
1816
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1792
1817
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1793
1818
|
) -> ResponseModel:
|
|
1794
|
-
"""Delete
|
|
1819
|
+
"""Delete a node group
|
|
1795
1820
|
|
|
1796
1821
|
|
|
1797
1822
|
:param cluster_id: (required)
|
|
1798
1823
|
:type cluster_id: int
|
|
1799
|
-
:param
|
|
1800
|
-
:type
|
|
1824
|
+
:param node_group_id: (required)
|
|
1825
|
+
:type node_group_id: int
|
|
1801
1826
|
:param _request_timeout: timeout setting for this request. If one
|
|
1802
1827
|
number provided, it will be total request
|
|
1803
1828
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1820,9 +1845,9 @@ class ClustersApi:
|
|
|
1820
1845
|
:return: Returns the result object.
|
|
1821
1846
|
""" # noqa: E501
|
|
1822
1847
|
|
|
1823
|
-
_param = self.
|
|
1848
|
+
_param = self._delete_node_group_serialize(
|
|
1824
1849
|
cluster_id=cluster_id,
|
|
1825
|
-
|
|
1850
|
+
node_group_id=node_group_id,
|
|
1826
1851
|
_request_auth=_request_auth,
|
|
1827
1852
|
_content_type=_content_type,
|
|
1828
1853
|
_headers=_headers,
|
|
@@ -1834,6 +1859,7 @@ class ClustersApi:
|
|
|
1834
1859
|
'400': "ErrorResponseModel",
|
|
1835
1860
|
'401': "ErrorResponseModel",
|
|
1836
1861
|
'404': "ErrorResponseModel",
|
|
1862
|
+
'409': "ErrorResponseModel",
|
|
1837
1863
|
'500': None,
|
|
1838
1864
|
}
|
|
1839
1865
|
response_data = self.api_client.call_api(
|
|
@@ -1848,10 +1874,10 @@ class ClustersApi:
|
|
|
1848
1874
|
|
|
1849
1875
|
|
|
1850
1876
|
@validate_call
|
|
1851
|
-
def
|
|
1877
|
+
def delete_node_group_with_http_info(
|
|
1852
1878
|
self,
|
|
1853
1879
|
cluster_id: StrictInt,
|
|
1854
|
-
|
|
1880
|
+
node_group_id: StrictInt,
|
|
1855
1881
|
_request_timeout: Union[
|
|
1856
1882
|
None,
|
|
1857
1883
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1865,13 +1891,13 @@ class ClustersApi:
|
|
|
1865
1891
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1866
1892
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1867
1893
|
) -> ApiResponse[ResponseModel]:
|
|
1868
|
-
"""Delete
|
|
1894
|
+
"""Delete a node group
|
|
1869
1895
|
|
|
1870
1896
|
|
|
1871
1897
|
:param cluster_id: (required)
|
|
1872
1898
|
:type cluster_id: int
|
|
1873
|
-
:param
|
|
1874
|
-
:type
|
|
1899
|
+
:param node_group_id: (required)
|
|
1900
|
+
:type node_group_id: int
|
|
1875
1901
|
:param _request_timeout: timeout setting for this request. If one
|
|
1876
1902
|
number provided, it will be total request
|
|
1877
1903
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1894,9 +1920,9 @@ class ClustersApi:
|
|
|
1894
1920
|
:return: Returns the result object.
|
|
1895
1921
|
""" # noqa: E501
|
|
1896
1922
|
|
|
1897
|
-
_param = self.
|
|
1923
|
+
_param = self._delete_node_group_serialize(
|
|
1898
1924
|
cluster_id=cluster_id,
|
|
1899
|
-
|
|
1925
|
+
node_group_id=node_group_id,
|
|
1900
1926
|
_request_auth=_request_auth,
|
|
1901
1927
|
_content_type=_content_type,
|
|
1902
1928
|
_headers=_headers,
|
|
@@ -1908,6 +1934,7 @@ class ClustersApi:
|
|
|
1908
1934
|
'400': "ErrorResponseModel",
|
|
1909
1935
|
'401': "ErrorResponseModel",
|
|
1910
1936
|
'404': "ErrorResponseModel",
|
|
1937
|
+
'409': "ErrorResponseModel",
|
|
1911
1938
|
'500': None,
|
|
1912
1939
|
}
|
|
1913
1940
|
response_data = self.api_client.call_api(
|
|
@@ -1922,10 +1949,10 @@ class ClustersApi:
|
|
|
1922
1949
|
|
|
1923
1950
|
|
|
1924
1951
|
@validate_call
|
|
1925
|
-
def
|
|
1952
|
+
def delete_node_group_without_preload_content(
|
|
1926
1953
|
self,
|
|
1927
1954
|
cluster_id: StrictInt,
|
|
1928
|
-
|
|
1955
|
+
node_group_id: StrictInt,
|
|
1929
1956
|
_request_timeout: Union[
|
|
1930
1957
|
None,
|
|
1931
1958
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1939,13 +1966,13 @@ class ClustersApi:
|
|
|
1939
1966
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1940
1967
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1941
1968
|
) -> RESTResponseType:
|
|
1942
|
-
"""Delete
|
|
1969
|
+
"""Delete a node group
|
|
1943
1970
|
|
|
1944
1971
|
|
|
1945
1972
|
:param cluster_id: (required)
|
|
1946
1973
|
:type cluster_id: int
|
|
1947
|
-
:param
|
|
1948
|
-
:type
|
|
1974
|
+
:param node_group_id: (required)
|
|
1975
|
+
:type node_group_id: int
|
|
1949
1976
|
:param _request_timeout: timeout setting for this request. If one
|
|
1950
1977
|
number provided, it will be total request
|
|
1951
1978
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1968,9 +1995,9 @@ class ClustersApi:
|
|
|
1968
1995
|
:return: Returns the result object.
|
|
1969
1996
|
""" # noqa: E501
|
|
1970
1997
|
|
|
1971
|
-
_param = self.
|
|
1998
|
+
_param = self._delete_node_group_serialize(
|
|
1972
1999
|
cluster_id=cluster_id,
|
|
1973
|
-
|
|
2000
|
+
node_group_id=node_group_id,
|
|
1974
2001
|
_request_auth=_request_auth,
|
|
1975
2002
|
_content_type=_content_type,
|
|
1976
2003
|
_headers=_headers,
|
|
@@ -1982,6 +2009,7 @@ class ClustersApi:
|
|
|
1982
2009
|
'400': "ErrorResponseModel",
|
|
1983
2010
|
'401': "ErrorResponseModel",
|
|
1984
2011
|
'404': "ErrorResponseModel",
|
|
2012
|
+
'409': "ErrorResponseModel",
|
|
1985
2013
|
'500': None,
|
|
1986
2014
|
}
|
|
1987
2015
|
response_data = self.api_client.call_api(
|
|
@@ -1991,10 +2019,10 @@ class ClustersApi:
|
|
|
1991
2019
|
return response_data.response
|
|
1992
2020
|
|
|
1993
2021
|
|
|
1994
|
-
def
|
|
2022
|
+
def _delete_node_group_serialize(
|
|
1995
2023
|
self,
|
|
1996
2024
|
cluster_id,
|
|
1997
|
-
|
|
2025
|
+
node_group_id,
|
|
1998
2026
|
_request_auth,
|
|
1999
2027
|
_content_type,
|
|
2000
2028
|
_headers,
|
|
@@ -2018,8 +2046,8 @@ class ClustersApi:
|
|
|
2018
2046
|
# process the path parameters
|
|
2019
2047
|
if cluster_id is not None:
|
|
2020
2048
|
_path_params['cluster_id'] = cluster_id
|
|
2021
|
-
if
|
|
2022
|
-
_path_params['
|
|
2049
|
+
if node_group_id is not None:
|
|
2050
|
+
_path_params['node_group_id'] = node_group_id
|
|
2023
2051
|
# process the query parameters
|
|
2024
2052
|
# process the header parameters
|
|
2025
2053
|
# process the form parameters
|
|
@@ -2042,7 +2070,7 @@ class ClustersApi:
|
|
|
2042
2070
|
|
|
2043
2071
|
return self.api_client.param_serialize(
|
|
2044
2072
|
method='DELETE',
|
|
2045
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
2073
|
+
resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
|
|
2046
2074
|
path_params=_path_params,
|
|
2047
2075
|
query_params=_query_params,
|
|
2048
2076
|
header_params=_header_params,
|
|
@@ -2059,10 +2087,9 @@ class ClustersApi:
|
|
|
2059
2087
|
|
|
2060
2088
|
|
|
2061
2089
|
@validate_call
|
|
2062
|
-
def
|
|
2090
|
+
def fetch_cluster_name_availability(
|
|
2063
2091
|
self,
|
|
2064
|
-
|
|
2065
|
-
payload: DeleteClusterNodesFields,
|
|
2092
|
+
name: StrictStr,
|
|
2066
2093
|
_request_timeout: Union[
|
|
2067
2094
|
None,
|
|
2068
2095
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2075,14 +2102,13 @@ class ClustersApi:
|
|
|
2075
2102
|
_content_type: Optional[StrictStr] = None,
|
|
2076
2103
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2077
2104
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2078
|
-
) ->
|
|
2079
|
-
"""
|
|
2105
|
+
) -> NameAvailableModel:
|
|
2106
|
+
"""Fetch cluster name availability
|
|
2080
2107
|
|
|
2108
|
+
Check if a Cluster name is available
|
|
2081
2109
|
|
|
2082
|
-
:param
|
|
2083
|
-
:type
|
|
2084
|
-
:param payload: (required)
|
|
2085
|
-
:type payload: DeleteClusterNodesFields
|
|
2110
|
+
:param name: (required)
|
|
2111
|
+
:type name: str
|
|
2086
2112
|
:param _request_timeout: timeout setting for this request. If one
|
|
2087
2113
|
number provided, it will be total request
|
|
2088
2114
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2105,9 +2131,8 @@ class ClustersApi:
|
|
|
2105
2131
|
:return: Returns the result object.
|
|
2106
2132
|
""" # noqa: E501
|
|
2107
2133
|
|
|
2108
|
-
_param = self.
|
|
2109
|
-
|
|
2110
|
-
payload=payload,
|
|
2134
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2135
|
+
name=name,
|
|
2111
2136
|
_request_auth=_request_auth,
|
|
2112
2137
|
_content_type=_content_type,
|
|
2113
2138
|
_headers=_headers,
|
|
@@ -2115,7 +2140,7 @@ class ClustersApi:
|
|
|
2115
2140
|
)
|
|
2116
2141
|
|
|
2117
2142
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2118
|
-
'200': "
|
|
2143
|
+
'200': "NameAvailableModel",
|
|
2119
2144
|
'400': "ErrorResponseModel",
|
|
2120
2145
|
'401': "ErrorResponseModel",
|
|
2121
2146
|
'404': "ErrorResponseModel",
|
|
@@ -2133,10 +2158,9 @@ class ClustersApi:
|
|
|
2133
2158
|
|
|
2134
2159
|
|
|
2135
2160
|
@validate_call
|
|
2136
|
-
def
|
|
2161
|
+
def fetch_cluster_name_availability_with_http_info(
|
|
2137
2162
|
self,
|
|
2138
|
-
|
|
2139
|
-
payload: DeleteClusterNodesFields,
|
|
2163
|
+
name: StrictStr,
|
|
2140
2164
|
_request_timeout: Union[
|
|
2141
2165
|
None,
|
|
2142
2166
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2149,14 +2173,13 @@ class ClustersApi:
|
|
|
2149
2173
|
_content_type: Optional[StrictStr] = None,
|
|
2150
2174
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2151
2175
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2152
|
-
) -> ApiResponse[
|
|
2153
|
-
"""
|
|
2176
|
+
) -> ApiResponse[NameAvailableModel]:
|
|
2177
|
+
"""Fetch cluster name availability
|
|
2154
2178
|
|
|
2179
|
+
Check if a Cluster name is available
|
|
2155
2180
|
|
|
2156
|
-
:param
|
|
2157
|
-
:type
|
|
2158
|
-
:param payload: (required)
|
|
2159
|
-
:type payload: DeleteClusterNodesFields
|
|
2181
|
+
:param name: (required)
|
|
2182
|
+
:type name: str
|
|
2160
2183
|
:param _request_timeout: timeout setting for this request. If one
|
|
2161
2184
|
number provided, it will be total request
|
|
2162
2185
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2179,9 +2202,8 @@ class ClustersApi:
|
|
|
2179
2202
|
:return: Returns the result object.
|
|
2180
2203
|
""" # noqa: E501
|
|
2181
2204
|
|
|
2182
|
-
_param = self.
|
|
2183
|
-
|
|
2184
|
-
payload=payload,
|
|
2205
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2206
|
+
name=name,
|
|
2185
2207
|
_request_auth=_request_auth,
|
|
2186
2208
|
_content_type=_content_type,
|
|
2187
2209
|
_headers=_headers,
|
|
@@ -2189,7 +2211,7 @@ class ClustersApi:
|
|
|
2189
2211
|
)
|
|
2190
2212
|
|
|
2191
2213
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2192
|
-
'200': "
|
|
2214
|
+
'200': "NameAvailableModel",
|
|
2193
2215
|
'400': "ErrorResponseModel",
|
|
2194
2216
|
'401': "ErrorResponseModel",
|
|
2195
2217
|
'404': "ErrorResponseModel",
|
|
@@ -2207,10 +2229,9 @@ class ClustersApi:
|
|
|
2207
2229
|
|
|
2208
2230
|
|
|
2209
2231
|
@validate_call
|
|
2210
|
-
def
|
|
2232
|
+
def fetch_cluster_name_availability_without_preload_content(
|
|
2211
2233
|
self,
|
|
2212
|
-
|
|
2213
|
-
payload: DeleteClusterNodesFields,
|
|
2234
|
+
name: StrictStr,
|
|
2214
2235
|
_request_timeout: Union[
|
|
2215
2236
|
None,
|
|
2216
2237
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2224,13 +2245,12 @@ class ClustersApi:
|
|
|
2224
2245
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2225
2246
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2226
2247
|
) -> RESTResponseType:
|
|
2227
|
-
"""
|
|
2248
|
+
"""Fetch cluster name availability
|
|
2228
2249
|
|
|
2250
|
+
Check if a Cluster name is available
|
|
2229
2251
|
|
|
2230
|
-
:param
|
|
2231
|
-
:type
|
|
2232
|
-
:param payload: (required)
|
|
2233
|
-
:type payload: DeleteClusterNodesFields
|
|
2252
|
+
:param name: (required)
|
|
2253
|
+
:type name: str
|
|
2234
2254
|
:param _request_timeout: timeout setting for this request. If one
|
|
2235
2255
|
number provided, it will be total request
|
|
2236
2256
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2253,9 +2273,8 @@ class ClustersApi:
|
|
|
2253
2273
|
:return: Returns the result object.
|
|
2254
2274
|
""" # noqa: E501
|
|
2255
2275
|
|
|
2256
|
-
_param = self.
|
|
2257
|
-
|
|
2258
|
-
payload=payload,
|
|
2276
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2277
|
+
name=name,
|
|
2259
2278
|
_request_auth=_request_auth,
|
|
2260
2279
|
_content_type=_content_type,
|
|
2261
2280
|
_headers=_headers,
|
|
@@ -2263,7 +2282,7 @@ class ClustersApi:
|
|
|
2263
2282
|
)
|
|
2264
2283
|
|
|
2265
2284
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2266
|
-
'200': "
|
|
2285
|
+
'200': "NameAvailableModel",
|
|
2267
2286
|
'400': "ErrorResponseModel",
|
|
2268
2287
|
'401': "ErrorResponseModel",
|
|
2269
2288
|
'404': "ErrorResponseModel",
|
|
@@ -2276,10 +2295,9 @@ class ClustersApi:
|
|
|
2276
2295
|
return response_data.response
|
|
2277
2296
|
|
|
2278
2297
|
|
|
2279
|
-
def
|
|
2298
|
+
def _fetch_cluster_name_availability_serialize(
|
|
2280
2299
|
self,
|
|
2281
|
-
|
|
2282
|
-
payload,
|
|
2300
|
+
name,
|
|
2283
2301
|
_request_auth,
|
|
2284
2302
|
_content_type,
|
|
2285
2303
|
_headers,
|
|
@@ -2301,14 +2319,12 @@ class ClustersApi:
|
|
|
2301
2319
|
_body_params: Optional[bytes] = None
|
|
2302
2320
|
|
|
2303
2321
|
# process the path parameters
|
|
2304
|
-
if
|
|
2305
|
-
_path_params['
|
|
2322
|
+
if name is not None:
|
|
2323
|
+
_path_params['name'] = name
|
|
2306
2324
|
# process the query parameters
|
|
2307
2325
|
# process the header parameters
|
|
2308
2326
|
# process the form parameters
|
|
2309
2327
|
# process the body parameter
|
|
2310
|
-
if payload is not None:
|
|
2311
|
-
_body_params = payload
|
|
2312
2328
|
|
|
2313
2329
|
|
|
2314
2330
|
# set the HTTP header `Accept`
|
|
@@ -2319,19 +2335,6 @@ class ClustersApi:
|
|
|
2319
2335
|
]
|
|
2320
2336
|
)
|
|
2321
2337
|
|
|
2322
|
-
# set the HTTP header `Content-Type`
|
|
2323
|
-
if _content_type:
|
|
2324
|
-
_header_params['Content-Type'] = _content_type
|
|
2325
|
-
else:
|
|
2326
|
-
_default_content_type = (
|
|
2327
|
-
self.api_client.select_header_content_type(
|
|
2328
|
-
[
|
|
2329
|
-
'application/json'
|
|
2330
|
-
]
|
|
2331
|
-
)
|
|
2332
|
-
)
|
|
2333
|
-
if _default_content_type is not None:
|
|
2334
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2335
2338
|
|
|
2336
2339
|
# authentication setting
|
|
2337
2340
|
_auth_settings: List[str] = [
|
|
@@ -2339,8 +2342,8 @@ class ClustersApi:
|
|
|
2339
2342
|
]
|
|
2340
2343
|
|
|
2341
2344
|
return self.api_client.param_serialize(
|
|
2342
|
-
method='
|
|
2343
|
-
resource_path='/core/clusters/{
|
|
2345
|
+
method='GET',
|
|
2346
|
+
resource_path='/core/clusters/name-availability/{name}',
|
|
2344
2347
|
path_params=_path_params,
|
|
2345
2348
|
query_params=_query_params,
|
|
2346
2349
|
header_params=_header_params,
|
|
@@ -2357,9 +2360,8 @@ class ClustersApi:
|
|
|
2357
2360
|
|
|
2358
2361
|
|
|
2359
2362
|
@validate_call
|
|
2360
|
-
def
|
|
2363
|
+
def get_cluster_master_flavors(
|
|
2361
2364
|
self,
|
|
2362
|
-
name: StrictStr,
|
|
2363
2365
|
_request_timeout: Union[
|
|
2364
2366
|
None,
|
|
2365
2367
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2372,13 +2374,10 @@ class ClustersApi:
|
|
|
2372
2374
|
_content_type: Optional[StrictStr] = None,
|
|
2373
2375
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2374
2376
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2375
|
-
) ->
|
|
2376
|
-
"""
|
|
2377
|
+
) -> MasterFlavorsResponse:
|
|
2378
|
+
"""Get Cluster Master Flavors
|
|
2377
2379
|
|
|
2378
|
-
Check if a Cluster name is available
|
|
2379
2380
|
|
|
2380
|
-
:param name: (required)
|
|
2381
|
-
:type name: str
|
|
2382
2381
|
:param _request_timeout: timeout setting for this request. If one
|
|
2383
2382
|
number provided, it will be total request
|
|
2384
2383
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2401,8 +2400,7 @@ class ClustersApi:
|
|
|
2401
2400
|
:return: Returns the result object.
|
|
2402
2401
|
""" # noqa: E501
|
|
2403
2402
|
|
|
2404
|
-
_param = self.
|
|
2405
|
-
name=name,
|
|
2403
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2406
2404
|
_request_auth=_request_auth,
|
|
2407
2405
|
_content_type=_content_type,
|
|
2408
2406
|
_headers=_headers,
|
|
@@ -2410,10 +2408,9 @@ class ClustersApi:
|
|
|
2410
2408
|
)
|
|
2411
2409
|
|
|
2412
2410
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2413
|
-
'200': "
|
|
2411
|
+
'200': "MasterFlavorsResponse",
|
|
2414
2412
|
'400': "ErrorResponseModel",
|
|
2415
2413
|
'401': "ErrorResponseModel",
|
|
2416
|
-
'404': "ErrorResponseModel",
|
|
2417
2414
|
'500': None,
|
|
2418
2415
|
}
|
|
2419
2416
|
response_data = self.api_client.call_api(
|
|
@@ -2428,9 +2425,8 @@ class ClustersApi:
|
|
|
2428
2425
|
|
|
2429
2426
|
|
|
2430
2427
|
@validate_call
|
|
2431
|
-
def
|
|
2428
|
+
def get_cluster_master_flavors_with_http_info(
|
|
2432
2429
|
self,
|
|
2433
|
-
name: StrictStr,
|
|
2434
2430
|
_request_timeout: Union[
|
|
2435
2431
|
None,
|
|
2436
2432
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2443,13 +2439,10 @@ class ClustersApi:
|
|
|
2443
2439
|
_content_type: Optional[StrictStr] = None,
|
|
2444
2440
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2445
2441
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2446
|
-
) -> ApiResponse[
|
|
2447
|
-
"""
|
|
2442
|
+
) -> ApiResponse[MasterFlavorsResponse]:
|
|
2443
|
+
"""Get Cluster Master Flavors
|
|
2448
2444
|
|
|
2449
|
-
Check if a Cluster name is available
|
|
2450
2445
|
|
|
2451
|
-
:param name: (required)
|
|
2452
|
-
:type name: str
|
|
2453
2446
|
:param _request_timeout: timeout setting for this request. If one
|
|
2454
2447
|
number provided, it will be total request
|
|
2455
2448
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2472,8 +2465,7 @@ class ClustersApi:
|
|
|
2472
2465
|
:return: Returns the result object.
|
|
2473
2466
|
""" # noqa: E501
|
|
2474
2467
|
|
|
2475
|
-
_param = self.
|
|
2476
|
-
name=name,
|
|
2468
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2477
2469
|
_request_auth=_request_auth,
|
|
2478
2470
|
_content_type=_content_type,
|
|
2479
2471
|
_headers=_headers,
|
|
@@ -2481,10 +2473,9 @@ class ClustersApi:
|
|
|
2481
2473
|
)
|
|
2482
2474
|
|
|
2483
2475
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2484
|
-
'200': "
|
|
2476
|
+
'200': "MasterFlavorsResponse",
|
|
2485
2477
|
'400': "ErrorResponseModel",
|
|
2486
2478
|
'401': "ErrorResponseModel",
|
|
2487
|
-
'404': "ErrorResponseModel",
|
|
2488
2479
|
'500': None,
|
|
2489
2480
|
}
|
|
2490
2481
|
response_data = self.api_client.call_api(
|
|
@@ -2499,9 +2490,8 @@ class ClustersApi:
|
|
|
2499
2490
|
|
|
2500
2491
|
|
|
2501
2492
|
@validate_call
|
|
2502
|
-
def
|
|
2493
|
+
def get_cluster_master_flavors_without_preload_content(
|
|
2503
2494
|
self,
|
|
2504
|
-
name: StrictStr,
|
|
2505
2495
|
_request_timeout: Union[
|
|
2506
2496
|
None,
|
|
2507
2497
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2515,12 +2505,9 @@ class ClustersApi:
|
|
|
2515
2505
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2516
2506
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2517
2507
|
) -> RESTResponseType:
|
|
2518
|
-
"""
|
|
2508
|
+
"""Get Cluster Master Flavors
|
|
2519
2509
|
|
|
2520
|
-
Check if a Cluster name is available
|
|
2521
2510
|
|
|
2522
|
-
:param name: (required)
|
|
2523
|
-
:type name: str
|
|
2524
2511
|
:param _request_timeout: timeout setting for this request. If one
|
|
2525
2512
|
number provided, it will be total request
|
|
2526
2513
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2543,8 +2530,7 @@ class ClustersApi:
|
|
|
2543
2530
|
:return: Returns the result object.
|
|
2544
2531
|
""" # noqa: E501
|
|
2545
2532
|
|
|
2546
|
-
_param = self.
|
|
2547
|
-
name=name,
|
|
2533
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2548
2534
|
_request_auth=_request_auth,
|
|
2549
2535
|
_content_type=_content_type,
|
|
2550
2536
|
_headers=_headers,
|
|
@@ -2552,10 +2538,9 @@ class ClustersApi:
|
|
|
2552
2538
|
)
|
|
2553
2539
|
|
|
2554
2540
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2555
|
-
'200': "
|
|
2541
|
+
'200': "MasterFlavorsResponse",
|
|
2556
2542
|
'400': "ErrorResponseModel",
|
|
2557
2543
|
'401': "ErrorResponseModel",
|
|
2558
|
-
'404': "ErrorResponseModel",
|
|
2559
2544
|
'500': None,
|
|
2560
2545
|
}
|
|
2561
2546
|
response_data = self.api_client.call_api(
|
|
@@ -2565,9 +2550,8 @@ class ClustersApi:
|
|
|
2565
2550
|
return response_data.response
|
|
2566
2551
|
|
|
2567
2552
|
|
|
2568
|
-
def
|
|
2553
|
+
def _get_cluster_master_flavors_serialize(
|
|
2569
2554
|
self,
|
|
2570
|
-
name,
|
|
2571
2555
|
_request_auth,
|
|
2572
2556
|
_content_type,
|
|
2573
2557
|
_headers,
|
|
@@ -2589,8 +2573,6 @@ class ClustersApi:
|
|
|
2589
2573
|
_body_params: Optional[bytes] = None
|
|
2590
2574
|
|
|
2591
2575
|
# process the path parameters
|
|
2592
|
-
if name is not None:
|
|
2593
|
-
_path_params['name'] = name
|
|
2594
2576
|
# process the query parameters
|
|
2595
2577
|
# process the header parameters
|
|
2596
2578
|
# process the form parameters
|
|
@@ -2613,7 +2595,7 @@ class ClustersApi:
|
|
|
2613
2595
|
|
|
2614
2596
|
return self.api_client.param_serialize(
|
|
2615
2597
|
method='GET',
|
|
2616
|
-
resource_path='/core/clusters/
|
|
2598
|
+
resource_path='/core/clusters/master-flavors',
|
|
2617
2599
|
path_params=_path_params,
|
|
2618
2600
|
query_params=_query_params,
|
|
2619
2601
|
header_params=_header_params,
|
|
@@ -2630,8 +2612,9 @@ class ClustersApi:
|
|
|
2630
2612
|
|
|
2631
2613
|
|
|
2632
2614
|
@validate_call
|
|
2633
|
-
def
|
|
2615
|
+
def get_cluster_nodes(
|
|
2634
2616
|
self,
|
|
2617
|
+
cluster_id: StrictInt,
|
|
2635
2618
|
_request_timeout: Union[
|
|
2636
2619
|
None,
|
|
2637
2620
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2644,10 +2627,12 @@ class ClustersApi:
|
|
|
2644
2627
|
_content_type: Optional[StrictStr] = None,
|
|
2645
2628
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2646
2629
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2647
|
-
) ->
|
|
2648
|
-
"""Get Cluster
|
|
2630
|
+
) -> ClusterNodesListResponse:
|
|
2631
|
+
"""Get Cluster Nodes
|
|
2649
2632
|
|
|
2650
2633
|
|
|
2634
|
+
:param cluster_id: (required)
|
|
2635
|
+
:type cluster_id: int
|
|
2651
2636
|
:param _request_timeout: timeout setting for this request. If one
|
|
2652
2637
|
number provided, it will be total request
|
|
2653
2638
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2670,7 +2655,8 @@ class ClustersApi:
|
|
|
2670
2655
|
:return: Returns the result object.
|
|
2671
2656
|
""" # noqa: E501
|
|
2672
2657
|
|
|
2673
|
-
_param = self.
|
|
2658
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2659
|
+
cluster_id=cluster_id,
|
|
2674
2660
|
_request_auth=_request_auth,
|
|
2675
2661
|
_content_type=_content_type,
|
|
2676
2662
|
_headers=_headers,
|
|
@@ -2678,9 +2664,10 @@ class ClustersApi:
|
|
|
2678
2664
|
)
|
|
2679
2665
|
|
|
2680
2666
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2681
|
-
'200': "
|
|
2667
|
+
'200': "ClusterNodesListResponse",
|
|
2682
2668
|
'400': "ErrorResponseModel",
|
|
2683
2669
|
'401': "ErrorResponseModel",
|
|
2670
|
+
'404': "ErrorResponseModel",
|
|
2684
2671
|
'500': None,
|
|
2685
2672
|
}
|
|
2686
2673
|
response_data = self.api_client.call_api(
|
|
@@ -2695,8 +2682,9 @@ class ClustersApi:
|
|
|
2695
2682
|
|
|
2696
2683
|
|
|
2697
2684
|
@validate_call
|
|
2698
|
-
def
|
|
2685
|
+
def get_cluster_nodes_with_http_info(
|
|
2699
2686
|
self,
|
|
2687
|
+
cluster_id: StrictInt,
|
|
2700
2688
|
_request_timeout: Union[
|
|
2701
2689
|
None,
|
|
2702
2690
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2709,10 +2697,12 @@ class ClustersApi:
|
|
|
2709
2697
|
_content_type: Optional[StrictStr] = None,
|
|
2710
2698
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2711
2699
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2712
|
-
) -> ApiResponse[
|
|
2713
|
-
"""Get Cluster
|
|
2700
|
+
) -> ApiResponse[ClusterNodesListResponse]:
|
|
2701
|
+
"""Get Cluster Nodes
|
|
2714
2702
|
|
|
2715
2703
|
|
|
2704
|
+
:param cluster_id: (required)
|
|
2705
|
+
:type cluster_id: int
|
|
2716
2706
|
:param _request_timeout: timeout setting for this request. If one
|
|
2717
2707
|
number provided, it will be total request
|
|
2718
2708
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2735,7 +2725,8 @@ class ClustersApi:
|
|
|
2735
2725
|
:return: Returns the result object.
|
|
2736
2726
|
""" # noqa: E501
|
|
2737
2727
|
|
|
2738
|
-
_param = self.
|
|
2728
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2729
|
+
cluster_id=cluster_id,
|
|
2739
2730
|
_request_auth=_request_auth,
|
|
2740
2731
|
_content_type=_content_type,
|
|
2741
2732
|
_headers=_headers,
|
|
@@ -2743,9 +2734,10 @@ class ClustersApi:
|
|
|
2743
2734
|
)
|
|
2744
2735
|
|
|
2745
2736
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2746
|
-
'200': "
|
|
2737
|
+
'200': "ClusterNodesListResponse",
|
|
2747
2738
|
'400': "ErrorResponseModel",
|
|
2748
2739
|
'401': "ErrorResponseModel",
|
|
2740
|
+
'404': "ErrorResponseModel",
|
|
2749
2741
|
'500': None,
|
|
2750
2742
|
}
|
|
2751
2743
|
response_data = self.api_client.call_api(
|
|
@@ -2760,8 +2752,9 @@ class ClustersApi:
|
|
|
2760
2752
|
|
|
2761
2753
|
|
|
2762
2754
|
@validate_call
|
|
2763
|
-
def
|
|
2755
|
+
def get_cluster_nodes_without_preload_content(
|
|
2764
2756
|
self,
|
|
2757
|
+
cluster_id: StrictInt,
|
|
2765
2758
|
_request_timeout: Union[
|
|
2766
2759
|
None,
|
|
2767
2760
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2775,9 +2768,11 @@ class ClustersApi:
|
|
|
2775
2768
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2776
2769
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2777
2770
|
) -> RESTResponseType:
|
|
2778
|
-
"""Get Cluster
|
|
2771
|
+
"""Get Cluster Nodes
|
|
2779
2772
|
|
|
2780
2773
|
|
|
2774
|
+
:param cluster_id: (required)
|
|
2775
|
+
:type cluster_id: int
|
|
2781
2776
|
:param _request_timeout: timeout setting for this request. If one
|
|
2782
2777
|
number provided, it will be total request
|
|
2783
2778
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2800,7 +2795,8 @@ class ClustersApi:
|
|
|
2800
2795
|
:return: Returns the result object.
|
|
2801
2796
|
""" # noqa: E501
|
|
2802
2797
|
|
|
2803
|
-
_param = self.
|
|
2798
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2799
|
+
cluster_id=cluster_id,
|
|
2804
2800
|
_request_auth=_request_auth,
|
|
2805
2801
|
_content_type=_content_type,
|
|
2806
2802
|
_headers=_headers,
|
|
@@ -2808,9 +2804,10 @@ class ClustersApi:
|
|
|
2808
2804
|
)
|
|
2809
2805
|
|
|
2810
2806
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2811
|
-
'200': "
|
|
2807
|
+
'200': "ClusterNodesListResponse",
|
|
2812
2808
|
'400': "ErrorResponseModel",
|
|
2813
2809
|
'401': "ErrorResponseModel",
|
|
2810
|
+
'404': "ErrorResponseModel",
|
|
2814
2811
|
'500': None,
|
|
2815
2812
|
}
|
|
2816
2813
|
response_data = self.api_client.call_api(
|
|
@@ -2820,8 +2817,9 @@ class ClustersApi:
|
|
|
2820
2817
|
return response_data.response
|
|
2821
2818
|
|
|
2822
2819
|
|
|
2823
|
-
def
|
|
2820
|
+
def _get_cluster_nodes_serialize(
|
|
2824
2821
|
self,
|
|
2822
|
+
cluster_id,
|
|
2825
2823
|
_request_auth,
|
|
2826
2824
|
_content_type,
|
|
2827
2825
|
_headers,
|
|
@@ -2843,6 +2841,8 @@ class ClustersApi:
|
|
|
2843
2841
|
_body_params: Optional[bytes] = None
|
|
2844
2842
|
|
|
2845
2843
|
# process the path parameters
|
|
2844
|
+
if cluster_id is not None:
|
|
2845
|
+
_path_params['cluster_id'] = cluster_id
|
|
2846
2846
|
# process the query parameters
|
|
2847
2847
|
# process the header parameters
|
|
2848
2848
|
# process the form parameters
|
|
@@ -2865,7 +2865,7 @@ class ClustersApi:
|
|
|
2865
2865
|
|
|
2866
2866
|
return self.api_client.param_serialize(
|
|
2867
2867
|
method='GET',
|
|
2868
|
-
resource_path='/core/clusters/
|
|
2868
|
+
resource_path='/core/clusters/{cluster_id}/nodes',
|
|
2869
2869
|
path_params=_path_params,
|
|
2870
2870
|
query_params=_query_params,
|
|
2871
2871
|
header_params=_header_params,
|
|
@@ -2882,9 +2882,9 @@ class ClustersApi:
|
|
|
2882
2882
|
|
|
2883
2883
|
|
|
2884
2884
|
@validate_call
|
|
2885
|
-
def
|
|
2885
|
+
def get_cluster_versions(
|
|
2886
2886
|
self,
|
|
2887
|
-
|
|
2887
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
2888
2888
|
_request_timeout: Union[
|
|
2889
2889
|
None,
|
|
2890
2890
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2897,12 +2897,13 @@ class ClustersApi:
|
|
|
2897
2897
|
_content_type: Optional[StrictStr] = None,
|
|
2898
2898
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2899
2899
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2900
|
-
) ->
|
|
2901
|
-
"""
|
|
2900
|
+
) -> ClusterVersions:
|
|
2901
|
+
"""List Cluster Versions
|
|
2902
2902
|
|
|
2903
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
2903
2904
|
|
|
2904
|
-
:param
|
|
2905
|
-
:type
|
|
2905
|
+
:param region: Filter versions by region name (optional)
|
|
2906
|
+
:type region: str
|
|
2906
2907
|
:param _request_timeout: timeout setting for this request. If one
|
|
2907
2908
|
number provided, it will be total request
|
|
2908
2909
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2925,8 +2926,8 @@ class ClustersApi:
|
|
|
2925
2926
|
:return: Returns the result object.
|
|
2926
2927
|
""" # noqa: E501
|
|
2927
2928
|
|
|
2928
|
-
_param = self.
|
|
2929
|
-
|
|
2929
|
+
_param = self._get_cluster_versions_serialize(
|
|
2930
|
+
region=region,
|
|
2930
2931
|
_request_auth=_request_auth,
|
|
2931
2932
|
_content_type=_content_type,
|
|
2932
2933
|
_headers=_headers,
|
|
@@ -2934,10 +2935,9 @@ class ClustersApi:
|
|
|
2934
2935
|
)
|
|
2935
2936
|
|
|
2936
2937
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2937
|
-
'200': "
|
|
2938
|
+
'200': "ClusterVersions",
|
|
2938
2939
|
'400': "ErrorResponseModel",
|
|
2939
2940
|
'401': "ErrorResponseModel",
|
|
2940
|
-
'404': "ErrorResponseModel",
|
|
2941
2941
|
'500': None,
|
|
2942
2942
|
}
|
|
2943
2943
|
response_data = self.api_client.call_api(
|
|
@@ -2952,9 +2952,9 @@ class ClustersApi:
|
|
|
2952
2952
|
|
|
2953
2953
|
|
|
2954
2954
|
@validate_call
|
|
2955
|
-
def
|
|
2955
|
+
def get_cluster_versions_with_http_info(
|
|
2956
2956
|
self,
|
|
2957
|
-
|
|
2957
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
2958
2958
|
_request_timeout: Union[
|
|
2959
2959
|
None,
|
|
2960
2960
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2967,12 +2967,13 @@ class ClustersApi:
|
|
|
2967
2967
|
_content_type: Optional[StrictStr] = None,
|
|
2968
2968
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2969
2969
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2970
|
-
) -> ApiResponse[
|
|
2971
|
-
"""
|
|
2970
|
+
) -> ApiResponse[ClusterVersions]:
|
|
2971
|
+
"""List Cluster Versions
|
|
2972
2972
|
|
|
2973
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
2973
2974
|
|
|
2974
|
-
:param
|
|
2975
|
-
:type
|
|
2975
|
+
:param region: Filter versions by region name (optional)
|
|
2976
|
+
:type region: str
|
|
2976
2977
|
:param _request_timeout: timeout setting for this request. If one
|
|
2977
2978
|
number provided, it will be total request
|
|
2978
2979
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2995,8 +2996,8 @@ class ClustersApi:
|
|
|
2995
2996
|
:return: Returns the result object.
|
|
2996
2997
|
""" # noqa: E501
|
|
2997
2998
|
|
|
2998
|
-
_param = self.
|
|
2999
|
-
|
|
2999
|
+
_param = self._get_cluster_versions_serialize(
|
|
3000
|
+
region=region,
|
|
3000
3001
|
_request_auth=_request_auth,
|
|
3001
3002
|
_content_type=_content_type,
|
|
3002
3003
|
_headers=_headers,
|
|
@@ -3004,10 +3005,9 @@ class ClustersApi:
|
|
|
3004
3005
|
)
|
|
3005
3006
|
|
|
3006
3007
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3007
|
-
'200': "
|
|
3008
|
+
'200': "ClusterVersions",
|
|
3008
3009
|
'400': "ErrorResponseModel",
|
|
3009
3010
|
'401': "ErrorResponseModel",
|
|
3010
|
-
'404': "ErrorResponseModel",
|
|
3011
3011
|
'500': None,
|
|
3012
3012
|
}
|
|
3013
3013
|
response_data = self.api_client.call_api(
|
|
@@ -3022,9 +3022,9 @@ class ClustersApi:
|
|
|
3022
3022
|
|
|
3023
3023
|
|
|
3024
3024
|
@validate_call
|
|
3025
|
-
def
|
|
3025
|
+
def get_cluster_versions_without_preload_content(
|
|
3026
3026
|
self,
|
|
3027
|
-
|
|
3027
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
3028
3028
|
_request_timeout: Union[
|
|
3029
3029
|
None,
|
|
3030
3030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3038,11 +3038,12 @@ class ClustersApi:
|
|
|
3038
3038
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3039
3039
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3040
3040
|
) -> RESTResponseType:
|
|
3041
|
-
"""
|
|
3041
|
+
"""List Cluster Versions
|
|
3042
3042
|
|
|
3043
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
3043
3044
|
|
|
3044
|
-
:param
|
|
3045
|
-
:type
|
|
3045
|
+
:param region: Filter versions by region name (optional)
|
|
3046
|
+
:type region: str
|
|
3046
3047
|
:param _request_timeout: timeout setting for this request. If one
|
|
3047
3048
|
number provided, it will be total request
|
|
3048
3049
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3065,8 +3066,8 @@ class ClustersApi:
|
|
|
3065
3066
|
:return: Returns the result object.
|
|
3066
3067
|
""" # noqa: E501
|
|
3067
3068
|
|
|
3068
|
-
_param = self.
|
|
3069
|
-
|
|
3069
|
+
_param = self._get_cluster_versions_serialize(
|
|
3070
|
+
region=region,
|
|
3070
3071
|
_request_auth=_request_auth,
|
|
3071
3072
|
_content_type=_content_type,
|
|
3072
3073
|
_headers=_headers,
|
|
@@ -3074,10 +3075,9 @@ class ClustersApi:
|
|
|
3074
3075
|
)
|
|
3075
3076
|
|
|
3076
3077
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3077
|
-
'200': "
|
|
3078
|
+
'200': "ClusterVersions",
|
|
3078
3079
|
'400': "ErrorResponseModel",
|
|
3079
3080
|
'401': "ErrorResponseModel",
|
|
3080
|
-
'404': "ErrorResponseModel",
|
|
3081
3081
|
'500': None,
|
|
3082
3082
|
}
|
|
3083
3083
|
response_data = self.api_client.call_api(
|
|
@@ -3087,9 +3087,9 @@ class ClustersApi:
|
|
|
3087
3087
|
return response_data.response
|
|
3088
3088
|
|
|
3089
3089
|
|
|
3090
|
-
def
|
|
3090
|
+
def _get_cluster_versions_serialize(
|
|
3091
3091
|
self,
|
|
3092
|
-
|
|
3092
|
+
region,
|
|
3093
3093
|
_request_auth,
|
|
3094
3094
|
_content_type,
|
|
3095
3095
|
_headers,
|
|
@@ -3111,9 +3111,11 @@ class ClustersApi:
|
|
|
3111
3111
|
_body_params: Optional[bytes] = None
|
|
3112
3112
|
|
|
3113
3113
|
# process the path parameters
|
|
3114
|
-
if cluster_id is not None:
|
|
3115
|
-
_path_params['cluster_id'] = cluster_id
|
|
3116
3114
|
# process the query parameters
|
|
3115
|
+
if region is not None:
|
|
3116
|
+
|
|
3117
|
+
_query_params.append(('region', region))
|
|
3118
|
+
|
|
3117
3119
|
# process the header parameters
|
|
3118
3120
|
# process the form parameters
|
|
3119
3121
|
# process the body parameter
|
|
@@ -3135,7 +3137,7 @@ class ClustersApi:
|
|
|
3135
3137
|
|
|
3136
3138
|
return self.api_client.param_serialize(
|
|
3137
3139
|
method='GET',
|
|
3138
|
-
resource_path='/core/clusters/
|
|
3140
|
+
resource_path='/core/clusters/versions',
|
|
3139
3141
|
path_params=_path_params,
|
|
3140
3142
|
query_params=_query_params,
|
|
3141
3143
|
header_params=_header_params,
|
|
@@ -3152,9 +3154,10 @@ class ClustersApi:
|
|
|
3152
3154
|
|
|
3153
3155
|
|
|
3154
3156
|
@validate_call
|
|
3155
|
-
def
|
|
3157
|
+
def get_node_group(
|
|
3156
3158
|
self,
|
|
3157
|
-
|
|
3159
|
+
cluster_id: StrictInt,
|
|
3160
|
+
node_group_id: StrictInt,
|
|
3158
3161
|
_request_timeout: Union[
|
|
3159
3162
|
None,
|
|
3160
3163
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3167,13 +3170,14 @@ class ClustersApi:
|
|
|
3167
3170
|
_content_type: Optional[StrictStr] = None,
|
|
3168
3171
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3169
3172
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3170
|
-
) ->
|
|
3171
|
-
"""
|
|
3173
|
+
) -> ClusterNodeGroupsGetResponse:
|
|
3174
|
+
"""Retrieve a node group in a cluster
|
|
3172
3175
|
|
|
3173
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
3174
3176
|
|
|
3175
|
-
:param
|
|
3176
|
-
:type
|
|
3177
|
+
:param cluster_id: (required)
|
|
3178
|
+
:type cluster_id: int
|
|
3179
|
+
:param node_group_id: (required)
|
|
3180
|
+
:type node_group_id: int
|
|
3177
3181
|
:param _request_timeout: timeout setting for this request. If one
|
|
3178
3182
|
number provided, it will be total request
|
|
3179
3183
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3196,8 +3200,9 @@ class ClustersApi:
|
|
|
3196
3200
|
:return: Returns the result object.
|
|
3197
3201
|
""" # noqa: E501
|
|
3198
3202
|
|
|
3199
|
-
_param = self.
|
|
3200
|
-
|
|
3203
|
+
_param = self._get_node_group_serialize(
|
|
3204
|
+
cluster_id=cluster_id,
|
|
3205
|
+
node_group_id=node_group_id,
|
|
3201
3206
|
_request_auth=_request_auth,
|
|
3202
3207
|
_content_type=_content_type,
|
|
3203
3208
|
_headers=_headers,
|
|
@@ -3205,9 +3210,10 @@ class ClustersApi:
|
|
|
3205
3210
|
)
|
|
3206
3211
|
|
|
3207
3212
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3208
|
-
'200': "
|
|
3213
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3209
3214
|
'400': "ErrorResponseModel",
|
|
3210
3215
|
'401': "ErrorResponseModel",
|
|
3216
|
+
'404': "ErrorResponseModel",
|
|
3211
3217
|
'500': None,
|
|
3212
3218
|
}
|
|
3213
3219
|
response_data = self.api_client.call_api(
|
|
@@ -3222,9 +3228,10 @@ class ClustersApi:
|
|
|
3222
3228
|
|
|
3223
3229
|
|
|
3224
3230
|
@validate_call
|
|
3225
|
-
def
|
|
3231
|
+
def get_node_group_with_http_info(
|
|
3226
3232
|
self,
|
|
3227
|
-
|
|
3233
|
+
cluster_id: StrictInt,
|
|
3234
|
+
node_group_id: StrictInt,
|
|
3228
3235
|
_request_timeout: Union[
|
|
3229
3236
|
None,
|
|
3230
3237
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3237,13 +3244,14 @@ class ClustersApi:
|
|
|
3237
3244
|
_content_type: Optional[StrictStr] = None,
|
|
3238
3245
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3239
3246
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3240
|
-
) -> ApiResponse[
|
|
3241
|
-
"""
|
|
3247
|
+
) -> ApiResponse[ClusterNodeGroupsGetResponse]:
|
|
3248
|
+
"""Retrieve a node group in a cluster
|
|
3242
3249
|
|
|
3243
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
3244
3250
|
|
|
3245
|
-
:param
|
|
3246
|
-
:type
|
|
3251
|
+
:param cluster_id: (required)
|
|
3252
|
+
:type cluster_id: int
|
|
3253
|
+
:param node_group_id: (required)
|
|
3254
|
+
:type node_group_id: int
|
|
3247
3255
|
:param _request_timeout: timeout setting for this request. If one
|
|
3248
3256
|
number provided, it will be total request
|
|
3249
3257
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3266,8 +3274,9 @@ class ClustersApi:
|
|
|
3266
3274
|
:return: Returns the result object.
|
|
3267
3275
|
""" # noqa: E501
|
|
3268
3276
|
|
|
3269
|
-
_param = self.
|
|
3270
|
-
|
|
3277
|
+
_param = self._get_node_group_serialize(
|
|
3278
|
+
cluster_id=cluster_id,
|
|
3279
|
+
node_group_id=node_group_id,
|
|
3271
3280
|
_request_auth=_request_auth,
|
|
3272
3281
|
_content_type=_content_type,
|
|
3273
3282
|
_headers=_headers,
|
|
@@ -3275,9 +3284,10 @@ class ClustersApi:
|
|
|
3275
3284
|
)
|
|
3276
3285
|
|
|
3277
3286
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3278
|
-
'200': "
|
|
3287
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3279
3288
|
'400': "ErrorResponseModel",
|
|
3280
3289
|
'401': "ErrorResponseModel",
|
|
3290
|
+
'404': "ErrorResponseModel",
|
|
3281
3291
|
'500': None,
|
|
3282
3292
|
}
|
|
3283
3293
|
response_data = self.api_client.call_api(
|
|
@@ -3292,9 +3302,10 @@ class ClustersApi:
|
|
|
3292
3302
|
|
|
3293
3303
|
|
|
3294
3304
|
@validate_call
|
|
3295
|
-
def
|
|
3305
|
+
def get_node_group_without_preload_content(
|
|
3296
3306
|
self,
|
|
3297
|
-
|
|
3307
|
+
cluster_id: StrictInt,
|
|
3308
|
+
node_group_id: StrictInt,
|
|
3298
3309
|
_request_timeout: Union[
|
|
3299
3310
|
None,
|
|
3300
3311
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3308,12 +3319,13 @@ class ClustersApi:
|
|
|
3308
3319
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3309
3320
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3310
3321
|
) -> RESTResponseType:
|
|
3311
|
-
"""
|
|
3322
|
+
"""Retrieve a node group in a cluster
|
|
3312
3323
|
|
|
3313
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
3314
3324
|
|
|
3315
|
-
:param
|
|
3316
|
-
:type
|
|
3325
|
+
:param cluster_id: (required)
|
|
3326
|
+
:type cluster_id: int
|
|
3327
|
+
:param node_group_id: (required)
|
|
3328
|
+
:type node_group_id: int
|
|
3317
3329
|
:param _request_timeout: timeout setting for this request. If one
|
|
3318
3330
|
number provided, it will be total request
|
|
3319
3331
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3336,8 +3348,9 @@ class ClustersApi:
|
|
|
3336
3348
|
:return: Returns the result object.
|
|
3337
3349
|
""" # noqa: E501
|
|
3338
3350
|
|
|
3339
|
-
_param = self.
|
|
3340
|
-
|
|
3351
|
+
_param = self._get_node_group_serialize(
|
|
3352
|
+
cluster_id=cluster_id,
|
|
3353
|
+
node_group_id=node_group_id,
|
|
3341
3354
|
_request_auth=_request_auth,
|
|
3342
3355
|
_content_type=_content_type,
|
|
3343
3356
|
_headers=_headers,
|
|
@@ -3345,9 +3358,10 @@ class ClustersApi:
|
|
|
3345
3358
|
)
|
|
3346
3359
|
|
|
3347
3360
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3348
|
-
'200': "
|
|
3361
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3349
3362
|
'400': "ErrorResponseModel",
|
|
3350
3363
|
'401': "ErrorResponseModel",
|
|
3364
|
+
'404': "ErrorResponseModel",
|
|
3351
3365
|
'500': None,
|
|
3352
3366
|
}
|
|
3353
3367
|
response_data = self.api_client.call_api(
|
|
@@ -3357,9 +3371,10 @@ class ClustersApi:
|
|
|
3357
3371
|
return response_data.response
|
|
3358
3372
|
|
|
3359
3373
|
|
|
3360
|
-
def
|
|
3374
|
+
def _get_node_group_serialize(
|
|
3361
3375
|
self,
|
|
3362
|
-
|
|
3376
|
+
cluster_id,
|
|
3377
|
+
node_group_id,
|
|
3363
3378
|
_request_auth,
|
|
3364
3379
|
_content_type,
|
|
3365
3380
|
_headers,
|
|
@@ -3381,11 +3396,11 @@ class ClustersApi:
|
|
|
3381
3396
|
_body_params: Optional[bytes] = None
|
|
3382
3397
|
|
|
3383
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
|
|
3384
3403
|
# process the query parameters
|
|
3385
|
-
if region is not None:
|
|
3386
|
-
|
|
3387
|
-
_query_params.append(('region', region))
|
|
3388
|
-
|
|
3389
3404
|
# process the header parameters
|
|
3390
3405
|
# process the form parameters
|
|
3391
3406
|
# process the body parameter
|
|
@@ -3407,7 +3422,7 @@ class ClustersApi:
|
|
|
3407
3422
|
|
|
3408
3423
|
return self.api_client.param_serialize(
|
|
3409
3424
|
method='GET',
|
|
3410
|
-
resource_path='/core/clusters/
|
|
3425
|
+
resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
|
|
3411
3426
|
path_params=_path_params,
|
|
3412
3427
|
query_params=_query_params,
|
|
3413
3428
|
header_params=_header_params,
|
|
@@ -4284,10 +4299,9 @@ class ClustersApi:
|
|
|
4284
4299
|
|
|
4285
4300
|
|
|
4286
4301
|
@validate_call
|
|
4287
|
-
def
|
|
4302
|
+
def reconcile_cluster(
|
|
4288
4303
|
self,
|
|
4289
4304
|
cluster_id: StrictInt,
|
|
4290
|
-
node_group_id: StrictInt,
|
|
4291
4305
|
_request_timeout: Union[
|
|
4292
4306
|
None,
|
|
4293
4307
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4300,14 +4314,12 @@ class ClustersApi:
|
|
|
4300
4314
|
_content_type: Optional[StrictStr] = None,
|
|
4301
4315
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4302
4316
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4303
|
-
) ->
|
|
4304
|
-
"""
|
|
4317
|
+
) -> ManualReconciliationModel:
|
|
4318
|
+
"""Reconcile a cluster
|
|
4305
4319
|
|
|
4306
4320
|
|
|
4307
4321
|
:param cluster_id: (required)
|
|
4308
4322
|
:type cluster_id: int
|
|
4309
|
-
:param node_group_id: (required)
|
|
4310
|
-
:type node_group_id: int
|
|
4311
4323
|
:param _request_timeout: timeout setting for this request. If one
|
|
4312
4324
|
number provided, it will be total request
|
|
4313
4325
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4330,9 +4342,8 @@ class ClustersApi:
|
|
|
4330
4342
|
:return: Returns the result object.
|
|
4331
4343
|
""" # noqa: E501
|
|
4332
4344
|
|
|
4333
|
-
_param = self.
|
|
4345
|
+
_param = self._reconcile_cluster_serialize(
|
|
4334
4346
|
cluster_id=cluster_id,
|
|
4335
|
-
node_group_id=node_group_id,
|
|
4336
4347
|
_request_auth=_request_auth,
|
|
4337
4348
|
_content_type=_content_type,
|
|
4338
4349
|
_headers=_headers,
|
|
@@ -4340,7 +4351,7 @@ class ClustersApi:
|
|
|
4340
4351
|
)
|
|
4341
4352
|
|
|
4342
4353
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4343
|
-
'200': "
|
|
4354
|
+
'200': "ManualReconciliationModel",
|
|
4344
4355
|
'400': "ErrorResponseModel",
|
|
4345
4356
|
'401': "ErrorResponseModel",
|
|
4346
4357
|
'404': "ErrorResponseModel",
|
|
@@ -4358,10 +4369,9 @@ class ClustersApi:
|
|
|
4358
4369
|
|
|
4359
4370
|
|
|
4360
4371
|
@validate_call
|
|
4361
|
-
def
|
|
4372
|
+
def reconcile_cluster_with_http_info(
|
|
4362
4373
|
self,
|
|
4363
4374
|
cluster_id: StrictInt,
|
|
4364
|
-
node_group_id: StrictInt,
|
|
4365
4375
|
_request_timeout: Union[
|
|
4366
4376
|
None,
|
|
4367
4377
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4374,14 +4384,12 @@ class ClustersApi:
|
|
|
4374
4384
|
_content_type: Optional[StrictStr] = None,
|
|
4375
4385
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4376
4386
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4377
|
-
) -> ApiResponse[
|
|
4378
|
-
"""
|
|
4387
|
+
) -> ApiResponse[ManualReconciliationModel]:
|
|
4388
|
+
"""Reconcile a cluster
|
|
4379
4389
|
|
|
4380
4390
|
|
|
4381
4391
|
:param cluster_id: (required)
|
|
4382
4392
|
:type cluster_id: int
|
|
4383
|
-
:param node_group_id: (required)
|
|
4384
|
-
:type node_group_id: int
|
|
4385
4393
|
:param _request_timeout: timeout setting for this request. If one
|
|
4386
4394
|
number provided, it will be total request
|
|
4387
4395
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4404,9 +4412,8 @@ class ClustersApi:
|
|
|
4404
4412
|
:return: Returns the result object.
|
|
4405
4413
|
""" # noqa: E501
|
|
4406
4414
|
|
|
4407
|
-
_param = self.
|
|
4415
|
+
_param = self._reconcile_cluster_serialize(
|
|
4408
4416
|
cluster_id=cluster_id,
|
|
4409
|
-
node_group_id=node_group_id,
|
|
4410
4417
|
_request_auth=_request_auth,
|
|
4411
4418
|
_content_type=_content_type,
|
|
4412
4419
|
_headers=_headers,
|
|
@@ -4414,7 +4421,7 @@ class ClustersApi:
|
|
|
4414
4421
|
)
|
|
4415
4422
|
|
|
4416
4423
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4417
|
-
'200': "
|
|
4424
|
+
'200': "ManualReconciliationModel",
|
|
4418
4425
|
'400': "ErrorResponseModel",
|
|
4419
4426
|
'401': "ErrorResponseModel",
|
|
4420
4427
|
'404': "ErrorResponseModel",
|
|
@@ -4432,10 +4439,9 @@ class ClustersApi:
|
|
|
4432
4439
|
|
|
4433
4440
|
|
|
4434
4441
|
@validate_call
|
|
4435
|
-
def
|
|
4442
|
+
def reconcile_cluster_without_preload_content(
|
|
4436
4443
|
self,
|
|
4437
4444
|
cluster_id: StrictInt,
|
|
4438
|
-
node_group_id: StrictInt,
|
|
4439
4445
|
_request_timeout: Union[
|
|
4440
4446
|
None,
|
|
4441
4447
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4449,13 +4455,11 @@ class ClustersApi:
|
|
|
4449
4455
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4450
4456
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4451
4457
|
) -> RESTResponseType:
|
|
4452
|
-
"""
|
|
4458
|
+
"""Reconcile a cluster
|
|
4453
4459
|
|
|
4454
4460
|
|
|
4455
4461
|
:param cluster_id: (required)
|
|
4456
4462
|
:type cluster_id: int
|
|
4457
|
-
:param node_group_id: (required)
|
|
4458
|
-
:type node_group_id: int
|
|
4459
4463
|
:param _request_timeout: timeout setting for this request. If one
|
|
4460
4464
|
number provided, it will be total request
|
|
4461
4465
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4478,9 +4482,8 @@ class ClustersApi:
|
|
|
4478
4482
|
:return: Returns the result object.
|
|
4479
4483
|
""" # noqa: E501
|
|
4480
4484
|
|
|
4481
|
-
_param = self.
|
|
4485
|
+
_param = self._reconcile_cluster_serialize(
|
|
4482
4486
|
cluster_id=cluster_id,
|
|
4483
|
-
node_group_id=node_group_id,
|
|
4484
4487
|
_request_auth=_request_auth,
|
|
4485
4488
|
_content_type=_content_type,
|
|
4486
4489
|
_headers=_headers,
|
|
@@ -4488,7 +4491,7 @@ class ClustersApi:
|
|
|
4488
4491
|
)
|
|
4489
4492
|
|
|
4490
4493
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4491
|
-
'200': "
|
|
4494
|
+
'200': "ManualReconciliationModel",
|
|
4492
4495
|
'400': "ErrorResponseModel",
|
|
4493
4496
|
'401': "ErrorResponseModel",
|
|
4494
4497
|
'404': "ErrorResponseModel",
|
|
@@ -4501,10 +4504,9 @@ class ClustersApi:
|
|
|
4501
4504
|
return response_data.response
|
|
4502
4505
|
|
|
4503
4506
|
|
|
4504
|
-
def
|
|
4507
|
+
def _reconcile_cluster_serialize(
|
|
4505
4508
|
self,
|
|
4506
4509
|
cluster_id,
|
|
4507
|
-
node_group_id,
|
|
4508
4510
|
_request_auth,
|
|
4509
4511
|
_content_type,
|
|
4510
4512
|
_headers,
|
|
@@ -4528,8 +4530,6 @@ class ClustersApi:
|
|
|
4528
4530
|
# process the path parameters
|
|
4529
4531
|
if cluster_id is not None:
|
|
4530
4532
|
_path_params['cluster_id'] = cluster_id
|
|
4531
|
-
if node_group_id is not None:
|
|
4532
|
-
_path_params['node_group_id'] = node_group_id
|
|
4533
4533
|
# process the query parameters
|
|
4534
4534
|
# process the header parameters
|
|
4535
4535
|
# process the form parameters
|
|
@@ -4551,8 +4551,8 @@ class ClustersApi:
|
|
|
4551
4551
|
]
|
|
4552
4552
|
|
|
4553
4553
|
return self.api_client.param_serialize(
|
|
4554
|
-
method='
|
|
4555
|
-
resource_path='/core/clusters/{cluster_id}/
|
|
4554
|
+
method='POST',
|
|
4555
|
+
resource_path='/core/clusters/{cluster_id}/reconcile',
|
|
4556
4556
|
path_params=_path_params,
|
|
4557
4557
|
query_params=_query_params,
|
|
4558
4558
|
header_params=_header_params,
|
|
@@ -4569,7 +4569,7 @@ class ClustersApi:
|
|
|
4569
4569
|
|
|
4570
4570
|
|
|
4571
4571
|
@validate_call
|
|
4572
|
-
def
|
|
4572
|
+
def update_node_group(
|
|
4573
4573
|
self,
|
|
4574
4574
|
cluster_id: StrictInt,
|
|
4575
4575
|
node_group_id: StrictInt,
|
|
@@ -4618,7 +4618,7 @@ class ClustersApi:
|
|
|
4618
4618
|
:return: Returns the result object.
|
|
4619
4619
|
""" # noqa: E501
|
|
4620
4620
|
|
|
4621
|
-
_param = self.
|
|
4621
|
+
_param = self._update_node_group_serialize(
|
|
4622
4622
|
cluster_id=cluster_id,
|
|
4623
4623
|
node_group_id=node_group_id,
|
|
4624
4624
|
payload=payload,
|
|
@@ -4648,7 +4648,7 @@ class ClustersApi:
|
|
|
4648
4648
|
|
|
4649
4649
|
|
|
4650
4650
|
@validate_call
|
|
4651
|
-
def
|
|
4651
|
+
def update_node_group_with_http_info(
|
|
4652
4652
|
self,
|
|
4653
4653
|
cluster_id: StrictInt,
|
|
4654
4654
|
node_group_id: StrictInt,
|
|
@@ -4697,7 +4697,7 @@ class ClustersApi:
|
|
|
4697
4697
|
:return: Returns the result object.
|
|
4698
4698
|
""" # noqa: E501
|
|
4699
4699
|
|
|
4700
|
-
_param = self.
|
|
4700
|
+
_param = self._update_node_group_serialize(
|
|
4701
4701
|
cluster_id=cluster_id,
|
|
4702
4702
|
node_group_id=node_group_id,
|
|
4703
4703
|
payload=payload,
|
|
@@ -4727,7 +4727,7 @@ class ClustersApi:
|
|
|
4727
4727
|
|
|
4728
4728
|
|
|
4729
4729
|
@validate_call
|
|
4730
|
-
def
|
|
4730
|
+
def update_node_group_without_preload_content(
|
|
4731
4731
|
self,
|
|
4732
4732
|
cluster_id: StrictInt,
|
|
4733
4733
|
node_group_id: StrictInt,
|
|
@@ -4776,7 +4776,7 @@ class ClustersApi:
|
|
|
4776
4776
|
:return: Returns the result object.
|
|
4777
4777
|
""" # noqa: E501
|
|
4778
4778
|
|
|
4779
|
-
_param = self.
|
|
4779
|
+
_param = self._update_node_group_serialize(
|
|
4780
4780
|
cluster_id=cluster_id,
|
|
4781
4781
|
node_group_id=node_group_id,
|
|
4782
4782
|
payload=payload,
|
|
@@ -4801,7 +4801,7 @@ class ClustersApi:
|
|
|
4801
4801
|
return response_data.response
|
|
4802
4802
|
|
|
4803
4803
|
|
|
4804
|
-
def
|
|
4804
|
+
def _update_node_group_serialize(
|
|
4805
4805
|
self,
|
|
4806
4806
|
cluster_id,
|
|
4807
4807
|
node_group_id,
|