hyperstack 1.42.1a0__py3-none-any.whl → 1.45.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 +7 -2
- hyperstack/api/__init__.py +1 -1
- hyperstack/api/clusters_api.py +873 -257
- hyperstack/api/{admin_api.py → vouchers_api.py} +56 -27
- hyperstack/api_client.py +1 -1
- hyperstack/configuration.py +1 -1
- hyperstack/models/__init__.py +5 -0
- hyperstack/models/cluster_fields.py +4 -2
- hyperstack/models/cluster_node_group_fields.py +5 -1
- hyperstack/models/create_cluster_node_group_payload.py +16 -3
- hyperstack/models/delete_cluster_nodes_fields.py +87 -0
- hyperstack/models/redeem_voucher_payload.py +87 -0
- hyperstack/models/update_cluster_node_group_payload.py +90 -0
- hyperstack/models/voucher.py +91 -0
- hyperstack/models/voucher_redeem_response_schema.py +95 -0
- {hyperstack-1.42.1a0.dist-info → hyperstack-1.45.2a0.dist-info}/METADATA +1 -1
- {hyperstack-1.42.1a0.dist-info → hyperstack-1.45.2a0.dist-info}/RECORD +19 -14
- {hyperstack-1.42.1a0.dist-info → hyperstack-1.45.2a0.dist-info}/WHEEL +0 -0
- {hyperstack-1.42.1a0.dist-info → hyperstack-1.45.2a0.dist-info}/top_level.txt +0 -0
hyperstack/api/clusters_api.py
CHANGED
|
@@ -29,10 +29,12 @@ from ..models.cluster_versions import ClusterVersions
|
|
|
29
29
|
from ..models.create_cluster_node_fields import CreateClusterNodeFields
|
|
30
30
|
from ..models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
|
|
31
31
|
from ..models.create_cluster_payload import CreateClusterPayload
|
|
32
|
+
from ..models.delete_cluster_nodes_fields import DeleteClusterNodesFields
|
|
32
33
|
from ..models.manual_reconciliation_model import ManualReconciliationModel
|
|
33
34
|
from ..models.master_flavors_response import MasterFlavorsResponse
|
|
34
35
|
from ..models.name_available_model import NameAvailableModel
|
|
35
36
|
from ..models.response_model import ResponseModel
|
|
37
|
+
from ..models.update_cluster_node_group_payload import UpdateClusterNodeGroupPayload
|
|
36
38
|
|
|
37
39
|
from ..api_client import ApiClient, RequestSerialized
|
|
38
40
|
from ..api_response import ApiResponse
|
|
@@ -2057,9 +2059,10 @@ class ClustersApi:
|
|
|
2057
2059
|
|
|
2058
2060
|
|
|
2059
2061
|
@validate_call
|
|
2060
|
-
def
|
|
2062
|
+
def delete_cluster_nodes(
|
|
2061
2063
|
self,
|
|
2062
|
-
|
|
2064
|
+
cluster_id: StrictInt,
|
|
2065
|
+
payload: DeleteClusterNodesFields,
|
|
2063
2066
|
_request_timeout: Union[
|
|
2064
2067
|
None,
|
|
2065
2068
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2072,13 +2075,14 @@ class ClustersApi:
|
|
|
2072
2075
|
_content_type: Optional[StrictStr] = None,
|
|
2073
2076
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2074
2077
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2075
|
-
) ->
|
|
2076
|
-
"""
|
|
2078
|
+
) -> ResponseModel:
|
|
2079
|
+
"""Delete Multiple Cluster Nodes
|
|
2077
2080
|
|
|
2078
|
-
Check if a Cluster name is available
|
|
2079
2081
|
|
|
2080
|
-
:param
|
|
2081
|
-
:type
|
|
2082
|
+
:param cluster_id: (required)
|
|
2083
|
+
:type cluster_id: int
|
|
2084
|
+
:param payload: (required)
|
|
2085
|
+
:type payload: DeleteClusterNodesFields
|
|
2082
2086
|
:param _request_timeout: timeout setting for this request. If one
|
|
2083
2087
|
number provided, it will be total request
|
|
2084
2088
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2101,8 +2105,9 @@ class ClustersApi:
|
|
|
2101
2105
|
:return: Returns the result object.
|
|
2102
2106
|
""" # noqa: E501
|
|
2103
2107
|
|
|
2104
|
-
_param = self.
|
|
2105
|
-
|
|
2108
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
2109
|
+
cluster_id=cluster_id,
|
|
2110
|
+
payload=payload,
|
|
2106
2111
|
_request_auth=_request_auth,
|
|
2107
2112
|
_content_type=_content_type,
|
|
2108
2113
|
_headers=_headers,
|
|
@@ -2110,7 +2115,7 @@ class ClustersApi:
|
|
|
2110
2115
|
)
|
|
2111
2116
|
|
|
2112
2117
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2113
|
-
'200': "
|
|
2118
|
+
'200': "ResponseModel",
|
|
2114
2119
|
'400': "ErrorResponseModel",
|
|
2115
2120
|
'401': "ErrorResponseModel",
|
|
2116
2121
|
'404': "ErrorResponseModel",
|
|
@@ -2128,9 +2133,10 @@ class ClustersApi:
|
|
|
2128
2133
|
|
|
2129
2134
|
|
|
2130
2135
|
@validate_call
|
|
2131
|
-
def
|
|
2136
|
+
def delete_cluster_nodes_with_http_info(
|
|
2132
2137
|
self,
|
|
2133
|
-
|
|
2138
|
+
cluster_id: StrictInt,
|
|
2139
|
+
payload: DeleteClusterNodesFields,
|
|
2134
2140
|
_request_timeout: Union[
|
|
2135
2141
|
None,
|
|
2136
2142
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2143,13 +2149,14 @@ class ClustersApi:
|
|
|
2143
2149
|
_content_type: Optional[StrictStr] = None,
|
|
2144
2150
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2145
2151
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2146
|
-
) -> ApiResponse[
|
|
2147
|
-
"""
|
|
2152
|
+
) -> ApiResponse[ResponseModel]:
|
|
2153
|
+
"""Delete Multiple Cluster Nodes
|
|
2148
2154
|
|
|
2149
|
-
Check if a Cluster name is available
|
|
2150
2155
|
|
|
2151
|
-
:param
|
|
2152
|
-
:type
|
|
2156
|
+
:param cluster_id: (required)
|
|
2157
|
+
:type cluster_id: int
|
|
2158
|
+
:param payload: (required)
|
|
2159
|
+
:type payload: DeleteClusterNodesFields
|
|
2153
2160
|
:param _request_timeout: timeout setting for this request. If one
|
|
2154
2161
|
number provided, it will be total request
|
|
2155
2162
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2172,8 +2179,9 @@ class ClustersApi:
|
|
|
2172
2179
|
:return: Returns the result object.
|
|
2173
2180
|
""" # noqa: E501
|
|
2174
2181
|
|
|
2175
|
-
_param = self.
|
|
2176
|
-
|
|
2182
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
2183
|
+
cluster_id=cluster_id,
|
|
2184
|
+
payload=payload,
|
|
2177
2185
|
_request_auth=_request_auth,
|
|
2178
2186
|
_content_type=_content_type,
|
|
2179
2187
|
_headers=_headers,
|
|
@@ -2181,7 +2189,7 @@ class ClustersApi:
|
|
|
2181
2189
|
)
|
|
2182
2190
|
|
|
2183
2191
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2184
|
-
'200': "
|
|
2192
|
+
'200': "ResponseModel",
|
|
2185
2193
|
'400': "ErrorResponseModel",
|
|
2186
2194
|
'401': "ErrorResponseModel",
|
|
2187
2195
|
'404': "ErrorResponseModel",
|
|
@@ -2199,9 +2207,10 @@ class ClustersApi:
|
|
|
2199
2207
|
|
|
2200
2208
|
|
|
2201
2209
|
@validate_call
|
|
2202
|
-
def
|
|
2210
|
+
def delete_cluster_nodes_without_preload_content(
|
|
2203
2211
|
self,
|
|
2204
|
-
|
|
2212
|
+
cluster_id: StrictInt,
|
|
2213
|
+
payload: DeleteClusterNodesFields,
|
|
2205
2214
|
_request_timeout: Union[
|
|
2206
2215
|
None,
|
|
2207
2216
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2215,12 +2224,13 @@ class ClustersApi:
|
|
|
2215
2224
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2216
2225
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2217
2226
|
) -> RESTResponseType:
|
|
2218
|
-
"""
|
|
2227
|
+
"""Delete Multiple Cluster Nodes
|
|
2219
2228
|
|
|
2220
|
-
Check if a Cluster name is available
|
|
2221
2229
|
|
|
2222
|
-
:param
|
|
2223
|
-
:type
|
|
2230
|
+
:param cluster_id: (required)
|
|
2231
|
+
:type cluster_id: int
|
|
2232
|
+
:param payload: (required)
|
|
2233
|
+
:type payload: DeleteClusterNodesFields
|
|
2224
2234
|
:param _request_timeout: timeout setting for this request. If one
|
|
2225
2235
|
number provided, it will be total request
|
|
2226
2236
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2243,8 +2253,9 @@ class ClustersApi:
|
|
|
2243
2253
|
:return: Returns the result object.
|
|
2244
2254
|
""" # noqa: E501
|
|
2245
2255
|
|
|
2246
|
-
_param = self.
|
|
2247
|
-
|
|
2256
|
+
_param = self._delete_cluster_nodes_serialize(
|
|
2257
|
+
cluster_id=cluster_id,
|
|
2258
|
+
payload=payload,
|
|
2248
2259
|
_request_auth=_request_auth,
|
|
2249
2260
|
_content_type=_content_type,
|
|
2250
2261
|
_headers=_headers,
|
|
@@ -2252,7 +2263,7 @@ class ClustersApi:
|
|
|
2252
2263
|
)
|
|
2253
2264
|
|
|
2254
2265
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2255
|
-
'200': "
|
|
2266
|
+
'200': "ResponseModel",
|
|
2256
2267
|
'400': "ErrorResponseModel",
|
|
2257
2268
|
'401': "ErrorResponseModel",
|
|
2258
2269
|
'404': "ErrorResponseModel",
|
|
@@ -2265,9 +2276,10 @@ class ClustersApi:
|
|
|
2265
2276
|
return response_data.response
|
|
2266
2277
|
|
|
2267
2278
|
|
|
2268
|
-
def
|
|
2279
|
+
def _delete_cluster_nodes_serialize(
|
|
2269
2280
|
self,
|
|
2270
|
-
|
|
2281
|
+
cluster_id,
|
|
2282
|
+
payload,
|
|
2271
2283
|
_request_auth,
|
|
2272
2284
|
_content_type,
|
|
2273
2285
|
_headers,
|
|
@@ -2289,12 +2301,14 @@ class ClustersApi:
|
|
|
2289
2301
|
_body_params: Optional[bytes] = None
|
|
2290
2302
|
|
|
2291
2303
|
# process the path parameters
|
|
2292
|
-
if
|
|
2293
|
-
_path_params['
|
|
2304
|
+
if cluster_id is not None:
|
|
2305
|
+
_path_params['cluster_id'] = cluster_id
|
|
2294
2306
|
# process the query parameters
|
|
2295
2307
|
# process the header parameters
|
|
2296
2308
|
# process the form parameters
|
|
2297
2309
|
# process the body parameter
|
|
2310
|
+
if payload is not None:
|
|
2311
|
+
_body_params = payload
|
|
2298
2312
|
|
|
2299
2313
|
|
|
2300
2314
|
# set the HTTP header `Accept`
|
|
@@ -2305,6 +2319,19 @@ class ClustersApi:
|
|
|
2305
2319
|
]
|
|
2306
2320
|
)
|
|
2307
2321
|
|
|
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
|
|
2308
2335
|
|
|
2309
2336
|
# authentication setting
|
|
2310
2337
|
_auth_settings: List[str] = [
|
|
@@ -2312,8 +2339,8 @@ class ClustersApi:
|
|
|
2312
2339
|
]
|
|
2313
2340
|
|
|
2314
2341
|
return self.api_client.param_serialize(
|
|
2315
|
-
method='
|
|
2316
|
-
resource_path='/core/clusters/
|
|
2342
|
+
method='POST',
|
|
2343
|
+
resource_path='/core/clusters/{cluster_id}/nodes/delete',
|
|
2317
2344
|
path_params=_path_params,
|
|
2318
2345
|
query_params=_query_params,
|
|
2319
2346
|
header_params=_header_params,
|
|
@@ -2330,8 +2357,9 @@ class ClustersApi:
|
|
|
2330
2357
|
|
|
2331
2358
|
|
|
2332
2359
|
@validate_call
|
|
2333
|
-
def
|
|
2360
|
+
def fetch_cluster_name_availability(
|
|
2334
2361
|
self,
|
|
2362
|
+
name: StrictStr,
|
|
2335
2363
|
_request_timeout: Union[
|
|
2336
2364
|
None,
|
|
2337
2365
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2344,10 +2372,13 @@ class ClustersApi:
|
|
|
2344
2372
|
_content_type: Optional[StrictStr] = None,
|
|
2345
2373
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2346
2374
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2347
|
-
) ->
|
|
2348
|
-
"""
|
|
2375
|
+
) -> NameAvailableModel:
|
|
2376
|
+
"""Fetch cluster name availability
|
|
2349
2377
|
|
|
2378
|
+
Check if a Cluster name is available
|
|
2350
2379
|
|
|
2380
|
+
:param name: (required)
|
|
2381
|
+
:type name: str
|
|
2351
2382
|
:param _request_timeout: timeout setting for this request. If one
|
|
2352
2383
|
number provided, it will be total request
|
|
2353
2384
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2370,7 +2401,8 @@ class ClustersApi:
|
|
|
2370
2401
|
:return: Returns the result object.
|
|
2371
2402
|
""" # noqa: E501
|
|
2372
2403
|
|
|
2373
|
-
_param = self.
|
|
2404
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2405
|
+
name=name,
|
|
2374
2406
|
_request_auth=_request_auth,
|
|
2375
2407
|
_content_type=_content_type,
|
|
2376
2408
|
_headers=_headers,
|
|
@@ -2378,9 +2410,10 @@ class ClustersApi:
|
|
|
2378
2410
|
)
|
|
2379
2411
|
|
|
2380
2412
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2381
|
-
'200': "
|
|
2413
|
+
'200': "NameAvailableModel",
|
|
2382
2414
|
'400': "ErrorResponseModel",
|
|
2383
2415
|
'401': "ErrorResponseModel",
|
|
2416
|
+
'404': "ErrorResponseModel",
|
|
2384
2417
|
'500': None,
|
|
2385
2418
|
}
|
|
2386
2419
|
response_data = self.api_client.call_api(
|
|
@@ -2395,8 +2428,9 @@ class ClustersApi:
|
|
|
2395
2428
|
|
|
2396
2429
|
|
|
2397
2430
|
@validate_call
|
|
2398
|
-
def
|
|
2431
|
+
def fetch_cluster_name_availability_with_http_info(
|
|
2399
2432
|
self,
|
|
2433
|
+
name: StrictStr,
|
|
2400
2434
|
_request_timeout: Union[
|
|
2401
2435
|
None,
|
|
2402
2436
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2409,10 +2443,13 @@ class ClustersApi:
|
|
|
2409
2443
|
_content_type: Optional[StrictStr] = None,
|
|
2410
2444
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2411
2445
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2412
|
-
) -> ApiResponse[
|
|
2413
|
-
"""
|
|
2446
|
+
) -> ApiResponse[NameAvailableModel]:
|
|
2447
|
+
"""Fetch cluster name availability
|
|
2414
2448
|
|
|
2449
|
+
Check if a Cluster name is available
|
|
2415
2450
|
|
|
2451
|
+
:param name: (required)
|
|
2452
|
+
:type name: str
|
|
2416
2453
|
:param _request_timeout: timeout setting for this request. If one
|
|
2417
2454
|
number provided, it will be total request
|
|
2418
2455
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2435,7 +2472,8 @@ class ClustersApi:
|
|
|
2435
2472
|
:return: Returns the result object.
|
|
2436
2473
|
""" # noqa: E501
|
|
2437
2474
|
|
|
2438
|
-
_param = self.
|
|
2475
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2476
|
+
name=name,
|
|
2439
2477
|
_request_auth=_request_auth,
|
|
2440
2478
|
_content_type=_content_type,
|
|
2441
2479
|
_headers=_headers,
|
|
@@ -2443,9 +2481,10 @@ class ClustersApi:
|
|
|
2443
2481
|
)
|
|
2444
2482
|
|
|
2445
2483
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2446
|
-
'200': "
|
|
2484
|
+
'200': "NameAvailableModel",
|
|
2447
2485
|
'400': "ErrorResponseModel",
|
|
2448
2486
|
'401': "ErrorResponseModel",
|
|
2487
|
+
'404': "ErrorResponseModel",
|
|
2449
2488
|
'500': None,
|
|
2450
2489
|
}
|
|
2451
2490
|
response_data = self.api_client.call_api(
|
|
@@ -2460,8 +2499,9 @@ class ClustersApi:
|
|
|
2460
2499
|
|
|
2461
2500
|
|
|
2462
2501
|
@validate_call
|
|
2463
|
-
def
|
|
2502
|
+
def fetch_cluster_name_availability_without_preload_content(
|
|
2464
2503
|
self,
|
|
2504
|
+
name: StrictStr,
|
|
2465
2505
|
_request_timeout: Union[
|
|
2466
2506
|
None,
|
|
2467
2507
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2475,9 +2515,12 @@ class ClustersApi:
|
|
|
2475
2515
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2476
2516
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2477
2517
|
) -> RESTResponseType:
|
|
2478
|
-
"""
|
|
2518
|
+
"""Fetch cluster name availability
|
|
2479
2519
|
|
|
2520
|
+
Check if a Cluster name is available
|
|
2480
2521
|
|
|
2522
|
+
:param name: (required)
|
|
2523
|
+
:type name: str
|
|
2481
2524
|
:param _request_timeout: timeout setting for this request. If one
|
|
2482
2525
|
number provided, it will be total request
|
|
2483
2526
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2500,7 +2543,8 @@ class ClustersApi:
|
|
|
2500
2543
|
:return: Returns the result object.
|
|
2501
2544
|
""" # noqa: E501
|
|
2502
2545
|
|
|
2503
|
-
_param = self.
|
|
2546
|
+
_param = self._fetch_cluster_name_availability_serialize(
|
|
2547
|
+
name=name,
|
|
2504
2548
|
_request_auth=_request_auth,
|
|
2505
2549
|
_content_type=_content_type,
|
|
2506
2550
|
_headers=_headers,
|
|
@@ -2508,9 +2552,10 @@ class ClustersApi:
|
|
|
2508
2552
|
)
|
|
2509
2553
|
|
|
2510
2554
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2511
|
-
'200': "
|
|
2555
|
+
'200': "NameAvailableModel",
|
|
2512
2556
|
'400': "ErrorResponseModel",
|
|
2513
2557
|
'401': "ErrorResponseModel",
|
|
2558
|
+
'404': "ErrorResponseModel",
|
|
2514
2559
|
'500': None,
|
|
2515
2560
|
}
|
|
2516
2561
|
response_data = self.api_client.call_api(
|
|
@@ -2520,8 +2565,9 @@ class ClustersApi:
|
|
|
2520
2565
|
return response_data.response
|
|
2521
2566
|
|
|
2522
2567
|
|
|
2523
|
-
def
|
|
2568
|
+
def _fetch_cluster_name_availability_serialize(
|
|
2524
2569
|
self,
|
|
2570
|
+
name,
|
|
2525
2571
|
_request_auth,
|
|
2526
2572
|
_content_type,
|
|
2527
2573
|
_headers,
|
|
@@ -2543,6 +2589,8 @@ class ClustersApi:
|
|
|
2543
2589
|
_body_params: Optional[bytes] = None
|
|
2544
2590
|
|
|
2545
2591
|
# process the path parameters
|
|
2592
|
+
if name is not None:
|
|
2593
|
+
_path_params['name'] = name
|
|
2546
2594
|
# process the query parameters
|
|
2547
2595
|
# process the header parameters
|
|
2548
2596
|
# process the form parameters
|
|
@@ -2565,7 +2613,7 @@ class ClustersApi:
|
|
|
2565
2613
|
|
|
2566
2614
|
return self.api_client.param_serialize(
|
|
2567
2615
|
method='GET',
|
|
2568
|
-
resource_path='/core/clusters/
|
|
2616
|
+
resource_path='/core/clusters/name-availability/{name}',
|
|
2569
2617
|
path_params=_path_params,
|
|
2570
2618
|
query_params=_query_params,
|
|
2571
2619
|
header_params=_header_params,
|
|
@@ -2582,9 +2630,8 @@ class ClustersApi:
|
|
|
2582
2630
|
|
|
2583
2631
|
|
|
2584
2632
|
@validate_call
|
|
2585
|
-
def
|
|
2633
|
+
def get_cluster_master_flavors(
|
|
2586
2634
|
self,
|
|
2587
|
-
cluster_id: StrictInt,
|
|
2588
2635
|
_request_timeout: Union[
|
|
2589
2636
|
None,
|
|
2590
2637
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2597,12 +2644,10 @@ class ClustersApi:
|
|
|
2597
2644
|
_content_type: Optional[StrictStr] = None,
|
|
2598
2645
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2599
2646
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2600
|
-
) ->
|
|
2601
|
-
"""Get Cluster
|
|
2647
|
+
) -> MasterFlavorsResponse:
|
|
2648
|
+
"""Get Cluster Master Flavors
|
|
2602
2649
|
|
|
2603
2650
|
|
|
2604
|
-
:param cluster_id: (required)
|
|
2605
|
-
:type cluster_id: int
|
|
2606
2651
|
:param _request_timeout: timeout setting for this request. If one
|
|
2607
2652
|
number provided, it will be total request
|
|
2608
2653
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2625,8 +2670,7 @@ class ClustersApi:
|
|
|
2625
2670
|
:return: Returns the result object.
|
|
2626
2671
|
""" # noqa: E501
|
|
2627
2672
|
|
|
2628
|
-
_param = self.
|
|
2629
|
-
cluster_id=cluster_id,
|
|
2673
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2630
2674
|
_request_auth=_request_auth,
|
|
2631
2675
|
_content_type=_content_type,
|
|
2632
2676
|
_headers=_headers,
|
|
@@ -2634,10 +2678,9 @@ class ClustersApi:
|
|
|
2634
2678
|
)
|
|
2635
2679
|
|
|
2636
2680
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2637
|
-
'200': "
|
|
2681
|
+
'200': "MasterFlavorsResponse",
|
|
2638
2682
|
'400': "ErrorResponseModel",
|
|
2639
2683
|
'401': "ErrorResponseModel",
|
|
2640
|
-
'404': "ErrorResponseModel",
|
|
2641
2684
|
'500': None,
|
|
2642
2685
|
}
|
|
2643
2686
|
response_data = self.api_client.call_api(
|
|
@@ -2652,9 +2695,8 @@ class ClustersApi:
|
|
|
2652
2695
|
|
|
2653
2696
|
|
|
2654
2697
|
@validate_call
|
|
2655
|
-
def
|
|
2698
|
+
def get_cluster_master_flavors_with_http_info(
|
|
2656
2699
|
self,
|
|
2657
|
-
cluster_id: StrictInt,
|
|
2658
2700
|
_request_timeout: Union[
|
|
2659
2701
|
None,
|
|
2660
2702
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2667,12 +2709,10 @@ class ClustersApi:
|
|
|
2667
2709
|
_content_type: Optional[StrictStr] = None,
|
|
2668
2710
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2669
2711
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2670
|
-
) -> ApiResponse[
|
|
2671
|
-
"""Get Cluster
|
|
2712
|
+
) -> ApiResponse[MasterFlavorsResponse]:
|
|
2713
|
+
"""Get Cluster Master Flavors
|
|
2672
2714
|
|
|
2673
2715
|
|
|
2674
|
-
:param cluster_id: (required)
|
|
2675
|
-
:type cluster_id: int
|
|
2676
2716
|
:param _request_timeout: timeout setting for this request. If one
|
|
2677
2717
|
number provided, it will be total request
|
|
2678
2718
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2695,8 +2735,7 @@ class ClustersApi:
|
|
|
2695
2735
|
:return: Returns the result object.
|
|
2696
2736
|
""" # noqa: E501
|
|
2697
2737
|
|
|
2698
|
-
_param = self.
|
|
2699
|
-
cluster_id=cluster_id,
|
|
2738
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2700
2739
|
_request_auth=_request_auth,
|
|
2701
2740
|
_content_type=_content_type,
|
|
2702
2741
|
_headers=_headers,
|
|
@@ -2704,10 +2743,9 @@ class ClustersApi:
|
|
|
2704
2743
|
)
|
|
2705
2744
|
|
|
2706
2745
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2707
|
-
'200': "
|
|
2746
|
+
'200': "MasterFlavorsResponse",
|
|
2708
2747
|
'400': "ErrorResponseModel",
|
|
2709
2748
|
'401': "ErrorResponseModel",
|
|
2710
|
-
'404': "ErrorResponseModel",
|
|
2711
2749
|
'500': None,
|
|
2712
2750
|
}
|
|
2713
2751
|
response_data = self.api_client.call_api(
|
|
@@ -2722,9 +2760,8 @@ class ClustersApi:
|
|
|
2722
2760
|
|
|
2723
2761
|
|
|
2724
2762
|
@validate_call
|
|
2725
|
-
def
|
|
2763
|
+
def get_cluster_master_flavors_without_preload_content(
|
|
2726
2764
|
self,
|
|
2727
|
-
cluster_id: StrictInt,
|
|
2728
2765
|
_request_timeout: Union[
|
|
2729
2766
|
None,
|
|
2730
2767
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2738,11 +2775,9 @@ class ClustersApi:
|
|
|
2738
2775
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2739
2776
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2740
2777
|
) -> RESTResponseType:
|
|
2741
|
-
"""Get Cluster
|
|
2778
|
+
"""Get Cluster Master Flavors
|
|
2742
2779
|
|
|
2743
2780
|
|
|
2744
|
-
:param cluster_id: (required)
|
|
2745
|
-
:type cluster_id: int
|
|
2746
2781
|
:param _request_timeout: timeout setting for this request. If one
|
|
2747
2782
|
number provided, it will be total request
|
|
2748
2783
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2765,8 +2800,7 @@ class ClustersApi:
|
|
|
2765
2800
|
:return: Returns the result object.
|
|
2766
2801
|
""" # noqa: E501
|
|
2767
2802
|
|
|
2768
|
-
_param = self.
|
|
2769
|
-
cluster_id=cluster_id,
|
|
2803
|
+
_param = self._get_cluster_master_flavors_serialize(
|
|
2770
2804
|
_request_auth=_request_auth,
|
|
2771
2805
|
_content_type=_content_type,
|
|
2772
2806
|
_headers=_headers,
|
|
@@ -2774,10 +2808,9 @@ class ClustersApi:
|
|
|
2774
2808
|
)
|
|
2775
2809
|
|
|
2776
2810
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2777
|
-
'200': "
|
|
2811
|
+
'200': "MasterFlavorsResponse",
|
|
2778
2812
|
'400': "ErrorResponseModel",
|
|
2779
2813
|
'401': "ErrorResponseModel",
|
|
2780
|
-
'404': "ErrorResponseModel",
|
|
2781
2814
|
'500': None,
|
|
2782
2815
|
}
|
|
2783
2816
|
response_data = self.api_client.call_api(
|
|
@@ -2787,9 +2820,8 @@ class ClustersApi:
|
|
|
2787
2820
|
return response_data.response
|
|
2788
2821
|
|
|
2789
2822
|
|
|
2790
|
-
def
|
|
2823
|
+
def _get_cluster_master_flavors_serialize(
|
|
2791
2824
|
self,
|
|
2792
|
-
cluster_id,
|
|
2793
2825
|
_request_auth,
|
|
2794
2826
|
_content_type,
|
|
2795
2827
|
_headers,
|
|
@@ -2811,8 +2843,6 @@ class ClustersApi:
|
|
|
2811
2843
|
_body_params: Optional[bytes] = None
|
|
2812
2844
|
|
|
2813
2845
|
# process the path parameters
|
|
2814
|
-
if cluster_id is not None:
|
|
2815
|
-
_path_params['cluster_id'] = cluster_id
|
|
2816
2846
|
# process the query parameters
|
|
2817
2847
|
# process the header parameters
|
|
2818
2848
|
# process the form parameters
|
|
@@ -2835,7 +2865,7 @@ class ClustersApi:
|
|
|
2835
2865
|
|
|
2836
2866
|
return self.api_client.param_serialize(
|
|
2837
2867
|
method='GET',
|
|
2838
|
-
resource_path='/core/clusters/
|
|
2868
|
+
resource_path='/core/clusters/master-flavors',
|
|
2839
2869
|
path_params=_path_params,
|
|
2840
2870
|
query_params=_query_params,
|
|
2841
2871
|
header_params=_header_params,
|
|
@@ -2852,9 +2882,9 @@ class ClustersApi:
|
|
|
2852
2882
|
|
|
2853
2883
|
|
|
2854
2884
|
@validate_call
|
|
2855
|
-
def
|
|
2885
|
+
def get_cluster_nodes(
|
|
2856
2886
|
self,
|
|
2857
|
-
|
|
2887
|
+
cluster_id: StrictInt,
|
|
2858
2888
|
_request_timeout: Union[
|
|
2859
2889
|
None,
|
|
2860
2890
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2867,13 +2897,12 @@ class ClustersApi:
|
|
|
2867
2897
|
_content_type: Optional[StrictStr] = None,
|
|
2868
2898
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2869
2899
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2870
|
-
) ->
|
|
2871
|
-
"""
|
|
2900
|
+
) -> ClusterNodesListResponse:
|
|
2901
|
+
"""Get Cluster Nodes
|
|
2872
2902
|
|
|
2873
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
2874
2903
|
|
|
2875
|
-
:param
|
|
2876
|
-
:type
|
|
2904
|
+
:param cluster_id: (required)
|
|
2905
|
+
:type cluster_id: int
|
|
2877
2906
|
:param _request_timeout: timeout setting for this request. If one
|
|
2878
2907
|
number provided, it will be total request
|
|
2879
2908
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2896,8 +2925,8 @@ class ClustersApi:
|
|
|
2896
2925
|
:return: Returns the result object.
|
|
2897
2926
|
""" # noqa: E501
|
|
2898
2927
|
|
|
2899
|
-
_param = self.
|
|
2900
|
-
|
|
2928
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2929
|
+
cluster_id=cluster_id,
|
|
2901
2930
|
_request_auth=_request_auth,
|
|
2902
2931
|
_content_type=_content_type,
|
|
2903
2932
|
_headers=_headers,
|
|
@@ -2905,9 +2934,10 @@ class ClustersApi:
|
|
|
2905
2934
|
)
|
|
2906
2935
|
|
|
2907
2936
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2908
|
-
'200': "
|
|
2937
|
+
'200': "ClusterNodesListResponse",
|
|
2909
2938
|
'400': "ErrorResponseModel",
|
|
2910
2939
|
'401': "ErrorResponseModel",
|
|
2940
|
+
'404': "ErrorResponseModel",
|
|
2911
2941
|
'500': None,
|
|
2912
2942
|
}
|
|
2913
2943
|
response_data = self.api_client.call_api(
|
|
@@ -2922,9 +2952,9 @@ class ClustersApi:
|
|
|
2922
2952
|
|
|
2923
2953
|
|
|
2924
2954
|
@validate_call
|
|
2925
|
-
def
|
|
2955
|
+
def get_cluster_nodes_with_http_info(
|
|
2926
2956
|
self,
|
|
2927
|
-
|
|
2957
|
+
cluster_id: StrictInt,
|
|
2928
2958
|
_request_timeout: Union[
|
|
2929
2959
|
None,
|
|
2930
2960
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2937,13 +2967,12 @@ class ClustersApi:
|
|
|
2937
2967
|
_content_type: Optional[StrictStr] = None,
|
|
2938
2968
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2939
2969
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2940
|
-
) -> ApiResponse[
|
|
2941
|
-
"""
|
|
2970
|
+
) -> ApiResponse[ClusterNodesListResponse]:
|
|
2971
|
+
"""Get Cluster Nodes
|
|
2942
2972
|
|
|
2943
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
2944
2973
|
|
|
2945
|
-
:param
|
|
2946
|
-
:type
|
|
2974
|
+
:param cluster_id: (required)
|
|
2975
|
+
:type cluster_id: int
|
|
2947
2976
|
:param _request_timeout: timeout setting for this request. If one
|
|
2948
2977
|
number provided, it will be total request
|
|
2949
2978
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2966,8 +2995,8 @@ class ClustersApi:
|
|
|
2966
2995
|
:return: Returns the result object.
|
|
2967
2996
|
""" # noqa: E501
|
|
2968
2997
|
|
|
2969
|
-
_param = self.
|
|
2970
|
-
|
|
2998
|
+
_param = self._get_cluster_nodes_serialize(
|
|
2999
|
+
cluster_id=cluster_id,
|
|
2971
3000
|
_request_auth=_request_auth,
|
|
2972
3001
|
_content_type=_content_type,
|
|
2973
3002
|
_headers=_headers,
|
|
@@ -2975,9 +3004,10 @@ class ClustersApi:
|
|
|
2975
3004
|
)
|
|
2976
3005
|
|
|
2977
3006
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2978
|
-
'200': "
|
|
3007
|
+
'200': "ClusterNodesListResponse",
|
|
2979
3008
|
'400': "ErrorResponseModel",
|
|
2980
3009
|
'401': "ErrorResponseModel",
|
|
3010
|
+
'404': "ErrorResponseModel",
|
|
2981
3011
|
'500': None,
|
|
2982
3012
|
}
|
|
2983
3013
|
response_data = self.api_client.call_api(
|
|
@@ -2992,9 +3022,9 @@ class ClustersApi:
|
|
|
2992
3022
|
|
|
2993
3023
|
|
|
2994
3024
|
@validate_call
|
|
2995
|
-
def
|
|
3025
|
+
def get_cluster_nodes_without_preload_content(
|
|
2996
3026
|
self,
|
|
2997
|
-
|
|
3027
|
+
cluster_id: StrictInt,
|
|
2998
3028
|
_request_timeout: Union[
|
|
2999
3029
|
None,
|
|
3000
3030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3008,12 +3038,11 @@ class ClustersApi:
|
|
|
3008
3038
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3009
3039
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3010
3040
|
) -> RESTResponseType:
|
|
3011
|
-
"""
|
|
3041
|
+
"""Get Cluster Nodes
|
|
3012
3042
|
|
|
3013
|
-
Lists available Kubernetes versions, optionally filtered by region.
|
|
3014
3043
|
|
|
3015
|
-
:param
|
|
3016
|
-
:type
|
|
3044
|
+
:param cluster_id: (required)
|
|
3045
|
+
:type cluster_id: int
|
|
3017
3046
|
:param _request_timeout: timeout setting for this request. If one
|
|
3018
3047
|
number provided, it will be total request
|
|
3019
3048
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3036,8 +3065,8 @@ class ClustersApi:
|
|
|
3036
3065
|
:return: Returns the result object.
|
|
3037
3066
|
""" # noqa: E501
|
|
3038
3067
|
|
|
3039
|
-
_param = self.
|
|
3040
|
-
|
|
3068
|
+
_param = self._get_cluster_nodes_serialize(
|
|
3069
|
+
cluster_id=cluster_id,
|
|
3041
3070
|
_request_auth=_request_auth,
|
|
3042
3071
|
_content_type=_content_type,
|
|
3043
3072
|
_headers=_headers,
|
|
@@ -3045,9 +3074,10 @@ class ClustersApi:
|
|
|
3045
3074
|
)
|
|
3046
3075
|
|
|
3047
3076
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3048
|
-
'200': "
|
|
3077
|
+
'200': "ClusterNodesListResponse",
|
|
3049
3078
|
'400': "ErrorResponseModel",
|
|
3050
3079
|
'401': "ErrorResponseModel",
|
|
3080
|
+
'404': "ErrorResponseModel",
|
|
3051
3081
|
'500': None,
|
|
3052
3082
|
}
|
|
3053
3083
|
response_data = self.api_client.call_api(
|
|
@@ -3057,9 +3087,9 @@ class ClustersApi:
|
|
|
3057
3087
|
return response_data.response
|
|
3058
3088
|
|
|
3059
3089
|
|
|
3060
|
-
def
|
|
3090
|
+
def _get_cluster_nodes_serialize(
|
|
3061
3091
|
self,
|
|
3062
|
-
|
|
3092
|
+
cluster_id,
|
|
3063
3093
|
_request_auth,
|
|
3064
3094
|
_content_type,
|
|
3065
3095
|
_headers,
|
|
@@ -3081,11 +3111,9 @@ class ClustersApi:
|
|
|
3081
3111
|
_body_params: Optional[bytes] = None
|
|
3082
3112
|
|
|
3083
3113
|
# process the path parameters
|
|
3114
|
+
if cluster_id is not None:
|
|
3115
|
+
_path_params['cluster_id'] = cluster_id
|
|
3084
3116
|
# process the query parameters
|
|
3085
|
-
if region is not None:
|
|
3086
|
-
|
|
3087
|
-
_query_params.append(('region', region))
|
|
3088
|
-
|
|
3089
3117
|
# process the header parameters
|
|
3090
3118
|
# process the form parameters
|
|
3091
3119
|
# process the body parameter
|
|
@@ -3107,7 +3135,7 @@ class ClustersApi:
|
|
|
3107
3135
|
|
|
3108
3136
|
return self.api_client.param_serialize(
|
|
3109
3137
|
method='GET',
|
|
3110
|
-
resource_path='/core/clusters/
|
|
3138
|
+
resource_path='/core/clusters/{cluster_id}/nodes',
|
|
3111
3139
|
path_params=_path_params,
|
|
3112
3140
|
query_params=_query_params,
|
|
3113
3141
|
header_params=_header_params,
|
|
@@ -3124,9 +3152,9 @@ class ClustersApi:
|
|
|
3124
3152
|
|
|
3125
3153
|
|
|
3126
3154
|
@validate_call
|
|
3127
|
-
def
|
|
3155
|
+
def get_cluster_versions(
|
|
3128
3156
|
self,
|
|
3129
|
-
|
|
3157
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
3130
3158
|
_request_timeout: Union[
|
|
3131
3159
|
None,
|
|
3132
3160
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3139,7 +3167,349 @@ class ClustersApi:
|
|
|
3139
3167
|
_content_type: Optional[StrictStr] = None,
|
|
3140
3168
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3141
3169
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3142
|
-
) ->
|
|
3170
|
+
) -> ClusterVersions:
|
|
3171
|
+
"""List Cluster Versions
|
|
3172
|
+
|
|
3173
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
3174
|
+
|
|
3175
|
+
:param region: Filter versions by region name (optional)
|
|
3176
|
+
:type region: str
|
|
3177
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3178
|
+
number provided, it will be total request
|
|
3179
|
+
timeout. It can also be a pair (tuple) of
|
|
3180
|
+
(connection, read) timeouts.
|
|
3181
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3182
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3183
|
+
request; this effectively ignores the
|
|
3184
|
+
authentication in the spec for a single request.
|
|
3185
|
+
:type _request_auth: dict, optional
|
|
3186
|
+
:param _content_type: force content-type for the request.
|
|
3187
|
+
:type _content_type: str, Optional
|
|
3188
|
+
:param _headers: set to override the headers for a single
|
|
3189
|
+
request; this effectively ignores the headers
|
|
3190
|
+
in the spec for a single request.
|
|
3191
|
+
:type _headers: dict, optional
|
|
3192
|
+
:param _host_index: set to override the host_index for a single
|
|
3193
|
+
request; this effectively ignores the host_index
|
|
3194
|
+
in the spec for a single request.
|
|
3195
|
+
:type _host_index: int, optional
|
|
3196
|
+
:return: Returns the result object.
|
|
3197
|
+
""" # noqa: E501
|
|
3198
|
+
|
|
3199
|
+
_param = self._get_cluster_versions_serialize(
|
|
3200
|
+
region=region,
|
|
3201
|
+
_request_auth=_request_auth,
|
|
3202
|
+
_content_type=_content_type,
|
|
3203
|
+
_headers=_headers,
|
|
3204
|
+
_host_index=_host_index
|
|
3205
|
+
)
|
|
3206
|
+
|
|
3207
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3208
|
+
'200': "ClusterVersions",
|
|
3209
|
+
'400': "ErrorResponseModel",
|
|
3210
|
+
'401': "ErrorResponseModel",
|
|
3211
|
+
'500': None,
|
|
3212
|
+
}
|
|
3213
|
+
response_data = self.api_client.call_api(
|
|
3214
|
+
*_param,
|
|
3215
|
+
_request_timeout=_request_timeout
|
|
3216
|
+
)
|
|
3217
|
+
response_data.read()
|
|
3218
|
+
return self.api_client.response_deserialize(
|
|
3219
|
+
response_data=response_data,
|
|
3220
|
+
response_types_map=_response_types_map,
|
|
3221
|
+
).data
|
|
3222
|
+
|
|
3223
|
+
|
|
3224
|
+
@validate_call
|
|
3225
|
+
def get_cluster_versions_with_http_info(
|
|
3226
|
+
self,
|
|
3227
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
3228
|
+
_request_timeout: Union[
|
|
3229
|
+
None,
|
|
3230
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3231
|
+
Tuple[
|
|
3232
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3233
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3234
|
+
]
|
|
3235
|
+
] = None,
|
|
3236
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3237
|
+
_content_type: Optional[StrictStr] = None,
|
|
3238
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3239
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3240
|
+
) -> ApiResponse[ClusterVersions]:
|
|
3241
|
+
"""List Cluster Versions
|
|
3242
|
+
|
|
3243
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
3244
|
+
|
|
3245
|
+
:param region: Filter versions by region name (optional)
|
|
3246
|
+
:type region: str
|
|
3247
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3248
|
+
number provided, it will be total request
|
|
3249
|
+
timeout. It can also be a pair (tuple) of
|
|
3250
|
+
(connection, read) timeouts.
|
|
3251
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3252
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3253
|
+
request; this effectively ignores the
|
|
3254
|
+
authentication in the spec for a single request.
|
|
3255
|
+
:type _request_auth: dict, optional
|
|
3256
|
+
:param _content_type: force content-type for the request.
|
|
3257
|
+
:type _content_type: str, Optional
|
|
3258
|
+
:param _headers: set to override the headers for a single
|
|
3259
|
+
request; this effectively ignores the headers
|
|
3260
|
+
in the spec for a single request.
|
|
3261
|
+
:type _headers: dict, optional
|
|
3262
|
+
:param _host_index: set to override the host_index for a single
|
|
3263
|
+
request; this effectively ignores the host_index
|
|
3264
|
+
in the spec for a single request.
|
|
3265
|
+
:type _host_index: int, optional
|
|
3266
|
+
:return: Returns the result object.
|
|
3267
|
+
""" # noqa: E501
|
|
3268
|
+
|
|
3269
|
+
_param = self._get_cluster_versions_serialize(
|
|
3270
|
+
region=region,
|
|
3271
|
+
_request_auth=_request_auth,
|
|
3272
|
+
_content_type=_content_type,
|
|
3273
|
+
_headers=_headers,
|
|
3274
|
+
_host_index=_host_index
|
|
3275
|
+
)
|
|
3276
|
+
|
|
3277
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3278
|
+
'200': "ClusterVersions",
|
|
3279
|
+
'400': "ErrorResponseModel",
|
|
3280
|
+
'401': "ErrorResponseModel",
|
|
3281
|
+
'500': None,
|
|
3282
|
+
}
|
|
3283
|
+
response_data = self.api_client.call_api(
|
|
3284
|
+
*_param,
|
|
3285
|
+
_request_timeout=_request_timeout
|
|
3286
|
+
)
|
|
3287
|
+
response_data.read()
|
|
3288
|
+
return self.api_client.response_deserialize(
|
|
3289
|
+
response_data=response_data,
|
|
3290
|
+
response_types_map=_response_types_map,
|
|
3291
|
+
)
|
|
3292
|
+
|
|
3293
|
+
|
|
3294
|
+
@validate_call
|
|
3295
|
+
def get_cluster_versions_without_preload_content(
|
|
3296
|
+
self,
|
|
3297
|
+
region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
|
|
3298
|
+
_request_timeout: Union[
|
|
3299
|
+
None,
|
|
3300
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3301
|
+
Tuple[
|
|
3302
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3303
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3304
|
+
]
|
|
3305
|
+
] = None,
|
|
3306
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3307
|
+
_content_type: Optional[StrictStr] = None,
|
|
3308
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3309
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3310
|
+
) -> RESTResponseType:
|
|
3311
|
+
"""List Cluster Versions
|
|
3312
|
+
|
|
3313
|
+
Lists available Kubernetes versions, optionally filtered by region.
|
|
3314
|
+
|
|
3315
|
+
:param region: Filter versions by region name (optional)
|
|
3316
|
+
:type region: str
|
|
3317
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3318
|
+
number provided, it will be total request
|
|
3319
|
+
timeout. It can also be a pair (tuple) of
|
|
3320
|
+
(connection, read) timeouts.
|
|
3321
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3322
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3323
|
+
request; this effectively ignores the
|
|
3324
|
+
authentication in the spec for a single request.
|
|
3325
|
+
:type _request_auth: dict, optional
|
|
3326
|
+
:param _content_type: force content-type for the request.
|
|
3327
|
+
:type _content_type: str, Optional
|
|
3328
|
+
:param _headers: set to override the headers for a single
|
|
3329
|
+
request; this effectively ignores the headers
|
|
3330
|
+
in the spec for a single request.
|
|
3331
|
+
:type _headers: dict, optional
|
|
3332
|
+
:param _host_index: set to override the host_index for a single
|
|
3333
|
+
request; this effectively ignores the host_index
|
|
3334
|
+
in the spec for a single request.
|
|
3335
|
+
:type _host_index: int, optional
|
|
3336
|
+
:return: Returns the result object.
|
|
3337
|
+
""" # noqa: E501
|
|
3338
|
+
|
|
3339
|
+
_param = self._get_cluster_versions_serialize(
|
|
3340
|
+
region=region,
|
|
3341
|
+
_request_auth=_request_auth,
|
|
3342
|
+
_content_type=_content_type,
|
|
3343
|
+
_headers=_headers,
|
|
3344
|
+
_host_index=_host_index
|
|
3345
|
+
)
|
|
3346
|
+
|
|
3347
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3348
|
+
'200': "ClusterVersions",
|
|
3349
|
+
'400': "ErrorResponseModel",
|
|
3350
|
+
'401': "ErrorResponseModel",
|
|
3351
|
+
'500': None,
|
|
3352
|
+
}
|
|
3353
|
+
response_data = self.api_client.call_api(
|
|
3354
|
+
*_param,
|
|
3355
|
+
_request_timeout=_request_timeout
|
|
3356
|
+
)
|
|
3357
|
+
return response_data.response
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
def _get_cluster_versions_serialize(
|
|
3361
|
+
self,
|
|
3362
|
+
region,
|
|
3363
|
+
_request_auth,
|
|
3364
|
+
_content_type,
|
|
3365
|
+
_headers,
|
|
3366
|
+
_host_index,
|
|
3367
|
+
) -> RequestSerialized:
|
|
3368
|
+
|
|
3369
|
+
_host = None
|
|
3370
|
+
|
|
3371
|
+
_collection_formats: Dict[str, str] = {
|
|
3372
|
+
}
|
|
3373
|
+
|
|
3374
|
+
_path_params: Dict[str, str] = {}
|
|
3375
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3376
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3377
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3378
|
+
_files: Dict[
|
|
3379
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3380
|
+
] = {}
|
|
3381
|
+
_body_params: Optional[bytes] = None
|
|
3382
|
+
|
|
3383
|
+
# process the path parameters
|
|
3384
|
+
# process the query parameters
|
|
3385
|
+
if region is not None:
|
|
3386
|
+
|
|
3387
|
+
_query_params.append(('region', region))
|
|
3388
|
+
|
|
3389
|
+
# process the header parameters
|
|
3390
|
+
# process the form parameters
|
|
3391
|
+
# process the body parameter
|
|
3392
|
+
|
|
3393
|
+
|
|
3394
|
+
# set the HTTP header `Accept`
|
|
3395
|
+
if 'Accept' not in _header_params:
|
|
3396
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3397
|
+
[
|
|
3398
|
+
'application/json'
|
|
3399
|
+
]
|
|
3400
|
+
)
|
|
3401
|
+
|
|
3402
|
+
|
|
3403
|
+
# authentication setting
|
|
3404
|
+
_auth_settings: List[str] = [
|
|
3405
|
+
'apiKey'
|
|
3406
|
+
]
|
|
3407
|
+
|
|
3408
|
+
return self.api_client.param_serialize(
|
|
3409
|
+
method='GET',
|
|
3410
|
+
resource_path='/core/clusters/versions',
|
|
3411
|
+
path_params=_path_params,
|
|
3412
|
+
query_params=_query_params,
|
|
3413
|
+
header_params=_header_params,
|
|
3414
|
+
body=_body_params,
|
|
3415
|
+
post_params=_form_params,
|
|
3416
|
+
files=_files,
|
|
3417
|
+
auth_settings=_auth_settings,
|
|
3418
|
+
collection_formats=_collection_formats,
|
|
3419
|
+
_host=_host,
|
|
3420
|
+
_request_auth=_request_auth
|
|
3421
|
+
)
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
|
|
3426
|
+
@validate_call
|
|
3427
|
+
def getting_cluster_detail(
|
|
3428
|
+
self,
|
|
3429
|
+
id: StrictInt,
|
|
3430
|
+
_request_timeout: Union[
|
|
3431
|
+
None,
|
|
3432
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3433
|
+
Tuple[
|
|
3434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3435
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3436
|
+
]
|
|
3437
|
+
] = None,
|
|
3438
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3439
|
+
_content_type: Optional[StrictStr] = None,
|
|
3440
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3441
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3442
|
+
) -> ClusterResponse:
|
|
3443
|
+
"""Getting Cluster Detail
|
|
3444
|
+
|
|
3445
|
+
|
|
3446
|
+
:param id: (required)
|
|
3447
|
+
:type id: int
|
|
3448
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3449
|
+
number provided, it will be total request
|
|
3450
|
+
timeout. It can also be a pair (tuple) of
|
|
3451
|
+
(connection, read) timeouts.
|
|
3452
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3453
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3454
|
+
request; this effectively ignores the
|
|
3455
|
+
authentication in the spec for a single request.
|
|
3456
|
+
:type _request_auth: dict, optional
|
|
3457
|
+
:param _content_type: force content-type for the request.
|
|
3458
|
+
:type _content_type: str, Optional
|
|
3459
|
+
:param _headers: set to override the headers for a single
|
|
3460
|
+
request; this effectively ignores the headers
|
|
3461
|
+
in the spec for a single request.
|
|
3462
|
+
:type _headers: dict, optional
|
|
3463
|
+
:param _host_index: set to override the host_index for a single
|
|
3464
|
+
request; this effectively ignores the host_index
|
|
3465
|
+
in the spec for a single request.
|
|
3466
|
+
:type _host_index: int, optional
|
|
3467
|
+
:return: Returns the result object.
|
|
3468
|
+
""" # noqa: E501
|
|
3469
|
+
|
|
3470
|
+
_param = self._getting_cluster_detail_serialize(
|
|
3471
|
+
id=id,
|
|
3472
|
+
_request_auth=_request_auth,
|
|
3473
|
+
_content_type=_content_type,
|
|
3474
|
+
_headers=_headers,
|
|
3475
|
+
_host_index=_host_index
|
|
3476
|
+
)
|
|
3477
|
+
|
|
3478
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3479
|
+
'200': "ClusterResponse",
|
|
3480
|
+
'400': "ErrorResponseModel",
|
|
3481
|
+
'401': "ErrorResponseModel",
|
|
3482
|
+
'404': "ErrorResponseModel",
|
|
3483
|
+
'500': None,
|
|
3484
|
+
}
|
|
3485
|
+
response_data = self.api_client.call_api(
|
|
3486
|
+
*_param,
|
|
3487
|
+
_request_timeout=_request_timeout
|
|
3488
|
+
)
|
|
3489
|
+
response_data.read()
|
|
3490
|
+
return self.api_client.response_deserialize(
|
|
3491
|
+
response_data=response_data,
|
|
3492
|
+
response_types_map=_response_types_map,
|
|
3493
|
+
).data
|
|
3494
|
+
|
|
3495
|
+
|
|
3496
|
+
@validate_call
|
|
3497
|
+
def getting_cluster_detail_with_http_info(
|
|
3498
|
+
self,
|
|
3499
|
+
id: StrictInt,
|
|
3500
|
+
_request_timeout: Union[
|
|
3501
|
+
None,
|
|
3502
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3503
|
+
Tuple[
|
|
3504
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3505
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3506
|
+
]
|
|
3507
|
+
] = None,
|
|
3508
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3509
|
+
_content_type: Optional[StrictStr] = None,
|
|
3510
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3511
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3512
|
+
) -> ApiResponse[ClusterResponse]:
|
|
3143
3513
|
"""Getting Cluster Detail
|
|
3144
3514
|
|
|
3145
3515
|
|
|
@@ -3190,11 +3560,11 @@ class ClustersApi:
|
|
|
3190
3560
|
return self.api_client.response_deserialize(
|
|
3191
3561
|
response_data=response_data,
|
|
3192
3562
|
response_types_map=_response_types_map,
|
|
3193
|
-
)
|
|
3563
|
+
)
|
|
3194
3564
|
|
|
3195
3565
|
|
|
3196
3566
|
@validate_call
|
|
3197
|
-
def
|
|
3567
|
+
def getting_cluster_detail_without_preload_content(
|
|
3198
3568
|
self,
|
|
3199
3569
|
id: StrictInt,
|
|
3200
3570
|
_request_timeout: Union[
|
|
@@ -3209,7 +3579,7 @@ class ClustersApi:
|
|
|
3209
3579
|
_content_type: Optional[StrictStr] = None,
|
|
3210
3580
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3211
3581
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3212
|
-
) ->
|
|
3582
|
+
) -> RESTResponseType:
|
|
3213
3583
|
"""Getting Cluster Detail
|
|
3214
3584
|
|
|
3215
3585
|
|
|
@@ -3256,6 +3626,228 @@ class ClustersApi:
|
|
|
3256
3626
|
*_param,
|
|
3257
3627
|
_request_timeout=_request_timeout
|
|
3258
3628
|
)
|
|
3629
|
+
return response_data.response
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
def _getting_cluster_detail_serialize(
|
|
3633
|
+
self,
|
|
3634
|
+
id,
|
|
3635
|
+
_request_auth,
|
|
3636
|
+
_content_type,
|
|
3637
|
+
_headers,
|
|
3638
|
+
_host_index,
|
|
3639
|
+
) -> RequestSerialized:
|
|
3640
|
+
|
|
3641
|
+
_host = None
|
|
3642
|
+
|
|
3643
|
+
_collection_formats: Dict[str, str] = {
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
_path_params: Dict[str, str] = {}
|
|
3647
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3648
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3649
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3650
|
+
_files: Dict[
|
|
3651
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3652
|
+
] = {}
|
|
3653
|
+
_body_params: Optional[bytes] = None
|
|
3654
|
+
|
|
3655
|
+
# process the path parameters
|
|
3656
|
+
if id is not None:
|
|
3657
|
+
_path_params['id'] = id
|
|
3658
|
+
# process the query parameters
|
|
3659
|
+
# process the header parameters
|
|
3660
|
+
# process the form parameters
|
|
3661
|
+
# process the body parameter
|
|
3662
|
+
|
|
3663
|
+
|
|
3664
|
+
# set the HTTP header `Accept`
|
|
3665
|
+
if 'Accept' not in _header_params:
|
|
3666
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3667
|
+
[
|
|
3668
|
+
'application/json'
|
|
3669
|
+
]
|
|
3670
|
+
)
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
# authentication setting
|
|
3674
|
+
_auth_settings: List[str] = [
|
|
3675
|
+
'apiKey'
|
|
3676
|
+
]
|
|
3677
|
+
|
|
3678
|
+
return self.api_client.param_serialize(
|
|
3679
|
+
method='GET',
|
|
3680
|
+
resource_path='/core/clusters/{id}',
|
|
3681
|
+
path_params=_path_params,
|
|
3682
|
+
query_params=_query_params,
|
|
3683
|
+
header_params=_header_params,
|
|
3684
|
+
body=_body_params,
|
|
3685
|
+
post_params=_form_params,
|
|
3686
|
+
files=_files,
|
|
3687
|
+
auth_settings=_auth_settings,
|
|
3688
|
+
collection_formats=_collection_formats,
|
|
3689
|
+
_host=_host,
|
|
3690
|
+
_request_auth=_request_auth
|
|
3691
|
+
)
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
@validate_call
|
|
3697
|
+
def list_clusters(
|
|
3698
|
+
self,
|
|
3699
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number for pagination")] = None,
|
|
3700
|
+
page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
|
|
3701
|
+
environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
|
|
3702
|
+
search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
|
|
3703
|
+
_request_timeout: Union[
|
|
3704
|
+
None,
|
|
3705
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3706
|
+
Tuple[
|
|
3707
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3708
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3709
|
+
]
|
|
3710
|
+
] = None,
|
|
3711
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3712
|
+
_content_type: Optional[StrictStr] = None,
|
|
3713
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3714
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3715
|
+
) -> ClusterListResponse:
|
|
3716
|
+
"""List Clusters
|
|
3717
|
+
|
|
3718
|
+
|
|
3719
|
+
:param page: Page number for pagination
|
|
3720
|
+
:type page: int
|
|
3721
|
+
:param page_size: Number of items per page
|
|
3722
|
+
:type page_size: int
|
|
3723
|
+
:param environment: Environment Filter
|
|
3724
|
+
:type environment: str
|
|
3725
|
+
:param search: Search query to filter cluster by name
|
|
3726
|
+
:type search: str
|
|
3727
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3728
|
+
number provided, it will be total request
|
|
3729
|
+
timeout. It can also be a pair (tuple) of
|
|
3730
|
+
(connection, read) timeouts.
|
|
3731
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3732
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3733
|
+
request; this effectively ignores the
|
|
3734
|
+
authentication in the spec for a single request.
|
|
3735
|
+
:type _request_auth: dict, optional
|
|
3736
|
+
:param _content_type: force content-type for the request.
|
|
3737
|
+
:type _content_type: str, Optional
|
|
3738
|
+
:param _headers: set to override the headers for a single
|
|
3739
|
+
request; this effectively ignores the headers
|
|
3740
|
+
in the spec for a single request.
|
|
3741
|
+
:type _headers: dict, optional
|
|
3742
|
+
:param _host_index: set to override the host_index for a single
|
|
3743
|
+
request; this effectively ignores the host_index
|
|
3744
|
+
in the spec for a single request.
|
|
3745
|
+
:type _host_index: int, optional
|
|
3746
|
+
:return: Returns the result object.
|
|
3747
|
+
""" # noqa: E501
|
|
3748
|
+
|
|
3749
|
+
_param = self._list_clusters_serialize(
|
|
3750
|
+
page=page,
|
|
3751
|
+
page_size=page_size,
|
|
3752
|
+
environment=environment,
|
|
3753
|
+
search=search,
|
|
3754
|
+
_request_auth=_request_auth,
|
|
3755
|
+
_content_type=_content_type,
|
|
3756
|
+
_headers=_headers,
|
|
3757
|
+
_host_index=_host_index
|
|
3758
|
+
)
|
|
3759
|
+
|
|
3760
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3761
|
+
'200': "ClusterListResponse",
|
|
3762
|
+
'400': "ErrorResponseModel",
|
|
3763
|
+
'401': "ErrorResponseModel",
|
|
3764
|
+
'500': None,
|
|
3765
|
+
}
|
|
3766
|
+
response_data = self.api_client.call_api(
|
|
3767
|
+
*_param,
|
|
3768
|
+
_request_timeout=_request_timeout
|
|
3769
|
+
)
|
|
3770
|
+
response_data.read()
|
|
3771
|
+
return self.api_client.response_deserialize(
|
|
3772
|
+
response_data=response_data,
|
|
3773
|
+
response_types_map=_response_types_map,
|
|
3774
|
+
).data
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
@validate_call
|
|
3778
|
+
def list_clusters_with_http_info(
|
|
3779
|
+
self,
|
|
3780
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number for pagination")] = None,
|
|
3781
|
+
page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
|
|
3782
|
+
environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
|
|
3783
|
+
search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
|
|
3784
|
+
_request_timeout: Union[
|
|
3785
|
+
None,
|
|
3786
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3787
|
+
Tuple[
|
|
3788
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3789
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3790
|
+
]
|
|
3791
|
+
] = None,
|
|
3792
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3793
|
+
_content_type: Optional[StrictStr] = None,
|
|
3794
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3795
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3796
|
+
) -> ApiResponse[ClusterListResponse]:
|
|
3797
|
+
"""List Clusters
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
:param page: Page number for pagination
|
|
3801
|
+
:type page: int
|
|
3802
|
+
:param page_size: Number of items per page
|
|
3803
|
+
:type page_size: int
|
|
3804
|
+
:param environment: Environment Filter
|
|
3805
|
+
:type environment: str
|
|
3806
|
+
:param search: Search query to filter cluster by name
|
|
3807
|
+
:type search: str
|
|
3808
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3809
|
+
number provided, it will be total request
|
|
3810
|
+
timeout. It can also be a pair (tuple) of
|
|
3811
|
+
(connection, read) timeouts.
|
|
3812
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3813
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3814
|
+
request; this effectively ignores the
|
|
3815
|
+
authentication in the spec for a single request.
|
|
3816
|
+
:type _request_auth: dict, optional
|
|
3817
|
+
:param _content_type: force content-type for the request.
|
|
3818
|
+
:type _content_type: str, Optional
|
|
3819
|
+
:param _headers: set to override the headers for a single
|
|
3820
|
+
request; this effectively ignores the headers
|
|
3821
|
+
in the spec for a single request.
|
|
3822
|
+
:type _headers: dict, optional
|
|
3823
|
+
:param _host_index: set to override the host_index for a single
|
|
3824
|
+
request; this effectively ignores the host_index
|
|
3825
|
+
in the spec for a single request.
|
|
3826
|
+
:type _host_index: int, optional
|
|
3827
|
+
:return: Returns the result object.
|
|
3828
|
+
""" # noqa: E501
|
|
3829
|
+
|
|
3830
|
+
_param = self._list_clusters_serialize(
|
|
3831
|
+
page=page,
|
|
3832
|
+
page_size=page_size,
|
|
3833
|
+
environment=environment,
|
|
3834
|
+
search=search,
|
|
3835
|
+
_request_auth=_request_auth,
|
|
3836
|
+
_content_type=_content_type,
|
|
3837
|
+
_headers=_headers,
|
|
3838
|
+
_host_index=_host_index
|
|
3839
|
+
)
|
|
3840
|
+
|
|
3841
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3842
|
+
'200': "ClusterListResponse",
|
|
3843
|
+
'400': "ErrorResponseModel",
|
|
3844
|
+
'401': "ErrorResponseModel",
|
|
3845
|
+
'500': None,
|
|
3846
|
+
}
|
|
3847
|
+
response_data = self.api_client.call_api(
|
|
3848
|
+
*_param,
|
|
3849
|
+
_request_timeout=_request_timeout
|
|
3850
|
+
)
|
|
3259
3851
|
response_data.read()
|
|
3260
3852
|
return self.api_client.response_deserialize(
|
|
3261
3853
|
response_data=response_data,
|
|
@@ -3264,9 +3856,12 @@ class ClustersApi:
|
|
|
3264
3856
|
|
|
3265
3857
|
|
|
3266
3858
|
@validate_call
|
|
3267
|
-
def
|
|
3859
|
+
def list_clusters_without_preload_content(
|
|
3268
3860
|
self,
|
|
3269
|
-
|
|
3861
|
+
page: Annotated[Optional[StrictInt], Field(description="Page number for pagination")] = None,
|
|
3862
|
+
page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
|
|
3863
|
+
environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
|
|
3864
|
+
search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
|
|
3270
3865
|
_request_timeout: Union[
|
|
3271
3866
|
None,
|
|
3272
3867
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3280,11 +3875,17 @@ class ClustersApi:
|
|
|
3280
3875
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3281
3876
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3282
3877
|
) -> RESTResponseType:
|
|
3283
|
-
"""
|
|
3878
|
+
"""List Clusters
|
|
3284
3879
|
|
|
3285
3880
|
|
|
3286
|
-
:param
|
|
3287
|
-
:type
|
|
3881
|
+
:param page: Page number for pagination
|
|
3882
|
+
:type page: int
|
|
3883
|
+
:param page_size: Number of items per page
|
|
3884
|
+
:type page_size: int
|
|
3885
|
+
:param environment: Environment Filter
|
|
3886
|
+
:type environment: str
|
|
3887
|
+
:param search: Search query to filter cluster by name
|
|
3888
|
+
:type search: str
|
|
3288
3889
|
:param _request_timeout: timeout setting for this request. If one
|
|
3289
3890
|
number provided, it will be total request
|
|
3290
3891
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3307,8 +3908,11 @@ class ClustersApi:
|
|
|
3307
3908
|
:return: Returns the result object.
|
|
3308
3909
|
""" # noqa: E501
|
|
3309
3910
|
|
|
3310
|
-
_param = self.
|
|
3311
|
-
|
|
3911
|
+
_param = self._list_clusters_serialize(
|
|
3912
|
+
page=page,
|
|
3913
|
+
page_size=page_size,
|
|
3914
|
+
environment=environment,
|
|
3915
|
+
search=search,
|
|
3312
3916
|
_request_auth=_request_auth,
|
|
3313
3917
|
_content_type=_content_type,
|
|
3314
3918
|
_headers=_headers,
|
|
@@ -3316,10 +3920,9 @@ class ClustersApi:
|
|
|
3316
3920
|
)
|
|
3317
3921
|
|
|
3318
3922
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3319
|
-
'200': "
|
|
3923
|
+
'200': "ClusterListResponse",
|
|
3320
3924
|
'400': "ErrorResponseModel",
|
|
3321
3925
|
'401': "ErrorResponseModel",
|
|
3322
|
-
'404': "ErrorResponseModel",
|
|
3323
3926
|
'500': None,
|
|
3324
3927
|
}
|
|
3325
3928
|
response_data = self.api_client.call_api(
|
|
@@ -3329,9 +3932,12 @@ class ClustersApi:
|
|
|
3329
3932
|
return response_data.response
|
|
3330
3933
|
|
|
3331
3934
|
|
|
3332
|
-
def
|
|
3935
|
+
def _list_clusters_serialize(
|
|
3333
3936
|
self,
|
|
3334
|
-
|
|
3937
|
+
page,
|
|
3938
|
+
page_size,
|
|
3939
|
+
environment,
|
|
3940
|
+
search,
|
|
3335
3941
|
_request_auth,
|
|
3336
3942
|
_content_type,
|
|
3337
3943
|
_headers,
|
|
@@ -3353,9 +3959,23 @@ class ClustersApi:
|
|
|
3353
3959
|
_body_params: Optional[bytes] = None
|
|
3354
3960
|
|
|
3355
3961
|
# process the path parameters
|
|
3356
|
-
if id is not None:
|
|
3357
|
-
_path_params['id'] = id
|
|
3358
3962
|
# process the query parameters
|
|
3963
|
+
if page is not None:
|
|
3964
|
+
|
|
3965
|
+
_query_params.append(('page', page))
|
|
3966
|
+
|
|
3967
|
+
if page_size is not None:
|
|
3968
|
+
|
|
3969
|
+
_query_params.append(('pageSize', page_size))
|
|
3970
|
+
|
|
3971
|
+
if environment is not None:
|
|
3972
|
+
|
|
3973
|
+
_query_params.append(('environment', environment))
|
|
3974
|
+
|
|
3975
|
+
if search is not None:
|
|
3976
|
+
|
|
3977
|
+
_query_params.append(('search', search))
|
|
3978
|
+
|
|
3359
3979
|
# process the header parameters
|
|
3360
3980
|
# process the form parameters
|
|
3361
3981
|
# process the body parameter
|
|
@@ -3377,7 +3997,7 @@ class ClustersApi:
|
|
|
3377
3997
|
|
|
3378
3998
|
return self.api_client.param_serialize(
|
|
3379
3999
|
method='GET',
|
|
3380
|
-
resource_path='/core/clusters
|
|
4000
|
+
resource_path='/core/clusters',
|
|
3381
4001
|
path_params=_path_params,
|
|
3382
4002
|
query_params=_query_params,
|
|
3383
4003
|
header_params=_header_params,
|
|
@@ -3394,12 +4014,9 @@ class ClustersApi:
|
|
|
3394
4014
|
|
|
3395
4015
|
|
|
3396
4016
|
@validate_call
|
|
3397
|
-
def
|
|
4017
|
+
def list_node_groups(
|
|
3398
4018
|
self,
|
|
3399
|
-
|
|
3400
|
-
page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
|
|
3401
|
-
environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
|
|
3402
|
-
search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
|
|
4019
|
+
cluster_id: StrictInt,
|
|
3403
4020
|
_request_timeout: Union[
|
|
3404
4021
|
None,
|
|
3405
4022
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3412,18 +4029,12 @@ class ClustersApi:
|
|
|
3412
4029
|
_content_type: Optional[StrictStr] = None,
|
|
3413
4030
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3414
4031
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3415
|
-
) ->
|
|
3416
|
-
"""List
|
|
4032
|
+
) -> ClusterNodeGroupsListResponse:
|
|
4033
|
+
"""List node groups for a cluster
|
|
3417
4034
|
|
|
3418
4035
|
|
|
3419
|
-
:param
|
|
3420
|
-
:type
|
|
3421
|
-
:param page_size: Number of items per page
|
|
3422
|
-
:type page_size: int
|
|
3423
|
-
:param environment: Environment Filter
|
|
3424
|
-
:type environment: str
|
|
3425
|
-
:param search: Search query to filter cluster by name
|
|
3426
|
-
:type search: str
|
|
4036
|
+
:param cluster_id: (required)
|
|
4037
|
+
:type cluster_id: int
|
|
3427
4038
|
:param _request_timeout: timeout setting for this request. If one
|
|
3428
4039
|
number provided, it will be total request
|
|
3429
4040
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3446,11 +4057,8 @@ class ClustersApi:
|
|
|
3446
4057
|
:return: Returns the result object.
|
|
3447
4058
|
""" # noqa: E501
|
|
3448
4059
|
|
|
3449
|
-
_param = self.
|
|
3450
|
-
|
|
3451
|
-
page_size=page_size,
|
|
3452
|
-
environment=environment,
|
|
3453
|
-
search=search,
|
|
4060
|
+
_param = self._list_node_groups_serialize(
|
|
4061
|
+
cluster_id=cluster_id,
|
|
3454
4062
|
_request_auth=_request_auth,
|
|
3455
4063
|
_content_type=_content_type,
|
|
3456
4064
|
_headers=_headers,
|
|
@@ -3458,9 +4066,10 @@ class ClustersApi:
|
|
|
3458
4066
|
)
|
|
3459
4067
|
|
|
3460
4068
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3461
|
-
'200': "
|
|
4069
|
+
'200': "ClusterNodeGroupsListResponse",
|
|
3462
4070
|
'400': "ErrorResponseModel",
|
|
3463
4071
|
'401': "ErrorResponseModel",
|
|
4072
|
+
'404': "ErrorResponseModel",
|
|
3464
4073
|
'500': None,
|
|
3465
4074
|
}
|
|
3466
4075
|
response_data = self.api_client.call_api(
|
|
@@ -3475,12 +4084,9 @@ class ClustersApi:
|
|
|
3475
4084
|
|
|
3476
4085
|
|
|
3477
4086
|
@validate_call
|
|
3478
|
-
def
|
|
4087
|
+
def list_node_groups_with_http_info(
|
|
3479
4088
|
self,
|
|
3480
|
-
|
|
3481
|
-
page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
|
|
3482
|
-
environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
|
|
3483
|
-
search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
|
|
4089
|
+
cluster_id: StrictInt,
|
|
3484
4090
|
_request_timeout: Union[
|
|
3485
4091
|
None,
|
|
3486
4092
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3493,18 +4099,12 @@ class ClustersApi:
|
|
|
3493
4099
|
_content_type: Optional[StrictStr] = None,
|
|
3494
4100
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3495
4101
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3496
|
-
) -> ApiResponse[
|
|
3497
|
-
"""List
|
|
4102
|
+
) -> ApiResponse[ClusterNodeGroupsListResponse]:
|
|
4103
|
+
"""List node groups for a cluster
|
|
3498
4104
|
|
|
3499
4105
|
|
|
3500
|
-
:param
|
|
3501
|
-
:type
|
|
3502
|
-
:param page_size: Number of items per page
|
|
3503
|
-
:type page_size: int
|
|
3504
|
-
:param environment: Environment Filter
|
|
3505
|
-
:type environment: str
|
|
3506
|
-
:param search: Search query to filter cluster by name
|
|
3507
|
-
:type search: str
|
|
4106
|
+
:param cluster_id: (required)
|
|
4107
|
+
:type cluster_id: int
|
|
3508
4108
|
:param _request_timeout: timeout setting for this request. If one
|
|
3509
4109
|
number provided, it will be total request
|
|
3510
4110
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3527,11 +4127,8 @@ class ClustersApi:
|
|
|
3527
4127
|
:return: Returns the result object.
|
|
3528
4128
|
""" # noqa: E501
|
|
3529
4129
|
|
|
3530
|
-
_param = self.
|
|
3531
|
-
|
|
3532
|
-
page_size=page_size,
|
|
3533
|
-
environment=environment,
|
|
3534
|
-
search=search,
|
|
4130
|
+
_param = self._list_node_groups_serialize(
|
|
4131
|
+
cluster_id=cluster_id,
|
|
3535
4132
|
_request_auth=_request_auth,
|
|
3536
4133
|
_content_type=_content_type,
|
|
3537
4134
|
_headers=_headers,
|
|
@@ -3539,9 +4136,10 @@ class ClustersApi:
|
|
|
3539
4136
|
)
|
|
3540
4137
|
|
|
3541
4138
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3542
|
-
'200': "
|
|
4139
|
+
'200': "ClusterNodeGroupsListResponse",
|
|
3543
4140
|
'400': "ErrorResponseModel",
|
|
3544
4141
|
'401': "ErrorResponseModel",
|
|
4142
|
+
'404': "ErrorResponseModel",
|
|
3545
4143
|
'500': None,
|
|
3546
4144
|
}
|
|
3547
4145
|
response_data = self.api_client.call_api(
|
|
@@ -3556,12 +4154,9 @@ class ClustersApi:
|
|
|
3556
4154
|
|
|
3557
4155
|
|
|
3558
4156
|
@validate_call
|
|
3559
|
-
def
|
|
4157
|
+
def list_node_groups_without_preload_content(
|
|
3560
4158
|
self,
|
|
3561
|
-
|
|
3562
|
-
page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
|
|
3563
|
-
environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
|
|
3564
|
-
search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
|
|
4159
|
+
cluster_id: StrictInt,
|
|
3565
4160
|
_request_timeout: Union[
|
|
3566
4161
|
None,
|
|
3567
4162
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3575,17 +4170,11 @@ class ClustersApi:
|
|
|
3575
4170
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3576
4171
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3577
4172
|
) -> RESTResponseType:
|
|
3578
|
-
"""List
|
|
4173
|
+
"""List node groups for a cluster
|
|
3579
4174
|
|
|
3580
4175
|
|
|
3581
|
-
:param
|
|
3582
|
-
:type
|
|
3583
|
-
:param page_size: Number of items per page
|
|
3584
|
-
:type page_size: int
|
|
3585
|
-
:param environment: Environment Filter
|
|
3586
|
-
:type environment: str
|
|
3587
|
-
:param search: Search query to filter cluster by name
|
|
3588
|
-
:type search: str
|
|
4176
|
+
:param cluster_id: (required)
|
|
4177
|
+
:type cluster_id: int
|
|
3589
4178
|
:param _request_timeout: timeout setting for this request. If one
|
|
3590
4179
|
number provided, it will be total request
|
|
3591
4180
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3608,11 +4197,8 @@ class ClustersApi:
|
|
|
3608
4197
|
:return: Returns the result object.
|
|
3609
4198
|
""" # noqa: E501
|
|
3610
4199
|
|
|
3611
|
-
_param = self.
|
|
3612
|
-
|
|
3613
|
-
page_size=page_size,
|
|
3614
|
-
environment=environment,
|
|
3615
|
-
search=search,
|
|
4200
|
+
_param = self._list_node_groups_serialize(
|
|
4201
|
+
cluster_id=cluster_id,
|
|
3616
4202
|
_request_auth=_request_auth,
|
|
3617
4203
|
_content_type=_content_type,
|
|
3618
4204
|
_headers=_headers,
|
|
@@ -3620,9 +4206,10 @@ class ClustersApi:
|
|
|
3620
4206
|
)
|
|
3621
4207
|
|
|
3622
4208
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3623
|
-
'200': "
|
|
4209
|
+
'200': "ClusterNodeGroupsListResponse",
|
|
3624
4210
|
'400': "ErrorResponseModel",
|
|
3625
4211
|
'401': "ErrorResponseModel",
|
|
4212
|
+
'404': "ErrorResponseModel",
|
|
3626
4213
|
'500': None,
|
|
3627
4214
|
}
|
|
3628
4215
|
response_data = self.api_client.call_api(
|
|
@@ -3632,12 +4219,9 @@ class ClustersApi:
|
|
|
3632
4219
|
return response_data.response
|
|
3633
4220
|
|
|
3634
4221
|
|
|
3635
|
-
def
|
|
4222
|
+
def _list_node_groups_serialize(
|
|
3636
4223
|
self,
|
|
3637
|
-
|
|
3638
|
-
page_size,
|
|
3639
|
-
environment,
|
|
3640
|
-
search,
|
|
4224
|
+
cluster_id,
|
|
3641
4225
|
_request_auth,
|
|
3642
4226
|
_content_type,
|
|
3643
4227
|
_headers,
|
|
@@ -3659,23 +4243,9 @@ class ClustersApi:
|
|
|
3659
4243
|
_body_params: Optional[bytes] = None
|
|
3660
4244
|
|
|
3661
4245
|
# process the path parameters
|
|
4246
|
+
if cluster_id is not None:
|
|
4247
|
+
_path_params['cluster_id'] = cluster_id
|
|
3662
4248
|
# process the query parameters
|
|
3663
|
-
if page is not None:
|
|
3664
|
-
|
|
3665
|
-
_query_params.append(('page', page))
|
|
3666
|
-
|
|
3667
|
-
if page_size is not None:
|
|
3668
|
-
|
|
3669
|
-
_query_params.append(('pageSize', page_size))
|
|
3670
|
-
|
|
3671
|
-
if environment is not None:
|
|
3672
|
-
|
|
3673
|
-
_query_params.append(('environment', environment))
|
|
3674
|
-
|
|
3675
|
-
if search is not None:
|
|
3676
|
-
|
|
3677
|
-
_query_params.append(('search', search))
|
|
3678
|
-
|
|
3679
4249
|
# process the header parameters
|
|
3680
4250
|
# process the form parameters
|
|
3681
4251
|
# process the body parameter
|
|
@@ -3697,7 +4267,7 @@ class ClustersApi:
|
|
|
3697
4267
|
|
|
3698
4268
|
return self.api_client.param_serialize(
|
|
3699
4269
|
method='GET',
|
|
3700
|
-
resource_path='/core/clusters',
|
|
4270
|
+
resource_path='/core/clusters/{cluster_id}/node-groups',
|
|
3701
4271
|
path_params=_path_params,
|
|
3702
4272
|
query_params=_query_params,
|
|
3703
4273
|
header_params=_header_params,
|
|
@@ -3714,9 +4284,10 @@ class ClustersApi:
|
|
|
3714
4284
|
|
|
3715
4285
|
|
|
3716
4286
|
@validate_call
|
|
3717
|
-
def
|
|
4287
|
+
def retrieve_a_node_group(
|
|
3718
4288
|
self,
|
|
3719
4289
|
cluster_id: StrictInt,
|
|
4290
|
+
node_group_id: StrictInt,
|
|
3720
4291
|
_request_timeout: Union[
|
|
3721
4292
|
None,
|
|
3722
4293
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3729,12 +4300,14 @@ class ClustersApi:
|
|
|
3729
4300
|
_content_type: Optional[StrictStr] = None,
|
|
3730
4301
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3731
4302
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3732
|
-
) ->
|
|
3733
|
-
"""
|
|
4303
|
+
) -> ClusterNodeGroupsGetResponse:
|
|
4304
|
+
"""Retrieve a node group in a cluster
|
|
3734
4305
|
|
|
3735
4306
|
|
|
3736
4307
|
:param cluster_id: (required)
|
|
3737
4308
|
:type cluster_id: int
|
|
4309
|
+
:param node_group_id: (required)
|
|
4310
|
+
:type node_group_id: int
|
|
3738
4311
|
:param _request_timeout: timeout setting for this request. If one
|
|
3739
4312
|
number provided, it will be total request
|
|
3740
4313
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3757,8 +4330,9 @@ class ClustersApi:
|
|
|
3757
4330
|
:return: Returns the result object.
|
|
3758
4331
|
""" # noqa: E501
|
|
3759
4332
|
|
|
3760
|
-
_param = self.
|
|
4333
|
+
_param = self._retrieve_a_node_group_serialize(
|
|
3761
4334
|
cluster_id=cluster_id,
|
|
4335
|
+
node_group_id=node_group_id,
|
|
3762
4336
|
_request_auth=_request_auth,
|
|
3763
4337
|
_content_type=_content_type,
|
|
3764
4338
|
_headers=_headers,
|
|
@@ -3766,7 +4340,7 @@ class ClustersApi:
|
|
|
3766
4340
|
)
|
|
3767
4341
|
|
|
3768
4342
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3769
|
-
'200': "
|
|
4343
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3770
4344
|
'400': "ErrorResponseModel",
|
|
3771
4345
|
'401': "ErrorResponseModel",
|
|
3772
4346
|
'404': "ErrorResponseModel",
|
|
@@ -3784,9 +4358,10 @@ class ClustersApi:
|
|
|
3784
4358
|
|
|
3785
4359
|
|
|
3786
4360
|
@validate_call
|
|
3787
|
-
def
|
|
4361
|
+
def retrieve_a_node_group_with_http_info(
|
|
3788
4362
|
self,
|
|
3789
4363
|
cluster_id: StrictInt,
|
|
4364
|
+
node_group_id: StrictInt,
|
|
3790
4365
|
_request_timeout: Union[
|
|
3791
4366
|
None,
|
|
3792
4367
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3799,12 +4374,14 @@ class ClustersApi:
|
|
|
3799
4374
|
_content_type: Optional[StrictStr] = None,
|
|
3800
4375
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3801
4376
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3802
|
-
) -> ApiResponse[
|
|
3803
|
-
"""
|
|
4377
|
+
) -> ApiResponse[ClusterNodeGroupsGetResponse]:
|
|
4378
|
+
"""Retrieve a node group in a cluster
|
|
3804
4379
|
|
|
3805
4380
|
|
|
3806
4381
|
:param cluster_id: (required)
|
|
3807
4382
|
:type cluster_id: int
|
|
4383
|
+
:param node_group_id: (required)
|
|
4384
|
+
:type node_group_id: int
|
|
3808
4385
|
:param _request_timeout: timeout setting for this request. If one
|
|
3809
4386
|
number provided, it will be total request
|
|
3810
4387
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3827,8 +4404,9 @@ class ClustersApi:
|
|
|
3827
4404
|
:return: Returns the result object.
|
|
3828
4405
|
""" # noqa: E501
|
|
3829
4406
|
|
|
3830
|
-
_param = self.
|
|
4407
|
+
_param = self._retrieve_a_node_group_serialize(
|
|
3831
4408
|
cluster_id=cluster_id,
|
|
4409
|
+
node_group_id=node_group_id,
|
|
3832
4410
|
_request_auth=_request_auth,
|
|
3833
4411
|
_content_type=_content_type,
|
|
3834
4412
|
_headers=_headers,
|
|
@@ -3836,7 +4414,7 @@ class ClustersApi:
|
|
|
3836
4414
|
)
|
|
3837
4415
|
|
|
3838
4416
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3839
|
-
'200': "
|
|
4417
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3840
4418
|
'400': "ErrorResponseModel",
|
|
3841
4419
|
'401': "ErrorResponseModel",
|
|
3842
4420
|
'404': "ErrorResponseModel",
|
|
@@ -3854,9 +4432,10 @@ class ClustersApi:
|
|
|
3854
4432
|
|
|
3855
4433
|
|
|
3856
4434
|
@validate_call
|
|
3857
|
-
def
|
|
4435
|
+
def retrieve_a_node_group_without_preload_content(
|
|
3858
4436
|
self,
|
|
3859
4437
|
cluster_id: StrictInt,
|
|
4438
|
+
node_group_id: StrictInt,
|
|
3860
4439
|
_request_timeout: Union[
|
|
3861
4440
|
None,
|
|
3862
4441
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3870,11 +4449,13 @@ class ClustersApi:
|
|
|
3870
4449
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3871
4450
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3872
4451
|
) -> RESTResponseType:
|
|
3873
|
-
"""
|
|
4452
|
+
"""Retrieve a node group in a cluster
|
|
3874
4453
|
|
|
3875
4454
|
|
|
3876
4455
|
:param cluster_id: (required)
|
|
3877
4456
|
:type cluster_id: int
|
|
4457
|
+
:param node_group_id: (required)
|
|
4458
|
+
:type node_group_id: int
|
|
3878
4459
|
:param _request_timeout: timeout setting for this request. If one
|
|
3879
4460
|
number provided, it will be total request
|
|
3880
4461
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3897,8 +4478,9 @@ class ClustersApi:
|
|
|
3897
4478
|
:return: Returns the result object.
|
|
3898
4479
|
""" # noqa: E501
|
|
3899
4480
|
|
|
3900
|
-
_param = self.
|
|
4481
|
+
_param = self._retrieve_a_node_group_serialize(
|
|
3901
4482
|
cluster_id=cluster_id,
|
|
4483
|
+
node_group_id=node_group_id,
|
|
3902
4484
|
_request_auth=_request_auth,
|
|
3903
4485
|
_content_type=_content_type,
|
|
3904
4486
|
_headers=_headers,
|
|
@@ -3906,7 +4488,7 @@ class ClustersApi:
|
|
|
3906
4488
|
)
|
|
3907
4489
|
|
|
3908
4490
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3909
|
-
'200': "
|
|
4491
|
+
'200': "ClusterNodeGroupsGetResponse",
|
|
3910
4492
|
'400': "ErrorResponseModel",
|
|
3911
4493
|
'401': "ErrorResponseModel",
|
|
3912
4494
|
'404': "ErrorResponseModel",
|
|
@@ -3919,9 +4501,10 @@ class ClustersApi:
|
|
|
3919
4501
|
return response_data.response
|
|
3920
4502
|
|
|
3921
4503
|
|
|
3922
|
-
def
|
|
4504
|
+
def _retrieve_a_node_group_serialize(
|
|
3923
4505
|
self,
|
|
3924
4506
|
cluster_id,
|
|
4507
|
+
node_group_id,
|
|
3925
4508
|
_request_auth,
|
|
3926
4509
|
_content_type,
|
|
3927
4510
|
_headers,
|
|
@@ -3945,6 +4528,8 @@ class ClustersApi:
|
|
|
3945
4528
|
# process the path parameters
|
|
3946
4529
|
if cluster_id is not None:
|
|
3947
4530
|
_path_params['cluster_id'] = cluster_id
|
|
4531
|
+
if node_group_id is not None:
|
|
4532
|
+
_path_params['node_group_id'] = node_group_id
|
|
3948
4533
|
# process the query parameters
|
|
3949
4534
|
# process the header parameters
|
|
3950
4535
|
# process the form parameters
|
|
@@ -3967,7 +4552,7 @@ class ClustersApi:
|
|
|
3967
4552
|
|
|
3968
4553
|
return self.api_client.param_serialize(
|
|
3969
4554
|
method='GET',
|
|
3970
|
-
resource_path='/core/clusters/{cluster_id}/node-groups',
|
|
4555
|
+
resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
|
|
3971
4556
|
path_params=_path_params,
|
|
3972
4557
|
query_params=_query_params,
|
|
3973
4558
|
header_params=_header_params,
|
|
@@ -3984,10 +4569,11 @@ class ClustersApi:
|
|
|
3984
4569
|
|
|
3985
4570
|
|
|
3986
4571
|
@validate_call
|
|
3987
|
-
def
|
|
4572
|
+
def update_a_node_group(
|
|
3988
4573
|
self,
|
|
3989
4574
|
cluster_id: StrictInt,
|
|
3990
4575
|
node_group_id: StrictInt,
|
|
4576
|
+
payload: UpdateClusterNodeGroupPayload,
|
|
3991
4577
|
_request_timeout: Union[
|
|
3992
4578
|
None,
|
|
3993
4579
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4000,14 +4586,16 @@ class ClustersApi:
|
|
|
4000
4586
|
_content_type: Optional[StrictStr] = None,
|
|
4001
4587
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4002
4588
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4003
|
-
) ->
|
|
4004
|
-
"""
|
|
4589
|
+
) -> ClusterNodeGroupsCreateResponse:
|
|
4590
|
+
"""Update a node group in a cluster
|
|
4005
4591
|
|
|
4006
4592
|
|
|
4007
4593
|
:param cluster_id: (required)
|
|
4008
4594
|
:type cluster_id: int
|
|
4009
4595
|
:param node_group_id: (required)
|
|
4010
4596
|
:type node_group_id: int
|
|
4597
|
+
:param payload: (required)
|
|
4598
|
+
:type payload: UpdateClusterNodeGroupPayload
|
|
4011
4599
|
:param _request_timeout: timeout setting for this request. If one
|
|
4012
4600
|
number provided, it will be total request
|
|
4013
4601
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4030,9 +4618,10 @@ class ClustersApi:
|
|
|
4030
4618
|
:return: Returns the result object.
|
|
4031
4619
|
""" # noqa: E501
|
|
4032
4620
|
|
|
4033
|
-
_param = self.
|
|
4621
|
+
_param = self._update_a_node_group_serialize(
|
|
4034
4622
|
cluster_id=cluster_id,
|
|
4035
4623
|
node_group_id=node_group_id,
|
|
4624
|
+
payload=payload,
|
|
4036
4625
|
_request_auth=_request_auth,
|
|
4037
4626
|
_content_type=_content_type,
|
|
4038
4627
|
_headers=_headers,
|
|
@@ -4040,10 +4629,11 @@ class ClustersApi:
|
|
|
4040
4629
|
)
|
|
4041
4630
|
|
|
4042
4631
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4043
|
-
'200': "
|
|
4632
|
+
'200': "ClusterNodeGroupsCreateResponse",
|
|
4044
4633
|
'400': "ErrorResponseModel",
|
|
4045
4634
|
'401': "ErrorResponseModel",
|
|
4046
4635
|
'404': "ErrorResponseModel",
|
|
4636
|
+
'409': "ErrorResponseModel",
|
|
4047
4637
|
'500': None,
|
|
4048
4638
|
}
|
|
4049
4639
|
response_data = self.api_client.call_api(
|
|
@@ -4058,10 +4648,11 @@ class ClustersApi:
|
|
|
4058
4648
|
|
|
4059
4649
|
|
|
4060
4650
|
@validate_call
|
|
4061
|
-
def
|
|
4651
|
+
def update_a_node_group_with_http_info(
|
|
4062
4652
|
self,
|
|
4063
4653
|
cluster_id: StrictInt,
|
|
4064
4654
|
node_group_id: StrictInt,
|
|
4655
|
+
payload: UpdateClusterNodeGroupPayload,
|
|
4065
4656
|
_request_timeout: Union[
|
|
4066
4657
|
None,
|
|
4067
4658
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4074,14 +4665,16 @@ class ClustersApi:
|
|
|
4074
4665
|
_content_type: Optional[StrictStr] = None,
|
|
4075
4666
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4076
4667
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4077
|
-
) -> ApiResponse[
|
|
4078
|
-
"""
|
|
4668
|
+
) -> ApiResponse[ClusterNodeGroupsCreateResponse]:
|
|
4669
|
+
"""Update a node group in a cluster
|
|
4079
4670
|
|
|
4080
4671
|
|
|
4081
4672
|
:param cluster_id: (required)
|
|
4082
4673
|
:type cluster_id: int
|
|
4083
4674
|
:param node_group_id: (required)
|
|
4084
4675
|
:type node_group_id: int
|
|
4676
|
+
:param payload: (required)
|
|
4677
|
+
:type payload: UpdateClusterNodeGroupPayload
|
|
4085
4678
|
:param _request_timeout: timeout setting for this request. If one
|
|
4086
4679
|
number provided, it will be total request
|
|
4087
4680
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4104,9 +4697,10 @@ class ClustersApi:
|
|
|
4104
4697
|
:return: Returns the result object.
|
|
4105
4698
|
""" # noqa: E501
|
|
4106
4699
|
|
|
4107
|
-
_param = self.
|
|
4700
|
+
_param = self._update_a_node_group_serialize(
|
|
4108
4701
|
cluster_id=cluster_id,
|
|
4109
4702
|
node_group_id=node_group_id,
|
|
4703
|
+
payload=payload,
|
|
4110
4704
|
_request_auth=_request_auth,
|
|
4111
4705
|
_content_type=_content_type,
|
|
4112
4706
|
_headers=_headers,
|
|
@@ -4114,10 +4708,11 @@ class ClustersApi:
|
|
|
4114
4708
|
)
|
|
4115
4709
|
|
|
4116
4710
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4117
|
-
'200': "
|
|
4711
|
+
'200': "ClusterNodeGroupsCreateResponse",
|
|
4118
4712
|
'400': "ErrorResponseModel",
|
|
4119
4713
|
'401': "ErrorResponseModel",
|
|
4120
4714
|
'404': "ErrorResponseModel",
|
|
4715
|
+
'409': "ErrorResponseModel",
|
|
4121
4716
|
'500': None,
|
|
4122
4717
|
}
|
|
4123
4718
|
response_data = self.api_client.call_api(
|
|
@@ -4132,10 +4727,11 @@ class ClustersApi:
|
|
|
4132
4727
|
|
|
4133
4728
|
|
|
4134
4729
|
@validate_call
|
|
4135
|
-
def
|
|
4730
|
+
def update_a_node_group_without_preload_content(
|
|
4136
4731
|
self,
|
|
4137
4732
|
cluster_id: StrictInt,
|
|
4138
4733
|
node_group_id: StrictInt,
|
|
4734
|
+
payload: UpdateClusterNodeGroupPayload,
|
|
4139
4735
|
_request_timeout: Union[
|
|
4140
4736
|
None,
|
|
4141
4737
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4149,13 +4745,15 @@ class ClustersApi:
|
|
|
4149
4745
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4150
4746
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4151
4747
|
) -> RESTResponseType:
|
|
4152
|
-
"""
|
|
4748
|
+
"""Update a node group in a cluster
|
|
4153
4749
|
|
|
4154
4750
|
|
|
4155
4751
|
:param cluster_id: (required)
|
|
4156
4752
|
:type cluster_id: int
|
|
4157
4753
|
:param node_group_id: (required)
|
|
4158
4754
|
:type node_group_id: int
|
|
4755
|
+
:param payload: (required)
|
|
4756
|
+
:type payload: UpdateClusterNodeGroupPayload
|
|
4159
4757
|
:param _request_timeout: timeout setting for this request. If one
|
|
4160
4758
|
number provided, it will be total request
|
|
4161
4759
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4178,9 +4776,10 @@ class ClustersApi:
|
|
|
4178
4776
|
:return: Returns the result object.
|
|
4179
4777
|
""" # noqa: E501
|
|
4180
4778
|
|
|
4181
|
-
_param = self.
|
|
4779
|
+
_param = self._update_a_node_group_serialize(
|
|
4182
4780
|
cluster_id=cluster_id,
|
|
4183
4781
|
node_group_id=node_group_id,
|
|
4782
|
+
payload=payload,
|
|
4184
4783
|
_request_auth=_request_auth,
|
|
4185
4784
|
_content_type=_content_type,
|
|
4186
4785
|
_headers=_headers,
|
|
@@ -4188,10 +4787,11 @@ class ClustersApi:
|
|
|
4188
4787
|
)
|
|
4189
4788
|
|
|
4190
4789
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
4191
|
-
'200': "
|
|
4790
|
+
'200': "ClusterNodeGroupsCreateResponse",
|
|
4192
4791
|
'400': "ErrorResponseModel",
|
|
4193
4792
|
'401': "ErrorResponseModel",
|
|
4194
4793
|
'404': "ErrorResponseModel",
|
|
4794
|
+
'409': "ErrorResponseModel",
|
|
4195
4795
|
'500': None,
|
|
4196
4796
|
}
|
|
4197
4797
|
response_data = self.api_client.call_api(
|
|
@@ -4201,10 +4801,11 @@ class ClustersApi:
|
|
|
4201
4801
|
return response_data.response
|
|
4202
4802
|
|
|
4203
4803
|
|
|
4204
|
-
def
|
|
4804
|
+
def _update_a_node_group_serialize(
|
|
4205
4805
|
self,
|
|
4206
4806
|
cluster_id,
|
|
4207
4807
|
node_group_id,
|
|
4808
|
+
payload,
|
|
4208
4809
|
_request_auth,
|
|
4209
4810
|
_content_type,
|
|
4210
4811
|
_headers,
|
|
@@ -4234,6 +4835,8 @@ class ClustersApi:
|
|
|
4234
4835
|
# process the header parameters
|
|
4235
4836
|
# process the form parameters
|
|
4236
4837
|
# process the body parameter
|
|
4838
|
+
if payload is not None:
|
|
4839
|
+
_body_params = payload
|
|
4237
4840
|
|
|
4238
4841
|
|
|
4239
4842
|
# set the HTTP header `Accept`
|
|
@@ -4244,6 +4847,19 @@ class ClustersApi:
|
|
|
4244
4847
|
]
|
|
4245
4848
|
)
|
|
4246
4849
|
|
|
4850
|
+
# set the HTTP header `Content-Type`
|
|
4851
|
+
if _content_type:
|
|
4852
|
+
_header_params['Content-Type'] = _content_type
|
|
4853
|
+
else:
|
|
4854
|
+
_default_content_type = (
|
|
4855
|
+
self.api_client.select_header_content_type(
|
|
4856
|
+
[
|
|
4857
|
+
'application/json'
|
|
4858
|
+
]
|
|
4859
|
+
)
|
|
4860
|
+
)
|
|
4861
|
+
if _default_content_type is not None:
|
|
4862
|
+
_header_params['Content-Type'] = _default_content_type
|
|
4247
4863
|
|
|
4248
4864
|
# authentication setting
|
|
4249
4865
|
_auth_settings: List[str] = [
|
|
@@ -4251,7 +4867,7 @@ class ClustersApi:
|
|
|
4251
4867
|
]
|
|
4252
4868
|
|
|
4253
4869
|
return self.api_client.param_serialize(
|
|
4254
|
-
method='
|
|
4870
|
+
method='PATCH',
|
|
4255
4871
|
resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
|
|
4256
4872
|
path_params=_path_params,
|
|
4257
4873
|
query_params=_query_params,
|