anyscale 0.26.30__py3-none-any.whl → 0.26.32__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.
- anyscale/_private/anyscale_client/anyscale_client.py +22 -60
- anyscale/_private/anyscale_client/common.py +12 -1
- anyscale/_private/anyscale_client/fake_anyscale_client.py +24 -0
- anyscale/_private/docgen/__main__.py +2 -0
- anyscale/_private/docgen/models.md +2 -2
- anyscale/client/README.md +9 -0
- anyscale/client/openapi_client/__init__.py +7 -0
- anyscale/client/openapi_client/api/default_api.py +232 -0
- anyscale/client/openapi_client/models/__init__.py +7 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +135 -1
- anyscale/client/openapi_client/models/cluster_operation.py +266 -0
- anyscale/client/openapi_client/models/cluster_operation_type.py +101 -0
- anyscale/client/openapi_client/models/clusteroperation_response.py +121 -0
- anyscale/client/openapi_client/models/get_or_create_build_from_image_uri_request.py +207 -0
- anyscale/client/openapi_client/models/operation_error.py +123 -0
- anyscale/client/openapi_client/models/operation_progress.py +123 -0
- anyscale/client/openapi_client/models/operation_result.py +150 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +135 -1
- anyscale/cloud/__init__.py +16 -0
- anyscale/cloud/_private/cloud_sdk.py +33 -0
- anyscale/cloud/commands.py +35 -0
- anyscale/cluster_compute.py +3 -8
- anyscale/commands/cloud_commands.py +35 -0
- anyscale/commands/command_examples.py +6 -0
- anyscale/controllers/compute_config_controller.py +3 -19
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +135 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +135 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/METADATA +1 -1
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/RECORD +36 -29
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/LICENSE +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/NOTICE +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/WHEEL +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/top_level.txt +0 -0
anyscale/client/README.md
CHANGED
@@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
|
|
211
211
|
*DefaultApi* | [**get_model_api_v2_llm_models_model_id_get**](docs/DefaultApi.md#get_model_api_v2_llm_models_model_id_get) | **GET** /api/v2/llm/models/{model_id} | Get Model
|
212
212
|
*DefaultApi* | [**get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get**](docs/DefaultApi.md#get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get) | **GET** /api/v2/llm/models/get_by_job_id/{job_id} | Get Model By Job Id
|
213
213
|
*DefaultApi* | [**get_operator_metrics_api_v2_dataset_runs_operator_get**](docs/DefaultApi.md#get_operator_metrics_api_v2_dataset_runs_operator_get) | **GET** /api/v2/dataset_runs/operator | Get Operator Metrics
|
214
|
+
*DefaultApi* | [**get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post**](docs/DefaultApi.md#get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post) | **POST** /api/v2/builds/get_or_create_build_from_image_uri | Get Or Create Build From Image Uri
|
214
215
|
*DefaultApi* | [**get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get**](docs/DefaultApi.md#get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get) | **GET** /api/v2/organization_billing/alerts | Get Organization Metronome Usage Alerts
|
215
216
|
*DefaultApi* | [**get_project_api_v2_projects_project_id_get**](docs/DefaultApi.md#get_project_api_v2_projects_project_id_get) | **GET** /api/v2/projects/{project_id} | Get Project
|
216
217
|
*DefaultApi* | [**get_project_default_session_name_api_v2_projects_project_id_default_session_name_get**](docs/DefaultApi.md#get_project_default_session_name_api_v2_projects_project_id_default_session_name_get) | **GET** /api/v2/projects/{project_id}/default_session_name | Get Project Default Session Name
|
@@ -330,6 +331,7 @@ Class | Method | HTTP request | Description
|
|
330
331
|
*DefaultApi* | [**sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post**](docs/DefaultApi.md#sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post) | **POST** /api/v2/organization_billing/{organization_id}/sync_with_metronome | Sync Organization With Metronome
|
331
332
|
*DefaultApi* | [**terminate_job_api_v2_decorated_ha_jobs_production_job_id_terminate_post**](docs/DefaultApi.md#terminate_job_api_v2_decorated_ha_jobs_production_job_id_terminate_post) | **POST** /api/v2/decorated_ha_jobs/{production_job_id}/terminate | Terminate Job
|
332
333
|
*DefaultApi* | [**terminate_service_api_v2_services_v2_service_id_terminate_post**](docs/DefaultApi.md#terminate_service_api_v2_services_v2_service_id_terminate_post) | **POST** /api/v2/services-v2/{service_id}/terminate | Terminate Service
|
334
|
+
*DefaultApi* | [**terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post**](docs/DefaultApi.md#terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post) | **POST** /api/v2/system_workload/{cloud_id}/terminate | Terminate System Cluster
|
333
335
|
*DefaultApi* | [**test_saml_acs_api_v2_organizations_organization_id_test_saml_acs_post**](docs/DefaultApi.md#test_saml_acs_api_v2_organizations_organization_id_test_saml_acs_post) | **POST** /api/v2/organizations/{organization_id}/test_saml_acs | Test Saml Acs
|
334
336
|
*DefaultApi* | [**toggle_instance_usage_budget_is_enabled_api_v2_instance_usage_budgets_instance_usage_budget_id_toggle_is_enabled_post**](docs/DefaultApi.md#toggle_instance_usage_budget_is_enabled_api_v2_instance_usage_budgets_instance_usage_budget_id_toggle_is_enabled_post) | **POST** /api/v2/instance_usage_budgets/{instance_usage_budget_id}/toggle_is_enabled | Toggle Instance Usage Budget Is Enabled
|
335
337
|
*DefaultApi* | [**trigger_cron_job_api_v2_experimental_cron_jobs_cron_job_id_trigger_post**](docs/DefaultApi.md#trigger_cron_job_api_v2_experimental_cron_jobs_cron_job_id_trigger_post) | **POST** /api/v2/experimental_cron_jobs/{cron_job_id}/trigger | Trigger Cron Job
|
@@ -478,12 +480,15 @@ Class | Method | HTTP request | Description
|
|
478
480
|
- [ClusterEventSource](docs/ClusterEventSource.md)
|
479
481
|
- [ClusterEventsOutput](docs/ClusterEventsOutput.md)
|
480
482
|
- [ClusterManagementStackVersions](docs/ClusterManagementStackVersions.md)
|
483
|
+
- [ClusterOperation](docs/ClusterOperation.md)
|
484
|
+
- [ClusterOperationType](docs/ClusterOperationType.md)
|
481
485
|
- [ClusterState](docs/ClusterState.md)
|
482
486
|
- [ClusterStatus](docs/ClusterStatus.md)
|
483
487
|
- [ClusterStatusDetails](docs/ClusterStatusDetails.md)
|
484
488
|
- [ClusterauthresponseResponse](docs/ClusterauthresponseResponse.md)
|
485
489
|
- [ClustereventListResponse](docs/ClustereventListResponse.md)
|
486
490
|
- [ClustereventsoutputResponse](docs/ClustereventsoutputResponse.md)
|
491
|
+
- [ClusteroperationResponse](docs/ClusteroperationResponse.md)
|
487
492
|
- [ComputeNodeType](docs/ComputeNodeType.md)
|
488
493
|
- [ComputeStack](docs/ComputeStack.md)
|
489
494
|
- [ComputeTemplate](docs/ComputeTemplate.md)
|
@@ -625,6 +630,7 @@ Class | Method | HTTP request | Description
|
|
625
630
|
- [GCPConfig](docs/GCPConfig.md)
|
626
631
|
- [GCPFileStoreConfig](docs/GCPFileStoreConfig.md)
|
627
632
|
- [GCPMemorystoreInstanceConfig](docs/GCPMemorystoreInstanceConfig.md)
|
633
|
+
- [GetOrCreateBuildFromImageUriRequest](docs/GetOrCreateBuildFromImageUriRequest.md)
|
628
634
|
- [GrafanaDashboard](docs/GrafanaDashboard.md)
|
629
635
|
- [GrpcProtocolConfig](docs/GrpcProtocolConfig.md)
|
630
636
|
- [HTTPValidationError](docs/HTTPValidationError.md)
|
@@ -733,6 +739,9 @@ Class | Method | HTTP request | Description
|
|
733
739
|
- [NotificationChannelSlackConfig](docs/NotificationChannelSlackConfig.md)
|
734
740
|
- [NotificationChannelWebhookConfig](docs/NotificationChannelWebhookConfig.md)
|
735
741
|
- [ObjectStorage](docs/ObjectStorage.md)
|
742
|
+
- [OperationError](docs/OperationError.md)
|
743
|
+
- [OperationProgress](docs/OperationProgress.md)
|
744
|
+
- [OperationResult](docs/OperationResult.md)
|
736
745
|
- [OperatorBranch](docs/OperatorBranch.md)
|
737
746
|
- [OperatorId](docs/OperatorId.md)
|
738
747
|
- [OperatorMetrics](docs/OperatorMetrics.md)
|
@@ -143,12 +143,15 @@ from openapi_client.models.cluster_event import ClusterEvent
|
|
143
143
|
from openapi_client.models.cluster_event_source import ClusterEventSource
|
144
144
|
from openapi_client.models.cluster_events_output import ClusterEventsOutput
|
145
145
|
from openapi_client.models.cluster_management_stack_versions import ClusterManagementStackVersions
|
146
|
+
from openapi_client.models.cluster_operation import ClusterOperation
|
147
|
+
from openapi_client.models.cluster_operation_type import ClusterOperationType
|
146
148
|
from openapi_client.models.cluster_state import ClusterState
|
147
149
|
from openapi_client.models.cluster_status import ClusterStatus
|
148
150
|
from openapi_client.models.cluster_status_details import ClusterStatusDetails
|
149
151
|
from openapi_client.models.clusterauthresponse_response import ClusterauthresponseResponse
|
150
152
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
151
153
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
154
|
+
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
152
155
|
from openapi_client.models.compute_node_type import ComputeNodeType
|
153
156
|
from openapi_client.models.compute_stack import ComputeStack
|
154
157
|
from openapi_client.models.compute_template import ComputeTemplate
|
@@ -290,6 +293,7 @@ from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
|
|
290
293
|
from openapi_client.models.gcp_config import GCPConfig
|
291
294
|
from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
|
292
295
|
from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
|
296
|
+
from openapi_client.models.get_or_create_build_from_image_uri_request import GetOrCreateBuildFromImageUriRequest
|
293
297
|
from openapi_client.models.grafana_dashboard import GrafanaDashboard
|
294
298
|
from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
|
295
299
|
from openapi_client.models.http_validation_error import HTTPValidationError
|
@@ -398,6 +402,9 @@ from openapi_client.models.notification_channel_email_config import Notification
|
|
398
402
|
from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
|
399
403
|
from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
|
400
404
|
from openapi_client.models.object_storage import ObjectStorage
|
405
|
+
from openapi_client.models.operation_error import OperationError
|
406
|
+
from openapi_client.models.operation_progress import OperationProgress
|
407
|
+
from openapi_client.models.operation_result import OperationResult
|
401
408
|
from openapi_client.models.operator_branch import OperatorBranch
|
402
409
|
from openapi_client.models.operator_id import OperatorId
|
403
410
|
from openapi_client.models.operator_metrics import OperatorMetrics
|
@@ -16217,6 +16217,124 @@ class DefaultApi(object):
|
|
16217
16217
|
_request_timeout=local_var_params.get('_request_timeout'),
|
16218
16218
|
collection_formats=collection_formats)
|
16219
16219
|
|
16220
|
+
def get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post(self, get_or_create_build_from_image_uri_request, **kwargs): # noqa: E501
|
16221
|
+
"""Get Or Create Build From Image Uri # noqa: E501
|
16222
|
+
|
16223
|
+
Gets or creates a build from an image uri. # noqa: E501
|
16224
|
+
This method makes a synchronous HTTP request by default. To make an
|
16225
|
+
asynchronous HTTP request, please pass async_req=True
|
16226
|
+
>>> thread = api.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post(get_or_create_build_from_image_uri_request, async_req=True)
|
16227
|
+
>>> result = thread.get()
|
16228
|
+
|
16229
|
+
:param async_req bool: execute request asynchronously
|
16230
|
+
:param GetOrCreateBuildFromImageUriRequest get_or_create_build_from_image_uri_request: (required)
|
16231
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16232
|
+
be returned without reading/decoding response
|
16233
|
+
data. Default is True.
|
16234
|
+
:param _request_timeout: timeout setting for this request. If one
|
16235
|
+
number provided, it will be total request
|
16236
|
+
timeout. It can also be a pair (tuple) of
|
16237
|
+
(connection, read) timeouts.
|
16238
|
+
:return: DecoratedbuildResponse
|
16239
|
+
If the method is called asynchronously,
|
16240
|
+
returns the request thread.
|
16241
|
+
"""
|
16242
|
+
kwargs['_return_http_data_only'] = True
|
16243
|
+
return self.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(get_or_create_build_from_image_uri_request, **kwargs) # noqa: E501
|
16244
|
+
|
16245
|
+
def get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(self, get_or_create_build_from_image_uri_request, **kwargs): # noqa: E501
|
16246
|
+
"""Get Or Create Build From Image Uri # noqa: E501
|
16247
|
+
|
16248
|
+
Gets or creates a build from an image uri. # noqa: E501
|
16249
|
+
This method makes a synchronous HTTP request by default. To make an
|
16250
|
+
asynchronous HTTP request, please pass async_req=True
|
16251
|
+
>>> thread = api.get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post_with_http_info(get_or_create_build_from_image_uri_request, async_req=True)
|
16252
|
+
>>> result = thread.get()
|
16253
|
+
|
16254
|
+
:param async_req bool: execute request asynchronously
|
16255
|
+
:param GetOrCreateBuildFromImageUriRequest get_or_create_build_from_image_uri_request: (required)
|
16256
|
+
:param _return_http_data_only: response data without head status code
|
16257
|
+
and headers
|
16258
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16259
|
+
be returned without reading/decoding response
|
16260
|
+
data. Default is True.
|
16261
|
+
:param _request_timeout: timeout setting for this request. If one
|
16262
|
+
number provided, it will be total request
|
16263
|
+
timeout. It can also be a pair (tuple) of
|
16264
|
+
(connection, read) timeouts.
|
16265
|
+
:return: tuple(DecoratedbuildResponse, status_code(int), headers(HTTPHeaderDict))
|
16266
|
+
If the method is called asynchronously,
|
16267
|
+
returns the request thread.
|
16268
|
+
"""
|
16269
|
+
|
16270
|
+
local_var_params = locals()
|
16271
|
+
|
16272
|
+
all_params = [
|
16273
|
+
'get_or_create_build_from_image_uri_request'
|
16274
|
+
]
|
16275
|
+
all_params.extend(
|
16276
|
+
[
|
16277
|
+
'async_req',
|
16278
|
+
'_return_http_data_only',
|
16279
|
+
'_preload_content',
|
16280
|
+
'_request_timeout'
|
16281
|
+
]
|
16282
|
+
)
|
16283
|
+
|
16284
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
16285
|
+
if key not in all_params:
|
16286
|
+
raise ApiTypeError(
|
16287
|
+
"Got an unexpected keyword argument '%s'"
|
16288
|
+
" to method get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post" % key
|
16289
|
+
)
|
16290
|
+
local_var_params[key] = val
|
16291
|
+
del local_var_params['kwargs']
|
16292
|
+
# verify the required parameter 'get_or_create_build_from_image_uri_request' is set
|
16293
|
+
if self.api_client.client_side_validation and ('get_or_create_build_from_image_uri_request' not in local_var_params or # noqa: E501
|
16294
|
+
local_var_params['get_or_create_build_from_image_uri_request'] is None): # noqa: E501
|
16295
|
+
raise ApiValueError("Missing the required parameter `get_or_create_build_from_image_uri_request` when calling `get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post`") # noqa: E501
|
16296
|
+
|
16297
|
+
collection_formats = {}
|
16298
|
+
|
16299
|
+
path_params = {}
|
16300
|
+
|
16301
|
+
query_params = []
|
16302
|
+
|
16303
|
+
header_params = {}
|
16304
|
+
|
16305
|
+
form_params = []
|
16306
|
+
local_var_files = {}
|
16307
|
+
|
16308
|
+
body_params = None
|
16309
|
+
if 'get_or_create_build_from_image_uri_request' in local_var_params:
|
16310
|
+
body_params = local_var_params['get_or_create_build_from_image_uri_request']
|
16311
|
+
# HTTP header `Accept`
|
16312
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
16313
|
+
['application/json']) # noqa: E501
|
16314
|
+
|
16315
|
+
# HTTP header `Content-Type`
|
16316
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
16317
|
+
['application/json']) # noqa: E501
|
16318
|
+
|
16319
|
+
# Authentication setting
|
16320
|
+
auth_settings = [] # noqa: E501
|
16321
|
+
|
16322
|
+
return self.api_client.call_api(
|
16323
|
+
'/api/v2/builds/get_or_create_build_from_image_uri', 'POST',
|
16324
|
+
path_params,
|
16325
|
+
query_params,
|
16326
|
+
header_params,
|
16327
|
+
body=body_params,
|
16328
|
+
post_params=form_params,
|
16329
|
+
files=local_var_files,
|
16330
|
+
response_type='DecoratedbuildResponse', # noqa: E501
|
16331
|
+
auth_settings=auth_settings,
|
16332
|
+
async_req=local_var_params.get('async_req'),
|
16333
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
16334
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
16335
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
16336
|
+
collection_formats=collection_formats)
|
16337
|
+
|
16220
16338
|
def get_organization_metronome_usage_alerts_api_v2_organization_billing_alerts_get(self, **kwargs): # noqa: E501
|
16221
16339
|
"""Get Organization Metronome Usage Alerts # noqa: E501
|
16222
16340
|
|
@@ -30939,6 +31057,120 @@ class DefaultApi(object):
|
|
30939
31057
|
_request_timeout=local_var_params.get('_request_timeout'),
|
30940
31058
|
collection_formats=collection_formats)
|
30941
31059
|
|
31060
|
+
def terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post(self, cloud_id, **kwargs): # noqa: E501
|
31061
|
+
"""Terminate System Cluster # noqa: E501
|
31062
|
+
|
31063
|
+
Initializes workflow to transition the System Cluster of a given cloud into the Terminated state. This is a long running operation. Clients will need to poll the operation's status to determine completion. # noqa: E501
|
31064
|
+
This method makes a synchronous HTTP request by default. To make an
|
31065
|
+
asynchronous HTTP request, please pass async_req=True
|
31066
|
+
>>> thread = api.terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post(cloud_id, async_req=True)
|
31067
|
+
>>> result = thread.get()
|
31068
|
+
|
31069
|
+
:param async_req bool: execute request asynchronously
|
31070
|
+
:param str cloud_id: ID of the Cloud to terminate the System Cluster in. (required)
|
31071
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
31072
|
+
be returned without reading/decoding response
|
31073
|
+
data. Default is True.
|
31074
|
+
:param _request_timeout: timeout setting for this request. If one
|
31075
|
+
number provided, it will be total request
|
31076
|
+
timeout. It can also be a pair (tuple) of
|
31077
|
+
(connection, read) timeouts.
|
31078
|
+
:return: ClusteroperationResponse
|
31079
|
+
If the method is called asynchronously,
|
31080
|
+
returns the request thread.
|
31081
|
+
"""
|
31082
|
+
kwargs['_return_http_data_only'] = True
|
31083
|
+
return self.terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post_with_http_info(cloud_id, **kwargs) # noqa: E501
|
31084
|
+
|
31085
|
+
def terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
31086
|
+
"""Terminate System Cluster # noqa: E501
|
31087
|
+
|
31088
|
+
Initializes workflow to transition the System Cluster of a given cloud into the Terminated state. This is a long running operation. Clients will need to poll the operation's status to determine completion. # noqa: E501
|
31089
|
+
This method makes a synchronous HTTP request by default. To make an
|
31090
|
+
asynchronous HTTP request, please pass async_req=True
|
31091
|
+
>>> thread = api.terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post_with_http_info(cloud_id, async_req=True)
|
31092
|
+
>>> result = thread.get()
|
31093
|
+
|
31094
|
+
:param async_req bool: execute request asynchronously
|
31095
|
+
:param str cloud_id: ID of the Cloud to terminate the System Cluster in. (required)
|
31096
|
+
:param _return_http_data_only: response data without head status code
|
31097
|
+
and headers
|
31098
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
31099
|
+
be returned without reading/decoding response
|
31100
|
+
data. Default is True.
|
31101
|
+
:param _request_timeout: timeout setting for this request. If one
|
31102
|
+
number provided, it will be total request
|
31103
|
+
timeout. It can also be a pair (tuple) of
|
31104
|
+
(connection, read) timeouts.
|
31105
|
+
:return: tuple(ClusteroperationResponse, status_code(int), headers(HTTPHeaderDict))
|
31106
|
+
If the method is called asynchronously,
|
31107
|
+
returns the request thread.
|
31108
|
+
"""
|
31109
|
+
|
31110
|
+
local_var_params = locals()
|
31111
|
+
|
31112
|
+
all_params = [
|
31113
|
+
'cloud_id'
|
31114
|
+
]
|
31115
|
+
all_params.extend(
|
31116
|
+
[
|
31117
|
+
'async_req',
|
31118
|
+
'_return_http_data_only',
|
31119
|
+
'_preload_content',
|
31120
|
+
'_request_timeout'
|
31121
|
+
]
|
31122
|
+
)
|
31123
|
+
|
31124
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
31125
|
+
if key not in all_params:
|
31126
|
+
raise ApiTypeError(
|
31127
|
+
"Got an unexpected keyword argument '%s'"
|
31128
|
+
" to method terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post" % key
|
31129
|
+
)
|
31130
|
+
local_var_params[key] = val
|
31131
|
+
del local_var_params['kwargs']
|
31132
|
+
# verify the required parameter 'cloud_id' is set
|
31133
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
31134
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
31135
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `terminate_system_cluster_api_v2_system_workload_cloud_id_terminate_post`") # noqa: E501
|
31136
|
+
|
31137
|
+
collection_formats = {}
|
31138
|
+
|
31139
|
+
path_params = {}
|
31140
|
+
if 'cloud_id' in local_var_params:
|
31141
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
31142
|
+
|
31143
|
+
query_params = []
|
31144
|
+
|
31145
|
+
header_params = {}
|
31146
|
+
|
31147
|
+
form_params = []
|
31148
|
+
local_var_files = {}
|
31149
|
+
|
31150
|
+
body_params = None
|
31151
|
+
# HTTP header `Accept`
|
31152
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
31153
|
+
['application/json']) # noqa: E501
|
31154
|
+
|
31155
|
+
# Authentication setting
|
31156
|
+
auth_settings = [] # noqa: E501
|
31157
|
+
|
31158
|
+
return self.api_client.call_api(
|
31159
|
+
'/api/v2/system_workload/{cloud_id}/terminate', 'POST',
|
31160
|
+
path_params,
|
31161
|
+
query_params,
|
31162
|
+
header_params,
|
31163
|
+
body=body_params,
|
31164
|
+
post_params=form_params,
|
31165
|
+
files=local_var_files,
|
31166
|
+
response_type='ClusteroperationResponse', # noqa: E501
|
31167
|
+
auth_settings=auth_settings,
|
31168
|
+
async_req=local_var_params.get('async_req'),
|
31169
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
31170
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
31171
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
31172
|
+
collection_formats=collection_formats)
|
31173
|
+
|
30942
31174
|
def test_saml_acs_api_v2_organizations_organization_id_test_saml_acs_post(self, organization_id, **kwargs): # noqa: E501
|
30943
31175
|
"""Test Saml Acs # noqa: E501
|
30944
31176
|
|
@@ -129,12 +129,15 @@ from openapi_client.models.cluster_event import ClusterEvent
|
|
129
129
|
from openapi_client.models.cluster_event_source import ClusterEventSource
|
130
130
|
from openapi_client.models.cluster_events_output import ClusterEventsOutput
|
131
131
|
from openapi_client.models.cluster_management_stack_versions import ClusterManagementStackVersions
|
132
|
+
from openapi_client.models.cluster_operation import ClusterOperation
|
133
|
+
from openapi_client.models.cluster_operation_type import ClusterOperationType
|
132
134
|
from openapi_client.models.cluster_state import ClusterState
|
133
135
|
from openapi_client.models.cluster_status import ClusterStatus
|
134
136
|
from openapi_client.models.cluster_status_details import ClusterStatusDetails
|
135
137
|
from openapi_client.models.clusterauthresponse_response import ClusterauthresponseResponse
|
136
138
|
from openapi_client.models.clusterevent_list_response import ClustereventListResponse
|
137
139
|
from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
|
140
|
+
from openapi_client.models.clusteroperation_response import ClusteroperationResponse
|
138
141
|
from openapi_client.models.compute_node_type import ComputeNodeType
|
139
142
|
from openapi_client.models.compute_stack import ComputeStack
|
140
143
|
from openapi_client.models.compute_template import ComputeTemplate
|
@@ -276,6 +279,7 @@ from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
|
|
276
279
|
from openapi_client.models.gcp_config import GCPConfig
|
277
280
|
from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
|
278
281
|
from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
|
282
|
+
from openapi_client.models.get_or_create_build_from_image_uri_request import GetOrCreateBuildFromImageUriRequest
|
279
283
|
from openapi_client.models.grafana_dashboard import GrafanaDashboard
|
280
284
|
from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
|
281
285
|
from openapi_client.models.http_validation_error import HTTPValidationError
|
@@ -384,6 +388,9 @@ from openapi_client.models.notification_channel_email_config import Notification
|
|
384
388
|
from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
|
385
389
|
from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
|
386
390
|
from openapi_client.models.object_storage import ObjectStorage
|
391
|
+
from openapi_client.models.operation_error import OperationError
|
392
|
+
from openapi_client.models.operation_progress import OperationProgress
|
393
|
+
from openapi_client.models.operation_result import OperationResult
|
387
394
|
from openapi_client.models.operator_branch import OperatorBranch
|
388
395
|
from openapi_client.models.operator_id import OperatorId
|
389
396
|
from openapi_client.models.operator_metrics import OperatorMetrics
|