anyscale 0.26.33__py3-none-any.whl → 0.26.34__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/client/README.md CHANGED
@@ -331,6 +331,7 @@ Class | Method | HTTP request | Description
331
331
  *DefaultApi* | [**sso_login_test_api_v2_users_sso_login_test_get**](docs/DefaultApi.md#sso_login_test_api_v2_users_sso_login_test_get) | **GET** /api/v2/users/sso_login_test | Sso Login Test
332
332
  *DefaultApi* | [**start_session_api_v2_sessions_session_id_start_post**](docs/DefaultApi.md#start_session_api_v2_sessions_session_id_start_post) | **POST** /api/v2/sessions/{session_id}/start | Start Session
333
333
  *DefaultApi* | [**stop_session_api_v2_sessions_session_id_stop_post**](docs/DefaultApi.md#stop_session_api_v2_sessions_session_id_stop_post) | **POST** /api/v2/sessions/{session_id}/stop | Stop Session
334
+ *DefaultApi* | [**summarize_machine_pool_api_v2_machine_pools_summary_post**](docs/DefaultApi.md#summarize_machine_pool_api_v2_machine_pools_summary_post) | **POST** /api/v2/machine_pools/summary | Summarize Machine Pool
334
335
  *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
335
336
  *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
336
337
  *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
@@ -777,8 +778,8 @@ Class | Method | HTTP request | Description
777
778
  - [OrganizationinvitationResponse](docs/OrganizationinvitationResponse.md)
778
779
  - [OrganizationinvitationbaseResponse](docs/OrganizationinvitationbaseResponse.md)
779
780
  - [OrganizationusagealertListResponse](docs/OrganizationusagealertListResponse.md)
780
- - [PCPConfig](docs/PCPConfig.md)
781
781
  - [PageQuery](docs/PageQuery.md)
782
+ - [PartitionInfo](docs/PartitionInfo.md)
782
783
  - [PauseSchedule](docs/PauseSchedule.md)
783
784
  - [PermissionLevel](docs/PermissionLevel.md)
784
785
  - [ProductionJob](docs/ProductionJob.md)
@@ -878,6 +879,9 @@ Class | Method | HTTP request | Description
878
879
  - [StopSessionOptions](docs/StopSessionOptions.md)
879
880
  - [StreamPublishRequest](docs/StreamPublishRequest.md)
880
881
  - [SubnetIdWithAvailabilityZoneAWS](docs/SubnetIdWithAvailabilityZoneAWS.md)
882
+ - [SummarizeMachinePoolRequest](docs/SummarizeMachinePoolRequest.md)
883
+ - [SummarizeMachinePoolResponse](docs/SummarizeMachinePoolResponse.md)
884
+ - [SummarizemachinepoolresponseResponse](docs/SummarizemachinepoolresponseResponse.md)
881
885
  - [SupportRequestsQuery](docs/SupportRequestsQuery.md)
882
886
  - [SystemWorkloadName](docs/SystemWorkloadName.md)
883
887
  - [TaskExceptionGroupAggregate](docs/TaskExceptionGroupAggregate.md)
@@ -437,8 +437,8 @@ from openapi_client.models.organizationinvitation_list_response import Organizat
437
437
  from openapi_client.models.organizationinvitation_response import OrganizationinvitationResponse
438
438
  from openapi_client.models.organizationinvitationbase_response import OrganizationinvitationbaseResponse
439
439
  from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
440
- from openapi_client.models.pcp_config import PCPConfig
441
440
  from openapi_client.models.page_query import PageQuery
441
+ from openapi_client.models.partition_info import PartitionInfo
442
442
  from openapi_client.models.pause_schedule import PauseSchedule
443
443
  from openapi_client.models.permission_level import PermissionLevel
444
444
  from openapi_client.models.production_job import ProductionJob
@@ -538,6 +538,9 @@ from openapi_client.models.start_session_options import StartSessionOptions
538
538
  from openapi_client.models.stop_session_options import StopSessionOptions
539
539
  from openapi_client.models.stream_publish_request import StreamPublishRequest
540
540
  from openapi_client.models.subnet_id_with_availability_zone_aws import SubnetIdWithAvailabilityZoneAWS
541
+ from openapi_client.models.summarize_machine_pool_request import SummarizeMachinePoolRequest
542
+ from openapi_client.models.summarize_machine_pool_response import SummarizeMachinePoolResponse
543
+ from openapi_client.models.summarizemachinepoolresponse_response import SummarizemachinepoolresponseResponse
541
544
  from openapi_client.models.support_requests_query import SupportRequestsQuery
542
545
  from openapi_client.models.system_workload_name import SystemWorkloadName
543
546
  from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
@@ -9114,8 +9114,8 @@ class DefaultApi(object):
9114
9114
  local_var_params['aggregated_usage_query'] is None): # noqa: E501
9115
9115
  raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`") # noqa: E501
9116
9116
 
9117
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
9118
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `50`") # noqa: E501
9117
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
9118
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value less than or equal to `1000`") # noqa: E501
9119
9119
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
9120
9120
  raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cloud_api_v2_aggregated_instance_usage_cloud_post`, must be a value greater than or equal to `0`") # noqa: E501
9121
9121
  collection_formats = {}
@@ -9244,8 +9244,8 @@ class DefaultApi(object):
9244
9244
  local_var_params['aggregated_usage_query'] is None): # noqa: E501
9245
9245
  raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`") # noqa: E501
9246
9246
 
9247
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
9248
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `50`") # noqa: E501
9247
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
9248
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value less than or equal to `1000`") # noqa: E501
9249
9249
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
9250
9250
  raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_api_v2_aggregated_instance_usage_cluster_post`, must be a value greater than or equal to `0`") # noqa: E501
9251
9251
  collection_formats = {}
@@ -9374,8 +9374,8 @@ class DefaultApi(object):
9374
9374
  local_var_params['aggregated_usage_query'] is None): # noqa: E501
9375
9375
  raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`") # noqa: E501
9376
9376
 
9377
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
9378
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value less than or equal to `50`") # noqa: E501
9377
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
9378
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value less than or equal to `1000`") # noqa: E501
9379
9379
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
9380
9380
  raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post`, must be a value greater than or equal to `0`") # noqa: E501
9381
9381
  collection_formats = {}
@@ -9504,8 +9504,8 @@ class DefaultApi(object):
9504
9504
  local_var_params['aggregated_usage_query'] is None): # noqa: E501
9505
9505
  raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`") # noqa: E501
9506
9506
 
9507
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
9508
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value less than or equal to `50`") # noqa: E501
9507
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
9508
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value less than or equal to `1000`") # noqa: E501
9509
9509
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
9510
9510
  raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_project_api_v2_aggregated_instance_usage_project_post`, must be a value greater than or equal to `0`") # noqa: E501
9511
9511
  collection_formats = {}
@@ -9634,8 +9634,8 @@ class DefaultApi(object):
9634
9634
  local_var_params['aggregated_usage_query'] is None): # noqa: E501
9635
9635
  raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`") # noqa: E501
9636
9636
 
9637
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
9638
- raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value less than or equal to `50`") # noqa: E501
9637
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
9638
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value less than or equal to `1000`") # noqa: E501
9639
9639
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
9640
9640
  raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_user_api_v2_aggregated_instance_usage_user_post`, must be a value greater than or equal to `0`") # noqa: E501
9641
9641
  collection_formats = {}
@@ -31055,6 +31055,124 @@ class DefaultApi(object):
31055
31055
  _request_timeout=local_var_params.get('_request_timeout'),
31056
31056
  collection_formats=collection_formats)
31057
31057
 
31058
+ def summarize_machine_pool_api_v2_machine_pools_summary_post(self, summarize_machine_pool_request, **kwargs): # noqa: E501
31059
+ """Summarize Machine Pool # noqa: E501
31060
+
31061
+ Summarize the current state of a machine pool. # noqa: E501
31062
+ This method makes a synchronous HTTP request by default. To make an
31063
+ asynchronous HTTP request, please pass async_req=True
31064
+ >>> thread = api.summarize_machine_pool_api_v2_machine_pools_summary_post(summarize_machine_pool_request, async_req=True)
31065
+ >>> result = thread.get()
31066
+
31067
+ :param async_req bool: execute request asynchronously
31068
+ :param SummarizeMachinePoolRequest summarize_machine_pool_request: (required)
31069
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
31070
+ be returned without reading/decoding response
31071
+ data. Default is True.
31072
+ :param _request_timeout: timeout setting for this request. If one
31073
+ number provided, it will be total request
31074
+ timeout. It can also be a pair (tuple) of
31075
+ (connection, read) timeouts.
31076
+ :return: SummarizemachinepoolresponseResponse
31077
+ If the method is called asynchronously,
31078
+ returns the request thread.
31079
+ """
31080
+ kwargs['_return_http_data_only'] = True
31081
+ return self.summarize_machine_pool_api_v2_machine_pools_summary_post_with_http_info(summarize_machine_pool_request, **kwargs) # noqa: E501
31082
+
31083
+ def summarize_machine_pool_api_v2_machine_pools_summary_post_with_http_info(self, summarize_machine_pool_request, **kwargs): # noqa: E501
31084
+ """Summarize Machine Pool # noqa: E501
31085
+
31086
+ Summarize the current state of a machine pool. # noqa: E501
31087
+ This method makes a synchronous HTTP request by default. To make an
31088
+ asynchronous HTTP request, please pass async_req=True
31089
+ >>> thread = api.summarize_machine_pool_api_v2_machine_pools_summary_post_with_http_info(summarize_machine_pool_request, async_req=True)
31090
+ >>> result = thread.get()
31091
+
31092
+ :param async_req bool: execute request asynchronously
31093
+ :param SummarizeMachinePoolRequest summarize_machine_pool_request: (required)
31094
+ :param _return_http_data_only: response data without head status code
31095
+ and headers
31096
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
31097
+ be returned without reading/decoding response
31098
+ data. Default is True.
31099
+ :param _request_timeout: timeout setting for this request. If one
31100
+ number provided, it will be total request
31101
+ timeout. It can also be a pair (tuple) of
31102
+ (connection, read) timeouts.
31103
+ :return: tuple(SummarizemachinepoolresponseResponse, status_code(int), headers(HTTPHeaderDict))
31104
+ If the method is called asynchronously,
31105
+ returns the request thread.
31106
+ """
31107
+
31108
+ local_var_params = locals()
31109
+
31110
+ all_params = [
31111
+ 'summarize_machine_pool_request'
31112
+ ]
31113
+ all_params.extend(
31114
+ [
31115
+ 'async_req',
31116
+ '_return_http_data_only',
31117
+ '_preload_content',
31118
+ '_request_timeout'
31119
+ ]
31120
+ )
31121
+
31122
+ for key, val in six.iteritems(local_var_params['kwargs']):
31123
+ if key not in all_params:
31124
+ raise ApiTypeError(
31125
+ "Got an unexpected keyword argument '%s'"
31126
+ " to method summarize_machine_pool_api_v2_machine_pools_summary_post" % key
31127
+ )
31128
+ local_var_params[key] = val
31129
+ del local_var_params['kwargs']
31130
+ # verify the required parameter 'summarize_machine_pool_request' is set
31131
+ if self.api_client.client_side_validation and ('summarize_machine_pool_request' not in local_var_params or # noqa: E501
31132
+ local_var_params['summarize_machine_pool_request'] is None): # noqa: E501
31133
+ raise ApiValueError("Missing the required parameter `summarize_machine_pool_request` when calling `summarize_machine_pool_api_v2_machine_pools_summary_post`") # noqa: E501
31134
+
31135
+ collection_formats = {}
31136
+
31137
+ path_params = {}
31138
+
31139
+ query_params = []
31140
+
31141
+ header_params = {}
31142
+
31143
+ form_params = []
31144
+ local_var_files = {}
31145
+
31146
+ body_params = None
31147
+ if 'summarize_machine_pool_request' in local_var_params:
31148
+ body_params = local_var_params['summarize_machine_pool_request']
31149
+ # HTTP header `Accept`
31150
+ header_params['Accept'] = self.api_client.select_header_accept(
31151
+ ['application/json']) # noqa: E501
31152
+
31153
+ # HTTP header `Content-Type`
31154
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
31155
+ ['application/json']) # noqa: E501
31156
+
31157
+ # Authentication setting
31158
+ auth_settings = [] # noqa: E501
31159
+
31160
+ return self.api_client.call_api(
31161
+ '/api/v2/machine_pools/summary', 'POST',
31162
+ path_params,
31163
+ query_params,
31164
+ header_params,
31165
+ body=body_params,
31166
+ post_params=form_params,
31167
+ files=local_var_files,
31168
+ response_type='SummarizemachinepoolresponseResponse', # noqa: E501
31169
+ auth_settings=auth_settings,
31170
+ async_req=local_var_params.get('async_req'),
31171
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
31172
+ _preload_content=local_var_params.get('_preload_content', True),
31173
+ _request_timeout=local_var_params.get('_request_timeout'),
31174
+ collection_formats=collection_formats)
31175
+
31058
31176
  def sync_organization_with_metronome_api_v2_organization_billing_organization_id_sync_with_metronome_post(self, organization_id, **kwargs): # noqa: E501
31059
31177
  """Sync Organization With Metronome # noqa: E501
31060
31178
 
@@ -423,8 +423,8 @@ from openapi_client.models.organizationinvitation_list_response import Organizat
423
423
  from openapi_client.models.organizationinvitation_response import OrganizationinvitationResponse
424
424
  from openapi_client.models.organizationinvitationbase_response import OrganizationinvitationbaseResponse
425
425
  from openapi_client.models.organizationusagealert_list_response import OrganizationusagealertListResponse
426
- from openapi_client.models.pcp_config import PCPConfig
427
426
  from openapi_client.models.page_query import PageQuery
427
+ from openapi_client.models.partition_info import PartitionInfo
428
428
  from openapi_client.models.pause_schedule import PauseSchedule
429
429
  from openapi_client.models.permission_level import PermissionLevel
430
430
  from openapi_client.models.production_job import ProductionJob
@@ -524,6 +524,9 @@ from openapi_client.models.start_session_options import StartSessionOptions
524
524
  from openapi_client.models.stop_session_options import StopSessionOptions
525
525
  from openapi_client.models.stream_publish_request import StreamPublishRequest
526
526
  from openapi_client.models.subnet_id_with_availability_zone_aws import SubnetIdWithAvailabilityZoneAWS
527
+ from openapi_client.models.summarize_machine_pool_request import SummarizeMachinePoolRequest
528
+ from openapi_client.models.summarize_machine_pool_response import SummarizeMachinePoolResponse
529
+ from openapi_client.models.summarizemachinepoolresponse_response import SummarizemachinepoolresponseResponse
527
530
  from openapi_client.models.support_requests_query import SupportRequestsQuery
528
531
  from openapi_client.models.system_workload_name import SystemWorkloadName
529
532
  from openapi_client.models.task_exception_group_aggregate import TaskExceptionGroupAggregate
@@ -34,6 +34,7 @@ class CloudDeployment(object):
34
34
  """
35
35
  openapi_types = {
36
36
  'cloud_deployment_id': 'str',
37
+ 'name': 'str',
37
38
  'provider': 'CloudProviders',
38
39
  'compute_stack': 'ComputeStack',
39
40
  'region': 'str',
@@ -42,12 +43,12 @@ class CloudDeployment(object):
42
43
  'file_storage': 'FileStorage',
43
44
  'aws_config': 'AWSConfig',
44
45
  'gcp_config': 'GCPConfig',
45
- 'pcp_config': 'PCPConfig',
46
46
  'kubernetes_config': 'KubernetesConfig'
47
47
  }
48
48
 
49
49
  attribute_map = {
50
50
  'cloud_deployment_id': 'cloud_deployment_id',
51
+ 'name': 'name',
51
52
  'provider': 'provider',
52
53
  'compute_stack': 'compute_stack',
53
54
  'region': 'region',
@@ -56,17 +57,17 @@ class CloudDeployment(object):
56
57
  'file_storage': 'file_storage',
57
58
  'aws_config': 'aws_config',
58
59
  'gcp_config': 'gcp_config',
59
- 'pcp_config': 'pcp_config',
60
60
  'kubernetes_config': 'kubernetes_config'
61
61
  }
62
62
 
63
- def __init__(self, cloud_deployment_id=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, pcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
63
+ def __init__(self, cloud_deployment_id=None, name=None, provider=None, compute_stack=None, region=None, networking_mode=None, object_storage=None, file_storage=None, aws_config=None, gcp_config=None, kubernetes_config=None, local_vars_configuration=None): # noqa: E501
64
64
  """CloudDeployment - a model defined in OpenAPI""" # noqa: E501
65
65
  if local_vars_configuration is None:
66
66
  local_vars_configuration = Configuration()
67
67
  self.local_vars_configuration = local_vars_configuration
68
68
 
69
69
  self._cloud_deployment_id = None
70
+ self._name = None
70
71
  self._provider = None
71
72
  self._compute_stack = None
72
73
  self._region = None
@@ -75,12 +76,13 @@ class CloudDeployment(object):
75
76
  self._file_storage = None
76
77
  self._aws_config = None
77
78
  self._gcp_config = None
78
- self._pcp_config = None
79
79
  self._kubernetes_config = None
80
80
  self.discriminator = None
81
81
 
82
82
  if cloud_deployment_id is not None:
83
83
  self.cloud_deployment_id = cloud_deployment_id
84
+ if name is not None:
85
+ self.name = name
84
86
  self.provider = provider
85
87
  if compute_stack is not None:
86
88
  self.compute_stack = compute_stack
@@ -92,7 +94,6 @@ class CloudDeployment(object):
92
94
  self.file_storage = file_storage
93
95
  self.aws_config = aws_config
94
96
  self.gcp_config = gcp_config
95
- self.pcp_config = pcp_config
96
97
  self.kubernetes_config = kubernetes_config
97
98
 
98
99
  @property
@@ -118,11 +119,34 @@ class CloudDeployment(object):
118
119
 
119
120
  self._cloud_deployment_id = cloud_deployment_id
120
121
 
122
+ @property
123
+ def name(self):
124
+ """Gets the name of this CloudDeployment. # noqa: E501
125
+
126
+ The name of this deployment. # noqa: E501
127
+
128
+ :return: The name of this CloudDeployment. # noqa: E501
129
+ :rtype: str
130
+ """
131
+ return self._name
132
+
133
+ @name.setter
134
+ def name(self, name):
135
+ """Sets the name of this CloudDeployment.
136
+
137
+ The name of this deployment. # noqa: E501
138
+
139
+ :param name: The name of this CloudDeployment. # noqa: E501
140
+ :type: str
141
+ """
142
+
143
+ self._name = name
144
+
121
145
  @property
122
146
  def provider(self):
123
147
  """Gets the provider of this CloudDeployment. # noqa: E501
124
148
 
125
- The cloud provider type (AWS, GCP, PCP, AZURE, or GENERIC). # noqa: E501
149
+ The cloud provider type (AWS, GCP, AZURE, or GENERIC). # noqa: E501
126
150
 
127
151
  :return: The provider of this CloudDeployment. # noqa: E501
128
152
  :rtype: CloudProviders
@@ -133,7 +157,7 @@ class CloudDeployment(object):
133
157
  def provider(self, provider):
134
158
  """Sets the provider of this CloudDeployment.
135
159
 
136
- The cloud provider type (AWS, GCP, PCP, AZURE, or GENERIC). # noqa: E501
160
+ The cloud provider type (AWS, GCP, AZURE, or GENERIC). # noqa: E501
137
161
 
138
162
  :param provider: The provider of this CloudDeployment. # noqa: E501
139
163
  :type: CloudProviders
@@ -304,29 +328,6 @@ class CloudDeployment(object):
304
328
 
305
329
  self._gcp_config = gcp_config
306
330
 
307
- @property
308
- def pcp_config(self):
309
- """Gets the pcp_config of this CloudDeployment. # noqa: E501
310
-
311
- Machine pool configurations. # noqa: E501
312
-
313
- :return: The pcp_config of this CloudDeployment. # noqa: E501
314
- :rtype: PCPConfig
315
- """
316
- return self._pcp_config
317
-
318
- @pcp_config.setter
319
- def pcp_config(self, pcp_config):
320
- """Sets the pcp_config of this CloudDeployment.
321
-
322
- Machine pool configurations. # noqa: E501
323
-
324
- :param pcp_config: The pcp_config of this CloudDeployment. # noqa: E501
325
- :type: PCPConfig
326
- """
327
-
328
- self._pcp_config = pcp_config
329
-
330
331
  @property
331
332
  def kubernetes_config(self):
332
333
  """Gets the kubernetes_config of this CloudDeployment. # noqa: E501
@@ -0,0 +1,152 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class PartitionInfo(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'partition_name': 'str',
37
+ 'allocation_states': 'dict(str, int)'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'partition_name': 'partition_name',
42
+ 'allocation_states': 'allocation_states'
43
+ }
44
+
45
+ def __init__(self, partition_name=None, allocation_states=None, local_vars_configuration=None): # noqa: E501
46
+ """PartitionInfo - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._partition_name = None
52
+ self._allocation_states = None
53
+ self.discriminator = None
54
+
55
+ self.partition_name = partition_name
56
+ self.allocation_states = allocation_states
57
+
58
+ @property
59
+ def partition_name(self):
60
+ """Gets the partition_name of this PartitionInfo. # noqa: E501
61
+
62
+ The name of the partition. # noqa: E501
63
+
64
+ :return: The partition_name of this PartitionInfo. # noqa: E501
65
+ :rtype: str
66
+ """
67
+ return self._partition_name
68
+
69
+ @partition_name.setter
70
+ def partition_name(self, partition_name):
71
+ """Sets the partition_name of this PartitionInfo.
72
+
73
+ The name of the partition. # noqa: E501
74
+
75
+ :param partition_name: The partition_name of this PartitionInfo. # noqa: E501
76
+ :type: str
77
+ """
78
+ if self.local_vars_configuration.client_side_validation and partition_name is None: # noqa: E501
79
+ raise ValueError("Invalid value for `partition_name`, must not be `None`") # noqa: E501
80
+
81
+ self._partition_name = partition_name
82
+
83
+ @property
84
+ def allocation_states(self):
85
+ """Gets the allocation_states of this PartitionInfo. # noqa: E501
86
+
87
+ The number of machines in each allocation state. # noqa: E501
88
+
89
+ :return: The allocation_states of this PartitionInfo. # noqa: E501
90
+ :rtype: dict(str, int)
91
+ """
92
+ return self._allocation_states
93
+
94
+ @allocation_states.setter
95
+ def allocation_states(self, allocation_states):
96
+ """Sets the allocation_states of this PartitionInfo.
97
+
98
+ The number of machines in each allocation state. # noqa: E501
99
+
100
+ :param allocation_states: The allocation_states of this PartitionInfo. # noqa: E501
101
+ :type: dict(str, int)
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and allocation_states is None: # noqa: E501
104
+ raise ValueError("Invalid value for `allocation_states`, must not be `None`") # noqa: E501
105
+
106
+ self._allocation_states = allocation_states
107
+
108
+ def to_dict(self):
109
+ """Returns the model properties as a dict"""
110
+ result = {}
111
+
112
+ for attr, _ in six.iteritems(self.openapi_types):
113
+ value = getattr(self, attr)
114
+ if isinstance(value, list):
115
+ result[attr] = list(map(
116
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
117
+ value
118
+ ))
119
+ elif hasattr(value, "to_dict"):
120
+ result[attr] = value.to_dict()
121
+ elif isinstance(value, dict):
122
+ result[attr] = dict(map(
123
+ lambda item: (item[0], item[1].to_dict())
124
+ if hasattr(item[1], "to_dict") else item,
125
+ value.items()
126
+ ))
127
+ else:
128
+ result[attr] = value
129
+
130
+ return result
131
+
132
+ def to_str(self):
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self):
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other):
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, PartitionInfo):
143
+ return False
144
+
145
+ return self.to_dict() == other.to_dict()
146
+
147
+ def __ne__(self, other):
148
+ """Returns true if both objects are not equal"""
149
+ if not isinstance(other, PartitionInfo):
150
+ return True
151
+
152
+ return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class PCPConfig(object):
21
+ class SummarizeMachinePoolRequest(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -41,7 +41,7 @@ class PCPConfig(object):
41
41
  }
42
42
 
43
43
  def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
44
- """PCPConfig - a model defined in OpenAPI""" # noqa: E501
44
+ """SummarizeMachinePoolRequest - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
@@ -49,29 +49,30 @@ class PCPConfig(object):
49
49
  self._machine_pool_name = None
50
50
  self.discriminator = None
51
51
 
52
- if machine_pool_name is not None:
53
- self.machine_pool_name = machine_pool_name
52
+ self.machine_pool_name = machine_pool_name
54
53
 
55
54
  @property
56
55
  def machine_pool_name(self):
57
- """Gets the machine_pool_name of this PCPConfig. # noqa: E501
56
+ """Gets the machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
58
57
 
59
- The name of the machine pool. # noqa: E501
58
+ The name of the machine pool to summarize. # noqa: E501
60
59
 
61
- :return: The machine_pool_name of this PCPConfig. # noqa: E501
60
+ :return: The machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
62
61
  :rtype: str
63
62
  """
64
63
  return self._machine_pool_name
65
64
 
66
65
  @machine_pool_name.setter
67
66
  def machine_pool_name(self, machine_pool_name):
68
- """Sets the machine_pool_name of this PCPConfig.
67
+ """Sets the machine_pool_name of this SummarizeMachinePoolRequest.
69
68
 
70
- The name of the machine pool. # noqa: E501
69
+ The name of the machine pool to summarize. # noqa: E501
71
70
 
72
- :param machine_pool_name: The machine_pool_name of this PCPConfig. # noqa: E501
71
+ :param machine_pool_name: The machine_pool_name of this SummarizeMachinePoolRequest. # noqa: E501
73
72
  :type: str
74
73
  """
74
+ if self.local_vars_configuration.client_side_validation and machine_pool_name is None: # noqa: E501
75
+ raise ValueError("Invalid value for `machine_pool_name`, must not be `None`") # noqa: E501
75
76
 
76
77
  self._machine_pool_name = machine_pool_name
77
78
 
@@ -109,14 +110,14 @@ class PCPConfig(object):
109
110
 
110
111
  def __eq__(self, other):
111
112
  """Returns true if both objects are equal"""
112
- if not isinstance(other, PCPConfig):
113
+ if not isinstance(other, SummarizeMachinePoolRequest):
113
114
  return False
114
115
 
115
116
  return self.to_dict() == other.to_dict()
116
117
 
117
118
  def __ne__(self, other):
118
119
  """Returns true if both objects are not equal"""
119
- if not isinstance(other, PCPConfig):
120
+ if not isinstance(other, SummarizeMachinePoolRequest):
120
121
  return True
121
122
 
122
123
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,181 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class SummarizeMachinePoolResponse(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'partitions': 'list[PartitionInfo]',
37
+ 'running_workloads': 'int',
38
+ 'queued_workloads': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'partitions': 'partitions',
43
+ 'running_workloads': 'running_workloads',
44
+ 'queued_workloads': 'queued_workloads'
45
+ }
46
+
47
+ def __init__(self, partitions=None, running_workloads=None, queued_workloads=None, local_vars_configuration=None): # noqa: E501
48
+ """SummarizeMachinePoolResponse - a model defined in OpenAPI""" # noqa: E501
49
+ if local_vars_configuration is None:
50
+ local_vars_configuration = Configuration()
51
+ self.local_vars_configuration = local_vars_configuration
52
+
53
+ self._partitions = None
54
+ self._running_workloads = None
55
+ self._queued_workloads = None
56
+ self.discriminator = None
57
+
58
+ self.partitions = partitions
59
+ self.running_workloads = running_workloads
60
+ self.queued_workloads = queued_workloads
61
+
62
+ @property
63
+ def partitions(self):
64
+ """Gets the partitions of this SummarizeMachinePoolResponse. # noqa: E501
65
+
66
+ Summary for each partition in the machine pool. # noqa: E501
67
+
68
+ :return: The partitions of this SummarizeMachinePoolResponse. # noqa: E501
69
+ :rtype: list[PartitionInfo]
70
+ """
71
+ return self._partitions
72
+
73
+ @partitions.setter
74
+ def partitions(self, partitions):
75
+ """Sets the partitions of this SummarizeMachinePoolResponse.
76
+
77
+ Summary for each partition in the machine pool. # noqa: E501
78
+
79
+ :param partitions: The partitions of this SummarizeMachinePoolResponse. # noqa: E501
80
+ :type: list[PartitionInfo]
81
+ """
82
+ if self.local_vars_configuration.client_side_validation and partitions is None: # noqa: E501
83
+ raise ValueError("Invalid value for `partitions`, must not be `None`") # noqa: E501
84
+
85
+ self._partitions = partitions
86
+
87
+ @property
88
+ def running_workloads(self):
89
+ """Gets the running_workloads of this SummarizeMachinePoolResponse. # noqa: E501
90
+
91
+ The number of running workloads. # noqa: E501
92
+
93
+ :return: The running_workloads of this SummarizeMachinePoolResponse. # noqa: E501
94
+ :rtype: int
95
+ """
96
+ return self._running_workloads
97
+
98
+ @running_workloads.setter
99
+ def running_workloads(self, running_workloads):
100
+ """Sets the running_workloads of this SummarizeMachinePoolResponse.
101
+
102
+ The number of running workloads. # noqa: E501
103
+
104
+ :param running_workloads: The running_workloads of this SummarizeMachinePoolResponse. # noqa: E501
105
+ :type: int
106
+ """
107
+ if self.local_vars_configuration.client_side_validation and running_workloads is None: # noqa: E501
108
+ raise ValueError("Invalid value for `running_workloads`, must not be `None`") # noqa: E501
109
+
110
+ self._running_workloads = running_workloads
111
+
112
+ @property
113
+ def queued_workloads(self):
114
+ """Gets the queued_workloads of this SummarizeMachinePoolResponse. # noqa: E501
115
+
116
+ The number of queued workloads. # noqa: E501
117
+
118
+ :return: The queued_workloads of this SummarizeMachinePoolResponse. # noqa: E501
119
+ :rtype: int
120
+ """
121
+ return self._queued_workloads
122
+
123
+ @queued_workloads.setter
124
+ def queued_workloads(self, queued_workloads):
125
+ """Sets the queued_workloads of this SummarizeMachinePoolResponse.
126
+
127
+ The number of queued workloads. # noqa: E501
128
+
129
+ :param queued_workloads: The queued_workloads of this SummarizeMachinePoolResponse. # noqa: E501
130
+ :type: int
131
+ """
132
+ if self.local_vars_configuration.client_side_validation and queued_workloads is None: # noqa: E501
133
+ raise ValueError("Invalid value for `queued_workloads`, must not be `None`") # noqa: E501
134
+
135
+ self._queued_workloads = queued_workloads
136
+
137
+ def to_dict(self):
138
+ """Returns the model properties as a dict"""
139
+ result = {}
140
+
141
+ for attr, _ in six.iteritems(self.openapi_types):
142
+ value = getattr(self, attr)
143
+ if isinstance(value, list):
144
+ result[attr] = list(map(
145
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
146
+ value
147
+ ))
148
+ elif hasattr(value, "to_dict"):
149
+ result[attr] = value.to_dict()
150
+ elif isinstance(value, dict):
151
+ result[attr] = dict(map(
152
+ lambda item: (item[0], item[1].to_dict())
153
+ if hasattr(item[1], "to_dict") else item,
154
+ value.items()
155
+ ))
156
+ else:
157
+ result[attr] = value
158
+
159
+ return result
160
+
161
+ def to_str(self):
162
+ """Returns the string representation of the model"""
163
+ return pprint.pformat(self.to_dict())
164
+
165
+ def __repr__(self):
166
+ """For `print` and `pprint`"""
167
+ return self.to_str()
168
+
169
+ def __eq__(self, other):
170
+ """Returns true if both objects are equal"""
171
+ if not isinstance(other, SummarizeMachinePoolResponse):
172
+ return False
173
+
174
+ return self.to_dict() == other.to_dict()
175
+
176
+ def __ne__(self, other):
177
+ """Returns true if both objects are not equal"""
178
+ if not isinstance(other, SummarizeMachinePoolResponse):
179
+ return True
180
+
181
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,121 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class SummarizemachinepoolresponseResponse(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'result': 'SummarizeMachinePoolResponse'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'result': 'result'
41
+ }
42
+
43
+ def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
+ """SummarizemachinepoolresponseResponse - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._result = None
50
+ self.discriminator = None
51
+
52
+ self.result = result
53
+
54
+ @property
55
+ def result(self):
56
+ """Gets the result of this SummarizemachinepoolresponseResponse. # noqa: E501
57
+
58
+
59
+ :return: The result of this SummarizemachinepoolresponseResponse. # noqa: E501
60
+ :rtype: SummarizeMachinePoolResponse
61
+ """
62
+ return self._result
63
+
64
+ @result.setter
65
+ def result(self, result):
66
+ """Sets the result of this SummarizemachinepoolresponseResponse.
67
+
68
+
69
+ :param result: The result of this SummarizemachinepoolresponseResponse. # noqa: E501
70
+ :type: SummarizeMachinePoolResponse
71
+ """
72
+ if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
+ raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
74
+
75
+ self._result = result
76
+
77
+ def to_dict(self):
78
+ """Returns the model properties as a dict"""
79
+ result = {}
80
+
81
+ for attr, _ in six.iteritems(self.openapi_types):
82
+ value = getattr(self, attr)
83
+ if isinstance(value, list):
84
+ result[attr] = list(map(
85
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86
+ value
87
+ ))
88
+ elif hasattr(value, "to_dict"):
89
+ result[attr] = value.to_dict()
90
+ elif isinstance(value, dict):
91
+ result[attr] = dict(map(
92
+ lambda item: (item[0], item[1].to_dict())
93
+ if hasattr(item[1], "to_dict") else item,
94
+ value.items()
95
+ ))
96
+ else:
97
+ result[attr] = value
98
+
99
+ return result
100
+
101
+ def to_str(self):
102
+ """Returns the string representation of the model"""
103
+ return pprint.pformat(self.to_dict())
104
+
105
+ def __repr__(self):
106
+ """For `print` and `pprint`"""
107
+ return self.to_str()
108
+
109
+ def __eq__(self, other):
110
+ """Returns true if both objects are equal"""
111
+ if not isinstance(other, SummarizemachinepoolresponseResponse):
112
+ return False
113
+
114
+ return self.to_dict() == other.to_dict()
115
+
116
+ def __ne__(self, other):
117
+ """Returns true if both objects are not equal"""
118
+ if not isinstance(other, SummarizemachinepoolresponseResponse):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()
@@ -37,7 +37,8 @@ class WorkspaceTemplateReadme(object):
37
37
  'title': 'str',
38
38
  'description': 'str',
39
39
  'icon_type': 'str',
40
- 'icon_bg_color': 'str'
40
+ 'icon_bg_color': 'str',
41
+ 'url': 'str'
41
42
  }
42
43
 
43
44
  attribute_map = {
@@ -45,10 +46,11 @@ class WorkspaceTemplateReadme(object):
45
46
  'title': 'title',
46
47
  'description': 'description',
47
48
  'icon_type': 'icon_type',
48
- 'icon_bg_color': 'icon_bg_color'
49
+ 'icon_bg_color': 'icon_bg_color',
50
+ 'url': 'url'
49
51
  }
50
52
 
51
- def __init__(self, content=None, title=None, description=None, icon_type=None, icon_bg_color=None, local_vars_configuration=None): # noqa: E501
53
+ def __init__(self, content=None, title=None, description=None, icon_type=None, icon_bg_color=None, url=None, local_vars_configuration=None): # noqa: E501
52
54
  """WorkspaceTemplateReadme - a model defined in OpenAPI""" # noqa: E501
53
55
  if local_vars_configuration is None:
54
56
  local_vars_configuration = Configuration()
@@ -59,6 +61,7 @@ class WorkspaceTemplateReadme(object):
59
61
  self._description = None
60
62
  self._icon_type = None
61
63
  self._icon_bg_color = None
64
+ self._url = None
62
65
  self.discriminator = None
63
66
 
64
67
  self.content = content
@@ -68,6 +71,7 @@ class WorkspaceTemplateReadme(object):
68
71
  self.icon_type = icon_type
69
72
  if icon_bg_color is not None:
70
73
  self.icon_bg_color = icon_bg_color
74
+ self.url = url
71
75
 
72
76
  @property
73
77
  def content(self):
@@ -190,6 +194,31 @@ class WorkspaceTemplateReadme(object):
190
194
 
191
195
  self._icon_bg_color = icon_bg_color
192
196
 
197
+ @property
198
+ def url(self):
199
+ """Gets the url of this WorkspaceTemplateReadme. # noqa: E501
200
+
201
+ The url of the workspace template # noqa: E501
202
+
203
+ :return: The url of this WorkspaceTemplateReadme. # noqa: E501
204
+ :rtype: str
205
+ """
206
+ return self._url
207
+
208
+ @url.setter
209
+ def url(self, url):
210
+ """Sets the url of this WorkspaceTemplateReadme.
211
+
212
+ The url of the workspace template # noqa: E501
213
+
214
+ :param url: The url of this WorkspaceTemplateReadme. # noqa: E501
215
+ :type: str
216
+ """
217
+ if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
218
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
219
+
220
+ self._url = url
221
+
193
222
  def to_dict(self):
194
223
  """Returns the model properties as a dict"""
195
224
  result = {}
@@ -1129,7 +1129,7 @@ def add_collaborators(cloud: str, users_file: str,) -> None:
1129
1129
  @click.option(
1130
1130
  "--output",
1131
1131
  "-o",
1132
- help="File to write the full cloud YAML to.",
1132
+ help="File to write the output YAML to.",
1133
1133
  type=str,
1134
1134
  required=False,
1135
1135
  )
@@ -1154,18 +1154,21 @@ def get_cloud(
1154
1154
  log.error("Cloud not found.")
1155
1155
  return
1156
1156
 
1157
- if output:
1158
- # Include all cloud deployments for the cloud.
1159
- result = CloudController().get_cloud_deployments(cloud_id=cloud.id)
1157
+ # Include all cloud deployments for the cloud.
1158
+ cloud_deployments = CloudController().get_cloud_deployments(cloud_id=cloud.id)
1159
+ result = {
1160
+ "name": cloud.name,
1161
+ "id": cloud.id,
1162
+ "created_at": cloud.created_at,
1163
+ "is_default": cloud.is_default,
1164
+ "deployments": cloud_deployments.get("deployments", []),
1165
+ }
1160
1166
 
1167
+ if output:
1161
1168
  with open(output, "w") as f:
1162
1169
  yaml.dump(result, f, sort_keys=False)
1163
-
1164
1170
  else:
1165
- cloud_dict = (
1166
- cloud.to_dict() if hasattr(cloud, "to_dict") else cloud.__dict__
1167
- )
1168
- print(yaml.dump(cloud_dict, sort_keys=False))
1171
+ print(yaml.dump(result, sort_keys=False))
1169
1172
 
1170
1173
  except ValueError as e:
1171
1174
  log.error(f"Error retrieving cloud: {e}")
@@ -652,14 +652,31 @@ collaborators:
652
652
  """
653
653
 
654
654
  CLOUD_GET_CLOUD_EXAMPLE = """\
655
- $ anyscale cloud get --name cloud_name
656
- name: anyscale_v2_default_cloud
655
+ $ anyscale cloud get --name my-cloud
657
656
  id: cld_123
658
- provider: AWS
659
- region: us-west-2
657
+ name: my-cloud
660
658
  created_at: 2022-10-18 05:12:13.335803+00:00
661
- is_default: false
662
- compute_stack: VM
659
+ is_default: true
660
+ deployments:
661
+ - cloud_deployment_id: cldrsrc_123
662
+ name: vm-aws-us-west-2
663
+ provider: AWS
664
+ compute_stack: VM
665
+ region: us-west-2
666
+ networking_mode: PUBLIC
667
+ object_storage:
668
+ bucket_name: s3://my-bucket
669
+ file_storage:
670
+ file_storage_id: fs-123
671
+ aws_config:
672
+ vpc_id: vpc-123
673
+ subnet_ids:
674
+ - subnet-123
675
+ security_group_ids:
676
+ - sg-123
677
+ anyscale_iam_role_id: arn:aws:iam::123456789012:role/anyscale-role-123
678
+ cluster_iam_role_id: arn:aws:iam::123456789012:role/cluster-role-123
679
+ memorydb_cluster_name: my-memorydb-cluster
663
680
  """
664
681
 
665
682
  CLOUD_GET_DEFAULT_CLOUD_EXAMPLE = """\
anyscale/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.26.33"
1
+ __version__ = "0.26.34"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: anyscale
3
- Version: 0.26.33
3
+ Version: 0.26.34
4
4
  Summary: Command Line Interface for Anyscale
5
5
  Author: Anyscale Inc.
6
6
  License: AS License
@@ -28,7 +28,7 @@ anyscale/snapshot.py,sha256=UGJT5C1s_4xmQxjWODK5DFpGxHRBX5jOCdSCqXESH8E,1685
28
28
  anyscale/tables.py,sha256=TV4F2uLnwehvbkAfaP7iuLlT2wLIo6ORH2LVdRGXW5g,2840
29
29
  anyscale/telemetry.py,sha256=oBXHheSC475SrSXELO821UNR5rTZnWDd9S86bROvnFo,15146
30
30
  anyscale/util.py,sha256=14AHIhl4c4hKAW4gLZIvy5w56-zDjcPmrdWqazsvnHU,41860
31
- anyscale/version.py,sha256=a01G4H_igKyxhCHPIubLUicH6Q2QIbZmiDH5Qx56_Yc,24
31
+ anyscale/version.py,sha256=RNJE5Lv1QheT25OE6vIwe4vcACu9ubuBUudFGVmpaRk,24
32
32
  anyscale/workspace_utils.py,sha256=OViE88CnIF5ruVxd3kazQ0Mf2BxqtMq6wx-XQ5A2cp8,1204
33
33
  anyscale/_private/anyscale_client/README.md,sha256=gk8obk7kqg6VWoUHcqDMwJULh35tYKEZFC0UF_dixGA,718
34
34
  anyscale/_private/anyscale_client/__init__.py,sha256=807Blx3RHQeS8BmKZcsOQQ4dYoKlCnpm6Bdsif2CrHg,337
@@ -106,7 +106,7 @@ anyscale/background/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
106
106
  anyscale/background/job_runner.py,sha256=LTuv9JOahyv6C9i7DLQAONgQF6--FfYZEmJrKy-sUG8,2687
107
107
  anyscale/client/.gitignore,sha256=JZyvYEtT2DCSK9V5Joi6lQofhMik4PXiJRCWsg7SvqI,807
108
108
  anyscale/client/.openapi-generator-ignore,sha256=pu2PTide7pJtJ-DFLzDy0cTYQJRlrB-8RRH3zGLeUds,1040
109
- anyscale/client/README.md,sha256=2KpvvYLqtm8Dx4iTicaYf_Fgp1MAAfqmop_XOesaX0I,110144
109
+ anyscale/client/README.md,sha256=ZUj3BmjrHpPwpng-YWAizSId1t_9GmFOpsUNz55vRDg,110603
110
110
  anyscale/client/git_push.sh,sha256=EDCZOTTiLxbtPHmiU63qC99rGH67B7dhdPZdNUKivF0,1827
111
111
  anyscale/client/requirements.txt,sha256=dkVKYUStC5h_g_87SH7pRdhXCj7ySozAJMGAFEzGgFc,126
112
112
  anyscale/client/setup.cfg,sha256=l7bdKSIedeBhhoDtupsBwx1xPrlBf2yYeTH7a8kMga4,28
@@ -114,14 +114,14 @@ anyscale/client/setup.py,sha256=tSxqw1kAL1B9adnrnOarjnQfSbwGmnTr_kg8ZXhlm5A,1109
114
114
  anyscale/client/test-requirements.txt,sha256=sTjmDTj5W9fh1ZAeo8UT2EBdeGDBNttj_PHiPBXg1D4,111
115
115
  anyscale/client/tox.ini,sha256=M6L3UmvAdvU65LsoAF-Oi7oRjwZlCJZn8I7ofdXn5Ok,156
116
116
  anyscale/client/.openapi-generator/VERSION,sha256=J0RzX-4u4jfin1kviKtmncjUePyjHm2kyvmkobOrt_E,5
117
- anyscale/client/openapi_client/__init__.py,sha256=BR7oh4kZH2Hib_LfTPcjPZ_JA_SRnHbByWWe7PQ3KUI,49792
117
+ anyscale/client/openapi_client/__init__.py,sha256=Dh-Gh0iACP_VQL6Oc6pexvIaglXIa-0xkPIHD5VuKwI,50097
118
118
  anyscale/client/openapi_client/api_client.py,sha256=d8Un6j2Ny2vlS2qBXPVFj6_ql0k36DFahpWt_28TfCk,25563
119
119
  anyscale/client/openapi_client/configuration.py,sha256=Dd5XrlHwv-wxnf0C35PG_-HBQoY3Yaz6hKrmkZz-m0E,12363
120
120
  anyscale/client/openapi_client/exceptions.py,sha256=3egwsXQG2j_vARbqgBxUO1xSltAhpfiHTYVP7VXTvU0,3792
121
121
  anyscale/client/openapi_client/rest.py,sha256=Ehj37v7GHW6SXV067Hze5HE42ayKaGi6a6ZlkR7u3Lg,12501
122
122
  anyscale/client/openapi_client/api/__init__.py,sha256=i8u7BI2xX1GrXTL3hN0pKpYIlnT-D_uDxH2ElOfYG1I,141
123
- anyscale/client/openapi_client/api/default_api.py,sha256=XnQaiSHVYSRUqXdroZUlLHPJSfvNNDjitd98MaazLVA,1765516
124
- anyscale/client/openapi_client/models/__init__.py,sha256=1Ek9vcXrdm_ob6UNgemPm8UUfzEW55Vc2aK_SoM35W8,49302
123
+ anyscale/client/openapi_client/api/default_api.py,sha256=122YkBACCk_skpp9mMh8dM1JNKRwSVjoIYyG1qK4ZBU,1771418
124
+ anyscale/client/openapi_client/models/__init__.py,sha256=PKjuETkLIt2yDSu0loG7Ibc5XJKOxz4zDIqxAEOUPZQ,49607
125
125
  anyscale/client/openapi_client/models/access_config.py,sha256=b2mA0qtuTA5PFbp6C61Jc_T2zUMaojM1v32IhZo0MfY,3648
126
126
  anyscale/client/openapi_client/models/actor_status.py,sha256=6xyX_aIqURj2raBdY9DmBxsdDACFrqqYvElGiM6YG2E,2813
127
127
  anyscale/client/openapi_client/models/admin_create_user.py,sha256=9DPr8D0lKgoEZ3Z2kGsAd8L7ocFCiP6woOGLVs8SRb8,7251
@@ -196,7 +196,7 @@ anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py
196
196
  anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_response.py,sha256=zJA18_gxkpKOo1b4R7MakUBBM8DX-WLFuAVIfxRmP6U,10827
197
197
  anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_scheme.py,sha256=Vpnb4gAa6TBj0p5OfiIzLTWFGZ3Xd5s7jXdOJw06msM,2916
198
198
  anyscale/client/openapi_client/models/cloud_data_bucket_request_scope.py,sha256=IqPon7rEzfGPfSifMNzUZZDXv2NS-v9D0Zab57WFnYw,2901
199
- anyscale/client/openapi_client/models/cloud_deployment.py,sha256=8TSDqUJ3OQ3IFrV_uL5OCYOl0TV9TaCF-1XCvO6Cy-o,12452
199
+ anyscale/client/openapi_client/models/cloud_deployment.py,sha256=7oM6B5WLfC82G-fQsraK3nBHEQgatHY2ju2V4UmXIjI,12343
200
200
  anyscale/client/openapi_client/models/cloud_deployment_compute_config.py,sha256=ZTecoOP07ZnYxwF2joFQQNyKkGUgc0SxH9-NQGTfvsE,11124
201
201
  anyscale/client/openapi_client/models/cloud_deployment_config.py,sha256=cFErRe2NF9C8DI2SBTvHp37PB736A_jeg5UBc4Erl3Y,3468
202
202
  anyscale/client/openapi_client/models/cloud_deployment_selector.py,sha256=vq9vtLNCsh22pzFpvPp1C4ZDslGeTmpmC4LKouaETnM,6150
@@ -532,8 +532,8 @@ anyscale/client/openapi_client/models/organizationinvitation_response.py,sha256=
532
532
  anyscale/client/openapi_client/models/organizationinvitationbase_response.py,sha256=AGaWU4PB23BsBWjUKbAhSSqp0e5Q2shzwrzac3JhwPM,3704
533
533
  anyscale/client/openapi_client/models/organizationusagealert_list_response.py,sha256=AojOBFsB3Edd8H1ZusnfBGhX5oGc162k_q4XZFEigHY,4527
534
534
  anyscale/client/openapi_client/models/page_query.py,sha256=dw5HgH5gVYi2OcLW3Kg0Zt5mf0GWq-Qv-RW83FANLeM,4585
535
+ anyscale/client/openapi_client/models/partition_info.py,sha256=XaAsTffyjTxdCZN3wQtLxUch5oFs3XwqOtaeHjyEt14,4916
535
536
  anyscale/client/openapi_client/models/pause_schedule.py,sha256=ru7_OzH7oDw5y2h1o5QNfKW8TXbkF1h-NDwccbUDRd0,3661
536
- anyscale/client/openapi_client/models/pcp_config.py,sha256=7OcoJJxUpBla-cU-7fxOYAaPYhzb_RXZ7_9UGO6Hczs,3603
537
537
  anyscale/client/openapi_client/models/permission_level.py,sha256=fGnBgKrcZkGLYl7RpQQm0_gaGzkTehnJjOnIX8G4jAw,2868
538
538
  anyscale/client/openapi_client/models/production_job.py,sha256=fVDrDRonEiH6OVfKl3Xwc1RPaPs0S4EKLqBEzvRIraY,13672
539
539
  anyscale/client/openapi_client/models/production_job_config.py,sha256=cW2TxSTUw-dDm3kGWa_tNet7dmJM3VVPJ75pWumosiA,12527
@@ -631,6 +631,9 @@ anyscale/client/openapi_client/models/start_session_options.py,sha256=dd_57VoQMi
631
631
  anyscale/client/openapi_client/models/stop_session_options.py,sha256=8ulrBPdfMNEUqwtrtAwJhby8V3MBQf3sVvOX-f9A54k,6939
632
632
  anyscale/client/openapi_client/models/stream_publish_request.py,sha256=39FNPmJYIg-nGNbIVyNoYkMlt4OjrVY9nVnqufHA7Ms,7774
633
633
  anyscale/client/openapi_client/models/subnet_id_with_availability_zone_aws.py,sha256=S2pj-e91QvTmbUhT_TBzYr8_ysxwl9uXabNHFDJJRzQ,4754
634
+ anyscale/client/openapi_client/models/summarize_machine_pool_request.py,sha256=Gd2eCyUTAreVw8uH50rqCnq8tYvQ3gLMalgWBPsOQfs,3940
635
+ anyscale/client/openapi_client/models/summarize_machine_pool_response.py,sha256=srO9s5_0PKA8fIuhm0dWkNwQ98cLhlYsoVLiHVT-ETM,6192
636
+ anyscale/client/openapi_client/models/summarizemachinepoolresponse_response.py,sha256=9Zae6W1f4rXYOoWEyblZH3-Yo3OTiRefB04Fzk2VpoM,3726
634
637
  anyscale/client/openapi_client/models/support_requests_query.py,sha256=uSM7EnvidalnDMA5rbu-wGFsP9PX8qdUwc7cABJ6ogw,5496
635
638
  anyscale/client/openapi_client/models/supportedbaseimagesenum.py,sha256=jRKrUTrxhkEimg6xXoILPrnMbOUpvFvhosBPvC7Sg3k,183887
636
639
  anyscale/client/openapi_client/models/system_workload_name.py,sha256=o989t_JBtrgBlsmG8RemV-n09mKEjCA_3DDm1kgvOlc,2880
@@ -708,7 +711,7 @@ anyscale/client/openapi_client/models/workspace_readme.py,sha256=ZP5DEBFvtLBJr8l
708
711
  anyscale/client/openapi_client/models/workspace_snapshot_states.py,sha256=RegahieY0JVF41W3JumWkb_JGjhnfv8JRBUFB0Exxo0,3482
709
712
  anyscale/client/openapi_client/models/workspace_template.py,sha256=RiJ1OF__meofPSGxxj8gzbrfreuypig2hkcGGf3TWyY,14901
710
713
  anyscale/client/openapi_client/models/workspace_template_cluster_environment_metadata.py,sha256=hRn6QO301s75_mTNvdXKA5W77rAnBkhE0G2GaWQheD0,5561
711
- anyscale/client/openapi_client/models/workspace_template_readme.py,sha256=jj-MrhFAKN4Ixy_aT1P_bxFi7HjOrJsQdlBHpf3Ryts,7476
714
+ anyscale/client/openapi_client/models/workspace_template_readme.py,sha256=MOuEBTLDB0xzA97XymULRghW9lh_JBQ4y0PRVL1kHMM,8342
712
715
  anyscale/client/openapi_client/models/workspacedataplaneartifacts_response.py,sha256=h5ugKi65sESntV3YP3NMxCoJBIwXoM5dSpAPT_f4iU0,3715
713
716
  anyscale/client/openapi_client/models/workspacedataplaneproxiedartifacts_response.py,sha256=iHHoIEftc_Fah8mVLUuhxprGxXM9T0XGQyTZi3mUbRI,3792
714
717
  anyscale/client/openapi_client/models/workspaceevent_list_response.py,sha256=_l3PN6L49zpaqYDmMQ4rUu6CG7dSgc8XFOTWE_pyeWY,4407
@@ -727,11 +730,11 @@ anyscale/cloud/_private/cloud_sdk.py,sha256=5TBGyGSjMI4jLOnSle1WWC6za0psP9xgTGWU
727
730
  anyscale/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
728
731
  anyscale/commands/aggregated_instance_usage_commands.py,sha256=TRP1X3hdIWbKg9V20VtazlDXsYAeV--M0DH3-Z5tnj4,2293
729
732
  anyscale/commands/auth_commands.py,sha256=X1g6Yu9kqgPb4HLODlZTYEk8G5AVLeyizPIgagWx-p0,1026
730
- anyscale/commands/cloud_commands.py,sha256=ggVbfMNUBjaHc1-vXPFU3GdQZb3Ci8TmTmrhSWnI-EI,45018
733
+ anyscale/commands/cloud_commands.py,sha256=U2MiqoKF10eIJzXjfkBO71Mh4kgkYDXsuVmBClZYHME,45136
731
734
  anyscale/commands/cloud_commands_util.py,sha256=d-6TSZ_syrGkZ3Fc1uRX6jG4dqYMebNkBNpYLojOJFg,247
732
735
  anyscale/commands/cluster_commands.py,sha256=taNcffyFfqJ1MgOQd0cz9kzRXWFTdp-wfLPM4l_2tBc,13487
733
736
  anyscale/commands/cluster_env_commands.py,sha256=KNWylyE8Ew1sDi7yu2Tp4RLcRu2_KJJJIzVGRyPflJo,3899
734
- anyscale/commands/command_examples.py,sha256=wJ7LaJx2P5RdQwTeb7DyFZ6-gp9RuxqP6cEIg55mstU,27037
737
+ anyscale/commands/command_examples.py,sha256=rcgaMTWLa0_-Yr7m041flguuDqsjRrdMtI9uW1Ei8og,27515
735
738
  anyscale/commands/compute_config_commands.py,sha256=vdyrtMcdP8eeK32p_Y6zF-qps6_SyzprhbjRZ9p18tQ,7828
736
739
  anyscale/commands/config_commands.py,sha256=p55uM6WrhfbFoRXC9hNAV-8c5ANghw7tBUYwaQDAtjE,7195
737
740
  anyscale/commands/exec_commands.py,sha256=cMOP1u6xQbl81h69Jug3y73XnNSwpbM6XC1X57SIp4c,465
@@ -1082,10 +1085,10 @@ anyscale/workspace/__init__.py,sha256=Innbm5ZhCyADEVBiYSo_vbpKwUNcMzVSAfxIGKOYe6
1082
1085
  anyscale/workspace/commands.py,sha256=b1sqNseoPj-1VXznqQOLe0V_a663bOTvJX-TaOMJa1Y,14590
1083
1086
  anyscale/workspace/models.py,sha256=HBvM9ybOdJjqQeViQ30C36gdKT_AwH_JHPoL-DTkESo,9841
1084
1087
  anyscale/workspace/_private/workspace_sdk.py,sha256=2CMeYfJt0UtIFCocDn1ukw1iI5esKHdopLe6duEs-qE,27599
1085
- anyscale-0.26.33.dist-info/LICENSE,sha256=UOPu974Wzsna6frFv1mu4VrZgNdZT7lbcNPzo5ue3qs,3494
1086
- anyscale-0.26.33.dist-info/METADATA,sha256=2rC9xsm1aLPi1bdSmQMFS9W0hGOJRJaw5nel8LDv0mA,3269
1087
- anyscale-0.26.33.dist-info/NOTICE,sha256=gHqDhSnUYlRXX-mDOL5FtE7774oiKyV_HO80qM3r9Xo,196
1088
- anyscale-0.26.33.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
1089
- anyscale-0.26.33.dist-info/entry_points.txt,sha256=NqO18sCZn6zG6J0S38itjcN00s7aE3C3v3k5lMAfCLk,51
1090
- anyscale-0.26.33.dist-info/top_level.txt,sha256=g3NVNS8Oh0NZwbFFgeX696C5MZZkS5dqV2NqcsbDRJE,9
1091
- anyscale-0.26.33.dist-info/RECORD,,
1088
+ anyscale-0.26.34.dist-info/LICENSE,sha256=UOPu974Wzsna6frFv1mu4VrZgNdZT7lbcNPzo5ue3qs,3494
1089
+ anyscale-0.26.34.dist-info/METADATA,sha256=ApuCzseXNqKH9ufZr0CSiuoIx29eyZVWxXN7dHdej4Y,3269
1090
+ anyscale-0.26.34.dist-info/NOTICE,sha256=gHqDhSnUYlRXX-mDOL5FtE7774oiKyV_HO80qM3r9Xo,196
1091
+ anyscale-0.26.34.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
1092
+ anyscale-0.26.34.dist-info/entry_points.txt,sha256=NqO18sCZn6zG6J0S38itjcN00s7aE3C3v3k5lMAfCLk,51
1093
+ anyscale-0.26.34.dist-info/top_level.txt,sha256=g3NVNS8Oh0NZwbFFgeX696C5MZZkS5dqV2NqcsbDRJE,9
1094
+ anyscale-0.26.34.dist-info/RECORD,,