anyscale 0.26.59__py3-none-any.whl → 0.26.61__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
@@ -224,6 +224,7 @@ Class | Method | HTTP request | Description
224
224
  *DefaultApi* | [**get_metronome_embedded_usage_dashboard_by_organization_api_v2_organization_billing_organization_id_metronome_embedded_dashboard_url_dashboard_type_get**](docs/DefaultApi.md#get_metronome_embedded_usage_dashboard_by_organization_api_v2_organization_billing_organization_id_metronome_embedded_dashboard_url_dashboard_type_get) | **GET** /api/v2/organization_billing/{organization_id}/metronome_embedded_dashboard_url/{dashboard_type} | Get Metronome Embedded Usage Dashboard By Organization
225
225
  *DefaultApi* | [**get_model_api_v2_llm_models_model_id_get**](docs/DefaultApi.md#get_model_api_v2_llm_models_model_id_get) | **GET** /api/v2/llm/models/{model_id} | Get Model
226
226
  *DefaultApi* | [**get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get**](docs/DefaultApi.md#get_model_by_job_id_api_v2_llm_models_get_by_job_id_job_id_get) | **GET** /api/v2/llm/models/get_by_job_id/{job_id} | Get Model By Job Id
227
+ *DefaultApi* | [**get_nodes_api_v2_cluster_dashboard_get**](docs/DefaultApi.md#get_nodes_api_v2_cluster_dashboard_get) | **GET** /api/v2/cluster_dashboard/ | Get Nodes
227
228
  *DefaultApi* | [**get_operator_events_api_v2_dataset_runs_operator_events_get**](docs/DefaultApi.md#get_operator_events_api_v2_dataset_runs_operator_events_get) | **GET** /api/v2/dataset_runs/operator_events | Get Operator Events
228
229
  *DefaultApi* | [**get_operator_metrics_api_v2_dataset_runs_operator_get**](docs/DefaultApi.md#get_operator_metrics_api_v2_dataset_runs_operator_get) | **GET** /api/v2/dataset_runs/operator | Get Operator Metrics
229
230
  *DefaultApi* | [**get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post**](docs/DefaultApi.md#get_or_create_build_from_image_uri_api_v2_builds_get_or_create_build_from_image_uri_post) | **POST** /api/v2/builds/get_or_create_build_from_image_uri | Get Or Create Build From Image Uri
@@ -516,6 +517,7 @@ Class | Method | HTTP request | Description
516
517
  - [CloudwithcloudresourceResponse](docs/CloudwithcloudresourceResponse.md)
517
518
  - [CloudwithcloudresourcegcpResponse](docs/CloudwithcloudresourcegcpResponse.md)
518
519
  - [ClusterAuthResponse](docs/ClusterAuthResponse.md)
520
+ - [ClusterDashboardNode](docs/ClusterDashboardNode.md)
519
521
  - [ClusterEnvironmentsQuery](docs/ClusterEnvironmentsQuery.md)
520
522
  - [ClusterEvent](docs/ClusterEvent.md)
521
523
  - [ClusterEventSource](docs/ClusterEventSource.md)
@@ -527,6 +529,7 @@ Class | Method | HTTP request | Description
527
529
  - [ClusterStatus](docs/ClusterStatus.md)
528
530
  - [ClusterStatusDetails](docs/ClusterStatusDetails.md)
529
531
  - [ClusterauthresponseResponse](docs/ClusterauthresponseResponse.md)
532
+ - [ClusterdashboardnodeListResponse](docs/ClusterdashboardnodeListResponse.md)
530
533
  - [ClustereventListResponse](docs/ClustereventListResponse.md)
531
534
  - [ClustereventsoutputResponse](docs/ClustereventsoutputResponse.md)
532
535
  - [ClusteroperationResponse](docs/ClusteroperationResponse.md)
@@ -812,6 +815,7 @@ Class | Method | HTTP request | Description
812
815
  - [NodeRegistrationK8S](docs/NodeRegistrationK8S.md)
813
816
  - [NodeRegistrationProvisioned](docs/NodeRegistrationProvisioned.md)
814
817
  - [NodeRegistrationV2](docs/NodeRegistrationV2.md)
818
+ - [NodeStatus](docs/NodeStatus.md)
815
819
  - [NodeType](docs/NodeType.md)
816
820
  - [NotificationChannelEmailConfig](docs/NotificationChannelEmailConfig.md)
817
821
  - [NotificationChannelSlackConfig](docs/NotificationChannelSlackConfig.md)
@@ -137,6 +137,7 @@ from openapi_client.models.cloudresourcegcp_response import CloudresourcegcpResp
137
137
  from openapi_client.models.cloudwithcloudresource_response import CloudwithcloudresourceResponse
138
138
  from openapi_client.models.cloudwithcloudresourcegcp_response import CloudwithcloudresourcegcpResponse
139
139
  from openapi_client.models.cluster_auth_response import ClusterAuthResponse
140
+ from openapi_client.models.cluster_dashboard_node import ClusterDashboardNode
140
141
  from openapi_client.models.cluster_environments_query import ClusterEnvironmentsQuery
141
142
  from openapi_client.models.cluster_event import ClusterEvent
142
143
  from openapi_client.models.cluster_event_source import ClusterEventSource
@@ -148,6 +149,7 @@ from openapi_client.models.cluster_state import ClusterState
148
149
  from openapi_client.models.cluster_status import ClusterStatus
149
150
  from openapi_client.models.cluster_status_details import ClusterStatusDetails
150
151
  from openapi_client.models.clusterauthresponse_response import ClusterauthresponseResponse
152
+ from openapi_client.models.clusterdashboardnode_list_response import ClusterdashboardnodeListResponse
151
153
  from openapi_client.models.clusterevent_list_response import ClustereventListResponse
152
154
  from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
153
155
  from openapi_client.models.clusteroperation_response import ClusteroperationResponse
@@ -433,6 +435,7 @@ from openapi_client.models.node_registration_gcp import NodeRegistrationGCP
433
435
  from openapi_client.models.node_registration_k8_s import NodeRegistrationK8S
434
436
  from openapi_client.models.node_registration_provisioned import NodeRegistrationProvisioned
435
437
  from openapi_client.models.node_registration_v2 import NodeRegistrationV2
438
+ from openapi_client.models.node_status import NodeStatus
436
439
  from openapi_client.models.node_type import NodeType
437
440
  from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
438
441
  from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
@@ -17650,6 +17650,139 @@ class DefaultApi(object):
17650
17650
  _request_timeout=local_var_params.get('_request_timeout'),
17651
17651
  collection_formats=collection_formats)
17652
17652
 
17653
+ def get_nodes_api_v2_cluster_dashboard_get(self, cluster_id, **kwargs): # noqa: E501
17654
+ """Get Nodes # noqa: E501
17655
+
17656
+ This method makes a synchronous HTTP request by default. To make an
17657
+ asynchronous HTTP request, please pass async_req=True
17658
+ >>> thread = api.get_nodes_api_v2_cluster_dashboard_get(cluster_id, async_req=True)
17659
+ >>> result = thread.get()
17660
+
17661
+ :param async_req bool: execute request asynchronously
17662
+ :param str cluster_id: (required)
17663
+ :param str session_name: The name of the session to fetch nodes for.
17664
+ :param list[NodeStatus] states_filter: The states to filter the nodes by.
17665
+ :param int page: The page number to fetch.
17666
+ :param int page_size: The number of nodes to fetch per page.
17667
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
17668
+ be returned without reading/decoding response
17669
+ data. Default is True.
17670
+ :param _request_timeout: timeout setting for this request. If one
17671
+ number provided, it will be total request
17672
+ timeout. It can also be a pair (tuple) of
17673
+ (connection, read) timeouts.
17674
+ :return: ClusterdashboardnodeListResponse
17675
+ If the method is called asynchronously,
17676
+ returns the request thread.
17677
+ """
17678
+ kwargs['_return_http_data_only'] = True
17679
+ return self.get_nodes_api_v2_cluster_dashboard_get_with_http_info(cluster_id, **kwargs) # noqa: E501
17680
+
17681
+ def get_nodes_api_v2_cluster_dashboard_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
17682
+ """Get Nodes # noqa: E501
17683
+
17684
+ This method makes a synchronous HTTP request by default. To make an
17685
+ asynchronous HTTP request, please pass async_req=True
17686
+ >>> thread = api.get_nodes_api_v2_cluster_dashboard_get_with_http_info(cluster_id, async_req=True)
17687
+ >>> result = thread.get()
17688
+
17689
+ :param async_req bool: execute request asynchronously
17690
+ :param str cluster_id: (required)
17691
+ :param str session_name: The name of the session to fetch nodes for.
17692
+ :param list[NodeStatus] states_filter: The states to filter the nodes by.
17693
+ :param int page: The page number to fetch.
17694
+ :param int page_size: The number of nodes to fetch per page.
17695
+ :param _return_http_data_only: response data without head status code
17696
+ and headers
17697
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
17698
+ be returned without reading/decoding response
17699
+ data. Default is True.
17700
+ :param _request_timeout: timeout setting for this request. If one
17701
+ number provided, it will be total request
17702
+ timeout. It can also be a pair (tuple) of
17703
+ (connection, read) timeouts.
17704
+ :return: tuple(ClusterdashboardnodeListResponse, status_code(int), headers(HTTPHeaderDict))
17705
+ If the method is called asynchronously,
17706
+ returns the request thread.
17707
+ """
17708
+
17709
+ local_var_params = locals()
17710
+
17711
+ all_params = [
17712
+ 'cluster_id',
17713
+ 'session_name',
17714
+ 'states_filter',
17715
+ 'page',
17716
+ 'page_size'
17717
+ ]
17718
+ all_params.extend(
17719
+ [
17720
+ 'async_req',
17721
+ '_return_http_data_only',
17722
+ '_preload_content',
17723
+ '_request_timeout'
17724
+ ]
17725
+ )
17726
+
17727
+ for key, val in six.iteritems(local_var_params['kwargs']):
17728
+ if key not in all_params:
17729
+ raise ApiTypeError(
17730
+ "Got an unexpected keyword argument '%s'"
17731
+ " to method get_nodes_api_v2_cluster_dashboard_get" % key
17732
+ )
17733
+ local_var_params[key] = val
17734
+ del local_var_params['kwargs']
17735
+ # verify the required parameter 'cluster_id' is set
17736
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
17737
+ local_var_params['cluster_id'] is None): # noqa: E501
17738
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_nodes_api_v2_cluster_dashboard_get`") # noqa: E501
17739
+
17740
+ collection_formats = {}
17741
+
17742
+ path_params = {}
17743
+
17744
+ query_params = []
17745
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
17746
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
17747
+ if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
17748
+ query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
17749
+ if 'states_filter' in local_var_params and local_var_params['states_filter'] is not None: # noqa: E501
17750
+ query_params.append(('states_filter', local_var_params['states_filter'])) # noqa: E501
17751
+ collection_formats['states_filter'] = 'multi' # noqa: E501
17752
+ if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
17753
+ query_params.append(('page', local_var_params['page'])) # noqa: E501
17754
+ if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
17755
+ query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
17756
+
17757
+ header_params = {}
17758
+
17759
+ form_params = []
17760
+ local_var_files = {}
17761
+
17762
+ body_params = None
17763
+ # HTTP header `Accept`
17764
+ header_params['Accept'] = self.api_client.select_header_accept(
17765
+ ['application/json']) # noqa: E501
17766
+
17767
+ # Authentication setting
17768
+ auth_settings = [] # noqa: E501
17769
+
17770
+ return self.api_client.call_api(
17771
+ '/api/v2/cluster_dashboard/', 'GET',
17772
+ path_params,
17773
+ query_params,
17774
+ header_params,
17775
+ body=body_params,
17776
+ post_params=form_params,
17777
+ files=local_var_files,
17778
+ response_type='ClusterdashboardnodeListResponse', # noqa: E501
17779
+ auth_settings=auth_settings,
17780
+ async_req=local_var_params.get('async_req'),
17781
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
17782
+ _preload_content=local_var_params.get('_preload_content', True),
17783
+ _request_timeout=local_var_params.get('_request_timeout'),
17784
+ collection_formats=collection_formats)
17785
+
17653
17786
  def get_operator_events_api_v2_dataset_runs_operator_events_get(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
17654
17787
  """Get Operator Events # noqa: E501
17655
17788
 
@@ -123,6 +123,7 @@ from openapi_client.models.cloudresourcegcp_response import CloudresourcegcpResp
123
123
  from openapi_client.models.cloudwithcloudresource_response import CloudwithcloudresourceResponse
124
124
  from openapi_client.models.cloudwithcloudresourcegcp_response import CloudwithcloudresourcegcpResponse
125
125
  from openapi_client.models.cluster_auth_response import ClusterAuthResponse
126
+ from openapi_client.models.cluster_dashboard_node import ClusterDashboardNode
126
127
  from openapi_client.models.cluster_environments_query import ClusterEnvironmentsQuery
127
128
  from openapi_client.models.cluster_event import ClusterEvent
128
129
  from openapi_client.models.cluster_event_source import ClusterEventSource
@@ -134,6 +135,7 @@ from openapi_client.models.cluster_state import ClusterState
134
135
  from openapi_client.models.cluster_status import ClusterStatus
135
136
  from openapi_client.models.cluster_status_details import ClusterStatusDetails
136
137
  from openapi_client.models.clusterauthresponse_response import ClusterauthresponseResponse
138
+ from openapi_client.models.clusterdashboardnode_list_response import ClusterdashboardnodeListResponse
137
139
  from openapi_client.models.clusterevent_list_response import ClustereventListResponse
138
140
  from openapi_client.models.clustereventsoutput_response import ClustereventsoutputResponse
139
141
  from openapi_client.models.clusteroperation_response import ClusteroperationResponse
@@ -419,6 +421,7 @@ from openapi_client.models.node_registration_gcp import NodeRegistrationGCP
419
421
  from openapi_client.models.node_registration_k8_s import NodeRegistrationK8S
420
422
  from openapi_client.models.node_registration_provisioned import NodeRegistrationProvisioned
421
423
  from openapi_client.models.node_registration_v2 import NodeRegistrationV2
424
+ from openapi_client.models.node_status import NodeStatus
422
425
  from openapi_client.models.node_type import NodeType
423
426
  from openapi_client.models.notification_channel_email_config import NotificationChannelEmailConfig
424
427
  from openapi_client.models.notification_channel_slack_config import NotificationChannelSlackConfig
@@ -59,7 +59,10 @@ class AggregatedInstanceUsageCSV(object):
59
59
  'gpu_count': 'int',
60
60
  'anyscale_managed_machine_pool_id': 'str',
61
61
  'anyscale_managed_machine_pool_name': 'str',
62
- 'user_defined_machine_type': 'str'
62
+ 'user_defined_machine_type': 'str',
63
+ 'workspace_name': 'str',
64
+ 'job_name': 'str',
65
+ 'service_name': 'str'
63
66
  }
64
67
 
65
68
  attribute_map = {
@@ -89,10 +92,13 @@ class AggregatedInstanceUsageCSV(object):
89
92
  'gpu_count': 'gpu_count',
90
93
  'anyscale_managed_machine_pool_id': 'anyscale_managed_machine_pool_id',
91
94
  'anyscale_managed_machine_pool_name': 'anyscale_managed_machine_pool_name',
92
- 'user_defined_machine_type': 'user_defined_machine_type'
95
+ 'user_defined_machine_type': 'user_defined_machine_type',
96
+ 'workspace_name': 'workspace_name',
97
+ 'job_name': 'job_name',
98
+ 'service_name': 'service_name'
93
99
  }
94
100
 
95
- def __init__(self, date=None, organization_id=None, organization_name=None, cloud_hosting_type=None, cloud_id=None, cloud_name=None, project_id=None, project_name=None, user_id=None, user_email=None, cluster_id=None, workspace_id=None, job_id=None, job_queue_id=None, service_id=None, instance_type=None, instance_seconds=None, cloud_provider=None, anyscale_credits=None, compute_stack=None, gpu_type=None, memory_mib=None, cpu_count=None, gpu_count=None, anyscale_managed_machine_pool_id=None, anyscale_managed_machine_pool_name=None, user_defined_machine_type=None, local_vars_configuration=None): # noqa: E501
101
+ def __init__(self, date=None, organization_id=None, organization_name=None, cloud_hosting_type=None, cloud_id=None, cloud_name=None, project_id=None, project_name=None, user_id=None, user_email=None, cluster_id=None, workspace_id=None, job_id=None, job_queue_id=None, service_id=None, instance_type=None, instance_seconds=None, cloud_provider=None, anyscale_credits=None, compute_stack=None, gpu_type=None, memory_mib=None, cpu_count=None, gpu_count=None, anyscale_managed_machine_pool_id=None, anyscale_managed_machine_pool_name=None, user_defined_machine_type=None, workspace_name=None, job_name=None, service_name=None, local_vars_configuration=None): # noqa: E501
96
102
  """AggregatedInstanceUsageCSV - a model defined in OpenAPI""" # noqa: E501
97
103
  if local_vars_configuration is None:
98
104
  local_vars_configuration = Configuration()
@@ -125,6 +131,9 @@ class AggregatedInstanceUsageCSV(object):
125
131
  self._anyscale_managed_machine_pool_id = None
126
132
  self._anyscale_managed_machine_pool_name = None
127
133
  self._user_defined_machine_type = None
134
+ self._workspace_name = None
135
+ self._job_name = None
136
+ self._service_name = None
128
137
  self.discriminator = None
129
138
 
130
139
  self.date = date
@@ -166,6 +175,12 @@ class AggregatedInstanceUsageCSV(object):
166
175
  self.anyscale_managed_machine_pool_name = anyscale_managed_machine_pool_name
167
176
  if user_defined_machine_type is not None:
168
177
  self.user_defined_machine_type = user_defined_machine_type
178
+ if workspace_name is not None:
179
+ self.workspace_name = workspace_name
180
+ if job_name is not None:
181
+ self.job_name = job_name
182
+ if service_name is not None:
183
+ self.service_name = service_name
169
184
 
170
185
  @property
171
186
  def date(self):
@@ -764,6 +779,69 @@ class AggregatedInstanceUsageCSV(object):
764
779
 
765
780
  self._user_defined_machine_type = user_defined_machine_type
766
781
 
782
+ @property
783
+ def workspace_name(self):
784
+ """Gets the workspace_name of this AggregatedInstanceUsageCSV. # noqa: E501
785
+
786
+
787
+ :return: The workspace_name of this AggregatedInstanceUsageCSV. # noqa: E501
788
+ :rtype: str
789
+ """
790
+ return self._workspace_name
791
+
792
+ @workspace_name.setter
793
+ def workspace_name(self, workspace_name):
794
+ """Sets the workspace_name of this AggregatedInstanceUsageCSV.
795
+
796
+
797
+ :param workspace_name: The workspace_name of this AggregatedInstanceUsageCSV. # noqa: E501
798
+ :type: str
799
+ """
800
+
801
+ self._workspace_name = workspace_name
802
+
803
+ @property
804
+ def job_name(self):
805
+ """Gets the job_name of this AggregatedInstanceUsageCSV. # noqa: E501
806
+
807
+
808
+ :return: The job_name of this AggregatedInstanceUsageCSV. # noqa: E501
809
+ :rtype: str
810
+ """
811
+ return self._job_name
812
+
813
+ @job_name.setter
814
+ def job_name(self, job_name):
815
+ """Sets the job_name of this AggregatedInstanceUsageCSV.
816
+
817
+
818
+ :param job_name: The job_name of this AggregatedInstanceUsageCSV. # noqa: E501
819
+ :type: str
820
+ """
821
+
822
+ self._job_name = job_name
823
+
824
+ @property
825
+ def service_name(self):
826
+ """Gets the service_name of this AggregatedInstanceUsageCSV. # noqa: E501
827
+
828
+
829
+ :return: The service_name of this AggregatedInstanceUsageCSV. # noqa: E501
830
+ :rtype: str
831
+ """
832
+ return self._service_name
833
+
834
+ @service_name.setter
835
+ def service_name(self, service_name):
836
+ """Sets the service_name of this AggregatedInstanceUsageCSV.
837
+
838
+
839
+ :param service_name: The service_name of this AggregatedInstanceUsageCSV. # noqa: E501
840
+ :type: str
841
+ """
842
+
843
+ self._service_name = service_name
844
+
767
845
  def to_dict(self):
768
846
  """Returns the model properties as a dict"""
769
847
  result = {}