anyscale 0.26.15__py3-none-any.whl → 0.26.17__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 (66) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +4 -2
  2. anyscale/_private/anyscale_client/common.py +6 -4
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +15 -6
  4. anyscale/_private/docgen/__main__.py +4 -4
  5. anyscale/_private/docgen/generator.py +2 -2
  6. anyscale/_private/sdk/__init__.py +2 -2
  7. anyscale/_private/workload/workload_sdk.py +6 -4
  8. anyscale/aggregated_instance_usage/commands.py +6 -2
  9. anyscale/anyscale-cloud-setup-gcp.yaml +2 -0
  10. anyscale/client/README.md +11 -6
  11. anyscale/client/openapi_client/__init__.py +8 -4
  12. anyscale/client/openapi_client/api/default_api.py +402 -270
  13. anyscale/client/openapi_client/models/__init__.py +8 -4
  14. anyscale/client/openapi_client/models/alert_type.py +11 -2
  15. anyscale/client/openapi_client/models/create_job_queue_requests.py +3 -32
  16. anyscale/client/openapi_client/models/i_know_response.py +174 -0
  17. anyscale/client/openapi_client/models/i_know_time_series_event.py +148 -0
  18. anyscale/client/openapi_client/models/job_report.py +199 -0
  19. anyscale/client/openapi_client/models/job_with_report.py +254 -0
  20. anyscale/client/openapi_client/models/jobwithreport_list_response.py +147 -0
  21. anyscale/client/openapi_client/models/{product_autoscaler_flag.py → list_ray_sessions_response.py} +22 -23
  22. anyscale/client/openapi_client/models/{productautoscalerflag_response.py → listraysessionsresponse_response.py} +11 -11
  23. anyscale/client/openapi_client/models/metric.py +133 -3
  24. anyscale/client/openapi_client/models/ray_session.py +121 -0
  25. anyscale/cloud/__init__.py +2 -2
  26. anyscale/cloud/_private/cloud_sdk.py +2 -2
  27. anyscale/cloud/commands.py +9 -6
  28. anyscale/cloud_utils.py +5 -4
  29. anyscale/cluster_compute.py +2 -2
  30. anyscale/cluster_env.py +2 -0
  31. anyscale/commands/cloud_commands.py +43 -0
  32. anyscale/commands/login_commands.py +24 -3
  33. anyscale/commands/schedule_commands.py +2 -1
  34. anyscale/compute_config/commands.py +15 -7
  35. anyscale/controllers/cloud_controller.py +151 -8
  36. anyscale/controllers/cluster_controller.py +1 -0
  37. anyscale/controllers/job_controller.py +1 -1
  38. anyscale/controllers/service_controller.py +1 -0
  39. anyscale/image/commands.py +6 -6
  40. anyscale/job/_private/job_sdk.py +22 -24
  41. anyscale/job/commands.py +12 -12
  42. anyscale/organization_invitation/commands.py +11 -7
  43. anyscale/project/__init__.py +2 -2
  44. anyscale/project/_private/project_sdk.py +2 -2
  45. anyscale/project/commands.py +3 -3
  46. anyscale/project_utils.py +1 -1
  47. anyscale/resource_quota/commands.py +18 -10
  48. anyscale/schedule/commands.py +12 -8
  49. anyscale/sdk/anyscale_client/sdk.py +1 -0
  50. anyscale/service/commands.py +17 -17
  51. anyscale/service_account/commands.py +12 -10
  52. anyscale/user/commands.py +5 -3
  53. anyscale/utils/gcp_utils.py +25 -9
  54. anyscale/version.py +1 -1
  55. anyscale/workspace/__init__.py +1 -1
  56. anyscale/workspace/_private/workspace_sdk.py +5 -3
  57. anyscale/workspace/commands.py +26 -24
  58. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/METADATA +1 -1
  59. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/RECORD +64 -60
  60. anyscale/client/openapi_client/models/aviary_model_config_v2.py +0 -358
  61. anyscale/client/openapi_client/models/finish_ft_job_request_v2.py +0 -183
  62. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/LICENSE +0 -0
  63. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/NOTICE +0 -0
  64. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/WHEEL +0 -0
  65. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/entry_points.txt +0 -0
  66. {anyscale-0.26.15.dist-info → anyscale-0.26.17.dist-info}/top_level.txt +0 -0
@@ -11545,122 +11545,6 @@ class DefaultApi(object):
11545
11545
  _request_timeout=local_var_params.get('_request_timeout'),
11546
11546
  collection_formats=collection_formats)
11547
11547
 
11548
- def fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post(self, finish_ft_job_request_v2, **kwargs): # noqa: E501
11549
- """Fine Tuning Job Callback V2 # noqa: E501
11550
-
11551
- This method makes a synchronous HTTP request by default. To make an
11552
- asynchronous HTTP request, please pass async_req=True
11553
- >>> thread = api.fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post(finish_ft_job_request_v2, async_req=True)
11554
- >>> result = thread.get()
11555
-
11556
- :param async_req bool: execute request asynchronously
11557
- :param FinishFTJobRequestV2 finish_ft_job_request_v2: (required)
11558
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11559
- be returned without reading/decoding response
11560
- data. Default is True.
11561
- :param _request_timeout: timeout setting for this request. If one
11562
- number provided, it will be total request
11563
- timeout. It can also be a pair (tuple) of
11564
- (connection, read) timeouts.
11565
- :return: None
11566
- If the method is called asynchronously,
11567
- returns the request thread.
11568
- """
11569
- kwargs['_return_http_data_only'] = True
11570
- return self.fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post_with_http_info(finish_ft_job_request_v2, **kwargs) # noqa: E501
11571
-
11572
- def fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post_with_http_info(self, finish_ft_job_request_v2, **kwargs): # noqa: E501
11573
- """Fine Tuning Job Callback V2 # noqa: E501
11574
-
11575
- This method makes a synchronous HTTP request by default. To make an
11576
- asynchronous HTTP request, please pass async_req=True
11577
- >>> thread = api.fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post_with_http_info(finish_ft_job_request_v2, async_req=True)
11578
- >>> result = thread.get()
11579
-
11580
- :param async_req bool: execute request asynchronously
11581
- :param FinishFTJobRequestV2 finish_ft_job_request_v2: (required)
11582
- :param _return_http_data_only: response data without head status code
11583
- and headers
11584
- :param _preload_content: if False, the urllib3.HTTPResponse object will
11585
- be returned without reading/decoding response
11586
- data. Default is True.
11587
- :param _request_timeout: timeout setting for this request. If one
11588
- number provided, it will be total request
11589
- timeout. It can also be a pair (tuple) of
11590
- (connection, read) timeouts.
11591
- :return: None
11592
- If the method is called asynchronously,
11593
- returns the request thread.
11594
- """
11595
-
11596
- local_var_params = locals()
11597
-
11598
- all_params = [
11599
- 'finish_ft_job_request_v2'
11600
- ]
11601
- all_params.extend(
11602
- [
11603
- 'async_req',
11604
- '_return_http_data_only',
11605
- '_preload_content',
11606
- '_request_timeout'
11607
- ]
11608
- )
11609
-
11610
- for key, val in six.iteritems(local_var_params['kwargs']):
11611
- if key not in all_params:
11612
- raise ApiTypeError(
11613
- "Got an unexpected keyword argument '%s'"
11614
- " to method fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post" % key
11615
- )
11616
- local_var_params[key] = val
11617
- del local_var_params['kwargs']
11618
- # verify the required parameter 'finish_ft_job_request_v2' is set
11619
- if self.api_client.client_side_validation and ('finish_ft_job_request_v2' not in local_var_params or # noqa: E501
11620
- local_var_params['finish_ft_job_request_v2'] is None): # noqa: E501
11621
- raise ApiValueError("Missing the required parameter `finish_ft_job_request_v2` when calling `fine_tuning_job_callback_v2_api_v2_fine_tuning_v2_jobs_internal_finish_post`") # noqa: E501
11622
-
11623
- collection_formats = {}
11624
-
11625
- path_params = {}
11626
-
11627
- query_params = []
11628
-
11629
- header_params = {}
11630
-
11631
- form_params = []
11632
- local_var_files = {}
11633
-
11634
- body_params = None
11635
- if 'finish_ft_job_request_v2' in local_var_params:
11636
- body_params = local_var_params['finish_ft_job_request_v2']
11637
- # HTTP header `Accept`
11638
- header_params['Accept'] = self.api_client.select_header_accept(
11639
- ['application/json']) # noqa: E501
11640
-
11641
- # HTTP header `Content-Type`
11642
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
11643
- ['application/json']) # noqa: E501
11644
-
11645
- # Authentication setting
11646
- auth_settings = [] # noqa: E501
11647
-
11648
- return self.api_client.call_api(
11649
- '/api/v2/fine_tuning_v2/jobs/internal/finish', 'POST',
11650
- path_params,
11651
- query_params,
11652
- header_params,
11653
- body=body_params,
11654
- post_params=form_params,
11655
- files=local_var_files,
11656
- response_type=None, # noqa: E501
11657
- auth_settings=auth_settings,
11658
- async_req=local_var_params.get('async_req'),
11659
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
11660
- _preload_content=local_var_params.get('_preload_content', True),
11661
- _request_timeout=local_var_params.get('_request_timeout'),
11662
- collection_formats=collection_formats)
11663
-
11664
11548
  def finish_session_command_api_v2_session_commands_session_command_id_finish_post(self, session_command_id, session_command_finish_options, **kwargs): # noqa: E501
11665
11549
  """Finish Session Command # noqa: E501
11666
11550
 
@@ -13768,118 +13652,6 @@ class DefaultApi(object):
13768
13652
  _request_timeout=local_var_params.get('_request_timeout'),
13769
13653
  collection_formats=collection_formats)
13770
13654
 
13771
- def get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get(self, session_id, **kwargs): # noqa: E501
13772
- """Get Cluster Product Autoscaler Flag # noqa: E501
13773
-
13774
- This method makes a synchronous HTTP request by default. To make an
13775
- asynchronous HTTP request, please pass async_req=True
13776
- >>> thread = api.get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get(session_id, async_req=True)
13777
- >>> result = thread.get()
13778
-
13779
- :param async_req bool: execute request asynchronously
13780
- :param str session_id: (required)
13781
- :param _preload_content: if False, the urllib3.HTTPResponse object will
13782
- be returned without reading/decoding response
13783
- data. Default is True.
13784
- :param _request_timeout: timeout setting for this request. If one
13785
- number provided, it will be total request
13786
- timeout. It can also be a pair (tuple) of
13787
- (connection, read) timeouts.
13788
- :return: ProductautoscalerflagResponse
13789
- If the method is called asynchronously,
13790
- returns the request thread.
13791
- """
13792
- kwargs['_return_http_data_only'] = True
13793
- return self.get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
13794
-
13795
- def get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
13796
- """Get Cluster Product Autoscaler Flag # noqa: E501
13797
-
13798
- This method makes a synchronous HTTP request by default. To make an
13799
- asynchronous HTTP request, please pass async_req=True
13800
- >>> thread = api.get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get_with_http_info(session_id, async_req=True)
13801
- >>> result = thread.get()
13802
-
13803
- :param async_req bool: execute request asynchronously
13804
- :param str session_id: (required)
13805
- :param _return_http_data_only: response data without head status code
13806
- and headers
13807
- :param _preload_content: if False, the urllib3.HTTPResponse object will
13808
- be returned without reading/decoding response
13809
- data. Default is True.
13810
- :param _request_timeout: timeout setting for this request. If one
13811
- number provided, it will be total request
13812
- timeout. It can also be a pair (tuple) of
13813
- (connection, read) timeouts.
13814
- :return: tuple(ProductautoscalerflagResponse, status_code(int), headers(HTTPHeaderDict))
13815
- If the method is called asynchronously,
13816
- returns the request thread.
13817
- """
13818
-
13819
- local_var_params = locals()
13820
-
13821
- all_params = [
13822
- 'session_id'
13823
- ]
13824
- all_params.extend(
13825
- [
13826
- 'async_req',
13827
- '_return_http_data_only',
13828
- '_preload_content',
13829
- '_request_timeout'
13830
- ]
13831
- )
13832
-
13833
- for key, val in six.iteritems(local_var_params['kwargs']):
13834
- if key not in all_params:
13835
- raise ApiTypeError(
13836
- "Got an unexpected keyword argument '%s'"
13837
- " to method get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get" % key
13838
- )
13839
- local_var_params[key] = val
13840
- del local_var_params['kwargs']
13841
- # verify the required parameter 'session_id' is set
13842
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
13843
- local_var_params['session_id'] is None): # noqa: E501
13844
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_cluster_product_autoscaler_flag_api_v2_logs_cluster_product_autoscaler_flag_session_id_get`") # noqa: E501
13845
-
13846
- collection_formats = {}
13847
-
13848
- path_params = {}
13849
- if 'session_id' in local_var_params:
13850
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
13851
-
13852
- query_params = []
13853
-
13854
- header_params = {}
13855
-
13856
- form_params = []
13857
- local_var_files = {}
13858
-
13859
- body_params = None
13860
- # HTTP header `Accept`
13861
- header_params['Accept'] = self.api_client.select_header_accept(
13862
- ['application/json']) # noqa: E501
13863
-
13864
- # Authentication setting
13865
- auth_settings = [] # noqa: E501
13866
-
13867
- return self.api_client.call_api(
13868
- '/api/v2/logs/cluster_product_autoscaler_flag/{session_id}', 'GET',
13869
- path_params,
13870
- query_params,
13871
- header_params,
13872
- body=body_params,
13873
- post_params=form_params,
13874
- files=local_var_files,
13875
- response_type='ProductautoscalerflagResponse', # noqa: E501
13876
- auth_settings=auth_settings,
13877
- async_req=local_var_params.get('async_req'),
13878
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
13879
- _preload_content=local_var_params.get('_preload_content', True),
13880
- _request_timeout=local_var_params.get('_request_timeout'),
13881
- collection_formats=collection_formats)
13882
-
13883
13655
  def get_compute_template_api_v2_compute_templates_template_id_get(self, template_id, **kwargs): # noqa: E501
13884
13656
  """Get Compute Template # noqa: E501
13885
13657
 
@@ -20164,16 +19936,16 @@ class DefaultApi(object):
20164
19936
  _request_timeout=local_var_params.get('_request_timeout'),
20165
19937
  collection_formats=collection_formats)
20166
19938
 
20167
- def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(self, session_id, **kwargs): # noqa: E501
20168
- """Get Runtime Env Logs Download # noqa: E501
19939
+ def get_root_cause_api_v2_iknow_get(self, cluster_id, **kwargs): # noqa: E501
19940
+ """Get Root Cause # noqa: E501
20169
19941
 
20170
19942
  This method makes a synchronous HTTP request by default. To make an
20171
19943
  asynchronous HTTP request, please pass async_req=True
20172
- >>> thread = api.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(session_id, async_req=True)
19944
+ >>> thread = api.get_root_cause_api_v2_iknow_get(cluster_id, async_req=True)
20173
19945
  >>> result = thread.get()
20174
19946
 
20175
19947
  :param async_req bool: execute request asynchronously
20176
- :param str session_id: (required)
19948
+ :param str cluster_id: (required)
20177
19949
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20178
19950
  be returned without reading/decoding response
20179
19951
  data. Default is True.
@@ -20181,23 +19953,23 @@ class DefaultApi(object):
20181
19953
  number provided, it will be total request
20182
19954
  timeout. It can also be a pair (tuple) of
20183
19955
  (connection, read) timeouts.
20184
- :return: LogdownloadresultResponse
19956
+ :return: IKnowResponse
20185
19957
  If the method is called asynchronously,
20186
19958
  returns the request thread.
20187
19959
  """
20188
19960
  kwargs['_return_http_data_only'] = True
20189
- return self.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
19961
+ return self.get_root_cause_api_v2_iknow_get_with_http_info(cluster_id, **kwargs) # noqa: E501
20190
19962
 
20191
- def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
20192
- """Get Runtime Env Logs Download # noqa: E501
19963
+ def get_root_cause_api_v2_iknow_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
19964
+ """Get Root Cause # noqa: E501
20193
19965
 
20194
19966
  This method makes a synchronous HTTP request by default. To make an
20195
19967
  asynchronous HTTP request, please pass async_req=True
20196
- >>> thread = api.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(session_id, async_req=True)
19968
+ >>> thread = api.get_root_cause_api_v2_iknow_get_with_http_info(cluster_id, async_req=True)
20197
19969
  >>> result = thread.get()
20198
19970
 
20199
19971
  :param async_req bool: execute request asynchronously
20200
- :param str session_id: (required)
19972
+ :param str cluster_id: (required)
20201
19973
  :param _return_http_data_only: response data without head status code
20202
19974
  and headers
20203
19975
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20207,7 +19979,7 @@ class DefaultApi(object):
20207
19979
  number provided, it will be total request
20208
19980
  timeout. It can also be a pair (tuple) of
20209
19981
  (connection, read) timeouts.
20210
- :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
19982
+ :return: tuple(IKnowResponse, status_code(int), headers(HTTPHeaderDict))
20211
19983
  If the method is called asynchronously,
20212
19984
  returns the request thread.
20213
19985
  """
@@ -20215,7 +19987,7 @@ class DefaultApi(object):
20215
19987
  local_var_params = locals()
20216
19988
 
20217
19989
  all_params = [
20218
- 'session_id'
19990
+ 'cluster_id'
20219
19991
  ]
20220
19992
  all_params.extend(
20221
19993
  [
@@ -20230,22 +20002,22 @@ class DefaultApi(object):
20230
20002
  if key not in all_params:
20231
20003
  raise ApiTypeError(
20232
20004
  "Got an unexpected keyword argument '%s'"
20233
- " to method get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get" % key
20005
+ " to method get_root_cause_api_v2_iknow_get" % key
20234
20006
  )
20235
20007
  local_var_params[key] = val
20236
20008
  del local_var_params['kwargs']
20237
- # verify the required parameter 'session_id' is set
20238
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
20239
- local_var_params['session_id'] is None): # noqa: E501
20240
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get`") # noqa: E501
20009
+ # verify the required parameter 'cluster_id' is set
20010
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
20011
+ local_var_params['cluster_id'] is None): # noqa: E501
20012
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_root_cause_api_v2_iknow_get`") # noqa: E501
20241
20013
 
20242
20014
  collection_formats = {}
20243
20015
 
20244
20016
  path_params = {}
20245
- if 'session_id' in local_var_params:
20246
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
20247
20017
 
20248
20018
  query_params = []
20019
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
20020
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
20249
20021
 
20250
20022
  header_params = {}
20251
20023
 
@@ -20261,14 +20033,14 @@ class DefaultApi(object):
20261
20033
  auth_settings = [] # noqa: E501
20262
20034
 
20263
20035
  return self.api_client.call_api(
20264
- '/api/v2/logs/runtime_env_logs_download/{session_id}', 'GET',
20036
+ '/api/v2/iknow/', 'GET',
20265
20037
  path_params,
20266
20038
  query_params,
20267
20039
  header_params,
20268
20040
  body=body_params,
20269
20041
  post_params=form_params,
20270
20042
  files=local_var_files,
20271
- response_type='LogdownloadresultResponse', # noqa: E501
20043
+ response_type='IKnowResponse', # noqa: E501
20272
20044
  auth_settings=auth_settings,
20273
20045
  async_req=local_var_params.get('async_req'),
20274
20046
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20276,20 +20048,16 @@ class DefaultApi(object):
20276
20048
  _request_timeout=local_var_params.get('_request_timeout'),
20277
20049
  collection_formats=collection_formats)
20278
20050
 
20279
- def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
20280
- """Get Serve Logs Download # noqa: E501
20051
+ def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(self, session_id, **kwargs): # noqa: E501
20052
+ """Get Runtime Env Logs Download # noqa: E501
20281
20053
 
20282
- Fetches the serve controller logs of the cluster. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. TODO(aguo): Implement job alive or dead detection # noqa: E501
20283
20054
  This method makes a synchronous HTTP request by default. To make an
20284
20055
  asynchronous HTTP request, please pass async_req=True
20285
- >>> thread = api.get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(cluster_id, async_req=True)
20056
+ >>> thread = api.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(session_id, async_req=True)
20286
20057
  >>> result = thread.get()
20287
20058
 
20288
20059
  :param async_req bool: execute request asynchronously
20289
- :param str cluster_id: (required)
20290
- :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
20291
- :param str next_page_token: Pagination token for getting newer logs.
20292
- :param str previous_page_token: Pagination token for getting older logs.
20060
+ :param str session_id: (required)
20293
20061
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20294
20062
  be returned without reading/decoding response
20295
20063
  data. Default is True.
@@ -20302,22 +20070,18 @@ class DefaultApi(object):
20302
20070
  returns the request thread.
20303
20071
  """
20304
20072
  kwargs['_return_http_data_only'] = True
20305
- return self.get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get_with_http_info(cluster_id, **kwargs) # noqa: E501
20073
+ return self.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
20306
20074
 
20307
- def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
20308
- """Get Serve Logs Download # noqa: E501
20075
+ def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
20076
+ """Get Runtime Env Logs Download # noqa: E501
20309
20077
 
20310
- Fetches the serve controller logs of the cluster. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. TODO(aguo): Implement job alive or dead detection # noqa: E501
20311
20078
  This method makes a synchronous HTTP request by default. To make an
20312
20079
  asynchronous HTTP request, please pass async_req=True
20313
- >>> thread = api.get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get_with_http_info(cluster_id, async_req=True)
20080
+ >>> thread = api.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(session_id, async_req=True)
20314
20081
  >>> result = thread.get()
20315
20082
 
20316
20083
  :param async_req bool: execute request asynchronously
20317
- :param str cluster_id: (required)
20318
- :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
20319
- :param str next_page_token: Pagination token for getting newer logs.
20320
- :param str previous_page_token: Pagination token for getting older logs.
20084
+ :param str session_id: (required)
20321
20085
  :param _return_http_data_only: response data without head status code
20322
20086
  and headers
20323
20087
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20335,10 +20099,130 @@ class DefaultApi(object):
20335
20099
  local_var_params = locals()
20336
20100
 
20337
20101
  all_params = [
20338
- 'cluster_id',
20339
- 'page_size',
20340
- 'next_page_token',
20341
- 'previous_page_token'
20102
+ 'session_id'
20103
+ ]
20104
+ all_params.extend(
20105
+ [
20106
+ 'async_req',
20107
+ '_return_http_data_only',
20108
+ '_preload_content',
20109
+ '_request_timeout'
20110
+ ]
20111
+ )
20112
+
20113
+ for key, val in six.iteritems(local_var_params['kwargs']):
20114
+ if key not in all_params:
20115
+ raise ApiTypeError(
20116
+ "Got an unexpected keyword argument '%s'"
20117
+ " to method get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get" % key
20118
+ )
20119
+ local_var_params[key] = val
20120
+ del local_var_params['kwargs']
20121
+ # verify the required parameter 'session_id' is set
20122
+ if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
20123
+ local_var_params['session_id'] is None): # noqa: E501
20124
+ raise ApiValueError("Missing the required parameter `session_id` when calling `get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get`") # noqa: E501
20125
+
20126
+ collection_formats = {}
20127
+
20128
+ path_params = {}
20129
+ if 'session_id' in local_var_params:
20130
+ path_params['session_id'] = local_var_params['session_id'] # noqa: E501
20131
+
20132
+ query_params = []
20133
+
20134
+ header_params = {}
20135
+
20136
+ form_params = []
20137
+ local_var_files = {}
20138
+
20139
+ body_params = None
20140
+ # HTTP header `Accept`
20141
+ header_params['Accept'] = self.api_client.select_header_accept(
20142
+ ['application/json']) # noqa: E501
20143
+
20144
+ # Authentication setting
20145
+ auth_settings = [] # noqa: E501
20146
+
20147
+ return self.api_client.call_api(
20148
+ '/api/v2/logs/runtime_env_logs_download/{session_id}', 'GET',
20149
+ path_params,
20150
+ query_params,
20151
+ header_params,
20152
+ body=body_params,
20153
+ post_params=form_params,
20154
+ files=local_var_files,
20155
+ response_type='LogdownloadresultResponse', # noqa: E501
20156
+ auth_settings=auth_settings,
20157
+ async_req=local_var_params.get('async_req'),
20158
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20159
+ _preload_content=local_var_params.get('_preload_content', True),
20160
+ _request_timeout=local_var_params.get('_request_timeout'),
20161
+ collection_formats=collection_formats)
20162
+
20163
+ def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
20164
+ """Get Serve Logs Download # noqa: E501
20165
+
20166
+ Fetches the serve controller logs of the cluster. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. TODO(aguo): Implement job alive or dead detection # noqa: E501
20167
+ This method makes a synchronous HTTP request by default. To make an
20168
+ asynchronous HTTP request, please pass async_req=True
20169
+ >>> thread = api.get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(cluster_id, async_req=True)
20170
+ >>> result = thread.get()
20171
+
20172
+ :param async_req bool: execute request asynchronously
20173
+ :param str cluster_id: (required)
20174
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
20175
+ :param str next_page_token: Pagination token for getting newer logs.
20176
+ :param str previous_page_token: Pagination token for getting older logs.
20177
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
20178
+ be returned without reading/decoding response
20179
+ data. Default is True.
20180
+ :param _request_timeout: timeout setting for this request. If one
20181
+ number provided, it will be total request
20182
+ timeout. It can also be a pair (tuple) of
20183
+ (connection, read) timeouts.
20184
+ :return: LogdownloadresultResponse
20185
+ If the method is called asynchronously,
20186
+ returns the request thread.
20187
+ """
20188
+ kwargs['_return_http_data_only'] = True
20189
+ return self.get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get_with_http_info(cluster_id, **kwargs) # noqa: E501
20190
+
20191
+ def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
20192
+ """Get Serve Logs Download # noqa: E501
20193
+
20194
+ Fetches the serve controller logs of the cluster. The logs will be fetched from the streaming logs s3 bucket. If a pagination token is provided, we use the streaming logs or downloaded logs bucket depending on the format of the pagination token. TODO(aguo): Implement job alive or dead detection # noqa: E501
20195
+ This method makes a synchronous HTTP request by default. To make an
20196
+ asynchronous HTTP request, please pass async_req=True
20197
+ >>> thread = api.get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get_with_http_info(cluster_id, async_req=True)
20198
+ >>> result = thread.get()
20199
+
20200
+ :param async_req bool: execute request asynchronously
20201
+ :param str cluster_id: (required)
20202
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
20203
+ :param str next_page_token: Pagination token for getting newer logs.
20204
+ :param str previous_page_token: Pagination token for getting older logs.
20205
+ :param _return_http_data_only: response data without head status code
20206
+ and headers
20207
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
20208
+ be returned without reading/decoding response
20209
+ data. Default is True.
20210
+ :param _request_timeout: timeout setting for this request. If one
20211
+ number provided, it will be total request
20212
+ timeout. It can also be a pair (tuple) of
20213
+ (connection, read) timeouts.
20214
+ :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
20215
+ If the method is called asynchronously,
20216
+ returns the request thread.
20217
+ """
20218
+
20219
+ local_var_params = locals()
20220
+
20221
+ all_params = [
20222
+ 'cluster_id',
20223
+ 'page_size',
20224
+ 'next_page_token',
20225
+ 'previous_page_token'
20342
20226
  ]
20343
20227
  all_params.extend(
20344
20228
  [
@@ -26960,6 +26844,142 @@ class DefaultApi(object):
26960
26844
  _request_timeout=local_var_params.get('_request_timeout'),
26961
26845
  collection_formats=collection_formats)
26962
26846
 
26847
+ def list_job_reports_api_v2_job_reports_get(self, cloud_id, **kwargs): # noqa: E501
26848
+ """List Job Reports # noqa: E501
26849
+
26850
+ This method makes a synchronous HTTP request by default. To make an
26851
+ asynchronous HTTP request, please pass async_req=True
26852
+ >>> thread = api.list_job_reports_api_v2_job_reports_get(cloud_id, async_req=True)
26853
+ >>> result = thread.get()
26854
+
26855
+ :param async_req bool: execute request asynchronously
26856
+ :param str cloud_id: (required)
26857
+ :param datetime start_time:
26858
+ :param datetime end_time:
26859
+ :param str paging_token:
26860
+ :param int count:
26861
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
26862
+ be returned without reading/decoding response
26863
+ data. Default is True.
26864
+ :param _request_timeout: timeout setting for this request. If one
26865
+ number provided, it will be total request
26866
+ timeout. It can also be a pair (tuple) of
26867
+ (connection, read) timeouts.
26868
+ :return: JobwithreportListResponse
26869
+ If the method is called asynchronously,
26870
+ returns the request thread.
26871
+ """
26872
+ kwargs['_return_http_data_only'] = True
26873
+ return self.list_job_reports_api_v2_job_reports_get_with_http_info(cloud_id, **kwargs) # noqa: E501
26874
+
26875
+ def list_job_reports_api_v2_job_reports_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
26876
+ """List Job Reports # noqa: E501
26877
+
26878
+ This method makes a synchronous HTTP request by default. To make an
26879
+ asynchronous HTTP request, please pass async_req=True
26880
+ >>> thread = api.list_job_reports_api_v2_job_reports_get_with_http_info(cloud_id, async_req=True)
26881
+ >>> result = thread.get()
26882
+
26883
+ :param async_req bool: execute request asynchronously
26884
+ :param str cloud_id: (required)
26885
+ :param datetime start_time:
26886
+ :param datetime end_time:
26887
+ :param str paging_token:
26888
+ :param int count:
26889
+ :param _return_http_data_only: response data without head status code
26890
+ and headers
26891
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
26892
+ be returned without reading/decoding response
26893
+ data. Default is True.
26894
+ :param _request_timeout: timeout setting for this request. If one
26895
+ number provided, it will be total request
26896
+ timeout. It can also be a pair (tuple) of
26897
+ (connection, read) timeouts.
26898
+ :return: tuple(JobwithreportListResponse, status_code(int), headers(HTTPHeaderDict))
26899
+ If the method is called asynchronously,
26900
+ returns the request thread.
26901
+ """
26902
+
26903
+ local_var_params = locals()
26904
+
26905
+ all_params = [
26906
+ 'cloud_id',
26907
+ 'start_time',
26908
+ 'end_time',
26909
+ 'paging_token',
26910
+ 'count'
26911
+ ]
26912
+ all_params.extend(
26913
+ [
26914
+ 'async_req',
26915
+ '_return_http_data_only',
26916
+ '_preload_content',
26917
+ '_request_timeout'
26918
+ ]
26919
+ )
26920
+
26921
+ for key, val in six.iteritems(local_var_params['kwargs']):
26922
+ if key not in all_params:
26923
+ raise ApiTypeError(
26924
+ "Got an unexpected keyword argument '%s'"
26925
+ " to method list_job_reports_api_v2_job_reports_get" % key
26926
+ )
26927
+ local_var_params[key] = val
26928
+ del local_var_params['kwargs']
26929
+ # verify the required parameter 'cloud_id' is set
26930
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
26931
+ local_var_params['cloud_id'] is None): # noqa: E501
26932
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `list_job_reports_api_v2_job_reports_get`") # noqa: E501
26933
+
26934
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
26935
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_job_reports_api_v2_job_reports_get`, must be a value less than or equal to `50`") # noqa: E501
26936
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
26937
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_job_reports_api_v2_job_reports_get`, must be a value greater than or equal to `0`") # noqa: E501
26938
+ collection_formats = {}
26939
+
26940
+ path_params = {}
26941
+
26942
+ query_params = []
26943
+ if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
26944
+ query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
26945
+ if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
26946
+ query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
26947
+ if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
26948
+ query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
26949
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
26950
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
26951
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
26952
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
26953
+
26954
+ header_params = {}
26955
+
26956
+ form_params = []
26957
+ local_var_files = {}
26958
+
26959
+ body_params = None
26960
+ # HTTP header `Accept`
26961
+ header_params['Accept'] = self.api_client.select_header_accept(
26962
+ ['application/json']) # noqa: E501
26963
+
26964
+ # Authentication setting
26965
+ auth_settings = [] # noqa: E501
26966
+
26967
+ return self.api_client.call_api(
26968
+ '/api/v2/job_reports/', 'GET',
26969
+ path_params,
26970
+ query_params,
26971
+ header_params,
26972
+ body=body_params,
26973
+ post_params=form_params,
26974
+ files=local_var_files,
26975
+ response_type='JobwithreportListResponse', # noqa: E501
26976
+ auth_settings=auth_settings,
26977
+ async_req=local_var_params.get('async_req'),
26978
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
26979
+ _preload_content=local_var_params.get('_preload_content', True),
26980
+ _request_timeout=local_var_params.get('_request_timeout'),
26981
+ collection_formats=collection_formats)
26982
+
26963
26983
  def list_job_states_api_v2_decorated_ha_job_states_get(self, ha_job_id, **kwargs): # noqa: E501
26964
26984
  """List Job States # noqa: E501
26965
26985
 
@@ -28396,6 +28416,118 @@ class DefaultApi(object):
28396
28416
  _request_timeout=local_var_params.get('_request_timeout'),
28397
28417
  collection_formats=collection_formats)
28398
28418
 
28419
+ def list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get(self, cluster_id, **kwargs): # noqa: E501
28420
+ """List Ray Sessions # noqa: E501
28421
+
28422
+ This method makes a synchronous HTTP request by default. To make an
28423
+ asynchronous HTTP request, please pass async_req=True
28424
+ >>> thread = api.list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get(cluster_id, async_req=True)
28425
+ >>> result = thread.get()
28426
+
28427
+ :param async_req bool: execute request asynchronously
28428
+ :param str cluster_id: (required)
28429
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28430
+ be returned without reading/decoding response
28431
+ data. Default is True.
28432
+ :param _request_timeout: timeout setting for this request. If one
28433
+ number provided, it will be total request
28434
+ timeout. It can also be a pair (tuple) of
28435
+ (connection, read) timeouts.
28436
+ :return: ListraysessionsresponseResponse
28437
+ If the method is called asynchronously,
28438
+ returns the request thread.
28439
+ """
28440
+ kwargs['_return_http_data_only'] = True
28441
+ return self.list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get_with_http_info(cluster_id, **kwargs) # noqa: E501
28442
+
28443
+ def list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
28444
+ """List Ray Sessions # noqa: E501
28445
+
28446
+ This method makes a synchronous HTTP request by default. To make an
28447
+ asynchronous HTTP request, please pass async_req=True
28448
+ >>> thread = api.list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get_with_http_info(cluster_id, async_req=True)
28449
+ >>> result = thread.get()
28450
+
28451
+ :param async_req bool: execute request asynchronously
28452
+ :param str cluster_id: (required)
28453
+ :param _return_http_data_only: response data without head status code
28454
+ and headers
28455
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28456
+ be returned without reading/decoding response
28457
+ data. Default is True.
28458
+ :param _request_timeout: timeout setting for this request. If one
28459
+ number provided, it will be total request
28460
+ timeout. It can also be a pair (tuple) of
28461
+ (connection, read) timeouts.
28462
+ :return: tuple(ListraysessionsresponseResponse, status_code(int), headers(HTTPHeaderDict))
28463
+ If the method is called asynchronously,
28464
+ returns the request thread.
28465
+ """
28466
+
28467
+ local_var_params = locals()
28468
+
28469
+ all_params = [
28470
+ 'cluster_id'
28471
+ ]
28472
+ all_params.extend(
28473
+ [
28474
+ 'async_req',
28475
+ '_return_http_data_only',
28476
+ '_preload_content',
28477
+ '_request_timeout'
28478
+ ]
28479
+ )
28480
+
28481
+ for key, val in six.iteritems(local_var_params['kwargs']):
28482
+ if key not in all_params:
28483
+ raise ApiTypeError(
28484
+ "Got an unexpected keyword argument '%s'"
28485
+ " to method list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get" % key
28486
+ )
28487
+ local_var_params[key] = val
28488
+ del local_var_params['kwargs']
28489
+ # verify the required parameter 'cluster_id' is set
28490
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
28491
+ local_var_params['cluster_id'] is None): # noqa: E501
28492
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `list_ray_sessions_api_v2_tasks_dashboard_list_ray_sessions_get`") # noqa: E501
28493
+
28494
+ collection_formats = {}
28495
+
28496
+ path_params = {}
28497
+
28498
+ query_params = []
28499
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28500
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28501
+
28502
+ header_params = {}
28503
+
28504
+ form_params = []
28505
+ local_var_files = {}
28506
+
28507
+ body_params = None
28508
+ # HTTP header `Accept`
28509
+ header_params['Accept'] = self.api_client.select_header_accept(
28510
+ ['application/json']) # noqa: E501
28511
+
28512
+ # Authentication setting
28513
+ auth_settings = [] # noqa: E501
28514
+
28515
+ return self.api_client.call_api(
28516
+ '/api/v2/tasks_dashboard/list_ray_sessions', 'GET',
28517
+ path_params,
28518
+ query_params,
28519
+ header_params,
28520
+ body=body_params,
28521
+ post_params=form_params,
28522
+ files=local_var_files,
28523
+ response_type='ListraysessionsresponseResponse', # noqa: E501
28524
+ auth_settings=auth_settings,
28525
+ async_req=local_var_params.get('async_req'),
28526
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28527
+ _preload_content=local_var_params.get('_preload_content', True),
28528
+ _request_timeout=local_var_params.get('_request_timeout'),
28529
+ collection_formats=collection_formats)
28530
+
28399
28531
  def list_services_api_v2_services_v2_get(self, **kwargs): # noqa: E501
28400
28532
  """List Services # noqa: E501
28401
28533