anyscale 0.26.31__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.
Files changed (33) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +15 -0
  2. anyscale/_private/anyscale_client/common.py +12 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +24 -0
  4. anyscale/_private/docgen/__main__.py +2 -0
  5. anyscale/_private/docgen/models.md +2 -2
  6. anyscale/client/README.md +7 -0
  7. anyscale/client/openapi_client/__init__.py +6 -0
  8. anyscale/client/openapi_client/api/default_api.py +114 -0
  9. anyscale/client/openapi_client/models/__init__.py +6 -0
  10. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  11. anyscale/client/openapi_client/models/cluster_operation.py +266 -0
  12. anyscale/client/openapi_client/models/cluster_operation_type.py +101 -0
  13. anyscale/client/openapi_client/models/clusteroperation_response.py +121 -0
  14. anyscale/client/openapi_client/models/operation_error.py +123 -0
  15. anyscale/client/openapi_client/models/operation_progress.py +123 -0
  16. anyscale/client/openapi_client/models/operation_result.py +150 -0
  17. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  18. anyscale/cloud/__init__.py +16 -0
  19. anyscale/cloud/_private/cloud_sdk.py +33 -0
  20. anyscale/cloud/commands.py +35 -0
  21. anyscale/commands/cloud_commands.py +35 -0
  22. anyscale/commands/command_examples.py +6 -0
  23. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  24. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  25. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  26. anyscale/version.py +1 -1
  27. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/METADATA +1 -1
  28. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/RECORD +33 -27
  29. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/LICENSE +0 -0
  30. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/NOTICE +0 -0
  31. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/WHEEL +0 -0
  32. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/entry_points.txt +0 -0
  33. {anyscale-0.26.31.dist-info → anyscale-0.26.32.dist-info}/top_level.txt +0 -0
anyscale/client/README.md CHANGED
@@ -331,6 +331,7 @@ Class | Method | HTTP request | Description
331
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
332
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
333
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
334
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
335
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
336
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
@@ -479,12 +480,15 @@ Class | Method | HTTP request | Description
479
480
  - [ClusterEventSource](docs/ClusterEventSource.md)
480
481
  - [ClusterEventsOutput](docs/ClusterEventsOutput.md)
481
482
  - [ClusterManagementStackVersions](docs/ClusterManagementStackVersions.md)
483
+ - [ClusterOperation](docs/ClusterOperation.md)
484
+ - [ClusterOperationType](docs/ClusterOperationType.md)
482
485
  - [ClusterState](docs/ClusterState.md)
483
486
  - [ClusterStatus](docs/ClusterStatus.md)
484
487
  - [ClusterStatusDetails](docs/ClusterStatusDetails.md)
485
488
  - [ClusterauthresponseResponse](docs/ClusterauthresponseResponse.md)
486
489
  - [ClustereventListResponse](docs/ClustereventListResponse.md)
487
490
  - [ClustereventsoutputResponse](docs/ClustereventsoutputResponse.md)
491
+ - [ClusteroperationResponse](docs/ClusteroperationResponse.md)
488
492
  - [ComputeNodeType](docs/ComputeNodeType.md)
489
493
  - [ComputeStack](docs/ComputeStack.md)
490
494
  - [ComputeTemplate](docs/ComputeTemplate.md)
@@ -735,6 +739,9 @@ Class | Method | HTTP request | Description
735
739
  - [NotificationChannelSlackConfig](docs/NotificationChannelSlackConfig.md)
736
740
  - [NotificationChannelWebhookConfig](docs/NotificationChannelWebhookConfig.md)
737
741
  - [ObjectStorage](docs/ObjectStorage.md)
742
+ - [OperationError](docs/OperationError.md)
743
+ - [OperationProgress](docs/OperationProgress.md)
744
+ - [OperationResult](docs/OperationResult.md)
738
745
  - [OperatorBranch](docs/OperatorBranch.md)
739
746
  - [OperatorId](docs/OperatorId.md)
740
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
@@ -399,6 +402,9 @@ from openapi_client.models.notification_channel_email_config import Notification
399
402
  from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
400
403
  from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
401
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
402
408
  from openapi_client.models.operator_branch import OperatorBranch
403
409
  from openapi_client.models.operator_id import OperatorId
404
410
  from openapi_client.models.operator_metrics import OperatorMetrics
@@ -31057,6 +31057,120 @@ class DefaultApi(object):
31057
31057
  _request_timeout=local_var_params.get('_request_timeout'),
31058
31058
  collection_formats=collection_formats)
31059
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
+
31060
31174
  def test_saml_acs_api_v2_organizations_organization_id_test_saml_acs_post(self, organization_id, **kwargs): # noqa: E501
31061
31175
  """Test Saml Acs # noqa: E501
31062
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
@@ -385,6 +388,9 @@ from openapi_client.models.notification_channel_email_config import Notification
385
388
  from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
386
389
  from openapi_client.models.notification_channel_webhook_config import NotificationChannelWebhookConfig
387
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
388
394
  from openapi_client.models.operator_branch import OperatorBranch
389
395
  from openapi_client.models.operator_id import OperatorId
390
396
  from openapi_client.models.operator_metrics import OperatorMetrics