anyscale 0.26.4__py3-none-any.whl → 0.26.5__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 (43) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -5
  2. anyscale/_private/docgen/__main__.py +0 -3
  3. anyscale/_private/docgen/api.md +0 -40
  4. anyscale/_private/docgen/models.md +0 -49
  5. anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
  6. anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
  7. anyscale/client/README.md +9 -8
  8. anyscale/client/openapi_client/__init__.py +7 -5
  9. anyscale/client/openapi_client/api/default_api.py +304 -486
  10. anyscale/client/openapi_client/models/__init__.py +7 -5
  11. anyscale/client/openapi_client/models/{anyscaleversionresponse_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
  12. anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
  13. anyscale/client/openapi_client/models/{anyscale_version_response.py → dataset_jobs.py} +22 -22
  14. anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
  15. anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
  16. anyscale/client/openapi_client/models/{decoratedjob_list_response.py → metric.py} +64 -38
  17. anyscale/client/openapi_client/models/operator_metrics.py +256 -0
  18. anyscale/client/openapi_client/models/train_run.py +28 -1
  19. anyscale/cluster.py +5 -2
  20. anyscale/commands/anyscale_api/api_commands.py +0 -2
  21. anyscale/connect_utils/start_interactive_session.py +4 -1
  22. anyscale/controllers/cluster_controller.py +15 -26
  23. anyscale/controllers/project_controller.py +1 -6
  24. anyscale/job/_private/job_sdk.py +6 -1
  25. anyscale/job/models.py +8 -0
  26. anyscale/project_utils.py +9 -20
  27. anyscale/sdk/anyscale_client/__init__.py +0 -5
  28. anyscale/sdk/anyscale_client/api/default_api.py +0 -474
  29. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  30. anyscale/version.py +1 -1
  31. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/METADATA +1 -1
  32. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/RECORD +37 -41
  33. anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
  34. anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
  35. anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
  36. anyscale/sdk/anyscale_client/models/session_command.py +0 -350
  37. anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
  38. anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
  39. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/LICENSE +0 -0
  40. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/NOTICE +0 -0
  41. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/WHEEL +0 -0
  42. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/entry_points.txt +0 -0
  43. {anyscale-0.26.4.dist-info → anyscale-0.26.5.dist-info}/top_level.txt +0 -0
@@ -11644,7 +11644,7 @@ class DefaultApi(object):
11644
11644
  number provided, it will be total request
11645
11645
  timeout. It can also be a pair (tuple) of
11646
11646
  (connection, read) timeouts.
11647
- :return: DatasetResponse
11647
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
11648
11648
  If the method is called asynchronously,
11649
11649
  returns the request thread.
11650
11650
  """
@@ -11673,7 +11673,7 @@ class DefaultApi(object):
11673
11673
  number provided, it will be total request
11674
11674
  timeout. It can also be a pair (tuple) of
11675
11675
  (connection, read) timeouts.
11676
- :return: tuple(DatasetResponse, status_code(int), headers(HTTPHeaderDict))
11676
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
11677
11677
  If the method is called asynchronously,
11678
11678
  returns the request thread.
11679
11679
  """
@@ -11740,7 +11740,7 @@ class DefaultApi(object):
11740
11740
  body=body_params,
11741
11741
  post_params=form_params,
11742
11742
  files=local_var_files,
11743
- response_type='DatasetResponse', # noqa: E501
11743
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
11744
11744
  auth_settings=auth_settings,
11745
11745
  async_req=local_var_params.get('async_req'),
11746
11746
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -12920,109 +12920,6 @@ class DefaultApi(object):
12920
12920
  _request_timeout=local_var_params.get('_request_timeout'),
12921
12921
  collection_formats=collection_formats)
12922
12922
 
12923
- def get_anyscale_version_api_v2_userinfo_anyscale_version_get(self, **kwargs): # noqa: E501
12924
- """Get Anyscale Version # noqa: E501
12925
-
12926
- This method makes a synchronous HTTP request by default. To make an
12927
- asynchronous HTTP request, please pass async_req=True
12928
- >>> thread = api.get_anyscale_version_api_v2_userinfo_anyscale_version_get(async_req=True)
12929
- >>> result = thread.get()
12930
-
12931
- :param async_req bool: execute request asynchronously
12932
- :param _preload_content: if False, the urllib3.HTTPResponse object will
12933
- be returned without reading/decoding response
12934
- data. Default is True.
12935
- :param _request_timeout: timeout setting for this request. If one
12936
- number provided, it will be total request
12937
- timeout. It can also be a pair (tuple) of
12938
- (connection, read) timeouts.
12939
- :return: AnyscaleversionresponseResponse
12940
- If the method is called asynchronously,
12941
- returns the request thread.
12942
- """
12943
- kwargs['_return_http_data_only'] = True
12944
- return self.get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(**kwargs) # noqa: E501
12945
-
12946
- def get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(self, **kwargs): # noqa: E501
12947
- """Get Anyscale Version # noqa: E501
12948
-
12949
- This method makes a synchronous HTTP request by default. To make an
12950
- asynchronous HTTP request, please pass async_req=True
12951
- >>> thread = api.get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(async_req=True)
12952
- >>> result = thread.get()
12953
-
12954
- :param async_req bool: execute request asynchronously
12955
- :param _return_http_data_only: response data without head status code
12956
- and headers
12957
- :param _preload_content: if False, the urllib3.HTTPResponse object will
12958
- be returned without reading/decoding response
12959
- data. Default is True.
12960
- :param _request_timeout: timeout setting for this request. If one
12961
- number provided, it will be total request
12962
- timeout. It can also be a pair (tuple) of
12963
- (connection, read) timeouts.
12964
- :return: tuple(AnyscaleversionresponseResponse, status_code(int), headers(HTTPHeaderDict))
12965
- If the method is called asynchronously,
12966
- returns the request thread.
12967
- """
12968
-
12969
- local_var_params = locals()
12970
-
12971
- all_params = [
12972
- ]
12973
- all_params.extend(
12974
- [
12975
- 'async_req',
12976
- '_return_http_data_only',
12977
- '_preload_content',
12978
- '_request_timeout'
12979
- ]
12980
- )
12981
-
12982
- for key, val in six.iteritems(local_var_params['kwargs']):
12983
- if key not in all_params:
12984
- raise ApiTypeError(
12985
- "Got an unexpected keyword argument '%s'"
12986
- " to method get_anyscale_version_api_v2_userinfo_anyscale_version_get" % key
12987
- )
12988
- local_var_params[key] = val
12989
- del local_var_params['kwargs']
12990
-
12991
- collection_formats = {}
12992
-
12993
- path_params = {}
12994
-
12995
- query_params = []
12996
-
12997
- header_params = {}
12998
-
12999
- form_params = []
13000
- local_var_files = {}
13001
-
13002
- body_params = None
13003
- # HTTP header `Accept`
13004
- header_params['Accept'] = self.api_client.select_header_accept(
13005
- ['application/json']) # noqa: E501
13006
-
13007
- # Authentication setting
13008
- auth_settings = [] # noqa: E501
13009
-
13010
- return self.api_client.call_api(
13011
- '/api/v2/userinfo/anyscale_version', 'GET',
13012
- path_params,
13013
- query_params,
13014
- header_params,
13015
- body=body_params,
13016
- post_params=form_params,
13017
- files=local_var_files,
13018
- response_type='AnyscaleversionresponseResponse', # noqa: E501
13019
- auth_settings=auth_settings,
13020
- async_req=local_var_params.get('async_req'),
13021
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
13022
- _preload_content=local_var_params.get('_preload_content', True),
13023
- _request_timeout=local_var_params.get('_request_timeout'),
13024
- collection_formats=collection_formats)
13025
-
13026
12923
  def get_application_template_api_v2_application_templates_application_template_id_get(self, application_template_id, **kwargs): # noqa: E501
13027
12924
  """Get Application Template # noqa: E501
13028
12925
 
@@ -14883,6 +14780,118 @@ class DefaultApi(object):
14883
14780
  _request_timeout=local_var_params.get('_request_timeout'),
14884
14781
  collection_formats=collection_formats)
14885
14782
 
14783
+ def get_dashboard_api_v2_dataset_runs_get(self, cluster_id, **kwargs): # noqa: E501
14784
+ """Get Dashboard # noqa: E501
14785
+
14786
+ This method makes a synchronous HTTP request by default. To make an
14787
+ asynchronous HTTP request, please pass async_req=True
14788
+ >>> thread = api.get_dashboard_api_v2_dataset_runs_get(cluster_id, async_req=True)
14789
+ >>> result = thread.get()
14790
+
14791
+ :param async_req bool: execute request asynchronously
14792
+ :param str cluster_id: (required)
14793
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14794
+ be returned without reading/decoding response
14795
+ data. Default is True.
14796
+ :param _request_timeout: timeout setting for this request. If one
14797
+ number provided, it will be total request
14798
+ timeout. It can also be a pair (tuple) of
14799
+ (connection, read) timeouts.
14800
+ :return: BackendServerApiProductModelsDatasetRunsDatasetResponse
14801
+ If the method is called asynchronously,
14802
+ returns the request thread.
14803
+ """
14804
+ kwargs['_return_http_data_only'] = True
14805
+ return self.get_dashboard_api_v2_dataset_runs_get_with_http_info(cluster_id, **kwargs) # noqa: E501
14806
+
14807
+ def get_dashboard_api_v2_dataset_runs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
14808
+ """Get Dashboard # noqa: E501
14809
+
14810
+ This method makes a synchronous HTTP request by default. To make an
14811
+ asynchronous HTTP request, please pass async_req=True
14812
+ >>> thread = api.get_dashboard_api_v2_dataset_runs_get_with_http_info(cluster_id, async_req=True)
14813
+ >>> result = thread.get()
14814
+
14815
+ :param async_req bool: execute request asynchronously
14816
+ :param str cluster_id: (required)
14817
+ :param _return_http_data_only: response data without head status code
14818
+ and headers
14819
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14820
+ be returned without reading/decoding response
14821
+ data. Default is True.
14822
+ :param _request_timeout: timeout setting for this request. If one
14823
+ number provided, it will be total request
14824
+ timeout. It can also be a pair (tuple) of
14825
+ (connection, read) timeouts.
14826
+ :return: tuple(BackendServerApiProductModelsDatasetRunsDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14827
+ If the method is called asynchronously,
14828
+ returns the request thread.
14829
+ """
14830
+
14831
+ local_var_params = locals()
14832
+
14833
+ all_params = [
14834
+ 'cluster_id'
14835
+ ]
14836
+ all_params.extend(
14837
+ [
14838
+ 'async_req',
14839
+ '_return_http_data_only',
14840
+ '_preload_content',
14841
+ '_request_timeout'
14842
+ ]
14843
+ )
14844
+
14845
+ for key, val in six.iteritems(local_var_params['kwargs']):
14846
+ if key not in all_params:
14847
+ raise ApiTypeError(
14848
+ "Got an unexpected keyword argument '%s'"
14849
+ " to method get_dashboard_api_v2_dataset_runs_get" % key
14850
+ )
14851
+ local_var_params[key] = val
14852
+ del local_var_params['kwargs']
14853
+ # verify the required parameter 'cluster_id' is set
14854
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
14855
+ local_var_params['cluster_id'] is None): # noqa: E501
14856
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_dashboard_api_v2_dataset_runs_get`") # noqa: E501
14857
+
14858
+ collection_formats = {}
14859
+
14860
+ path_params = {}
14861
+
14862
+ query_params = []
14863
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
14864
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
14865
+
14866
+ header_params = {}
14867
+
14868
+ form_params = []
14869
+ local_var_files = {}
14870
+
14871
+ body_params = None
14872
+ # HTTP header `Accept`
14873
+ header_params['Accept'] = self.api_client.select_header_accept(
14874
+ ['application/json']) # noqa: E501
14875
+
14876
+ # Authentication setting
14877
+ auth_settings = [] # noqa: E501
14878
+
14879
+ return self.api_client.call_api(
14880
+ '/api/v2/dataset_runs/', 'GET',
14881
+ path_params,
14882
+ query_params,
14883
+ header_params,
14884
+ body=body_params,
14885
+ post_params=form_params,
14886
+ files=local_var_files,
14887
+ response_type='BackendServerApiProductModelsDatasetRunsDatasetResponse', # noqa: E501
14888
+ auth_settings=auth_settings,
14889
+ async_req=local_var_params.get('async_req'),
14890
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14891
+ _preload_content=local_var_params.get('_preload_content', True),
14892
+ _request_timeout=local_var_params.get('_request_timeout'),
14893
+ collection_formats=collection_formats)
14894
+
14886
14895
  def get_dataset_api_v2_datasets_dataset_id_get(self, dataset_id, **kwargs): # noqa: E501
14887
14896
  """Get Dataset # noqa: E501
14888
14897
 
@@ -14901,7 +14910,7 @@ class DefaultApi(object):
14901
14910
  number provided, it will be total request
14902
14911
  timeout. It can also be a pair (tuple) of
14903
14912
  (connection, read) timeouts.
14904
- :return: DatasetResponse
14913
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
14905
14914
  If the method is called asynchronously,
14906
14915
  returns the request thread.
14907
14916
  """
@@ -14928,7 +14937,7 @@ class DefaultApi(object):
14928
14937
  number provided, it will be total request
14929
14938
  timeout. It can also be a pair (tuple) of
14930
14939
  (connection, read) timeouts.
14931
- :return: tuple(DatasetResponse, status_code(int), headers(HTTPHeaderDict))
14940
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14932
14941
  If the method is called asynchronously,
14933
14942
  returns the request thread.
14934
14943
  """
@@ -14989,7 +14998,7 @@ class DefaultApi(object):
14989
14998
  body=body_params,
14990
14999
  post_params=form_params,
14991
15000
  files=local_var_files,
14992
- response_type='DatasetResponse', # noqa: E501
15001
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
14993
15002
  auth_settings=auth_settings,
14994
15003
  async_req=local_var_params.get('async_req'),
14995
15004
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -18757,6 +18766,118 @@ class DefaultApi(object):
18757
18766
  _request_timeout=local_var_params.get('_request_timeout'),
18758
18767
  collection_formats=collection_formats)
18759
18768
 
18769
+ def get_jobs_api_v2_dataset_runs_jobs_get(self, cluster_id, **kwargs): # noqa: E501
18770
+ """Get Jobs # noqa: E501
18771
+
18772
+ This method makes a synchronous HTTP request by default. To make an
18773
+ asynchronous HTTP request, please pass async_req=True
18774
+ >>> thread = api.get_jobs_api_v2_dataset_runs_jobs_get(cluster_id, async_req=True)
18775
+ >>> result = thread.get()
18776
+
18777
+ :param async_req bool: execute request asynchronously
18778
+ :param str cluster_id: (required)
18779
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18780
+ be returned without reading/decoding response
18781
+ data. Default is True.
18782
+ :param _request_timeout: timeout setting for this request. If one
18783
+ number provided, it will be total request
18784
+ timeout. It can also be a pair (tuple) of
18785
+ (connection, read) timeouts.
18786
+ :return: DatasetJobs
18787
+ If the method is called asynchronously,
18788
+ returns the request thread.
18789
+ """
18790
+ kwargs['_return_http_data_only'] = True
18791
+ return self.get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(cluster_id, **kwargs) # noqa: E501
18792
+
18793
+ def get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
18794
+ """Get Jobs # noqa: E501
18795
+
18796
+ This method makes a synchronous HTTP request by default. To make an
18797
+ asynchronous HTTP request, please pass async_req=True
18798
+ >>> thread = api.get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(cluster_id, async_req=True)
18799
+ >>> result = thread.get()
18800
+
18801
+ :param async_req bool: execute request asynchronously
18802
+ :param str cluster_id: (required)
18803
+ :param _return_http_data_only: response data without head status code
18804
+ and headers
18805
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18806
+ be returned without reading/decoding response
18807
+ data. Default is True.
18808
+ :param _request_timeout: timeout setting for this request. If one
18809
+ number provided, it will be total request
18810
+ timeout. It can also be a pair (tuple) of
18811
+ (connection, read) timeouts.
18812
+ :return: tuple(DatasetJobs, status_code(int), headers(HTTPHeaderDict))
18813
+ If the method is called asynchronously,
18814
+ returns the request thread.
18815
+ """
18816
+
18817
+ local_var_params = locals()
18818
+
18819
+ all_params = [
18820
+ 'cluster_id'
18821
+ ]
18822
+ all_params.extend(
18823
+ [
18824
+ 'async_req',
18825
+ '_return_http_data_only',
18826
+ '_preload_content',
18827
+ '_request_timeout'
18828
+ ]
18829
+ )
18830
+
18831
+ for key, val in six.iteritems(local_var_params['kwargs']):
18832
+ if key not in all_params:
18833
+ raise ApiTypeError(
18834
+ "Got an unexpected keyword argument '%s'"
18835
+ " to method get_jobs_api_v2_dataset_runs_jobs_get" % key
18836
+ )
18837
+ local_var_params[key] = val
18838
+ del local_var_params['kwargs']
18839
+ # verify the required parameter 'cluster_id' is set
18840
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
18841
+ local_var_params['cluster_id'] is None): # noqa: E501
18842
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_jobs_api_v2_dataset_runs_jobs_get`") # noqa: E501
18843
+
18844
+ collection_formats = {}
18845
+
18846
+ path_params = {}
18847
+
18848
+ query_params = []
18849
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
18850
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
18851
+
18852
+ header_params = {}
18853
+
18854
+ form_params = []
18855
+ local_var_files = {}
18856
+
18857
+ body_params = None
18858
+ # HTTP header `Accept`
18859
+ header_params['Accept'] = self.api_client.select_header_accept(
18860
+ ['application/json']) # noqa: E501
18861
+
18862
+ # Authentication setting
18863
+ auth_settings = [] # noqa: E501
18864
+
18865
+ return self.api_client.call_api(
18866
+ '/api/v2/dataset_runs/jobs', 'GET',
18867
+ path_params,
18868
+ query_params,
18869
+ header_params,
18870
+ body=body_params,
18871
+ post_params=form_params,
18872
+ files=local_var_files,
18873
+ response_type='DatasetJobs', # noqa: E501
18874
+ auth_settings=auth_settings,
18875
+ async_req=local_var_params.get('async_req'),
18876
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
18877
+ _preload_content=local_var_params.get('_preload_content', True),
18878
+ _request_timeout=local_var_params.get('_request_timeout'),
18879
+ collection_formats=collection_formats)
18880
+
18760
18881
  def get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post(self, cloud_id, **kwargs): # noqa: E501
18761
18882
  """Get Lb Resource # noqa: E501
18762
18883
 
@@ -27843,173 +27964,15 @@ class DefaultApi(object):
27843
27964
  Get all the job submissions based on the passed in criteria. Returns ------- ListResponse[DecoratedJobSubmission] selected DecoratedJobSubmission based on the passed in criteria, or empty ListResponse if there is nothing found # noqa: E501
27844
27965
  This method makes a synchronous HTTP request by default. To make an
27845
27966
  asynchronous HTTP request, please pass async_req=True
27846
- >>> thread = api.list_decorated_job_submissions_api_v2_decorated_job_submissions_get_with_http_info(async_req=True)
27847
- >>> result = thread.get()
27848
-
27849
- :param async_req bool: execute request asynchronously
27850
- :param str creator_id: creator_id to filter by
27851
- :param str name: ray_job_submission_id to filter by
27852
- :param str ha_job_id: ha_job_id to filter by
27853
- :param list[JobStatus] state_filter: A list of job submission states to filter by
27854
- :param JobSubmissionsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
27855
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
27856
- :param str paging_token:
27857
- :param int count:
27858
- :param _return_http_data_only: response data without head status code
27859
- and headers
27860
- :param _preload_content: if False, the urllib3.HTTPResponse object will
27861
- be returned without reading/decoding response
27862
- data. Default is True.
27863
- :param _request_timeout: timeout setting for this request. If one
27864
- number provided, it will be total request
27865
- timeout. It can also be a pair (tuple) of
27866
- (connection, read) timeouts.
27867
- :return: tuple(DecoratedjobsubmissionListResponse, status_code(int), headers(HTTPHeaderDict))
27868
- If the method is called asynchronously,
27869
- returns the request thread.
27870
- """
27871
-
27872
- local_var_params = locals()
27873
-
27874
- all_params = [
27875
- 'creator_id',
27876
- 'name',
27877
- 'ha_job_id',
27878
- 'state_filter',
27879
- 'sort_field',
27880
- 'sort_order',
27881
- 'paging_token',
27882
- 'count'
27883
- ]
27884
- all_params.extend(
27885
- [
27886
- 'async_req',
27887
- '_return_http_data_only',
27888
- '_preload_content',
27889
- '_request_timeout'
27890
- ]
27891
- )
27892
-
27893
- for key, val in six.iteritems(local_var_params['kwargs']):
27894
- if key not in all_params:
27895
- raise ApiTypeError(
27896
- "Got an unexpected keyword argument '%s'"
27897
- " to method list_decorated_job_submissions_api_v2_decorated_job_submissions_get" % key
27898
- )
27899
- local_var_params[key] = val
27900
- del local_var_params['kwargs']
27901
-
27902
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
27903
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_job_submissions_api_v2_decorated_job_submissions_get`, must be a value less than or equal to `50`") # noqa: E501
27904
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
27905
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_job_submissions_api_v2_decorated_job_submissions_get`, must be a value greater than or equal to `0`") # noqa: E501
27906
- collection_formats = {}
27907
-
27908
- path_params = {}
27909
-
27910
- query_params = []
27911
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
27912
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
27913
- if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
27914
- query_params.append(('name', local_var_params['name'])) # noqa: E501
27915
- if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
27916
- query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
27917
- if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
27918
- query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
27919
- collection_formats['state_filter'] = 'multi' # noqa: E501
27920
- if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
27921
- query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
27922
- if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
27923
- query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
27924
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
27925
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
27926
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
27927
- query_params.append(('count', local_var_params['count'])) # noqa: E501
27928
-
27929
- header_params = {}
27930
-
27931
- form_params = []
27932
- local_var_files = {}
27933
-
27934
- body_params = None
27935
- # HTTP header `Accept`
27936
- header_params['Accept'] = self.api_client.select_header_accept(
27937
- ['application/json']) # noqa: E501
27938
-
27939
- # Authentication setting
27940
- auth_settings = [] # noqa: E501
27941
-
27942
- return self.api_client.call_api(
27943
- '/api/v2/decorated_job_submissions/', 'GET',
27944
- path_params,
27945
- query_params,
27946
- header_params,
27947
- body=body_params,
27948
- post_params=form_params,
27949
- files=local_var_files,
27950
- response_type='DecoratedjobsubmissionListResponse', # noqa: E501
27951
- auth_settings=auth_settings,
27952
- async_req=local_var_params.get('async_req'),
27953
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
27954
- _preload_content=local_var_params.get('_preload_content', True),
27955
- _request_timeout=local_var_params.get('_request_timeout'),
27956
- collection_formats=collection_formats)
27957
-
27958
- def list_decorated_jobs_api_v2_decorated_ha_jobs_get(self, **kwargs): # noqa: E501
27959
- """List Decorated Jobs # noqa: E501
27960
-
27961
- This method makes a synchronous HTTP request by default. To make an
27962
- asynchronous HTTP request, please pass async_req=True
27963
- >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get(async_req=True)
27964
- >>> result = thread.get()
27965
-
27966
- :param async_req bool: execute request asynchronously
27967
- :param str project_id: project_id to filter by
27968
- :param str workspace_id: workspace_id to filter by
27969
- :param str name: name to filter by
27970
- :param list[HaJobStates] state_filter: A list of session states to filter by
27971
- :param HaJobType type_filter: The job type to filter by
27972
- :param str creator_id: filter by creator id
27973
- :param str source_cron_job_id: filter by cron_job_id id
27974
- :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
27975
- :param str cloud_id: cloud_id to filter by
27976
- :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
27977
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
27978
- :param str paging_token:
27979
- :param int count:
27980
- :param _preload_content: if False, the urllib3.HTTPResponse object will
27981
- be returned without reading/decoding response
27982
- data. Default is True.
27983
- :param _request_timeout: timeout setting for this request. If one
27984
- number provided, it will be total request
27985
- timeout. It can also be a pair (tuple) of
27986
- (connection, read) timeouts.
27987
- :return: DecoratedproductionjobListResponse
27988
- If the method is called asynchronously,
27989
- returns the request thread.
27990
- """
27991
- kwargs['_return_http_data_only'] = True
27992
- return self.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(**kwargs) # noqa: E501
27993
-
27994
- def list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(self, **kwargs): # noqa: E501
27995
- """List Decorated Jobs # noqa: E501
27996
-
27997
- This method makes a synchronous HTTP request by default. To make an
27998
- asynchronous HTTP request, please pass async_req=True
27999
- >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(async_req=True)
27967
+ >>> thread = api.list_decorated_job_submissions_api_v2_decorated_job_submissions_get_with_http_info(async_req=True)
28000
27968
  >>> result = thread.get()
28001
27969
 
28002
27970
  :param async_req bool: execute request asynchronously
28003
- :param str project_id: project_id to filter by
28004
- :param str workspace_id: workspace_id to filter by
28005
- :param str name: name to filter by
28006
- :param list[HaJobStates] state_filter: A list of session states to filter by
28007
- :param HaJobType type_filter: The job type to filter by
28008
- :param str creator_id: filter by creator id
28009
- :param str source_cron_job_id: filter by cron_job_id id
28010
- :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
28011
- :param str cloud_id: cloud_id to filter by
28012
- :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
27971
+ :param str creator_id: creator_id to filter by
27972
+ :param str name: ray_job_submission_id to filter by
27973
+ :param str ha_job_id: ha_job_id to filter by
27974
+ :param list[JobStatus] state_filter: A list of job submission states to filter by
27975
+ :param JobSubmissionsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28013
27976
  :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28014
27977
  :param str paging_token:
28015
27978
  :param int count:
@@ -28022,7 +27985,7 @@ class DefaultApi(object):
28022
27985
  number provided, it will be total request
28023
27986
  timeout. It can also be a pair (tuple) of
28024
27987
  (connection, read) timeouts.
28025
- :return: tuple(DecoratedproductionjobListResponse, status_code(int), headers(HTTPHeaderDict))
27988
+ :return: tuple(DecoratedjobsubmissionListResponse, status_code(int), headers(HTTPHeaderDict))
28026
27989
  If the method is called asynchronously,
28027
27990
  returns the request thread.
28028
27991
  """
@@ -28030,15 +27993,10 @@ class DefaultApi(object):
28030
27993
  local_var_params = locals()
28031
27994
 
28032
27995
  all_params = [
28033
- 'project_id',
28034
- 'workspace_id',
27996
+ 'creator_id',
28035
27997
  'name',
27998
+ 'ha_job_id',
28036
27999
  'state_filter',
28037
- 'type_filter',
28038
- 'creator_id',
28039
- 'source_cron_job_id',
28040
- 'archive_status',
28041
- 'cloud_id',
28042
28000
  'sort_field',
28043
28001
  'sort_order',
28044
28002
  'paging_token',
@@ -28057,39 +28015,29 @@ class DefaultApi(object):
28057
28015
  if key not in all_params:
28058
28016
  raise ApiTypeError(
28059
28017
  "Got an unexpected keyword argument '%s'"
28060
- " to method list_decorated_jobs_api_v2_decorated_ha_jobs_get" % key
28018
+ " to method list_decorated_job_submissions_api_v2_decorated_job_submissions_get" % key
28061
28019
  )
28062
28020
  local_var_params[key] = val
28063
28021
  del local_var_params['kwargs']
28064
28022
 
28065
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
28066
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value less than or equal to `1000`") # noqa: E501
28023
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28024
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_job_submissions_api_v2_decorated_job_submissions_get`, must be a value less than or equal to `50`") # noqa: E501
28067
28025
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28068
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28026
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_job_submissions_api_v2_decorated_job_submissions_get`, must be a value greater than or equal to `0`") # noqa: E501
28069
28027
  collection_formats = {}
28070
28028
 
28071
28029
  path_params = {}
28072
28030
 
28073
28031
  query_params = []
28074
- if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28075
- query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28076
- if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28077
- query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28032
+ if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28033
+ query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28078
28034
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28079
28035
  query_params.append(('name', local_var_params['name'])) # noqa: E501
28036
+ if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28037
+ query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28080
28038
  if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28081
28039
  query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28082
28040
  collection_formats['state_filter'] = 'multi' # noqa: E501
28083
- if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28084
- query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28085
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28086
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28087
- if 'source_cron_job_id' in local_var_params and local_var_params['source_cron_job_id'] is not None: # noqa: E501
28088
- query_params.append(('source_cron_job_id', local_var_params['source_cron_job_id'])) # noqa: E501
28089
- if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501
28090
- query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
28091
- if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
28092
- query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
28093
28041
  if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28094
28042
  query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28095
28043
  if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
@@ -28113,14 +28061,14 @@ class DefaultApi(object):
28113
28061
  auth_settings = [] # noqa: E501
28114
28062
 
28115
28063
  return self.api_client.call_api(
28116
- '/api/v2/decorated_ha_jobs/', 'GET',
28064
+ '/api/v2/decorated_job_submissions/', 'GET',
28117
28065
  path_params,
28118
28066
  query_params,
28119
28067
  header_params,
28120
28068
  body=body_params,
28121
28069
  post_params=form_params,
28122
28070
  files=local_var_files,
28123
- response_type='DecoratedproductionjobListResponse', # noqa: E501
28071
+ response_type='DecoratedjobsubmissionListResponse', # noqa: E501
28124
28072
  auth_settings=auth_settings,
28125
28073
  async_req=local_var_params.get('async_req'),
28126
28074
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -28128,27 +28076,26 @@ class DefaultApi(object):
28128
28076
  _request_timeout=local_var_params.get('_request_timeout'),
28129
28077
  collection_formats=collection_formats)
28130
28078
 
28131
- def list_decorated_jobs_api_v2_decorated_jobs_get(self, **kwargs): # noqa: E501
28079
+ def list_decorated_jobs_api_v2_decorated_ha_jobs_get(self, **kwargs): # noqa: E501
28132
28080
  """List Decorated Jobs # noqa: E501
28133
28081
 
28134
- DEPRECATED: Use list_decorated_interactive_sessions. List all decorated jobs. Optionally filter by project and runtime_env_id # noqa: E501
28135
28082
  This method makes a synchronous HTTP request by default. To make an
28136
28083
  asynchronous HTTP request, please pass async_req=True
28137
- >>> thread = api.list_decorated_jobs_api_v2_decorated_jobs_get(async_req=True)
28084
+ >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get(async_req=True)
28138
28085
  >>> result = thread.get()
28139
28086
 
28140
28087
  :param async_req bool: execute request asynchronously
28141
28088
  :param str project_id: project_id to filter by
28142
- :param str runtime_env_id: runtime_env_id to filter by
28143
- :param str cluster_id: cluster_id to filter by
28144
- :param str creator_id: creator_id to filter by
28089
+ :param str workspace_id: workspace_id to filter by
28145
28090
  :param str name: name to filter by
28146
- :param str ha_job_id: ha_job_id to filter by
28147
- :param bool show_ray_client_runs_only: DEPRECATED: Shows only ray client runs. Orthogonaol to passing ha_job_id
28148
- :param list[JobRunType] type_filter: Filter Jobs by their type. Their type is determined by their usage within the product e.g. Interactive sessions, job runs
28149
- :param list[BaseJobStatus] state_filter: A list of session states to filter by
28150
- :param str order: 'asc' for ascending, 'desc' for descending
28151
- :param bool include_child_jobs: Whether to include child jobs
28091
+ :param list[HaJobStates] state_filter: A list of session states to filter by
28092
+ :param HaJobType type_filter: The job type to filter by
28093
+ :param str creator_id: filter by creator id
28094
+ :param str source_cron_job_id: filter by cron_job_id id
28095
+ :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
28096
+ :param str cloud_id: cloud_id to filter by
28097
+ :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28098
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28152
28099
  :param str paging_token:
28153
28100
  :param int count:
28154
28101
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -28158,34 +28105,33 @@ class DefaultApi(object):
28158
28105
  number provided, it will be total request
28159
28106
  timeout. It can also be a pair (tuple) of
28160
28107
  (connection, read) timeouts.
28161
- :return: DecoratedjobListResponse
28108
+ :return: DecoratedproductionjobListResponse
28162
28109
  If the method is called asynchronously,
28163
28110
  returns the request thread.
28164
28111
  """
28165
28112
  kwargs['_return_http_data_only'] = True
28166
- return self.list_decorated_jobs_api_v2_decorated_jobs_get_with_http_info(**kwargs) # noqa: E501
28113
+ return self.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(**kwargs) # noqa: E501
28167
28114
 
28168
- def list_decorated_jobs_api_v2_decorated_jobs_get_with_http_info(self, **kwargs): # noqa: E501
28115
+ def list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(self, **kwargs): # noqa: E501
28169
28116
  """List Decorated Jobs # noqa: E501
28170
28117
 
28171
- DEPRECATED: Use list_decorated_interactive_sessions. List all decorated jobs. Optionally filter by project and runtime_env_id # noqa: E501
28172
28118
  This method makes a synchronous HTTP request by default. To make an
28173
28119
  asynchronous HTTP request, please pass async_req=True
28174
- >>> thread = api.list_decorated_jobs_api_v2_decorated_jobs_get_with_http_info(async_req=True)
28120
+ >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(async_req=True)
28175
28121
  >>> result = thread.get()
28176
28122
 
28177
28123
  :param async_req bool: execute request asynchronously
28178
28124
  :param str project_id: project_id to filter by
28179
- :param str runtime_env_id: runtime_env_id to filter by
28180
- :param str cluster_id: cluster_id to filter by
28181
- :param str creator_id: creator_id to filter by
28125
+ :param str workspace_id: workspace_id to filter by
28182
28126
  :param str name: name to filter by
28183
- :param str ha_job_id: ha_job_id to filter by
28184
- :param bool show_ray_client_runs_only: DEPRECATED: Shows only ray client runs. Orthogonaol to passing ha_job_id
28185
- :param list[JobRunType] type_filter: Filter Jobs by their type. Their type is determined by their usage within the product e.g. Interactive sessions, job runs
28186
- :param list[BaseJobStatus] state_filter: A list of session states to filter by
28187
- :param str order: 'asc' for ascending, 'desc' for descending
28188
- :param bool include_child_jobs: Whether to include child jobs
28127
+ :param list[HaJobStates] state_filter: A list of session states to filter by
28128
+ :param HaJobType type_filter: The job type to filter by
28129
+ :param str creator_id: filter by creator id
28130
+ :param str source_cron_job_id: filter by cron_job_id id
28131
+ :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
28132
+ :param str cloud_id: cloud_id to filter by
28133
+ :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28134
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28189
28135
  :param str paging_token:
28190
28136
  :param int count:
28191
28137
  :param _return_http_data_only: response data without head status code
@@ -28197,7 +28143,7 @@ class DefaultApi(object):
28197
28143
  number provided, it will be total request
28198
28144
  timeout. It can also be a pair (tuple) of
28199
28145
  (connection, read) timeouts.
28200
- :return: tuple(DecoratedjobListResponse, status_code(int), headers(HTTPHeaderDict))
28146
+ :return: tuple(DecoratedproductionjobListResponse, status_code(int), headers(HTTPHeaderDict))
28201
28147
  If the method is called asynchronously,
28202
28148
  returns the request thread.
28203
28149
  """
@@ -28206,16 +28152,16 @@ class DefaultApi(object):
28206
28152
 
28207
28153
  all_params = [
28208
28154
  'project_id',
28209
- 'runtime_env_id',
28210
- 'cluster_id',
28211
- 'creator_id',
28155
+ 'workspace_id',
28212
28156
  'name',
28213
- 'ha_job_id',
28214
- 'show_ray_client_runs_only',
28215
- 'type_filter',
28216
28157
  'state_filter',
28217
- 'order',
28218
- 'include_child_jobs',
28158
+ 'type_filter',
28159
+ 'creator_id',
28160
+ 'source_cron_job_id',
28161
+ 'archive_status',
28162
+ 'cloud_id',
28163
+ 'sort_field',
28164
+ 'sort_order',
28219
28165
  'paging_token',
28220
28166
  'count'
28221
28167
  ]
@@ -28232,15 +28178,15 @@ class DefaultApi(object):
28232
28178
  if key not in all_params:
28233
28179
  raise ApiTypeError(
28234
28180
  "Got an unexpected keyword argument '%s'"
28235
- " to method list_decorated_jobs_api_v2_decorated_jobs_get" % key
28181
+ " to method list_decorated_jobs_api_v2_decorated_ha_jobs_get" % key
28236
28182
  )
28237
28183
  local_var_params[key] = val
28238
28184
  del local_var_params['kwargs']
28239
28185
 
28240
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28241
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_jobs_get`, must be a value less than or equal to `50`") # noqa: E501
28186
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
28187
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value less than or equal to `1000`") # noqa: E501
28242
28188
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28243
- raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28189
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_decorated_jobs_api_v2_decorated_ha_jobs_get`, must be a value greater than or equal to `0`") # noqa: E501
28244
28190
  collection_formats = {}
28245
28191
 
28246
28192
  path_params = {}
@@ -28248,28 +28194,27 @@ class DefaultApi(object):
28248
28194
  query_params = []
28249
28195
  if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28250
28196
  query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28251
- if 'runtime_env_id' in local_var_params and local_var_params['runtime_env_id'] is not None: # noqa: E501
28252
- query_params.append(('runtime_env_id', local_var_params['runtime_env_id'])) # noqa: E501
28253
- if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28254
- query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28255
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28256
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28197
+ if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28198
+ query_params.append(('workspace_id', local_var_params['workspace_id'])) # noqa: E501
28257
28199
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28258
28200
  query_params.append(('name', local_var_params['name'])) # noqa: E501
28259
- if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28260
- query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28261
- if 'show_ray_client_runs_only' in local_var_params and local_var_params['show_ray_client_runs_only'] is not None: # noqa: E501
28262
- query_params.append(('show_ray_client_runs_only', local_var_params['show_ray_client_runs_only'])) # noqa: E501
28263
- if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28264
- query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28265
- collection_formats['type_filter'] = 'multi' # noqa: E501
28266
28201
  if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28267
28202
  query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28268
28203
  collection_formats['state_filter'] = 'multi' # noqa: E501
28269
- if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501
28270
- query_params.append(('order', local_var_params['order'])) # noqa: E501
28271
- if 'include_child_jobs' in local_var_params and local_var_params['include_child_jobs'] is not None: # noqa: E501
28272
- query_params.append(('include_child_jobs', local_var_params['include_child_jobs'])) # noqa: E501
28204
+ if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28205
+ query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28206
+ if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28207
+ query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28208
+ if 'source_cron_job_id' in local_var_params and local_var_params['source_cron_job_id'] is not None: # noqa: E501
28209
+ query_params.append(('source_cron_job_id', local_var_params['source_cron_job_id'])) # noqa: E501
28210
+ if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501
28211
+ query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
28212
+ if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
28213
+ query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
28214
+ if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28215
+ query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28216
+ if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
28217
+ query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
28273
28218
  if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28274
28219
  query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28275
28220
  if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
@@ -28289,14 +28234,14 @@ class DefaultApi(object):
28289
28234
  auth_settings = [] # noqa: E501
28290
28235
 
28291
28236
  return self.api_client.call_api(
28292
- '/api/v2/decorated_jobs/', 'GET',
28237
+ '/api/v2/decorated_ha_jobs/', 'GET',
28293
28238
  path_params,
28294
28239
  query_params,
28295
28240
  header_params,
28296
28241
  body=body_params,
28297
28242
  post_params=form_params,
28298
28243
  files=local_var_files,
28299
- response_type='DecoratedjobListResponse', # noqa: E501
28244
+ response_type='DecoratedproductionjobListResponse', # noqa: E501
28300
28245
  auth_settings=auth_settings,
28301
28246
  async_req=local_var_params.get('async_req'),
28302
28247
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -36286,133 +36231,6 @@ class DefaultApi(object):
36286
36231
  _request_timeout=local_var_params.get('_request_timeout'),
36287
36232
  collection_formats=collection_formats)
36288
36233
 
36289
- def setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post(self, session_id, setup_initialize_session_options, **kwargs): # noqa: E501
36290
- """Setup And Initialize Session # noqa: E501
36291
-
36292
- Updates the cluster when `anyscale up` is called. This should be called when /start_empty_session returns second_update_required as True, and after the file mounts are synced with rsync from the CLI. This endpoint runs the initialization/setup commands on the head node of the cluster, and then updates the file mounts and workers in ~/ray_bootstrap_config.yaml. File mounts are added to ~/ray_bootstrap_config.yaml as the last step so files from the product server are not synced to the user cluster. # noqa: E501
36293
- This method makes a synchronous HTTP request by default. To make an
36294
- asynchronous HTTP request, please pass async_req=True
36295
- >>> thread = api.setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post(session_id, setup_initialize_session_options, async_req=True)
36296
- >>> result = thread.get()
36297
-
36298
- :param async_req bool: execute request asynchronously
36299
- :param str session_id: (required)
36300
- :param SetupInitializeSessionOptions setup_initialize_session_options: (required)
36301
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36302
- be returned without reading/decoding response
36303
- data. Default is True.
36304
- :param _request_timeout: timeout setting for this request. If one
36305
- number provided, it will be total request
36306
- timeout. It can also be a pair (tuple) of
36307
- (connection, read) timeouts.
36308
- :return: None
36309
- If the method is called asynchronously,
36310
- returns the request thread.
36311
- """
36312
- kwargs['_return_http_data_only'] = True
36313
- return self.setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post_with_http_info(session_id, setup_initialize_session_options, **kwargs) # noqa: E501
36314
-
36315
- def setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post_with_http_info(self, session_id, setup_initialize_session_options, **kwargs): # noqa: E501
36316
- """Setup And Initialize Session # noqa: E501
36317
-
36318
- Updates the cluster when `anyscale up` is called. This should be called when /start_empty_session returns second_update_required as True, and after the file mounts are synced with rsync from the CLI. This endpoint runs the initialization/setup commands on the head node of the cluster, and then updates the file mounts and workers in ~/ray_bootstrap_config.yaml. File mounts are added to ~/ray_bootstrap_config.yaml as the last step so files from the product server are not synced to the user cluster. # noqa: E501
36319
- This method makes a synchronous HTTP request by default. To make an
36320
- asynchronous HTTP request, please pass async_req=True
36321
- >>> thread = api.setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post_with_http_info(session_id, setup_initialize_session_options, async_req=True)
36322
- >>> result = thread.get()
36323
-
36324
- :param async_req bool: execute request asynchronously
36325
- :param str session_id: (required)
36326
- :param SetupInitializeSessionOptions setup_initialize_session_options: (required)
36327
- :param _return_http_data_only: response data without head status code
36328
- and headers
36329
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36330
- be returned without reading/decoding response
36331
- data. Default is True.
36332
- :param _request_timeout: timeout setting for this request. If one
36333
- number provided, it will be total request
36334
- timeout. It can also be a pair (tuple) of
36335
- (connection, read) timeouts.
36336
- :return: None
36337
- If the method is called asynchronously,
36338
- returns the request thread.
36339
- """
36340
-
36341
- local_var_params = locals()
36342
-
36343
- all_params = [
36344
- 'session_id',
36345
- 'setup_initialize_session_options'
36346
- ]
36347
- all_params.extend(
36348
- [
36349
- 'async_req',
36350
- '_return_http_data_only',
36351
- '_preload_content',
36352
- '_request_timeout'
36353
- ]
36354
- )
36355
-
36356
- for key, val in six.iteritems(local_var_params['kwargs']):
36357
- if key not in all_params:
36358
- raise ApiTypeError(
36359
- "Got an unexpected keyword argument '%s'"
36360
- " to method setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post" % key
36361
- )
36362
- local_var_params[key] = val
36363
- del local_var_params['kwargs']
36364
- # verify the required parameter 'session_id' is set
36365
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
36366
- local_var_params['session_id'] is None): # noqa: E501
36367
- raise ApiValueError("Missing the required parameter `session_id` when calling `setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post`") # noqa: E501
36368
- # verify the required parameter 'setup_initialize_session_options' is set
36369
- if self.api_client.client_side_validation and ('setup_initialize_session_options' not in local_var_params or # noqa: E501
36370
- local_var_params['setup_initialize_session_options'] is None): # noqa: E501
36371
- raise ApiValueError("Missing the required parameter `setup_initialize_session_options` when calling `setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post`") # noqa: E501
36372
-
36373
- collection_formats = {}
36374
-
36375
- path_params = {}
36376
- if 'session_id' in local_var_params:
36377
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
36378
-
36379
- query_params = []
36380
-
36381
- header_params = {}
36382
-
36383
- form_params = []
36384
- local_var_files = {}
36385
-
36386
- body_params = None
36387
- if 'setup_initialize_session_options' in local_var_params:
36388
- body_params = local_var_params['setup_initialize_session_options']
36389
- # HTTP header `Accept`
36390
- header_params['Accept'] = self.api_client.select_header_accept(
36391
- ['application/json']) # noqa: E501
36392
-
36393
- # HTTP header `Content-Type`
36394
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
36395
- ['application/json']) # noqa: E501
36396
-
36397
- # Authentication setting
36398
- auth_settings = [] # noqa: E501
36399
-
36400
- return self.api_client.call_api(
36401
- '/api/v2/sessions/{session_id}/setup_and_initialize_session', 'POST',
36402
- path_params,
36403
- query_params,
36404
- header_params,
36405
- body=body_params,
36406
- post_params=form_params,
36407
- files=local_var_files,
36408
- response_type=None, # noqa: E501
36409
- auth_settings=auth_settings,
36410
- async_req=local_var_params.get('async_req'),
36411
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36412
- _preload_content=local_var_params.get('_preload_content', True),
36413
- _request_timeout=local_var_params.get('_request_timeout'),
36414
- collection_formats=collection_formats)
36415
-
36416
36234
  def show_one_time_password_source_api_v2_users_show_otp_source_post(self, otp, **kwargs): # noqa: E501
36417
36235
  """Show One Time Password Source # noqa: E501
36418
36236