anyscale 0.26.28__py3-none-any.whl → 0.26.30__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 (54) hide show
  1. anyscale/__init__.py +10 -0
  2. anyscale/_private/anyscale_client/anyscale_client.py +69 -0
  3. anyscale/_private/anyscale_client/common.py +38 -0
  4. anyscale/_private/anyscale_client/fake_anyscale_client.py +11 -0
  5. anyscale/_private/docgen/__main__.py +4 -18
  6. anyscale/_private/docgen/api.md +0 -125
  7. anyscale/_private/docgen/models.md +0 -111
  8. anyscale/client/README.md +0 -6
  9. anyscale/client/openapi_client/__init__.py +0 -4
  10. anyscale/client/openapi_client/api/default_api.py +0 -228
  11. anyscale/client/openapi_client/models/__init__.py +0 -4
  12. anyscale/client/openapi_client/models/workload_info.py +59 -3
  13. anyscale/commands/command_examples.py +10 -0
  14. anyscale/commands/job_queue_commands.py +295 -104
  15. anyscale/commands/list_util.py +14 -1
  16. anyscale/commands/machine_pool_commands.py +25 -11
  17. anyscale/commands/service_commands.py +10 -14
  18. anyscale/commands/workspace_commands_v2.py +462 -25
  19. anyscale/controllers/job_controller.py +5 -210
  20. anyscale/job_queue/__init__.py +89 -0
  21. anyscale/job_queue/_private/job_queue_sdk.py +158 -0
  22. anyscale/job_queue/commands.py +130 -0
  23. anyscale/job_queue/models.py +284 -0
  24. anyscale/scripts.py +1 -1
  25. anyscale/sdk/anyscale_client/__init__.py +0 -11
  26. anyscale/sdk/anyscale_client/api/default_api.py +140 -1433
  27. anyscale/sdk/anyscale_client/models/__init__.py +0 -11
  28. anyscale/service/__init__.py +4 -1
  29. anyscale/service/_private/service_sdk.py +5 -0
  30. anyscale/service/commands.py +4 -2
  31. anyscale/utils/ssh_websocket_proxy.py +178 -0
  32. anyscale/version.py +1 -1
  33. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/METADATA +3 -1
  34. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/RECORD +39 -49
  35. anyscale/client/openapi_client/models/serve_deployment_fast_api_docs_status.py +0 -123
  36. anyscale/client/openapi_client/models/servedeploymentfastapidocsstatus_response.py +0 -121
  37. anyscale/client/openapi_client/models/web_terminal.py +0 -121
  38. anyscale/client/openapi_client/models/webterminal_response.py +0 -121
  39. anyscale/sdk/anyscale_client/models/cluster_environment_build_log_response.py +0 -123
  40. anyscale/sdk/anyscale_client/models/clusterenvironmentbuildlogresponse_response.py +0 -121
  41. anyscale/sdk/anyscale_client/models/create_cloud.py +0 -518
  42. anyscale/sdk/anyscale_client/models/object_storage_config.py +0 -122
  43. anyscale/sdk/anyscale_client/models/object_storage_config_s3.py +0 -256
  44. anyscale/sdk/anyscale_client/models/objectstorageconfig_response.py +0 -121
  45. anyscale/sdk/anyscale_client/models/session_operation.py +0 -266
  46. anyscale/sdk/anyscale_client/models/session_operation_type.py +0 -101
  47. anyscale/sdk/anyscale_client/models/sessionoperation_response.py +0 -121
  48. anyscale/sdk/anyscale_client/models/update_cloud.py +0 -150
  49. anyscale/sdk/anyscale_client/models/update_project.py +0 -150
  50. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/LICENSE +0 -0
  51. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/NOTICE +0 -0
  52. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/WHEEL +0 -0
  53. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/entry_points.txt +0 -0
  54. {anyscale-0.26.28.dist-info → anyscale-0.26.30.dist-info}/top_level.txt +0 -0
@@ -405,13 +405,6 @@ Name | Type | Description | Notes
405
405
  **cloud_id** | **str** | The build cloud associated with this build. If None, the build is a v1 build. | [optional] [default to null]
406
406
  **digest** | **str** | The digest of the image for this Build. | [optional] [default to null]
407
407
 
408
- ## ClusterEnvironmentBuildLogResponse
409
-
410
-
411
- Name | Type | Description | Notes
412
- ------------ | ------------- | ------------- | -------------
413
- **logs** | **str** | Logs of the build. | [default to null]
414
-
415
408
  ## ClusterEnvironmentBuildOperation
416
409
 
417
410
  Describes a long running operation that will eventually complete. Consider this an abstract class. Specific kinds of operations should subclass this.
@@ -589,14 +582,6 @@ Name | Type | Description | Notes
589
582
  ------------ | ------------- | ------------- | -------------
590
583
  **result** | [**ClusterEnvironmentBuild**](#clusterenvironmentbuild) | | [default to null]
591
584
 
592
- ## ClusterenvironmentbuildlogresponseResponse
593
-
594
- A response from the API. Contains a field \"result\" which has the contents of the response.
595
-
596
- Name | Type | Description | Notes
597
- ------------ | ------------- | ------------- | -------------
598
- **result** | [**ClusterEnvironmentBuildLogResponse**](#clusterenvironmentbuildlogresponse) | | [default to null]
599
-
600
585
  ## ClusterenvironmentbuildoperationResponse
601
586
 
602
587
  A response from the API. Contains a field \"result\" which has the contents of the response.
@@ -751,28 +736,6 @@ Name | Type | Description | Notes
751
736
  **env_vars** | [**object**](#) | Environment variables in the docker image that will be used at runtime. | [optional] [default to null]
752
737
  **registry_login_secret** | **str** | The name or identifier of a secret containing credentials to authenticate to the docker registry hosting the image. | [optional] [default to null]
753
738
 
754
- ## CreateCloud
755
-
756
- Model used to create a Cloud.
757
-
758
- Name | Type | Description | Notes
759
- ------------ | ------------- | ------------- | -------------
760
- **name** | **str** | Name of this Cloud. | [default to null]
761
- **provider** | [**CloudProviders**](#cloudproviders) | Provider of this Cloud (e.g. AWS). | [default to null]
762
- **compute_stack** | [**ComputeStack**](#computestack) | The compute stack associated with this cloud's primary cloud resource. | [optional] [default to null]
763
- **region** | **str** | Region this Cloud is operating in. This value needs to be supported by this Cloud's provider. (e.g. us-west-2) | [default to null]
764
- **credentials** | **str** | Credentials needed to interact with this Cloud. | [default to null]
765
- **config** | [**CloudConfig**](#cloudconfig) | Additional configurable properties of this Cloud. | [optional] [default to null]
766
- **is_k8s** | **bool** | Whether this cloud is managed via Kubernetes. | [optional] [default to false]
767
- **is_aioa** | **bool** | Whether this cloud is an AIOA cloud. | [optional] [default to false]
768
- **availability_zones** | **List[str]** | The availability zones that instances of this cloud are allowed to be launched in. | [optional] [default to null]
769
- **is_bring_your_own_resource** | **bool** | Whether the resources of this cloud are provided by the customer. | [optional] [default to null]
770
- **is_private_cloud** | **bool** | Whether this cloud is a private cloud. | [optional] [default to false]
771
- **cluster_management_stack_version** | [**ClusterManagementStackVersions**](#clustermanagementstackversions) | The cluster management stack version of the cloud. | [optional] [default to null]
772
- **is_private_service_cloud** | **bool** | Whether services created in this cloud should be private. | [optional] [default to null]
773
- **auto_add_user** | **bool** | Whether all users in the organization should be automatically added to this cloud. This field is only relevant for organizations with cloud isolation enabled, because all users in the organization automatically have access to all clouds if cloud isolation is not enabled. | [optional] [default to false]
774
- **external_id** | **str** | The trust policy external ID specified by the user for the cloud control plane role. It must start with the organization ID. | [optional] [default to null]
775
-
776
739
  ## CreateCluster
777
740
 
778
741
  Model used to create a new Cluster.
@@ -1164,34 +1127,6 @@ The type of node (head or worker).
1164
1127
  Possible Values:
1165
1128
  ['head-node', 'worker-nodes', 'unknown']
1166
1129
 
1167
- ## ObjectStorageConfig
1168
-
1169
- Field representing a object storage configuration for an organization in a region
1170
-
1171
- Name | Type | Description | Notes
1172
- ------------ | ------------- | ------------- | -------------
1173
- **s3** | [**ObjectStorageConfigS3**](#objectstorageconfigs3) | S3 configuration | [optional] [default to null]
1174
-
1175
- ## ObjectStorageConfigS3
1176
-
1177
-
1178
- Name | Type | Description | Notes
1179
- ------------ | ------------- | ------------- | -------------
1180
- **region** | **str** | | [default to null]
1181
- **bucket** | **str** | | [default to null]
1182
- **path** | **str** | | [default to null]
1183
- **aws_access_key_id** | **str** | | [default to null]
1184
- **aws_secret_access_key** | **str** | | [default to null]
1185
- **aws_session_token** | **str** | | [default to null]
1186
-
1187
- ## ObjectstorageconfigResponse
1188
-
1189
- A response from the API. Contains a field \"result\" which has the contents of the response.
1190
-
1191
- Name | Type | Description | Notes
1192
- ------------ | ------------- | ------------- | -------------
1193
- **result** | [**ObjectStorageConfig**](#objectstorageconfig) | | [default to null]
1194
-
1195
1130
  ## OperationError
1196
1131
 
1197
1132
  The response of this operation in case of failure
@@ -1716,26 +1651,6 @@ Name | Type | Description | Notes
1716
1651
  **idle_termination_status** | [**IdleTerminationStatus**](#idleterminationstatus) | The status of autosuspend | [optional] [default to null]
1717
1652
  **ray_dashboard_snapshot_last_reported_at** | **datetime** | The time of the last snapshot recorded from the ray dashboard | [optional] [default to null]
1718
1653
 
1719
- ## SessionOperation
1720
-
1721
- Describes a long running session operation that will eventually complete.
1722
-
1723
- Name | Type | Description | Notes
1724
- ------------ | ------------- | ------------- | -------------
1725
- **id** | **str** | ID of this operation. | [default to null]
1726
- **completed** | **bool** | Boolean indicating if this operation is completed. | [default to null]
1727
- **progress** | [**OperationProgress**](#operationprogress) | Details about the progress of this operation at the time of the request. This will be absent for completed operations. | [optional] [default to null]
1728
- **result** | [**OperationResult**](#operationresult) | The result of this operation after it has completed. This is always provided when the operation is complete. | [optional] [default to null]
1729
- **session_id** | **str** | ID of the Session that is being updated. | [default to null]
1730
- **session_operation_type** | [**SessionOperationType**](#sessionoperationtype) | The variety of operation being performed: start sets the session's goal state to Running, stop sets the session's goal state to Stopped, terminate sets the session's goal state to Terminated | [default to null]
1731
-
1732
- ## SessionOperationType
1733
-
1734
- The type of session operation.
1735
-
1736
- Possible Values:
1737
- ['start', 'stop', 'terminate']
1738
-
1739
1654
  ## SessionResponse
1740
1655
 
1741
1656
  A response from the API. Contains a field \"result\" which has the contents of the response.
@@ -1776,14 +1691,6 @@ Name | Type | Description | Notes
1776
1691
  **stop_progress** | **str** | | [optional] [default to null]
1777
1692
  **stop_error** | **str** | | [optional] [default to null]
1778
1693
 
1779
- ## SessionoperationResponse
1780
-
1781
- A response from the API. Contains a field \"result\" which has the contents of the response.
1782
-
1783
- Name | Type | Description | Notes
1784
- ------------ | ------------- | ------------- | -------------
1785
- **result** | [**SessionOperation**](#sessionoperation) | | [default to null]
1786
-
1787
1694
  ## SortByClauseJobsSortField
1788
1695
 
1789
1696
  This model is used in the backend to represent the SQL ORDER BY clauses.
@@ -1883,15 +1790,6 @@ Name | Type | Description | Notes
1883
1790
  **machine_pool_name** | **str** | The machine pool name the instance belongs to if it is PCP machine type, otherwise it is empty string. | [default to null]
1884
1791
  **billing_error_message** | **str** | If there was an error in the price calculation for this instance, this message should be shown to the user. | [optional] [default to null]
1885
1792
 
1886
- ## UpdateCloud
1887
-
1888
- Updateable fields for a Cloud. If a field is absent, it will not be updated.
1889
-
1890
- Name | Type | Description | Notes
1891
- ------------ | ------------- | ------------- | -------------
1892
- **config** | [**CloudConfig**](#cloudconfig) | Additional configurable properties of this Cloud. | [optional] [default to null]
1893
- **auto_add_user** | **bool** | Whether all users in the organization should be automatically added to this cloud. This field is only relevant for organizations with cloud isolation enabled, because all users in the organization automatically have access to all clouds if cloud isolation is not enabled. | [optional] [default to null]
1894
-
1895
1793
  ## UpdateCluster
1896
1794
 
1897
1795
  Model used to update a Cluster. A field will not be updated if its value is absent.
@@ -1911,15 +1809,6 @@ Name | Type | Description | Notes
1911
1809
  ------------ | ------------- | ------------- | -------------
1912
1810
  **sso_mode** | [**SSOMode**](#ssomode) | Mode for use of single sign on (SSO) for your organization.WARNING: It is dangerous to require SSO if you are not confident it is correctly configured. Once SSO is required, users may not log into Anyscale without using SSO. If you lock all users out of your organization by requiring incorrectly configured SSO, you may need to contact Anyscale for support. | [default to null]
1913
1811
 
1914
- ## UpdateProject
1915
-
1916
- Model for updating a Project. A field will not be updated if its value is absent.
1917
-
1918
- Name | Type | Description | Notes
1919
- ------------ | ------------- | ------------- | -------------
1920
- **cluster_config** | **str** | New cluster config to apply to the Project on update action. | [optional] [default to null]
1921
- **description** | **str** | New description to update in the Project. | [optional] [default to null]
1922
-
1923
1812
  ## UserServiceAccessTypes
1924
1813
 
1925
1814
  An enumeration.
anyscale/client/README.md CHANGED
@@ -128,7 +128,6 @@ Class | Method | HTTP request | Description
128
128
  *DefaultApi* | [**create_resource_quota_api_v2_resource_quotas_post**](docs/DefaultApi.md#create_resource_quota_api_v2_resource_quotas_post) | **POST** /api/v2/resource_quotas/ | Create Resource Quota
129
129
  *DefaultApi* | [**create_service_account_api_v2_users_service_accounts_post**](docs/DefaultApi.md#create_service_account_api_v2_users_service_accounts_post) | **POST** /api/v2/users/service_accounts | Create Service Account
130
130
  *DefaultApi* | [**create_session_command_api_v2_sessions_session_id_create_session_command_post**](docs/DefaultApi.md#create_session_command_api_v2_sessions_session_id_create_session_command_post) | **POST** /api/v2/sessions/{session_id}/create_session_command | Create Session Command
131
- *DefaultApi* | [**create_web_terminal_api_v2_sessions_session_id_web_terminals_post**](docs/DefaultApi.md#create_web_terminal_api_v2_sessions_session_id_web_terminals_post) | **POST** /api/v2/sessions/{session_id}/web_terminals | Create Web Terminal
132
131
  *DefaultApi* | [**create_workspace_api_v2_experimental_workspaces_post**](docs/DefaultApi.md#create_workspace_api_v2_experimental_workspaces_post) | **POST** /api/v2/experimental_workspaces/ | Create Workspace
133
132
  *DefaultApi* | [**create_workspace_from_template_api_v2_experimental_workspaces_from_template_post**](docs/DefaultApi.md#create_workspace_from_template_api_v2_experimental_workspaces_from_template_post) | **POST** /api/v2/experimental_workspaces/from_template | Create Workspace From Template
134
133
  *DefaultApi* | [**delete_cloud_api_v2_clouds_cloud_id_delete**](docs/DefaultApi.md#delete_cloud_api_v2_clouds_cloud_id_delete) | **DELETE** /api/v2/clouds/{cloud_id} | Delete Cloud
@@ -191,7 +190,6 @@ Class | Method | HTTP request | Description
191
190
  *DefaultApi* | [**get_decorated_interactive_session_api_v2_decorated_interactive_sessions_interactive_session_id_get**](docs/DefaultApi.md#get_decorated_interactive_session_api_v2_decorated_interactive_sessions_interactive_session_id_get) | **GET** /api/v2/decorated_interactive_sessions/{interactive_session_id} | Get Decorated Interactive Session
192
191
  *DefaultApi* | [**get_decorated_job_api_v2_decorated_jobs_job_id_get**](docs/DefaultApi.md#get_decorated_job_api_v2_decorated_jobs_job_id_get) | **GET** /api/v2/decorated_jobs/{job_id} | Get Decorated Job
193
192
  *DefaultApi* | [**get_decorated_serve_deployment_api_v2_decorated_serve_deployments_serve_deloyment_id_get**](docs/DefaultApi.md#get_decorated_serve_deployment_api_v2_decorated_serve_deployments_serve_deloyment_id_get) | **GET** /api/v2/decorated_serve_deployments/{serve_deloyment_id} | Get Decorated Serve Deployment
194
- *DefaultApi* | [**get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get**](docs/DefaultApi.md#get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get) | **GET** /api/v2/decorated_serve_deployments/{serve_deployment_id}/fast_api_docs_status | Get Decorated Serve Deployment Fast Api Docs Status
195
193
  *DefaultApi* | [**get_decorated_support_request_for_user_organization_api_v2_support_requests_get**](docs/DefaultApi.md#get_decorated_support_request_for_user_organization_api_v2_support_requests_get) | **GET** /api/v2/support_requests/ | Get Decorated Support Request For User Organization
196
194
  *DefaultApi* | [**get_default_cluster_env_build_api_v2_builds_default_py_version_ray_version_get**](docs/DefaultApi.md#get_default_cluster_env_build_api_v2_builds_default_py_version_ray_version_get) | **GET** /api/v2/builds/default/{py_version}/{ray_version} | Get Default Cluster Env Build
197
195
  *DefaultApi* | [**get_default_compute_config_api_v2_compute_templates_default_cloud_id_get**](docs/DefaultApi.md#get_default_compute_config_api_v2_compute_templates_default_cloud_id_get) | **GET** /api/v2/compute_templates/default/{cloud_id} | Get Default Compute Config
@@ -814,10 +812,8 @@ Class | Method | HTTP request | Description
814
812
  - [SUPPORTEDBASEIMAGESENUM](docs/SUPPORTEDBASEIMAGESENUM.md)
815
813
  - [ScheduleConfig](docs/ScheduleConfig.md)
816
814
  - [SchedulerInfo](docs/SchedulerInfo.md)
817
- - [ServeDeploymentFastApiDocsStatus](docs/ServeDeploymentFastApiDocsStatus.md)
818
815
  - [ServeDeploymentGrafanaDashboardStatus](docs/ServeDeploymentGrafanaDashboardStatus.md)
819
816
  - [ServeDeploymentState](docs/ServeDeploymentState.md)
820
- - [ServedeploymentfastapidocsstatusResponse](docs/ServedeploymentfastapidocsstatusResponse.md)
821
817
  - [ServerSessionToken](docs/ServerSessionToken.md)
822
818
  - [ServersessiontokenResponse](docs/ServersessiontokenResponse.md)
823
819
  - [ServiceConfig](docs/ServiceConfig.md)
@@ -922,8 +918,6 @@ Class | Method | HTTP request | Description
922
918
  - [WaitlistStatusType](docs/WaitlistStatusType.md)
923
919
  - [WaitliststatusresponseResponse](docs/WaitliststatusresponseResponse.md)
924
920
  - [WandBRunDetails](docs/WandBRunDetails.md)
925
- - [WebTerminal](docs/WebTerminal.md)
926
- - [WebterminalResponse](docs/WebterminalResponse.md)
927
921
  - [WorkerNodeType](docs/WorkerNodeType.md)
928
922
  - [WorkloadInfo](docs/WorkloadInfo.md)
929
923
  - [WorkloadType](docs/WorkloadType.md)
@@ -477,10 +477,8 @@ from openapi_client.models.sso_mode import SSOMode
477
477
  from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
478
478
  from openapi_client.models.schedule_config import ScheduleConfig
479
479
  from openapi_client.models.scheduler_info import SchedulerInfo
480
- from openapi_client.models.serve_deployment_fast_api_docs_status import ServeDeploymentFastApiDocsStatus
481
480
  from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
482
481
  from openapi_client.models.serve_deployment_state import ServeDeploymentState
483
- from openapi_client.models.servedeploymentfastapidocsstatus_response import ServedeploymentfastapidocsstatusResponse
484
482
  from openapi_client.models.server_session_token import ServerSessionToken
485
483
  from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
486
484
  from openapi_client.models.service_config import ServiceConfig
@@ -585,8 +583,6 @@ from openapi_client.models.waitlist_status_response import WaitlistStatusRespons
585
583
  from openapi_client.models.waitlist_status_type import WaitlistStatusType
586
584
  from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
587
585
  from openapi_client.models.wand_b_run_details import WandBRunDetails
588
- from openapi_client.models.web_terminal import WebTerminal
589
- from openapi_client.models.webterminal_response import WebterminalResponse
590
586
  from openapi_client.models.worker_node_type import WorkerNodeType
591
587
  from openapi_client.models.workload_info import WorkloadInfo
592
588
  from openapi_client.models.workload_type import WorkloadType
@@ -6290,120 +6290,6 @@ class DefaultApi(object):
6290
6290
  _request_timeout=local_var_params.get('_request_timeout'),
6291
6291
  collection_formats=collection_formats)
6292
6292
 
6293
- def create_web_terminal_api_v2_sessions_session_id_web_terminals_post(self, session_id, **kwargs): # noqa: E501
6294
- """Create Web Terminal # noqa: E501
6295
-
6296
- DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
6297
- This method makes a synchronous HTTP request by default. To make an
6298
- asynchronous HTTP request, please pass async_req=True
6299
- >>> thread = api.create_web_terminal_api_v2_sessions_session_id_web_terminals_post(session_id, async_req=True)
6300
- >>> result = thread.get()
6301
-
6302
- :param async_req bool: execute request asynchronously
6303
- :param str session_id: (required)
6304
- :param _preload_content: if False, the urllib3.HTTPResponse object will
6305
- be returned without reading/decoding response
6306
- data. Default is True.
6307
- :param _request_timeout: timeout setting for this request. If one
6308
- number provided, it will be total request
6309
- timeout. It can also be a pair (tuple) of
6310
- (connection, read) timeouts.
6311
- :return: WebterminalResponse
6312
- If the method is called asynchronously,
6313
- returns the request thread.
6314
- """
6315
- kwargs['_return_http_data_only'] = True
6316
- return self.create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(session_id, **kwargs) # noqa: E501
6317
-
6318
- def create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(self, session_id, **kwargs): # noqa: E501
6319
- """Create Web Terminal # noqa: E501
6320
-
6321
- DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
6322
- This method makes a synchronous HTTP request by default. To make an
6323
- asynchronous HTTP request, please pass async_req=True
6324
- >>> thread = api.create_web_terminal_api_v2_sessions_session_id_web_terminals_post_with_http_info(session_id, async_req=True)
6325
- >>> result = thread.get()
6326
-
6327
- :param async_req bool: execute request asynchronously
6328
- :param str session_id: (required)
6329
- :param _return_http_data_only: response data without head status code
6330
- and headers
6331
- :param _preload_content: if False, the urllib3.HTTPResponse object will
6332
- be returned without reading/decoding response
6333
- data. Default is True.
6334
- :param _request_timeout: timeout setting for this request. If one
6335
- number provided, it will be total request
6336
- timeout. It can also be a pair (tuple) of
6337
- (connection, read) timeouts.
6338
- :return: tuple(WebterminalResponse, status_code(int), headers(HTTPHeaderDict))
6339
- If the method is called asynchronously,
6340
- returns the request thread.
6341
- """
6342
-
6343
- local_var_params = locals()
6344
-
6345
- all_params = [
6346
- 'session_id'
6347
- ]
6348
- all_params.extend(
6349
- [
6350
- 'async_req',
6351
- '_return_http_data_only',
6352
- '_preload_content',
6353
- '_request_timeout'
6354
- ]
6355
- )
6356
-
6357
- for key, val in six.iteritems(local_var_params['kwargs']):
6358
- if key not in all_params:
6359
- raise ApiTypeError(
6360
- "Got an unexpected keyword argument '%s'"
6361
- " to method create_web_terminal_api_v2_sessions_session_id_web_terminals_post" % key
6362
- )
6363
- local_var_params[key] = val
6364
- del local_var_params['kwargs']
6365
- # verify the required parameter 'session_id' is set
6366
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
6367
- local_var_params['session_id'] is None): # noqa: E501
6368
- raise ApiValueError("Missing the required parameter `session_id` when calling `create_web_terminal_api_v2_sessions_session_id_web_terminals_post`") # noqa: E501
6369
-
6370
- collection_formats = {}
6371
-
6372
- path_params = {}
6373
- if 'session_id' in local_var_params:
6374
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
6375
-
6376
- query_params = []
6377
-
6378
- header_params = {}
6379
-
6380
- form_params = []
6381
- local_var_files = {}
6382
-
6383
- body_params = None
6384
- # HTTP header `Accept`
6385
- header_params['Accept'] = self.api_client.select_header_accept(
6386
- ['application/json']) # noqa: E501
6387
-
6388
- # Authentication setting
6389
- auth_settings = [] # noqa: E501
6390
-
6391
- return self.api_client.call_api(
6392
- '/api/v2/sessions/{session_id}/web_terminals', 'POST',
6393
- path_params,
6394
- query_params,
6395
- header_params,
6396
- body=body_params,
6397
- post_params=form_params,
6398
- files=local_var_files,
6399
- response_type='WebterminalResponse', # noqa: E501
6400
- auth_settings=auth_settings,
6401
- async_req=local_var_params.get('async_req'),
6402
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
6403
- _preload_content=local_var_params.get('_preload_content', True),
6404
- _request_timeout=local_var_params.get('_request_timeout'),
6405
- collection_formats=collection_formats)
6406
-
6407
6293
  def create_workspace_api_v2_experimental_workspaces_post(self, create_experimental_workspace, **kwargs): # noqa: E501
6408
6294
  """Create Workspace # noqa: E501
6409
6295
 
@@ -13823,120 +13709,6 @@ class DefaultApi(object):
13823
13709
  _request_timeout=local_var_params.get('_request_timeout'),
13824
13710
  collection_formats=collection_formats)
13825
13711
 
13826
- def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(self, serve_deployment_id, **kwargs): # noqa: E501
13827
- """Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
13828
-
13829
- Check if the fast api docs url is healthy # noqa: E501
13830
- This method makes a synchronous HTTP request by default. To make an
13831
- asynchronous HTTP request, please pass async_req=True
13832
- >>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get(serve_deployment_id, async_req=True)
13833
- >>> result = thread.get()
13834
-
13835
- :param async_req bool: execute request asynchronously
13836
- :param str serve_deployment_id: (required)
13837
- :param _preload_content: if False, the urllib3.HTTPResponse object will
13838
- be returned without reading/decoding response
13839
- data. Default is True.
13840
- :param _request_timeout: timeout setting for this request. If one
13841
- number provided, it will be total request
13842
- timeout. It can also be a pair (tuple) of
13843
- (connection, read) timeouts.
13844
- :return: ServedeploymentfastapidocsstatusResponse
13845
- If the method is called asynchronously,
13846
- returns the request thread.
13847
- """
13848
- kwargs['_return_http_data_only'] = True
13849
- return self.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, **kwargs) # noqa: E501
13850
-
13851
- def get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(self, serve_deployment_id, **kwargs): # noqa: E501
13852
- """Get Decorated Serve Deployment Fast Api Docs Status # noqa: E501
13853
-
13854
- Check if the fast api docs url is healthy # noqa: E501
13855
- This method makes a synchronous HTTP request by default. To make an
13856
- asynchronous HTTP request, please pass async_req=True
13857
- >>> thread = api.get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get_with_http_info(serve_deployment_id, async_req=True)
13858
- >>> result = thread.get()
13859
-
13860
- :param async_req bool: execute request asynchronously
13861
- :param str serve_deployment_id: (required)
13862
- :param _return_http_data_only: response data without head status code
13863
- and headers
13864
- :param _preload_content: if False, the urllib3.HTTPResponse object will
13865
- be returned without reading/decoding response
13866
- data. Default is True.
13867
- :param _request_timeout: timeout setting for this request. If one
13868
- number provided, it will be total request
13869
- timeout. It can also be a pair (tuple) of
13870
- (connection, read) timeouts.
13871
- :return: tuple(ServedeploymentfastapidocsstatusResponse, status_code(int), headers(HTTPHeaderDict))
13872
- If the method is called asynchronously,
13873
- returns the request thread.
13874
- """
13875
-
13876
- local_var_params = locals()
13877
-
13878
- all_params = [
13879
- 'serve_deployment_id'
13880
- ]
13881
- all_params.extend(
13882
- [
13883
- 'async_req',
13884
- '_return_http_data_only',
13885
- '_preload_content',
13886
- '_request_timeout'
13887
- ]
13888
- )
13889
-
13890
- for key, val in six.iteritems(local_var_params['kwargs']):
13891
- if key not in all_params:
13892
- raise ApiTypeError(
13893
- "Got an unexpected keyword argument '%s'"
13894
- " to method get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get" % key
13895
- )
13896
- local_var_params[key] = val
13897
- del local_var_params['kwargs']
13898
- # verify the required parameter 'serve_deployment_id' is set
13899
- if self.api_client.client_side_validation and ('serve_deployment_id' not in local_var_params or # noqa: E501
13900
- local_var_params['serve_deployment_id'] is None): # noqa: E501
13901
- raise ApiValueError("Missing the required parameter `serve_deployment_id` when calling `get_decorated_serve_deployment_fast_api_docs_status_api_v2_decorated_serve_deployments_serve_deployment_id_fast_api_docs_status_get`") # noqa: E501
13902
-
13903
- collection_formats = {}
13904
-
13905
- path_params = {}
13906
- if 'serve_deployment_id' in local_var_params:
13907
- path_params['serve_deployment_id'] = local_var_params['serve_deployment_id'] # noqa: E501
13908
-
13909
- query_params = []
13910
-
13911
- header_params = {}
13912
-
13913
- form_params = []
13914
- local_var_files = {}
13915
-
13916
- body_params = None
13917
- # HTTP header `Accept`
13918
- header_params['Accept'] = self.api_client.select_header_accept(
13919
- ['application/json']) # noqa: E501
13920
-
13921
- # Authentication setting
13922
- auth_settings = [] # noqa: E501
13923
-
13924
- return self.api_client.call_api(
13925
- '/api/v2/decorated_serve_deployments/{serve_deployment_id}/fast_api_docs_status', 'GET',
13926
- path_params,
13927
- query_params,
13928
- header_params,
13929
- body=body_params,
13930
- post_params=form_params,
13931
- files=local_var_files,
13932
- response_type='ServedeploymentfastapidocsstatusResponse', # noqa: E501
13933
- auth_settings=auth_settings,
13934
- async_req=local_var_params.get('async_req'),
13935
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
13936
- _preload_content=local_var_params.get('_preload_content', True),
13937
- _request_timeout=local_var_params.get('_request_timeout'),
13938
- collection_formats=collection_formats)
13939
-
13940
13712
  def get_decorated_support_request_for_user_organization_api_v2_support_requests_get(self, **kwargs): # noqa: E501
13941
13713
  """Get Decorated Support Request For User Organization # noqa: E501
13942
13714
 
@@ -463,10 +463,8 @@ from openapi_client.models.sso_mode import SSOMode
463
463
  from openapi_client.models.supportedbaseimagesenum import SUPPORTEDBASEIMAGESENUM
464
464
  from openapi_client.models.schedule_config import ScheduleConfig
465
465
  from openapi_client.models.scheduler_info import SchedulerInfo
466
- from openapi_client.models.serve_deployment_fast_api_docs_status import ServeDeploymentFastApiDocsStatus
467
466
  from openapi_client.models.serve_deployment_grafana_dashboard_status import ServeDeploymentGrafanaDashboardStatus
468
467
  from openapi_client.models.serve_deployment_state import ServeDeploymentState
469
- from openapi_client.models.servedeploymentfastapidocsstatus_response import ServedeploymentfastapidocsstatusResponse
470
468
  from openapi_client.models.server_session_token import ServerSessionToken
471
469
  from openapi_client.models.serversessiontoken_response import ServersessiontokenResponse
472
470
  from openapi_client.models.service_config import ServiceConfig
@@ -571,8 +569,6 @@ from openapi_client.models.waitlist_status_response import WaitlistStatusRespons
571
569
  from openapi_client.models.waitlist_status_type import WaitlistStatusType
572
570
  from openapi_client.models.waitliststatusresponse_response import WaitliststatusresponseResponse
573
571
  from openapi_client.models.wand_b_run_details import WandBRunDetails
574
- from openapi_client.models.web_terminal import WebTerminal
575
- from openapi_client.models.webterminal_response import WebterminalResponse
576
572
  from openapi_client.models.worker_node_type import WorkerNodeType
577
573
  from openapi_client.models.workload_info import WorkloadInfo
578
574
  from openapi_client.models.workload_type import WorkloadType
@@ -36,17 +36,21 @@ class WorkloadInfo(object):
36
36
  'workload_name': 'str',
37
37
  'workload_type': 'str',
38
38
  'workload_start_time': 'datetime',
39
- 'workload_cloud': 'str'
39
+ 'workload_cloud': 'str',
40
+ 'workload_project': 'str',
41
+ 'workload_creator': 'str'
40
42
  }
41
43
 
42
44
  attribute_map = {
43
45
  'workload_name': 'workload_name',
44
46
  'workload_type': 'workload_type',
45
47
  'workload_start_time': 'workload_start_time',
46
- 'workload_cloud': 'workload_cloud'
48
+ 'workload_cloud': 'workload_cloud',
49
+ 'workload_project': 'workload_project',
50
+ 'workload_creator': 'workload_creator'
47
51
  }
48
52
 
49
- def __init__(self, workload_name=None, workload_type=None, workload_start_time=None, workload_cloud=None, local_vars_configuration=None): # noqa: E501
53
+ def __init__(self, workload_name=None, workload_type=None, workload_start_time=None, workload_cloud=None, workload_project='', workload_creator='', local_vars_configuration=None): # noqa: E501
50
54
  """WorkloadInfo - a model defined in OpenAPI""" # noqa: E501
51
55
  if local_vars_configuration is None:
52
56
  local_vars_configuration = Configuration()
@@ -56,12 +60,18 @@ class WorkloadInfo(object):
56
60
  self._workload_type = None
57
61
  self._workload_start_time = None
58
62
  self._workload_cloud = None
63
+ self._workload_project = None
64
+ self._workload_creator = None
59
65
  self.discriminator = None
60
66
 
61
67
  self.workload_name = workload_name
62
68
  self.workload_type = workload_type
63
69
  self.workload_start_time = workload_start_time
64
70
  self.workload_cloud = workload_cloud
71
+ if workload_project is not None:
72
+ self.workload_project = workload_project
73
+ if workload_creator is not None:
74
+ self.workload_creator = workload_creator
65
75
 
66
76
  @property
67
77
  def workload_name(self):
@@ -163,6 +173,52 @@ class WorkloadInfo(object):
163
173
 
164
174
  self._workload_cloud = workload_cloud
165
175
 
176
+ @property
177
+ def workload_project(self):
178
+ """Gets the workload_project of this WorkloadInfo. # noqa: E501
179
+
180
+ The project of the workload. # noqa: E501
181
+
182
+ :return: The workload_project of this WorkloadInfo. # noqa: E501
183
+ :rtype: str
184
+ """
185
+ return self._workload_project
186
+
187
+ @workload_project.setter
188
+ def workload_project(self, workload_project):
189
+ """Sets the workload_project of this WorkloadInfo.
190
+
191
+ The project of the workload. # noqa: E501
192
+
193
+ :param workload_project: The workload_project of this WorkloadInfo. # noqa: E501
194
+ :type: str
195
+ """
196
+
197
+ self._workload_project = workload_project
198
+
199
+ @property
200
+ def workload_creator(self):
201
+ """Gets the workload_creator of this WorkloadInfo. # noqa: E501
202
+
203
+ The creator of the workload. # noqa: E501
204
+
205
+ :return: The workload_creator of this WorkloadInfo. # noqa: E501
206
+ :rtype: str
207
+ """
208
+ return self._workload_creator
209
+
210
+ @workload_creator.setter
211
+ def workload_creator(self, workload_creator):
212
+ """Sets the workload_creator of this WorkloadInfo.
213
+
214
+ The creator of the workload. # noqa: E501
215
+
216
+ :param workload_creator: The workload_creator of this WorkloadInfo. # noqa: E501
217
+ :type: str
218
+ """
219
+
220
+ self._workload_creator = workload_creator
221
+
166
222
  def to_dict(self):
167
223
  """Returns the model properties as a dict"""
168
224
  result = {}
@@ -312,6 +312,16 @@ MACHINE POOL ID Clouds
312
312
  can-testing mp_8ogdz85mdwxb8a92yo44nn84ox
313
313
  """
314
314
 
315
+ MACHINE_POOL_ATTACH_EXAMPLE = """\
316
+ $ anyscale machine-pool attach --name can-testing --cloud my-cloud
317
+ Attached machine pool 'can-testing' to cloud 'my-cloud'.
318
+ """
319
+
320
+ MACHINE_POOL_DETACH_EXAMPLE = """\
321
+ $ anyscale machine-pool detach --name can-testing --cloud my-cloud
322
+ Detached machine pool 'can-testing' from cloud 'my-cloud'.
323
+ """
324
+
315
325
  LLM_MODELS_GET_EXAMPLE = """
316
326
  $ anyscale llm model get --model-id my-model-id
317
327
  Output