anyscale 0.26.29__py3-none-any.whl → 0.26.31__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 (39) hide show
  1. anyscale/__init__.py +10 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +76 -60
  3. anyscale/_private/anyscale_client/common.py +39 -1
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +11 -0
  5. anyscale/_private/docgen/__main__.py +4 -0
  6. anyscale/_private/docgen/models.md +2 -2
  7. anyscale/client/README.md +2 -0
  8. anyscale/client/openapi_client/__init__.py +1 -0
  9. anyscale/client/openapi_client/api/default_api.py +118 -0
  10. anyscale/client/openapi_client/models/__init__.py +1 -0
  11. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  12. anyscale/client/openapi_client/models/get_or_create_build_from_image_uri_request.py +207 -0
  13. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  14. anyscale/cluster_compute.py +3 -8
  15. anyscale/commands/command_examples.py +10 -0
  16. anyscale/commands/job_queue_commands.py +295 -104
  17. anyscale/commands/list_util.py +14 -1
  18. anyscale/commands/machine_pool_commands.py +14 -2
  19. anyscale/commands/service_commands.py +6 -12
  20. anyscale/commands/workspace_commands_v2.py +462 -25
  21. anyscale/controllers/compute_config_controller.py +3 -19
  22. anyscale/controllers/job_controller.py +5 -210
  23. anyscale/job_queue/__init__.py +89 -0
  24. anyscale/job_queue/_private/job_queue_sdk.py +158 -0
  25. anyscale/job_queue/commands.py +130 -0
  26. anyscale/job_queue/models.py +284 -0
  27. anyscale/scripts.py +1 -1
  28. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  29. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  30. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  31. anyscale/utils/ssh_websocket_proxy.py +178 -0
  32. anyscale/version.py +1 -1
  33. {anyscale-0.26.29.dist-info → anyscale-0.26.31.dist-info}/METADATA +3 -1
  34. {anyscale-0.26.29.dist-info → anyscale-0.26.31.dist-info}/RECORD +39 -33
  35. {anyscale-0.26.29.dist-info → anyscale-0.26.31.dist-info}/LICENSE +0 -0
  36. {anyscale-0.26.29.dist-info → anyscale-0.26.31.dist-info}/NOTICE +0 -0
  37. {anyscale-0.26.29.dist-info → anyscale-0.26.31.dist-info}/WHEEL +0 -0
  38. {anyscale-0.26.29.dist-info → anyscale-0.26.31.dist-info}/entry_points.txt +0 -0
  39. {anyscale-0.26.29.dist-info → anyscale-0.26.31.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
@@ -625,6 +626,7 @@ Class | Method | HTTP request | Description
625
626
  - [GCPConfig](docs/GCPConfig.md)
626
627
  - [GCPFileStoreConfig](docs/GCPFileStoreConfig.md)
627
628
  - [GCPMemorystoreInstanceConfig](docs/GCPMemorystoreInstanceConfig.md)
629
+ - [GetOrCreateBuildFromImageUriRequest](docs/GetOrCreateBuildFromImageUriRequest.md)
628
630
  - [GrafanaDashboard](docs/GrafanaDashboard.md)
629
631
  - [GrpcProtocolConfig](docs/GrpcProtocolConfig.md)
630
632
  - [HTTPValidationError](docs/HTTPValidationError.md)
@@ -290,6 +290,7 @@ from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
290
290
  from openapi_client.models.gcp_config import GCPConfig
291
291
  from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
292
292
  from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
293
+ from openapi_client.models.get_or_create_build_from_image_uri_request import GetOrCreateBuildFromImageUriRequest
293
294
  from openapi_client.models.grafana_dashboard import GrafanaDashboard
294
295
  from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
295
296
  from openapi_client.models.http_validation_error import HTTPValidationError
@@ -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
 
@@ -276,6 +276,7 @@ from openapi_client.models.finetunedmodel_response import FinetunedmodelResponse
276
276
  from openapi_client.models.gcp_config import GCPConfig
277
277
  from openapi_client.models.gcp_file_store_config import GCPFileStoreConfig
278
278
  from openapi_client.models.gcp_memorystore_instance_config import GCPMemorystoreInstanceConfig
279
+ from openapi_client.models.get_or_create_build_from_image_uri_request import GetOrCreateBuildFromImageUriRequest
279
280
  from openapi_client.models.grafana_dashboard import GrafanaDashboard
280
281
  from openapi_client.models.grpc_protocol_config import GrpcProtocolConfig
281
282
  from openapi_client.models.http_validation_error import HTTPValidationError