anyscale 0.26.3__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 (56) 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 +2 -50
  5. anyscale/_private/workload/workload_config.py +11 -0
  6. anyscale/_private/workload/workload_sdk.py +4 -0
  7. anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
  8. anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
  9. anyscale/client/README.md +11 -18
  10. anyscale/client/openapi_client/__init__.py +7 -11
  11. anyscale/client/openapi_client/api/default_api.py +537 -951
  12. anyscale/client/openapi_client/models/__init__.py +7 -11
  13. anyscale/client/openapi_client/models/{anyscale_version_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
  14. anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
  15. anyscale/client/openapi_client/models/{logdetails_response.py → dataset_jobs.py} +22 -22
  16. anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
  17. anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
  18. anyscale/client/openapi_client/models/{log_details.py → metric.py} +64 -42
  19. anyscale/client/openapi_client/models/node_type.py +2 -1
  20. anyscale/client/openapi_client/models/operator_metrics.py +256 -0
  21. anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
  22. anyscale/client/openapi_client/models/train_run.py +56 -3
  23. anyscale/client/openapi_client/models/train_worker.py +29 -3
  24. anyscale/cluster.py +5 -2
  25. anyscale/commands/anyscale_api/api_commands.py +0 -2
  26. anyscale/connect_utils/start_interactive_session.py +4 -1
  27. anyscale/controllers/cluster_controller.py +15 -26
  28. anyscale/controllers/project_controller.py +1 -6
  29. anyscale/job/_private/job_sdk.py +10 -1
  30. anyscale/job/models.py +8 -0
  31. anyscale/project_utils.py +9 -20
  32. anyscale/sdk/anyscale_client/__init__.py +0 -5
  33. anyscale/sdk/anyscale_client/api/default_api.py +0 -474
  34. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  35. anyscale/sdk/anyscale_client/models/node_type.py +2 -1
  36. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
  37. anyscale/version.py +1 -1
  38. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/METADATA +1 -1
  39. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/RECORD +44 -54
  40. anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
  41. anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
  42. anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
  43. anyscale/client/openapi_client/models/log_detail.py +0 -187
  44. anyscale/client/openapi_client/models/provider_metadata.py +0 -205
  45. anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
  46. anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
  47. anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
  48. anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
  49. anyscale/sdk/anyscale_client/models/session_command.py +0 -350
  50. anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
  51. anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
  52. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/LICENSE +0 -0
  53. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/NOTICE +0 -0
  54. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/WHEEL +0 -0
  55. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/entry_points.txt +0 -0
  56. {anyscale-0.26.3.dist-info → anyscale-0.26.5.dist-info}/top_level.txt +0 -0
@@ -4380,124 +4380,6 @@ class DefaultApi(object):
4380
4380
  _request_timeout=local_var_params.get('_request_timeout'),
4381
4381
  collection_formats=collection_formats)
4382
4382
 
4383
- def create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post(self, create_cloud_with_cloud_resource, **kwargs): # noqa: E501
4384
- """Create Cloud With Cloud Resource # noqa: E501
4385
-
4386
- Creates a Cloud with CloudResource. # noqa: E501
4387
- This method makes a synchronous HTTP request by default. To make an
4388
- asynchronous HTTP request, please pass async_req=True
4389
- >>> thread = api.create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post(create_cloud_with_cloud_resource, async_req=True)
4390
- >>> result = thread.get()
4391
-
4392
- :param async_req bool: execute request asynchronously
4393
- :param CreateCloudWithCloudResource create_cloud_with_cloud_resource: (required)
4394
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4395
- be returned without reading/decoding response
4396
- data. Default is True.
4397
- :param _request_timeout: timeout setting for this request. If one
4398
- number provided, it will be total request
4399
- timeout. It can also be a pair (tuple) of
4400
- (connection, read) timeouts.
4401
- :return: CloudwithcloudresourceResponse
4402
- If the method is called asynchronously,
4403
- returns the request thread.
4404
- """
4405
- kwargs['_return_http_data_only'] = True
4406
- return self.create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post_with_http_info(create_cloud_with_cloud_resource, **kwargs) # noqa: E501
4407
-
4408
- def create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post_with_http_info(self, create_cloud_with_cloud_resource, **kwargs): # noqa: E501
4409
- """Create Cloud With Cloud Resource # noqa: E501
4410
-
4411
- Creates a Cloud with CloudResource. # noqa: E501
4412
- This method makes a synchronous HTTP request by default. To make an
4413
- asynchronous HTTP request, please pass async_req=True
4414
- >>> thread = api.create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post_with_http_info(create_cloud_with_cloud_resource, async_req=True)
4415
- >>> result = thread.get()
4416
-
4417
- :param async_req bool: execute request asynchronously
4418
- :param CreateCloudWithCloudResource create_cloud_with_cloud_resource: (required)
4419
- :param _return_http_data_only: response data without head status code
4420
- and headers
4421
- :param _preload_content: if False, the urllib3.HTTPResponse object will
4422
- be returned without reading/decoding response
4423
- data. Default is True.
4424
- :param _request_timeout: timeout setting for this request. If one
4425
- number provided, it will be total request
4426
- timeout. It can also be a pair (tuple) of
4427
- (connection, read) timeouts.
4428
- :return: tuple(CloudwithcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
4429
- If the method is called asynchronously,
4430
- returns the request thread.
4431
- """
4432
-
4433
- local_var_params = locals()
4434
-
4435
- all_params = [
4436
- 'create_cloud_with_cloud_resource'
4437
- ]
4438
- all_params.extend(
4439
- [
4440
- 'async_req',
4441
- '_return_http_data_only',
4442
- '_preload_content',
4443
- '_request_timeout'
4444
- ]
4445
- )
4446
-
4447
- for key, val in six.iteritems(local_var_params['kwargs']):
4448
- if key not in all_params:
4449
- raise ApiTypeError(
4450
- "Got an unexpected keyword argument '%s'"
4451
- " to method create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post" % key
4452
- )
4453
- local_var_params[key] = val
4454
- del local_var_params['kwargs']
4455
- # verify the required parameter 'create_cloud_with_cloud_resource' is set
4456
- if self.api_client.client_side_validation and ('create_cloud_with_cloud_resource' not in local_var_params or # noqa: E501
4457
- local_var_params['create_cloud_with_cloud_resource'] is None): # noqa: E501
4458
- raise ApiValueError("Missing the required parameter `create_cloud_with_cloud_resource` when calling `create_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_post`") # noqa: E501
4459
-
4460
- collection_formats = {}
4461
-
4462
- path_params = {}
4463
-
4464
- query_params = []
4465
-
4466
- header_params = {}
4467
-
4468
- form_params = []
4469
- local_var_files = {}
4470
-
4471
- body_params = None
4472
- if 'create_cloud_with_cloud_resource' in local_var_params:
4473
- body_params = local_var_params['create_cloud_with_cloud_resource']
4474
- # HTTP header `Accept`
4475
- header_params['Accept'] = self.api_client.select_header_accept(
4476
- ['application/json']) # noqa: E501
4477
-
4478
- # HTTP header `Content-Type`
4479
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
4480
- ['application/json']) # noqa: E501
4481
-
4482
- # Authentication setting
4483
- auth_settings = [] # noqa: E501
4484
-
4485
- return self.api_client.call_api(
4486
- '/api/v2/clouds_with_cloud_resource_router/', 'POST',
4487
- path_params,
4488
- query_params,
4489
- header_params,
4490
- body=body_params,
4491
- post_params=form_params,
4492
- files=local_var_files,
4493
- response_type='CloudwithcloudresourceResponse', # noqa: E501
4494
- auth_settings=auth_settings,
4495
- async_req=local_var_params.get('async_req'),
4496
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
4497
- _preload_content=local_var_params.get('_preload_content', True),
4498
- _request_timeout=local_var_params.get('_request_timeout'),
4499
- collection_formats=collection_formats)
4500
-
4501
4383
  def create_compute_template_api_v2_compute_templates_post(self, create_compute_template, **kwargs): # noqa: E501
4502
4384
  """Create Compute Template # noqa: E501
4503
4385
 
@@ -9167,6 +9049,120 @@ class DefaultApi(object):
9167
9049
  _request_timeout=local_var_params.get('_request_timeout'),
9168
9050
  collection_formats=collection_formats)
9169
9051
 
9052
+ def delete_service_api_v2_services_v2_service_id_delete(self, service_id, **kwargs): # noqa: E501
9053
+ """Delete Service # noqa: E501
9054
+
9055
+ Deletes a Service. # noqa: E501
9056
+ This method makes a synchronous HTTP request by default. To make an
9057
+ asynchronous HTTP request, please pass async_req=True
9058
+ >>> thread = api.delete_service_api_v2_services_v2_service_id_delete(service_id, async_req=True)
9059
+ >>> result = thread.get()
9060
+
9061
+ :param async_req bool: execute request asynchronously
9062
+ :param str service_id: (required)
9063
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
9064
+ be returned without reading/decoding response
9065
+ data. Default is True.
9066
+ :param _request_timeout: timeout setting for this request. If one
9067
+ number provided, it will be total request
9068
+ timeout. It can also be a pair (tuple) of
9069
+ (connection, read) timeouts.
9070
+ :return: None
9071
+ If the method is called asynchronously,
9072
+ returns the request thread.
9073
+ """
9074
+ kwargs['_return_http_data_only'] = True
9075
+ return self.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, **kwargs) # noqa: E501
9076
+
9077
+ def delete_service_api_v2_services_v2_service_id_delete_with_http_info(self, service_id, **kwargs): # noqa: E501
9078
+ """Delete Service # noqa: E501
9079
+
9080
+ Deletes a Service. # noqa: E501
9081
+ This method makes a synchronous HTTP request by default. To make an
9082
+ asynchronous HTTP request, please pass async_req=True
9083
+ >>> thread = api.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, async_req=True)
9084
+ >>> result = thread.get()
9085
+
9086
+ :param async_req bool: execute request asynchronously
9087
+ :param str service_id: (required)
9088
+ :param _return_http_data_only: response data without head status code
9089
+ and headers
9090
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
9091
+ be returned without reading/decoding response
9092
+ data. Default is True.
9093
+ :param _request_timeout: timeout setting for this request. If one
9094
+ number provided, it will be total request
9095
+ timeout. It can also be a pair (tuple) of
9096
+ (connection, read) timeouts.
9097
+ :return: None
9098
+ If the method is called asynchronously,
9099
+ returns the request thread.
9100
+ """
9101
+
9102
+ local_var_params = locals()
9103
+
9104
+ all_params = [
9105
+ 'service_id'
9106
+ ]
9107
+ all_params.extend(
9108
+ [
9109
+ 'async_req',
9110
+ '_return_http_data_only',
9111
+ '_preload_content',
9112
+ '_request_timeout'
9113
+ ]
9114
+ )
9115
+
9116
+ for key, val in six.iteritems(local_var_params['kwargs']):
9117
+ if key not in all_params:
9118
+ raise ApiTypeError(
9119
+ "Got an unexpected keyword argument '%s'"
9120
+ " to method delete_service_api_v2_services_v2_service_id_delete" % key
9121
+ )
9122
+ local_var_params[key] = val
9123
+ del local_var_params['kwargs']
9124
+ # verify the required parameter 'service_id' is set
9125
+ if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
9126
+ local_var_params['service_id'] is None): # noqa: E501
9127
+ raise ApiValueError("Missing the required parameter `service_id` when calling `delete_service_api_v2_services_v2_service_id_delete`") # noqa: E501
9128
+
9129
+ collection_formats = {}
9130
+
9131
+ path_params = {}
9132
+ if 'service_id' in local_var_params:
9133
+ path_params['service_id'] = local_var_params['service_id'] # noqa: E501
9134
+
9135
+ query_params = []
9136
+
9137
+ header_params = {}
9138
+
9139
+ form_params = []
9140
+ local_var_files = {}
9141
+
9142
+ body_params = None
9143
+ # HTTP header `Accept`
9144
+ header_params['Accept'] = self.api_client.select_header_accept(
9145
+ ['application/json']) # noqa: E501
9146
+
9147
+ # Authentication setting
9148
+ auth_settings = [] # noqa: E501
9149
+
9150
+ return self.api_client.call_api(
9151
+ '/api/v2/services-v2/{service_id}', 'DELETE',
9152
+ path_params,
9153
+ query_params,
9154
+ header_params,
9155
+ body=body_params,
9156
+ post_params=form_params,
9157
+ files=local_var_files,
9158
+ response_type=None, # noqa: E501
9159
+ auth_settings=auth_settings,
9160
+ async_req=local_var_params.get('async_req'),
9161
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
9162
+ _preload_content=local_var_params.get('_preload_content', True),
9163
+ _request_timeout=local_var_params.get('_request_timeout'),
9164
+ collection_formats=collection_formats)
9165
+
9170
9166
  def delete_session_api_v2_sessions_session_id_delete(self, session_id, **kwargs): # noqa: E501
9171
9167
  """Delete Session # noqa: E501
9172
9168
 
@@ -11648,7 +11644,7 @@ class DefaultApi(object):
11648
11644
  number provided, it will be total request
11649
11645
  timeout. It can also be a pair (tuple) of
11650
11646
  (connection, read) timeouts.
11651
- :return: DatasetResponse
11647
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
11652
11648
  If the method is called asynchronously,
11653
11649
  returns the request thread.
11654
11650
  """
@@ -11677,7 +11673,7 @@ class DefaultApi(object):
11677
11673
  number provided, it will be total request
11678
11674
  timeout. It can also be a pair (tuple) of
11679
11675
  (connection, read) timeouts.
11680
- :return: tuple(DatasetResponse, status_code(int), headers(HTTPHeaderDict))
11676
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
11681
11677
  If the method is called asynchronously,
11682
11678
  returns the request thread.
11683
11679
  """
@@ -11744,7 +11740,7 @@ class DefaultApi(object):
11744
11740
  body=body_params,
11745
11741
  post_params=form_params,
11746
11742
  files=local_var_files,
11747
- response_type='DatasetResponse', # noqa: E501
11743
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
11748
11744
  auth_settings=auth_settings,
11749
11745
  async_req=local_var_params.get('async_req'),
11750
11746
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -12924,15 +12920,17 @@ class DefaultApi(object):
12924
12920
  _request_timeout=local_var_params.get('_request_timeout'),
12925
12921
  collection_formats=collection_formats)
12926
12922
 
12927
- def get_anyscale_version_api_v2_userinfo_anyscale_version_get(self, **kwargs): # noqa: E501
12928
- """Get Anyscale Version # noqa: E501
12923
+ def get_application_template_api_v2_application_templates_application_template_id_get(self, application_template_id, **kwargs): # noqa: E501
12924
+ """Get Application Template # noqa: E501
12929
12925
 
12926
+ Retrieves a Cluster Environment. Note: cluster_environment is called app_config on the backend api. # noqa: E501
12930
12927
  This method makes a synchronous HTTP request by default. To make an
12931
12928
  asynchronous HTTP request, please pass async_req=True
12932
- >>> thread = api.get_anyscale_version_api_v2_userinfo_anyscale_version_get(async_req=True)
12929
+ >>> thread = api.get_application_template_api_v2_application_templates_application_template_id_get(application_template_id, async_req=True)
12933
12930
  >>> result = thread.get()
12934
12931
 
12935
12932
  :param async_req bool: execute request asynchronously
12933
+ :param str application_template_id: (required)
12936
12934
  :param _preload_content: if False, the urllib3.HTTPResponse object will
12937
12935
  be returned without reading/decoding response
12938
12936
  data. Default is True.
@@ -12940,22 +12938,24 @@ class DefaultApi(object):
12940
12938
  number provided, it will be total request
12941
12939
  timeout. It can also be a pair (tuple) of
12942
12940
  (connection, read) timeouts.
12943
- :return: AnyscaleversionresponseResponse
12941
+ :return: DecoratedapplicationtemplateResponse
12944
12942
  If the method is called asynchronously,
12945
12943
  returns the request thread.
12946
12944
  """
12947
12945
  kwargs['_return_http_data_only'] = True
12948
- return self.get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(**kwargs) # noqa: E501
12946
+ return self.get_application_template_api_v2_application_templates_application_template_id_get_with_http_info(application_template_id, **kwargs) # noqa: E501
12949
12947
 
12950
- def get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(self, **kwargs): # noqa: E501
12951
- """Get Anyscale Version # noqa: E501
12948
+ def get_application_template_api_v2_application_templates_application_template_id_get_with_http_info(self, application_template_id, **kwargs): # noqa: E501
12949
+ """Get Application Template # noqa: E501
12952
12950
 
12951
+ Retrieves a Cluster Environment. Note: cluster_environment is called app_config on the backend api. # noqa: E501
12953
12952
  This method makes a synchronous HTTP request by default. To make an
12954
12953
  asynchronous HTTP request, please pass async_req=True
12955
- >>> thread = api.get_anyscale_version_api_v2_userinfo_anyscale_version_get_with_http_info(async_req=True)
12954
+ >>> thread = api.get_application_template_api_v2_application_templates_application_template_id_get_with_http_info(application_template_id, async_req=True)
12956
12955
  >>> result = thread.get()
12957
12956
 
12958
12957
  :param async_req bool: execute request asynchronously
12958
+ :param str application_template_id: (required)
12959
12959
  :param _return_http_data_only: response data without head status code
12960
12960
  and headers
12961
12961
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -12965,7 +12965,7 @@ class DefaultApi(object):
12965
12965
  number provided, it will be total request
12966
12966
  timeout. It can also be a pair (tuple) of
12967
12967
  (connection, read) timeouts.
12968
- :return: tuple(AnyscaleversionresponseResponse, status_code(int), headers(HTTPHeaderDict))
12968
+ :return: tuple(DecoratedapplicationtemplateResponse, status_code(int), headers(HTTPHeaderDict))
12969
12969
  If the method is called asynchronously,
12970
12970
  returns the request thread.
12971
12971
  """
@@ -12973,6 +12973,7 @@ class DefaultApi(object):
12973
12973
  local_var_params = locals()
12974
12974
 
12975
12975
  all_params = [
12976
+ 'application_template_id'
12976
12977
  ]
12977
12978
  all_params.extend(
12978
12979
  [
@@ -12987,14 +12988,20 @@ class DefaultApi(object):
12987
12988
  if key not in all_params:
12988
12989
  raise ApiTypeError(
12989
12990
  "Got an unexpected keyword argument '%s'"
12990
- " to method get_anyscale_version_api_v2_userinfo_anyscale_version_get" % key
12991
+ " to method get_application_template_api_v2_application_templates_application_template_id_get" % key
12991
12992
  )
12992
12993
  local_var_params[key] = val
12993
12994
  del local_var_params['kwargs']
12995
+ # verify the required parameter 'application_template_id' is set
12996
+ if self.api_client.client_side_validation and ('application_template_id' not in local_var_params or # noqa: E501
12997
+ local_var_params['application_template_id'] is None): # noqa: E501
12998
+ raise ApiValueError("Missing the required parameter `application_template_id` when calling `get_application_template_api_v2_application_templates_application_template_id_get`") # noqa: E501
12994
12999
 
12995
13000
  collection_formats = {}
12996
13001
 
12997
13002
  path_params = {}
13003
+ if 'application_template_id' in local_var_params:
13004
+ path_params['application_template_id'] = local_var_params['application_template_id'] # noqa: E501
12998
13005
 
12999
13006
  query_params = []
13000
13007
 
@@ -13012,14 +13019,14 @@ class DefaultApi(object):
13012
13019
  auth_settings = [] # noqa: E501
13013
13020
 
13014
13021
  return self.api_client.call_api(
13015
- '/api/v2/userinfo/anyscale_version', 'GET',
13022
+ '/api/v2/application_templates/{application_template_id}', 'GET',
13016
13023
  path_params,
13017
13024
  query_params,
13018
13025
  header_params,
13019
13026
  body=body_params,
13020
13027
  post_params=form_params,
13021
13028
  files=local_var_files,
13022
- response_type='AnyscaleversionresponseResponse', # noqa: E501
13029
+ response_type='DecoratedapplicationtemplateResponse', # noqa: E501
13023
13030
  auth_settings=auth_settings,
13024
13031
  async_req=local_var_params.get('async_req'),
13025
13032
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -13027,17 +13034,16 @@ class DefaultApi(object):
13027
13034
  _request_timeout=local_var_params.get('_request_timeout'),
13028
13035
  collection_formats=collection_formats)
13029
13036
 
13030
- def get_application_template_api_v2_application_templates_application_template_id_get(self, application_template_id, **kwargs): # noqa: E501
13031
- """Get Application Template # noqa: E501
13037
+ def get_billing_information_api_v2_organization_billing_billing_information_get(self, **kwargs): # noqa: E501
13038
+ """Get Billing Information # noqa: E501
13032
13039
 
13033
- Retrieves a Cluster Environment. Note: cluster_environment is called app_config on the backend api. # noqa: E501
13040
+ Returns billing information for the current organization. # noqa: E501
13034
13041
  This method makes a synchronous HTTP request by default. To make an
13035
13042
  asynchronous HTTP request, please pass async_req=True
13036
- >>> thread = api.get_application_template_api_v2_application_templates_application_template_id_get(application_template_id, async_req=True)
13043
+ >>> thread = api.get_billing_information_api_v2_organization_billing_billing_information_get(async_req=True)
13037
13044
  >>> result = thread.get()
13038
13045
 
13039
13046
  :param async_req bool: execute request asynchronously
13040
- :param str application_template_id: (required)
13041
13047
  :param _preload_content: if False, the urllib3.HTTPResponse object will
13042
13048
  be returned without reading/decoding response
13043
13049
  data. Default is True.
@@ -13045,24 +13051,23 @@ class DefaultApi(object):
13045
13051
  number provided, it will be total request
13046
13052
  timeout. It can also be a pair (tuple) of
13047
13053
  (connection, read) timeouts.
13048
- :return: DecoratedapplicationtemplateResponse
13054
+ :return: BillingInformation
13049
13055
  If the method is called asynchronously,
13050
13056
  returns the request thread.
13051
13057
  """
13052
13058
  kwargs['_return_http_data_only'] = True
13053
- return self.get_application_template_api_v2_application_templates_application_template_id_get_with_http_info(application_template_id, **kwargs) # noqa: E501
13059
+ return self.get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(**kwargs) # noqa: E501
13054
13060
 
13055
- def get_application_template_api_v2_application_templates_application_template_id_get_with_http_info(self, application_template_id, **kwargs): # noqa: E501
13056
- """Get Application Template # noqa: E501
13061
+ def get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(self, **kwargs): # noqa: E501
13062
+ """Get Billing Information # noqa: E501
13057
13063
 
13058
- Retrieves a Cluster Environment. Note: cluster_environment is called app_config on the backend api. # noqa: E501
13064
+ Returns billing information for the current organization. # noqa: E501
13059
13065
  This method makes a synchronous HTTP request by default. To make an
13060
13066
  asynchronous HTTP request, please pass async_req=True
13061
- >>> thread = api.get_application_template_api_v2_application_templates_application_template_id_get_with_http_info(application_template_id, async_req=True)
13067
+ >>> thread = api.get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(async_req=True)
13062
13068
  >>> result = thread.get()
13063
13069
 
13064
13070
  :param async_req bool: execute request asynchronously
13065
- :param str application_template_id: (required)
13066
13071
  :param _return_http_data_only: response data without head status code
13067
13072
  and headers
13068
13073
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -13072,7 +13077,7 @@ class DefaultApi(object):
13072
13077
  number provided, it will be total request
13073
13078
  timeout. It can also be a pair (tuple) of
13074
13079
  (connection, read) timeouts.
13075
- :return: tuple(DecoratedapplicationtemplateResponse, status_code(int), headers(HTTPHeaderDict))
13080
+ :return: tuple(BillingInformation, status_code(int), headers(HTTPHeaderDict))
13076
13081
  If the method is called asynchronously,
13077
13082
  returns the request thread.
13078
13083
  """
@@ -13080,7 +13085,6 @@ class DefaultApi(object):
13080
13085
  local_var_params = locals()
13081
13086
 
13082
13087
  all_params = [
13083
- 'application_template_id'
13084
13088
  ]
13085
13089
  all_params.extend(
13086
13090
  [
@@ -13095,118 +13099,7 @@ class DefaultApi(object):
13095
13099
  if key not in all_params:
13096
13100
  raise ApiTypeError(
13097
13101
  "Got an unexpected keyword argument '%s'"
13098
- " to method get_application_template_api_v2_application_templates_application_template_id_get" % key
13099
- )
13100
- local_var_params[key] = val
13101
- del local_var_params['kwargs']
13102
- # verify the required parameter 'application_template_id' is set
13103
- if self.api_client.client_side_validation and ('application_template_id' not in local_var_params or # noqa: E501
13104
- local_var_params['application_template_id'] is None): # noqa: E501
13105
- raise ApiValueError("Missing the required parameter `application_template_id` when calling `get_application_template_api_v2_application_templates_application_template_id_get`") # noqa: E501
13106
-
13107
- collection_formats = {}
13108
-
13109
- path_params = {}
13110
- if 'application_template_id' in local_var_params:
13111
- path_params['application_template_id'] = local_var_params['application_template_id'] # noqa: E501
13112
-
13113
- query_params = []
13114
-
13115
- header_params = {}
13116
-
13117
- form_params = []
13118
- local_var_files = {}
13119
-
13120
- body_params = None
13121
- # HTTP header `Accept`
13122
- header_params['Accept'] = self.api_client.select_header_accept(
13123
- ['application/json']) # noqa: E501
13124
-
13125
- # Authentication setting
13126
- auth_settings = [] # noqa: E501
13127
-
13128
- return self.api_client.call_api(
13129
- '/api/v2/application_templates/{application_template_id}', 'GET',
13130
- path_params,
13131
- query_params,
13132
- header_params,
13133
- body=body_params,
13134
- post_params=form_params,
13135
- files=local_var_files,
13136
- response_type='DecoratedapplicationtemplateResponse', # noqa: E501
13137
- auth_settings=auth_settings,
13138
- async_req=local_var_params.get('async_req'),
13139
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
13140
- _preload_content=local_var_params.get('_preload_content', True),
13141
- _request_timeout=local_var_params.get('_request_timeout'),
13142
- collection_formats=collection_formats)
13143
-
13144
- def get_billing_information_api_v2_organization_billing_billing_information_get(self, **kwargs): # noqa: E501
13145
- """Get Billing Information # noqa: E501
13146
-
13147
- Returns billing information for the current organization. # noqa: E501
13148
- This method makes a synchronous HTTP request by default. To make an
13149
- asynchronous HTTP request, please pass async_req=True
13150
- >>> thread = api.get_billing_information_api_v2_organization_billing_billing_information_get(async_req=True)
13151
- >>> result = thread.get()
13152
-
13153
- :param async_req bool: execute request asynchronously
13154
- :param _preload_content: if False, the urllib3.HTTPResponse object will
13155
- be returned without reading/decoding response
13156
- data. Default is True.
13157
- :param _request_timeout: timeout setting for this request. If one
13158
- number provided, it will be total request
13159
- timeout. It can also be a pair (tuple) of
13160
- (connection, read) timeouts.
13161
- :return: BillingInformation
13162
- If the method is called asynchronously,
13163
- returns the request thread.
13164
- """
13165
- kwargs['_return_http_data_only'] = True
13166
- return self.get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(**kwargs) # noqa: E501
13167
-
13168
- def get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(self, **kwargs): # noqa: E501
13169
- """Get Billing Information # noqa: E501
13170
-
13171
- Returns billing information for the current organization. # noqa: E501
13172
- This method makes a synchronous HTTP request by default. To make an
13173
- asynchronous HTTP request, please pass async_req=True
13174
- >>> thread = api.get_billing_information_api_v2_organization_billing_billing_information_get_with_http_info(async_req=True)
13175
- >>> result = thread.get()
13176
-
13177
- :param async_req bool: execute request asynchronously
13178
- :param _return_http_data_only: response data without head status code
13179
- and headers
13180
- :param _preload_content: if False, the urllib3.HTTPResponse object will
13181
- be returned without reading/decoding response
13182
- data. Default is True.
13183
- :param _request_timeout: timeout setting for this request. If one
13184
- number provided, it will be total request
13185
- timeout. It can also be a pair (tuple) of
13186
- (connection, read) timeouts.
13187
- :return: tuple(BillingInformation, status_code(int), headers(HTTPHeaderDict))
13188
- If the method is called asynchronously,
13189
- returns the request thread.
13190
- """
13191
-
13192
- local_var_params = locals()
13193
-
13194
- all_params = [
13195
- ]
13196
- all_params.extend(
13197
- [
13198
- 'async_req',
13199
- '_return_http_data_only',
13200
- '_preload_content',
13201
- '_request_timeout'
13202
- ]
13203
- )
13204
-
13205
- for key, val in six.iteritems(local_var_params['kwargs']):
13206
- if key not in all_params:
13207
- raise ApiTypeError(
13208
- "Got an unexpected keyword argument '%s'"
13209
- " to method get_billing_information_api_v2_organization_billing_billing_information_get" % key
13102
+ " to method get_billing_information_api_v2_organization_billing_billing_information_get" % key
13210
13103
  )
13211
13104
  local_var_params[key] = val
13212
13105
  del local_var_params['kwargs']
@@ -14887,6 +14780,118 @@ class DefaultApi(object):
14887
14780
  _request_timeout=local_var_params.get('_request_timeout'),
14888
14781
  collection_formats=collection_formats)
14889
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
+
14890
14895
  def get_dataset_api_v2_datasets_dataset_id_get(self, dataset_id, **kwargs): # noqa: E501
14891
14896
  """Get Dataset # noqa: E501
14892
14897
 
@@ -14905,7 +14910,7 @@ class DefaultApi(object):
14905
14910
  number provided, it will be total request
14906
14911
  timeout. It can also be a pair (tuple) of
14907
14912
  (connection, read) timeouts.
14908
- :return: DatasetResponse
14913
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
14909
14914
  If the method is called asynchronously,
14910
14915
  returns the request thread.
14911
14916
  """
@@ -14932,7 +14937,7 @@ class DefaultApi(object):
14932
14937
  number provided, it will be total request
14933
14938
  timeout. It can also be a pair (tuple) of
14934
14939
  (connection, read) timeouts.
14935
- :return: tuple(DatasetResponse, status_code(int), headers(HTTPHeaderDict))
14940
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14936
14941
  If the method is called asynchronously,
14937
14942
  returns the request thread.
14938
14943
  """
@@ -14993,7 +14998,7 @@ class DefaultApi(object):
14993
14998
  body=body_params,
14994
14999
  post_params=form_params,
14995
15000
  files=local_var_files,
14996
- response_type='DatasetResponse', # noqa: E501
15001
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
14997
15002
  auth_settings=auth_settings,
14998
15003
  async_req=local_var_params.get('async_req'),
14999
15004
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -18761,17 +18766,16 @@ class DefaultApi(object):
18761
18766
  _request_timeout=local_var_params.get('_request_timeout'),
18762
18767
  collection_formats=collection_formats)
18763
18768
 
18764
- def get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post(self, cloud_id, **kwargs): # noqa: E501
18765
- """Get Lb Resource # noqa: E501
18769
+ def get_jobs_api_v2_dataset_runs_jobs_get(self, cluster_id, **kwargs): # noqa: E501
18770
+ """Get Jobs # noqa: E501
18766
18771
 
18767
- Get lb resources for the cloud. # noqa: E501
18768
18772
  This method makes a synchronous HTTP request by default. To make an
18769
18773
  asynchronous HTTP request, please pass async_req=True
18770
- >>> thread = api.get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post(cloud_id, async_req=True)
18774
+ >>> thread = api.get_jobs_api_v2_dataset_runs_jobs_get(cluster_id, async_req=True)
18771
18775
  >>> result = thread.get()
18772
18776
 
18773
18777
  :param async_req bool: execute request asynchronously
18774
- :param str cloud_id: (required)
18778
+ :param str cluster_id: (required)
18775
18779
  :param _preload_content: if False, the urllib3.HTTPResponse object will
18776
18780
  be returned without reading/decoding response
18777
18781
  data. Default is True.
@@ -18779,24 +18783,23 @@ class DefaultApi(object):
18779
18783
  number provided, it will be total request
18780
18784
  timeout. It can also be a pair (tuple) of
18781
18785
  (connection, read) timeouts.
18782
- :return: LbresourceResponse
18786
+ :return: DatasetJobs
18783
18787
  If the method is called asynchronously,
18784
18788
  returns the request thread.
18785
18789
  """
18786
18790
  kwargs['_return_http_data_only'] = True
18787
- return self.get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post_with_http_info(cloud_id, **kwargs) # noqa: E501
18791
+ return self.get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(cluster_id, **kwargs) # noqa: E501
18788
18792
 
18789
- def get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post_with_http_info(self, cloud_id, **kwargs): # noqa: E501
18790
- """Get Lb Resource # noqa: E501
18793
+ def get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
18794
+ """Get Jobs # noqa: E501
18791
18795
 
18792
- Get lb resources for the cloud. # noqa: E501
18793
18796
  This method makes a synchronous HTTP request by default. To make an
18794
18797
  asynchronous HTTP request, please pass async_req=True
18795
- >>> thread = api.get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post_with_http_info(cloud_id, async_req=True)
18798
+ >>> thread = api.get_jobs_api_v2_dataset_runs_jobs_get_with_http_info(cluster_id, async_req=True)
18796
18799
  >>> result = thread.get()
18797
18800
 
18798
18801
  :param async_req bool: execute request asynchronously
18799
- :param str cloud_id: (required)
18802
+ :param str cluster_id: (required)
18800
18803
  :param _return_http_data_only: response data without head status code
18801
18804
  and headers
18802
18805
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -18806,7 +18809,7 @@ class DefaultApi(object):
18806
18809
  number provided, it will be total request
18807
18810
  timeout. It can also be a pair (tuple) of
18808
18811
  (connection, read) timeouts.
18809
- :return: tuple(LbresourceResponse, status_code(int), headers(HTTPHeaderDict))
18812
+ :return: tuple(DatasetJobs, status_code(int), headers(HTTPHeaderDict))
18810
18813
  If the method is called asynchronously,
18811
18814
  returns the request thread.
18812
18815
  """
@@ -18814,7 +18817,7 @@ class DefaultApi(object):
18814
18817
  local_var_params = locals()
18815
18818
 
18816
18819
  all_params = [
18817
- 'cloud_id'
18820
+ 'cluster_id'
18818
18821
  ]
18819
18822
  all_params.extend(
18820
18823
  [
@@ -18829,22 +18832,22 @@ class DefaultApi(object):
18829
18832
  if key not in all_params:
18830
18833
  raise ApiTypeError(
18831
18834
  "Got an unexpected keyword argument '%s'"
18832
- " to method get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post" % key
18835
+ " to method get_jobs_api_v2_dataset_runs_jobs_get" % key
18833
18836
  )
18834
18837
  local_var_params[key] = val
18835
18838
  del local_var_params['kwargs']
18836
- # verify the required parameter 'cloud_id' is set
18837
- if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
18838
- local_var_params['cloud_id'] is None): # noqa: E501
18839
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post`") # noqa: E501
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
18840
18843
 
18841
18844
  collection_formats = {}
18842
18845
 
18843
18846
  path_params = {}
18844
- if 'cloud_id' in local_var_params:
18845
- path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
18846
18847
 
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
18848
18851
 
18849
18852
  header_params = {}
18850
18853
 
@@ -18860,14 +18863,14 @@ class DefaultApi(object):
18860
18863
  auth_settings = [] # noqa: E501
18861
18864
 
18862
18865
  return self.api_client.call_api(
18863
- '/api/v2/clouds_with_cloud_resource_gcp_router/{cloud_id}/get_lb_resource', 'POST',
18866
+ '/api/v2/dataset_runs/jobs', 'GET',
18864
18867
  path_params,
18865
18868
  query_params,
18866
18869
  header_params,
18867
18870
  body=body_params,
18868
18871
  post_params=form_params,
18869
18872
  files=local_var_files,
18870
- response_type='LbresourceResponse', # noqa: E501
18873
+ response_type='DatasetJobs', # noqa: E501
18871
18874
  auth_settings=auth_settings,
18872
18875
  async_req=local_var_params.get('async_req'),
18873
18876
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -18875,17 +18878,17 @@ class DefaultApi(object):
18875
18878
  _request_timeout=local_var_params.get('_request_timeout'),
18876
18879
  collection_formats=collection_formats)
18877
18880
 
18878
- def get_log_files_api_v2_logs_get_log_files_post(self, **kwargs): # noqa: E501
18879
- """Get Log Files # noqa: E501
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
18882
+ """Get Lb Resource # noqa: E501
18880
18883
 
18881
- API for downloading logs of a session. This is a paginated api, which means that a single call to this will result in one page of results (log files). The page size and next page token (in LogDownloadRequest) can be used to list all log files, either iteratively or in a single go. Parameters ---------- log_download_request: LogDownloadRequest Parameters to filter logs and control download. This is read from the request body. Returns ------- Response[LogDownloadResult] List of logs files, with their presigned URL and next page token if there are more results. Raises ------ HTTPException(400) If the user is using a cloud provider (currently non-AWS) that does not support this feature. HTTPException(403) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading logs. # noqa: E501
18884
+ Get lb resources for the cloud. # noqa: E501
18882
18885
  This method makes a synchronous HTTP request by default. To make an
18883
18886
  asynchronous HTTP request, please pass async_req=True
18884
- >>> thread = api.get_log_files_api_v2_logs_get_log_files_post(async_req=True)
18887
+ >>> thread = api.get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post(cloud_id, async_req=True)
18885
18888
  >>> result = thread.get()
18886
18889
 
18887
18890
  :param async_req bool: execute request asynchronously
18888
- :param LogDownloadRequest log_download_request:
18891
+ :param str cloud_id: (required)
18889
18892
  :param _preload_content: if False, the urllib3.HTTPResponse object will
18890
18893
  be returned without reading/decoding response
18891
18894
  data. Default is True.
@@ -18893,24 +18896,24 @@ class DefaultApi(object):
18893
18896
  number provided, it will be total request
18894
18897
  timeout. It can also be a pair (tuple) of
18895
18898
  (connection, read) timeouts.
18896
- :return: LogdownloadresultResponse
18899
+ :return: LbresourceResponse
18897
18900
  If the method is called asynchronously,
18898
18901
  returns the request thread.
18899
18902
  """
18900
18903
  kwargs['_return_http_data_only'] = True
18901
- return self.get_log_files_api_v2_logs_get_log_files_post_with_http_info(**kwargs) # noqa: E501
18904
+ return self.get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post_with_http_info(cloud_id, **kwargs) # noqa: E501
18902
18905
 
18903
- def get_log_files_api_v2_logs_get_log_files_post_with_http_info(self, **kwargs): # noqa: E501
18904
- """Get Log Files # noqa: E501
18906
+ def get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post_with_http_info(self, cloud_id, **kwargs): # noqa: E501
18907
+ """Get Lb Resource # noqa: E501
18905
18908
 
18906
- API for downloading logs of a session. This is a paginated api, which means that a single call to this will result in one page of results (log files). The page size and next page token (in LogDownloadRequest) can be used to list all log files, either iteratively or in a single go. Parameters ---------- log_download_request: LogDownloadRequest Parameters to filter logs and control download. This is read from the request body. Returns ------- Response[LogDownloadResult] List of logs files, with their presigned URL and next page token if there are more results. Raises ------ HTTPException(400) If the user is using a cloud provider (currently non-AWS) that does not support this feature. HTTPException(403) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading logs. # noqa: E501
18909
+ Get lb resources for the cloud. # noqa: E501
18907
18910
  This method makes a synchronous HTTP request by default. To make an
18908
18911
  asynchronous HTTP request, please pass async_req=True
18909
- >>> thread = api.get_log_files_api_v2_logs_get_log_files_post_with_http_info(async_req=True)
18912
+ >>> thread = api.get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post_with_http_info(cloud_id, async_req=True)
18910
18913
  >>> result = thread.get()
18911
18914
 
18912
18915
  :param async_req bool: execute request asynchronously
18913
- :param LogDownloadRequest log_download_request:
18916
+ :param str cloud_id: (required)
18914
18917
  :param _return_http_data_only: response data without head status code
18915
18918
  and headers
18916
18919
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -18920,7 +18923,7 @@ class DefaultApi(object):
18920
18923
  number provided, it will be total request
18921
18924
  timeout. It can also be a pair (tuple) of
18922
18925
  (connection, read) timeouts.
18923
- :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
18926
+ :return: tuple(LbresourceResponse, status_code(int), headers(HTTPHeaderDict))
18924
18927
  If the method is called asynchronously,
18925
18928
  returns the request thread.
18926
18929
  """
@@ -18928,7 +18931,7 @@ class DefaultApi(object):
18928
18931
  local_var_params = locals()
18929
18932
 
18930
18933
  all_params = [
18931
- 'log_download_request'
18934
+ 'cloud_id'
18932
18935
  ]
18933
18936
  all_params.extend(
18934
18937
  [
@@ -18943,14 +18946,20 @@ class DefaultApi(object):
18943
18946
  if key not in all_params:
18944
18947
  raise ApiTypeError(
18945
18948
  "Got an unexpected keyword argument '%s'"
18946
- " to method get_log_files_api_v2_logs_get_log_files_post" % key
18949
+ " to method get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post" % key
18947
18950
  )
18948
18951
  local_var_params[key] = val
18949
18952
  del local_var_params['kwargs']
18953
+ # verify the required parameter 'cloud_id' is set
18954
+ if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
18955
+ local_var_params['cloud_id'] is None): # noqa: E501
18956
+ raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_lb_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_get_lb_resource_post`") # noqa: E501
18950
18957
 
18951
18958
  collection_formats = {}
18952
18959
 
18953
18960
  path_params = {}
18961
+ if 'cloud_id' in local_var_params:
18962
+ path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
18954
18963
 
18955
18964
  query_params = []
18956
18965
 
@@ -18960,28 +18969,22 @@ class DefaultApi(object):
18960
18969
  local_var_files = {}
18961
18970
 
18962
18971
  body_params = None
18963
- if 'log_download_request' in local_var_params:
18964
- body_params = local_var_params['log_download_request']
18965
18972
  # HTTP header `Accept`
18966
18973
  header_params['Accept'] = self.api_client.select_header_accept(
18967
18974
  ['application/json']) # noqa: E501
18968
18975
 
18969
- # HTTP header `Content-Type`
18970
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
18971
- ['application/json']) # noqa: E501
18972
-
18973
18976
  # Authentication setting
18974
18977
  auth_settings = [] # noqa: E501
18975
18978
 
18976
18979
  return self.api_client.call_api(
18977
- '/api/v2/logs/get_log_files', 'POST',
18980
+ '/api/v2/clouds_with_cloud_resource_gcp_router/{cloud_id}/get_lb_resource', 'POST',
18978
18981
  path_params,
18979
18982
  query_params,
18980
18983
  header_params,
18981
18984
  body=body_params,
18982
18985
  post_params=form_params,
18983
18986
  files=local_var_files,
18984
- response_type='LogdownloadresultResponse', # noqa: E501
18987
+ response_type='LbresourceResponse', # noqa: E501
18985
18988
  auth_settings=auth_settings,
18986
18989
  async_req=local_var_params.get('async_req'),
18987
18990
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -18989,17 +18992,16 @@ class DefaultApi(object):
18989
18992
  _request_timeout=local_var_params.get('_request_timeout'),
18990
18993
  collection_formats=collection_formats)
18991
18994
 
18992
- def get_log_files_api_v2_sessions_session_id_get_log_files_post(self, session_id, **kwargs): # noqa: E501
18995
+ def get_log_files_api_v2_logs_get_log_files_post(self, **kwargs): # noqa: E501
18993
18996
  """Get Log Files # noqa: E501
18994
18997
 
18995
- API for downloading logs of a session. This is a paginated api, which means that a single call to this will result in one page of results (log files). The page size and next page token (in LogDownloadRequest) can be used to list all log files, either iteratively or in a single go. Parameters ---------- session_id: str DB id of the session. This is a path parameter. If session_id is 'latest', then atleast one of job_id or job_run must be provided in LogDownloadRequest. log_download_request: Optional[LogDownloadRequest] Parameters to filter logs and control download. This is read from the request body. base_sessions_service: BaseSessionsService The session service, which provides the necessary orchestration for downloading logs. premission_service: SessionPermissionsService The permission sercice. This is used to do authorization checks. auth_context: AuthContext The auth context of the user. db_connections: Any Connection to the DB. Returns ------- Response[LogDetails] List of logs files, with their presigned URL and next page token if there are more results. Raises ------ HTTPException(401) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading logs. # noqa: E501
18998
+ API for downloading logs of a session. This is a paginated api, which means that a single call to this will result in one page of results (log files). The page size and next page token (in LogDownloadRequest) can be used to list all log files, either iteratively or in a single go. Parameters ---------- log_download_request: LogDownloadRequest Parameters to filter logs and control download. This is read from the request body. Returns ------- Response[LogDownloadResult] List of logs files, with their presigned URL and next page token if there are more results. Raises ------ HTTPException(400) If the user is using a cloud provider (currently non-AWS) that does not support this feature. HTTPException(403) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading logs. # noqa: E501
18996
18999
  This method makes a synchronous HTTP request by default. To make an
18997
19000
  asynchronous HTTP request, please pass async_req=True
18998
- >>> thread = api.get_log_files_api_v2_sessions_session_id_get_log_files_post(session_id, async_req=True)
19001
+ >>> thread = api.get_log_files_api_v2_logs_get_log_files_post(async_req=True)
18999
19002
  >>> result = thread.get()
19000
19003
 
19001
19004
  :param async_req bool: execute request asynchronously
19002
- :param str session_id: the session id or 'latest' (required)
19003
19005
  :param LogDownloadRequest log_download_request:
19004
19006
  :param _preload_content: if False, the urllib3.HTTPResponse object will
19005
19007
  be returned without reading/decoding response
@@ -19008,24 +19010,23 @@ class DefaultApi(object):
19008
19010
  number provided, it will be total request
19009
19011
  timeout. It can also be a pair (tuple) of
19010
19012
  (connection, read) timeouts.
19011
- :return: LogdetailsResponse
19013
+ :return: LogdownloadresultResponse
19012
19014
  If the method is called asynchronously,
19013
19015
  returns the request thread.
19014
19016
  """
19015
19017
  kwargs['_return_http_data_only'] = True
19016
- return self.get_log_files_api_v2_sessions_session_id_get_log_files_post_with_http_info(session_id, **kwargs) # noqa: E501
19018
+ return self.get_log_files_api_v2_logs_get_log_files_post_with_http_info(**kwargs) # noqa: E501
19017
19019
 
19018
- def get_log_files_api_v2_sessions_session_id_get_log_files_post_with_http_info(self, session_id, **kwargs): # noqa: E501
19020
+ def get_log_files_api_v2_logs_get_log_files_post_with_http_info(self, **kwargs): # noqa: E501
19019
19021
  """Get Log Files # noqa: E501
19020
19022
 
19021
- API for downloading logs of a session. This is a paginated api, which means that a single call to this will result in one page of results (log files). The page size and next page token (in LogDownloadRequest) can be used to list all log files, either iteratively or in a single go. Parameters ---------- session_id: str DB id of the session. This is a path parameter. If session_id is 'latest', then atleast one of job_id or job_run must be provided in LogDownloadRequest. log_download_request: Optional[LogDownloadRequest] Parameters to filter logs and control download. This is read from the request body. base_sessions_service: BaseSessionsService The session service, which provides the necessary orchestration for downloading logs. premission_service: SessionPermissionsService The permission sercice. This is used to do authorization checks. auth_context: AuthContext The auth context of the user. db_connections: Any Connection to the DB. Returns ------- Response[LogDetails] List of logs files, with their presigned URL and next page token if there are more results. Raises ------ HTTPException(401) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading logs. # noqa: E501
19023
+ API for downloading logs of a session. This is a paginated api, which means that a single call to this will result in one page of results (log files). The page size and next page token (in LogDownloadRequest) can be used to list all log files, either iteratively or in a single go. Parameters ---------- log_download_request: LogDownloadRequest Parameters to filter logs and control download. This is read from the request body. Returns ------- Response[LogDownloadResult] List of logs files, with their presigned URL and next page token if there are more results. Raises ------ HTTPException(400) If the user is using a cloud provider (currently non-AWS) that does not support this feature. HTTPException(403) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading logs. # noqa: E501
19022
19024
  This method makes a synchronous HTTP request by default. To make an
19023
19025
  asynchronous HTTP request, please pass async_req=True
19024
- >>> thread = api.get_log_files_api_v2_sessions_session_id_get_log_files_post_with_http_info(session_id, async_req=True)
19026
+ >>> thread = api.get_log_files_api_v2_logs_get_log_files_post_with_http_info(async_req=True)
19025
19027
  >>> result = thread.get()
19026
19028
 
19027
19029
  :param async_req bool: execute request asynchronously
19028
- :param str session_id: the session id or 'latest' (required)
19029
19030
  :param LogDownloadRequest log_download_request:
19030
19031
  :param _return_http_data_only: response data without head status code
19031
19032
  and headers
@@ -19036,7 +19037,7 @@ class DefaultApi(object):
19036
19037
  number provided, it will be total request
19037
19038
  timeout. It can also be a pair (tuple) of
19038
19039
  (connection, read) timeouts.
19039
- :return: tuple(LogdetailsResponse, status_code(int), headers(HTTPHeaderDict))
19040
+ :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
19040
19041
  If the method is called asynchronously,
19041
19042
  returns the request thread.
19042
19043
  """
@@ -19044,7 +19045,6 @@ class DefaultApi(object):
19044
19045
  local_var_params = locals()
19045
19046
 
19046
19047
  all_params = [
19047
- 'session_id',
19048
19048
  'log_download_request'
19049
19049
  ]
19050
19050
  all_params.extend(
@@ -19060,20 +19060,14 @@ class DefaultApi(object):
19060
19060
  if key not in all_params:
19061
19061
  raise ApiTypeError(
19062
19062
  "Got an unexpected keyword argument '%s'"
19063
- " to method get_log_files_api_v2_sessions_session_id_get_log_files_post" % key
19063
+ " to method get_log_files_api_v2_logs_get_log_files_post" % key
19064
19064
  )
19065
19065
  local_var_params[key] = val
19066
19066
  del local_var_params['kwargs']
19067
- # verify the required parameter 'session_id' is set
19068
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
19069
- local_var_params['session_id'] is None): # noqa: E501
19070
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_log_files_api_v2_sessions_session_id_get_log_files_post`") # noqa: E501
19071
19067
 
19072
19068
  collection_formats = {}
19073
19069
 
19074
19070
  path_params = {}
19075
- if 'session_id' in local_var_params:
19076
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
19077
19071
 
19078
19072
  query_params = []
19079
19073
 
@@ -19097,14 +19091,14 @@ class DefaultApi(object):
19097
19091
  auth_settings = [] # noqa: E501
19098
19092
 
19099
19093
  return self.api_client.call_api(
19100
- '/api/v2/sessions/{session_id}/get_log_files', 'POST',
19094
+ '/api/v2/logs/get_log_files', 'POST',
19101
19095
  path_params,
19102
19096
  query_params,
19103
19097
  header_params,
19104
19098
  body=body_params,
19105
19099
  post_params=form_params,
19106
19100
  files=local_var_files,
19107
- response_type='LogdetailsResponse', # noqa: E501
19101
+ response_type='LogdownloadresultResponse', # noqa: E501
19108
19102
  auth_settings=auth_settings,
19109
19103
  async_req=local_var_params.get('async_req'),
19110
19104
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -20837,127 +20831,6 @@ class DefaultApi(object):
20837
20831
  _request_timeout=local_var_params.get('_request_timeout'),
20838
20832
  collection_formats=collection_formats)
20839
20833
 
20840
- def get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get(self, cloud_id, max_staleness, **kwargs): # noqa: E501
20841
- """Get Provider Metadata # noqa: E501
20842
-
20843
- This method makes a synchronous HTTP request by default. To make an
20844
- asynchronous HTTP request, please pass async_req=True
20845
- >>> thread = api.get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get(cloud_id, max_staleness, async_req=True)
20846
- >>> result = thread.get()
20847
-
20848
- :param async_req bool: execute request asynchronously
20849
- :param str cloud_id: (required)
20850
- :param float max_staleness: (required)
20851
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20852
- be returned without reading/decoding response
20853
- data. Default is True.
20854
- :param _request_timeout: timeout setting for this request. If one
20855
- number provided, it will be total request
20856
- timeout. It can also be a pair (tuple) of
20857
- (connection, read) timeouts.
20858
- :return: ProvidermetadataResponse
20859
- If the method is called asynchronously,
20860
- returns the request thread.
20861
- """
20862
- kwargs['_return_http_data_only'] = True
20863
- return self.get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get_with_http_info(cloud_id, max_staleness, **kwargs) # noqa: E501
20864
-
20865
- def get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get_with_http_info(self, cloud_id, max_staleness, **kwargs): # noqa: E501
20866
- """Get Provider Metadata # noqa: E501
20867
-
20868
- This method makes a synchronous HTTP request by default. To make an
20869
- asynchronous HTTP request, please pass async_req=True
20870
- >>> thread = api.get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get_with_http_info(cloud_id, max_staleness, async_req=True)
20871
- >>> result = thread.get()
20872
-
20873
- :param async_req bool: execute request asynchronously
20874
- :param str cloud_id: (required)
20875
- :param float max_staleness: (required)
20876
- :param _return_http_data_only: response data without head status code
20877
- and headers
20878
- :param _preload_content: if False, the urllib3.HTTPResponse object will
20879
- be returned without reading/decoding response
20880
- data. Default is True.
20881
- :param _request_timeout: timeout setting for this request. If one
20882
- number provided, it will be total request
20883
- timeout. It can also be a pair (tuple) of
20884
- (connection, read) timeouts.
20885
- :return: tuple(ProvidermetadataResponse, status_code(int), headers(HTTPHeaderDict))
20886
- If the method is called asynchronously,
20887
- returns the request thread.
20888
- """
20889
-
20890
- local_var_params = locals()
20891
-
20892
- all_params = [
20893
- 'cloud_id',
20894
- 'max_staleness'
20895
- ]
20896
- all_params.extend(
20897
- [
20898
- 'async_req',
20899
- '_return_http_data_only',
20900
- '_preload_content',
20901
- '_request_timeout'
20902
- ]
20903
- )
20904
-
20905
- for key, val in six.iteritems(local_var_params['kwargs']):
20906
- if key not in all_params:
20907
- raise ApiTypeError(
20908
- "Got an unexpected keyword argument '%s'"
20909
- " to method get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get" % key
20910
- )
20911
- local_var_params[key] = val
20912
- del local_var_params['kwargs']
20913
- # verify the required parameter 'cloud_id' is set
20914
- if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
20915
- local_var_params['cloud_id'] is None): # noqa: E501
20916
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get`") # noqa: E501
20917
- # verify the required parameter 'max_staleness' is set
20918
- if self.api_client.client_side_validation and ('max_staleness' not in local_var_params or # noqa: E501
20919
- local_var_params['max_staleness'] is None): # noqa: E501
20920
- raise ApiValueError("Missing the required parameter `max_staleness` when calling `get_provider_metadata_api_v2_clouds_provider_metadata_cloud_id_get`") # noqa: E501
20921
-
20922
- collection_formats = {}
20923
-
20924
- path_params = {}
20925
- if 'cloud_id' in local_var_params:
20926
- path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
20927
-
20928
- query_params = []
20929
- if 'max_staleness' in local_var_params and local_var_params['max_staleness'] is not None: # noqa: E501
20930
- query_params.append(('max_staleness', local_var_params['max_staleness'])) # noqa: E501
20931
-
20932
- header_params = {}
20933
-
20934
- form_params = []
20935
- local_var_files = {}
20936
-
20937
- body_params = None
20938
- # HTTP header `Accept`
20939
- header_params['Accept'] = self.api_client.select_header_accept(
20940
- ['application/json']) # noqa: E501
20941
-
20942
- # Authentication setting
20943
- auth_settings = [] # noqa: E501
20944
-
20945
- return self.api_client.call_api(
20946
- '/api/v2/clouds/provider_metadata/{cloud_id}', 'GET',
20947
- path_params,
20948
- query_params,
20949
- header_params,
20950
- body=body_params,
20951
- post_params=form_params,
20952
- files=local_var_files,
20953
- response_type='ProvidermetadataResponse', # noqa: E501
20954
- auth_settings=auth_settings,
20955
- async_req=local_var_params.get('async_req'),
20956
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20957
- _preload_content=local_var_params.get('_preload_content', True),
20958
- _request_timeout=local_var_params.get('_request_timeout'),
20959
- collection_formats=collection_formats)
20960
-
20961
20834
  def get_public_identifier_api_v2_organizations_public_identifier_get(self, organization_name, **kwargs): # noqa: E501
20962
20835
  """Get Public Identifier # noqa: E501
20963
20836
 
@@ -21070,130 +20943,6 @@ class DefaultApi(object):
21070
20943
  _request_timeout=local_var_params.get('_request_timeout'),
21071
20944
  collection_formats=collection_formats)
21072
20945
 
21073
- def get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get(self, session_id, **kwargs): # noqa: E501
21074
- """Get Ray Result Files # noqa: E501
21075
-
21076
- API for downloading ray tune results of a session. Parameters ---------- session_id: str DB id of the session. This is a path parameter. If session_id is 'latest', then atleast one of production_job_id or ray_job_submission_id must be provided in the query parameters. job_id: Optional[str] DB id of the production job. This is a query parameter. job_run: Optional[str] Ray job submission id of the job run, also known as job run name in the UI. This is a query parameter. base_sessions_service: BaseSessionsService The session service, which provides the necessary orchestration for downloading logs. premission_service: SessionPermissionsService The permission sercice. This is used to do authorization checks. auth_context: AuthContext The auth context of the user. db_connections: Any Connection to the DB. Returns ------- Response[LogDetails] The ray tune results files, with their presigned URL. Raises ------ HTTPException(401) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading ray tune results. # noqa: E501
21077
- This method makes a synchronous HTTP request by default. To make an
21078
- asynchronous HTTP request, please pass async_req=True
21079
- >>> thread = api.get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get(session_id, async_req=True)
21080
- >>> result = thread.get()
21081
-
21082
- :param async_req bool: execute request asynchronously
21083
- :param str session_id: the session id or 'latest' (required)
21084
- :param str job_id: job id to download ray results.
21085
- :param str job_run: job run name to download ray results.
21086
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21087
- be returned without reading/decoding response
21088
- data. Default is True.
21089
- :param _request_timeout: timeout setting for this request. If one
21090
- number provided, it will be total request
21091
- timeout. It can also be a pair (tuple) of
21092
- (connection, read) timeouts.
21093
- :return: LogdetailsResponse
21094
- If the method is called asynchronously,
21095
- returns the request thread.
21096
- """
21097
- kwargs['_return_http_data_only'] = True
21098
- return self.get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get_with_http_info(session_id, **kwargs) # noqa: E501
21099
-
21100
- def get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get_with_http_info(self, session_id, **kwargs): # noqa: E501
21101
- """Get Ray Result Files # noqa: E501
21102
-
21103
- API for downloading ray tune results of a session. Parameters ---------- session_id: str DB id of the session. This is a path parameter. If session_id is 'latest', then atleast one of production_job_id or ray_job_submission_id must be provided in the query parameters. job_id: Optional[str] DB id of the production job. This is a query parameter. job_run: Optional[str] Ray job submission id of the job run, also known as job run name in the UI. This is a query parameter. base_sessions_service: BaseSessionsService The session service, which provides the necessary orchestration for downloading logs. premission_service: SessionPermissionsService The permission sercice. This is used to do authorization checks. auth_context: AuthContext The auth context of the user. db_connections: Any Connection to the DB. Returns ------- Response[LogDetails] The ray tune results files, with their presigned URL. Raises ------ HTTPException(401) If the user does not have access to the session. HTTPException(404) If the session or cloud could not be found in the DB. HTTPException(500) If there are any other errors while downloading ray tune results. # noqa: E501
21104
- This method makes a synchronous HTTP request by default. To make an
21105
- asynchronous HTTP request, please pass async_req=True
21106
- >>> thread = api.get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get_with_http_info(session_id, async_req=True)
21107
- >>> result = thread.get()
21108
-
21109
- :param async_req bool: execute request asynchronously
21110
- :param str session_id: the session id or 'latest' (required)
21111
- :param str job_id: job id to download ray results.
21112
- :param str job_run: job run name to download ray results.
21113
- :param _return_http_data_only: response data without head status code
21114
- and headers
21115
- :param _preload_content: if False, the urllib3.HTTPResponse object will
21116
- be returned without reading/decoding response
21117
- data. Default is True.
21118
- :param _request_timeout: timeout setting for this request. If one
21119
- number provided, it will be total request
21120
- timeout. It can also be a pair (tuple) of
21121
- (connection, read) timeouts.
21122
- :return: tuple(LogdetailsResponse, status_code(int), headers(HTTPHeaderDict))
21123
- If the method is called asynchronously,
21124
- returns the request thread.
21125
- """
21126
-
21127
- local_var_params = locals()
21128
-
21129
- all_params = [
21130
- 'session_id',
21131
- 'job_id',
21132
- 'job_run'
21133
- ]
21134
- all_params.extend(
21135
- [
21136
- 'async_req',
21137
- '_return_http_data_only',
21138
- '_preload_content',
21139
- '_request_timeout'
21140
- ]
21141
- )
21142
-
21143
- for key, val in six.iteritems(local_var_params['kwargs']):
21144
- if key not in all_params:
21145
- raise ApiTypeError(
21146
- "Got an unexpected keyword argument '%s'"
21147
- " to method get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get" % key
21148
- )
21149
- local_var_params[key] = val
21150
- del local_var_params['kwargs']
21151
- # verify the required parameter 'session_id' is set
21152
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
21153
- local_var_params['session_id'] is None): # noqa: E501
21154
- raise ApiValueError("Missing the required parameter `session_id` when calling `get_ray_result_files_api_v2_sessions_session_id_get_ray_result_files_get`") # noqa: E501
21155
-
21156
- collection_formats = {}
21157
-
21158
- path_params = {}
21159
- if 'session_id' in local_var_params:
21160
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
21161
-
21162
- query_params = []
21163
- if 'job_id' in local_var_params and local_var_params['job_id'] is not None: # noqa: E501
21164
- query_params.append(('job_id', local_var_params['job_id'])) # noqa: E501
21165
- if 'job_run' in local_var_params and local_var_params['job_run'] is not None: # noqa: E501
21166
- query_params.append(('job_run', local_var_params['job_run'])) # noqa: E501
21167
-
21168
- header_params = {}
21169
-
21170
- form_params = []
21171
- local_var_files = {}
21172
-
21173
- body_params = None
21174
- # HTTP header `Accept`
21175
- header_params['Accept'] = self.api_client.select_header_accept(
21176
- ['application/json']) # noqa: E501
21177
-
21178
- # Authentication setting
21179
- auth_settings = [] # noqa: E501
21180
-
21181
- return self.api_client.call_api(
21182
- '/api/v2/sessions/{session_id}/get_ray_result_files', 'GET',
21183
- path_params,
21184
- query_params,
21185
- header_params,
21186
- body=body_params,
21187
- post_params=form_params,
21188
- files=local_var_files,
21189
- response_type='LogdetailsResponse', # noqa: E501
21190
- auth_settings=auth_settings,
21191
- async_req=local_var_params.get('async_req'),
21192
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21193
- _preload_content=local_var_params.get('_preload_content', True),
21194
- _request_timeout=local_var_params.get('_request_timeout'),
21195
- collection_formats=collection_formats)
21196
-
21197
20946
  def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(self, **kwargs): # noqa: E501
21198
20947
  """Get Recent Cluster Compute Configs # noqa: E501
21199
20948
 
@@ -24925,6 +24674,146 @@ class DefaultApi(object):
24925
24674
  _request_timeout=local_var_params.get('_request_timeout'),
24926
24675
  collection_formats=collection_formats)
24927
24676
 
24677
+ def get_train_logs_download_api_v2_train_runs_logs_get(self, cluster_id, log_id, **kwargs): # noqa: E501
24678
+ """Get Train Logs Download # noqa: E501
24679
+
24680
+ 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. # noqa: E501
24681
+ This method makes a synchronous HTTP request by default. To make an
24682
+ asynchronous HTTP request, please pass async_req=True
24683
+ >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get(cluster_id, log_id, async_req=True)
24684
+ >>> result = thread.get()
24685
+
24686
+ :param async_req bool: execute request asynchronously
24687
+ :param str cluster_id: (required)
24688
+ :param str log_id: (required)
24689
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
24690
+ :param str next_page_token: Pagination token for getting newer logs.
24691
+ :param str previous_page_token: Pagination token for getting older logs.
24692
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24693
+ be returned without reading/decoding response
24694
+ data. Default is True.
24695
+ :param _request_timeout: timeout setting for this request. If one
24696
+ number provided, it will be total request
24697
+ timeout. It can also be a pair (tuple) of
24698
+ (connection, read) timeouts.
24699
+ :return: LogdownloadresultResponse
24700
+ If the method is called asynchronously,
24701
+ returns the request thread.
24702
+ """
24703
+ kwargs['_return_http_data_only'] = True
24704
+ return self.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, **kwargs) # noqa: E501
24705
+
24706
+ def get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(self, cluster_id, log_id, **kwargs): # noqa: E501
24707
+ """Get Train Logs Download # noqa: E501
24708
+
24709
+ 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. # noqa: E501
24710
+ This method makes a synchronous HTTP request by default. To make an
24711
+ asynchronous HTTP request, please pass async_req=True
24712
+ >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, async_req=True)
24713
+ >>> result = thread.get()
24714
+
24715
+ :param async_req bool: execute request asynchronously
24716
+ :param str cluster_id: (required)
24717
+ :param str log_id: (required)
24718
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
24719
+ :param str next_page_token: Pagination token for getting newer logs.
24720
+ :param str previous_page_token: Pagination token for getting older logs.
24721
+ :param _return_http_data_only: response data without head status code
24722
+ and headers
24723
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24724
+ be returned without reading/decoding response
24725
+ data. Default is True.
24726
+ :param _request_timeout: timeout setting for this request. If one
24727
+ number provided, it will be total request
24728
+ timeout. It can also be a pair (tuple) of
24729
+ (connection, read) timeouts.
24730
+ :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
24731
+ If the method is called asynchronously,
24732
+ returns the request thread.
24733
+ """
24734
+
24735
+ local_var_params = locals()
24736
+
24737
+ all_params = [
24738
+ 'cluster_id',
24739
+ 'log_id',
24740
+ 'page_size',
24741
+ 'next_page_token',
24742
+ 'previous_page_token'
24743
+ ]
24744
+ all_params.extend(
24745
+ [
24746
+ 'async_req',
24747
+ '_return_http_data_only',
24748
+ '_preload_content',
24749
+ '_request_timeout'
24750
+ ]
24751
+ )
24752
+
24753
+ for key, val in six.iteritems(local_var_params['kwargs']):
24754
+ if key not in all_params:
24755
+ raise ApiTypeError(
24756
+ "Got an unexpected keyword argument '%s'"
24757
+ " to method get_train_logs_download_api_v2_train_runs_logs_get" % key
24758
+ )
24759
+ local_var_params[key] = val
24760
+ del local_var_params['kwargs']
24761
+ # verify the required parameter 'cluster_id' is set
24762
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
24763
+ local_var_params['cluster_id'] is None): # noqa: E501
24764
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_train_logs_download_api_v2_train_runs_logs_get`") # noqa: E501
24765
+ # verify the required parameter 'log_id' is set
24766
+ if self.api_client.client_side_validation and ('log_id' not in local_var_params or # noqa: E501
24767
+ local_var_params['log_id'] is None): # noqa: E501
24768
+ raise ApiValueError("Missing the required parameter `log_id` when calling `get_train_logs_download_api_v2_train_runs_logs_get`") # noqa: E501
24769
+
24770
+ if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
24771
+ raise ApiValueError("Invalid value for parameter `page_size` when calling `get_train_logs_download_api_v2_train_runs_logs_get`, must be a value less than or equal to `1000`") # noqa: E501
24772
+ collection_formats = {}
24773
+
24774
+ path_params = {}
24775
+
24776
+ query_params = []
24777
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
24778
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
24779
+ if 'log_id' in local_var_params and local_var_params['log_id'] is not None: # noqa: E501
24780
+ query_params.append(('log_id', local_var_params['log_id'])) # noqa: E501
24781
+ if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
24782
+ query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
24783
+ if 'next_page_token' in local_var_params and local_var_params['next_page_token'] is not None: # noqa: E501
24784
+ query_params.append(('next_page_token', local_var_params['next_page_token'])) # noqa: E501
24785
+ if 'previous_page_token' in local_var_params and local_var_params['previous_page_token'] is not None: # noqa: E501
24786
+ query_params.append(('previous_page_token', local_var_params['previous_page_token'])) # noqa: E501
24787
+
24788
+ header_params = {}
24789
+
24790
+ form_params = []
24791
+ local_var_files = {}
24792
+
24793
+ body_params = None
24794
+ # HTTP header `Accept`
24795
+ header_params['Accept'] = self.api_client.select_header_accept(
24796
+ ['application/json']) # noqa: E501
24797
+
24798
+ # Authentication setting
24799
+ auth_settings = [] # noqa: E501
24800
+
24801
+ return self.api_client.call_api(
24802
+ '/api/v2/train_runs/logs', 'GET',
24803
+ path_params,
24804
+ query_params,
24805
+ header_params,
24806
+ body=body_params,
24807
+ post_params=form_params,
24808
+ files=local_var_files,
24809
+ response_type='LogdownloadresultResponse', # noqa: E501
24810
+ auth_settings=auth_settings,
24811
+ async_req=local_var_params.get('async_req'),
24812
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
24813
+ _preload_content=local_var_params.get('_preload_content', True),
24814
+ _request_timeout=local_var_params.get('_request_timeout'),
24815
+ collection_formats=collection_formats)
24816
+
24928
24817
  def get_train_runs_api_v2_train_runs_get(self, cluster_id, **kwargs): # noqa: E501
24929
24818
  """Get Train Runs # noqa: E501
24930
24819
 
@@ -28075,173 +27964,15 @@ class DefaultApi(object):
28075
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
28076
27965
  This method makes a synchronous HTTP request by default. To make an
28077
27966
  asynchronous HTTP request, please pass async_req=True
28078
- >>> thread = api.list_decorated_job_submissions_api_v2_decorated_job_submissions_get_with_http_info(async_req=True)
28079
- >>> result = thread.get()
28080
-
28081
- :param async_req bool: execute request asynchronously
28082
- :param str creator_id: creator_id to filter by
28083
- :param str name: ray_job_submission_id to filter by
28084
- :param str ha_job_id: ha_job_id to filter by
28085
- :param list[JobStatus] state_filter: A list of job submission states to filter by
28086
- :param JobSubmissionsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28087
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28088
- :param str paging_token:
28089
- :param int count:
28090
- :param _return_http_data_only: response data without head status code
28091
- and headers
28092
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28093
- be returned without reading/decoding response
28094
- data. Default is True.
28095
- :param _request_timeout: timeout setting for this request. If one
28096
- number provided, it will be total request
28097
- timeout. It can also be a pair (tuple) of
28098
- (connection, read) timeouts.
28099
- :return: tuple(DecoratedjobsubmissionListResponse, status_code(int), headers(HTTPHeaderDict))
28100
- If the method is called asynchronously,
28101
- returns the request thread.
28102
- """
28103
-
28104
- local_var_params = locals()
28105
-
28106
- all_params = [
28107
- 'creator_id',
28108
- 'name',
28109
- 'ha_job_id',
28110
- 'state_filter',
28111
- 'sort_field',
28112
- 'sort_order',
28113
- 'paging_token',
28114
- 'count'
28115
- ]
28116
- all_params.extend(
28117
- [
28118
- 'async_req',
28119
- '_return_http_data_only',
28120
- '_preload_content',
28121
- '_request_timeout'
28122
- ]
28123
- )
28124
-
28125
- for key, val in six.iteritems(local_var_params['kwargs']):
28126
- if key not in all_params:
28127
- raise ApiTypeError(
28128
- "Got an unexpected keyword argument '%s'"
28129
- " to method list_decorated_job_submissions_api_v2_decorated_job_submissions_get" % key
28130
- )
28131
- local_var_params[key] = val
28132
- del local_var_params['kwargs']
28133
-
28134
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28135
- 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
28136
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28137
- 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
28138
- collection_formats = {}
28139
-
28140
- path_params = {}
28141
-
28142
- query_params = []
28143
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28144
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28145
- if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28146
- query_params.append(('name', local_var_params['name'])) # noqa: E501
28147
- if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28148
- query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28149
- if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28150
- query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28151
- collection_formats['state_filter'] = 'multi' # noqa: E501
28152
- if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28153
- query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28154
- if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
28155
- query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
28156
- if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28157
- query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28158
- if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
28159
- query_params.append(('count', local_var_params['count'])) # noqa: E501
28160
-
28161
- header_params = {}
28162
-
28163
- form_params = []
28164
- local_var_files = {}
28165
-
28166
- body_params = None
28167
- # HTTP header `Accept`
28168
- header_params['Accept'] = self.api_client.select_header_accept(
28169
- ['application/json']) # noqa: E501
28170
-
28171
- # Authentication setting
28172
- auth_settings = [] # noqa: E501
28173
-
28174
- return self.api_client.call_api(
28175
- '/api/v2/decorated_job_submissions/', 'GET',
28176
- path_params,
28177
- query_params,
28178
- header_params,
28179
- body=body_params,
28180
- post_params=form_params,
28181
- files=local_var_files,
28182
- response_type='DecoratedjobsubmissionListResponse', # noqa: E501
28183
- auth_settings=auth_settings,
28184
- async_req=local_var_params.get('async_req'),
28185
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28186
- _preload_content=local_var_params.get('_preload_content', True),
28187
- _request_timeout=local_var_params.get('_request_timeout'),
28188
- collection_formats=collection_formats)
28189
-
28190
- def list_decorated_jobs_api_v2_decorated_ha_jobs_get(self, **kwargs): # noqa: E501
28191
- """List Decorated Jobs # noqa: E501
28192
-
28193
- This method makes a synchronous HTTP request by default. To make an
28194
- asynchronous HTTP request, please pass async_req=True
28195
- >>> thread = api.list_decorated_jobs_api_v2_decorated_ha_jobs_get(async_req=True)
28196
- >>> result = thread.get()
28197
-
28198
- :param async_req bool: execute request asynchronously
28199
- :param str project_id: project_id to filter by
28200
- :param str workspace_id: workspace_id to filter by
28201
- :param str name: name to filter by
28202
- :param list[HaJobStates] state_filter: A list of session states to filter by
28203
- :param HaJobType type_filter: The job type to filter by
28204
- :param str creator_id: filter by creator id
28205
- :param str source_cron_job_id: filter by cron_job_id id
28206
- :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
28207
- :param str cloud_id: cloud_id to filter by
28208
- :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28209
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28210
- :param str paging_token:
28211
- :param int count:
28212
- :param _preload_content: if False, the urllib3.HTTPResponse object will
28213
- be returned without reading/decoding response
28214
- data. Default is True.
28215
- :param _request_timeout: timeout setting for this request. If one
28216
- number provided, it will be total request
28217
- timeout. It can also be a pair (tuple) of
28218
- (connection, read) timeouts.
28219
- :return: DecoratedproductionjobListResponse
28220
- If the method is called asynchronously,
28221
- returns the request thread.
28222
- """
28223
- kwargs['_return_http_data_only'] = True
28224
- return self.list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(**kwargs) # noqa: E501
28225
-
28226
- def list_decorated_jobs_api_v2_decorated_ha_jobs_get_with_http_info(self, **kwargs): # noqa: E501
28227
- """List Decorated Jobs # noqa: E501
28228
-
28229
- This method makes a synchronous HTTP request by default. To make an
28230
- asynchronous HTTP request, please pass async_req=True
28231
- >>> 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)
28232
27968
  >>> result = thread.get()
28233
27969
 
28234
27970
  :param async_req bool: execute request asynchronously
28235
- :param str project_id: project_id to filter by
28236
- :param str workspace_id: workspace_id to filter by
28237
- :param str name: name to filter by
28238
- :param list[HaJobStates] state_filter: A list of session states to filter by
28239
- :param HaJobType type_filter: The job type to filter by
28240
- :param str creator_id: filter by creator id
28241
- :param str source_cron_job_id: filter by cron_job_id id
28242
- :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
28243
- :param str cloud_id: cloud_id to filter by
28244
- :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.
28245
27976
  :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28246
27977
  :param str paging_token:
28247
27978
  :param int count:
@@ -28254,7 +27985,7 @@ class DefaultApi(object):
28254
27985
  number provided, it will be total request
28255
27986
  timeout. It can also be a pair (tuple) of
28256
27987
  (connection, read) timeouts.
28257
- :return: tuple(DecoratedproductionjobListResponse, status_code(int), headers(HTTPHeaderDict))
27988
+ :return: tuple(DecoratedjobsubmissionListResponse, status_code(int), headers(HTTPHeaderDict))
28258
27989
  If the method is called asynchronously,
28259
27990
  returns the request thread.
28260
27991
  """
@@ -28262,15 +27993,10 @@ class DefaultApi(object):
28262
27993
  local_var_params = locals()
28263
27994
 
28264
27995
  all_params = [
28265
- 'project_id',
28266
- 'workspace_id',
27996
+ 'creator_id',
28267
27997
  'name',
27998
+ 'ha_job_id',
28268
27999
  'state_filter',
28269
- 'type_filter',
28270
- 'creator_id',
28271
- 'source_cron_job_id',
28272
- 'archive_status',
28273
- 'cloud_id',
28274
28000
  'sort_field',
28275
28001
  'sort_order',
28276
28002
  'paging_token',
@@ -28289,39 +28015,29 @@ class DefaultApi(object):
28289
28015
  if key not in all_params:
28290
28016
  raise ApiTypeError(
28291
28017
  "Got an unexpected keyword argument '%s'"
28292
- " 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
28293
28019
  )
28294
28020
  local_var_params[key] = val
28295
28021
  del local_var_params['kwargs']
28296
28022
 
28297
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
28298
- 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
28299
28025
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28300
- 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
28301
28027
  collection_formats = {}
28302
28028
 
28303
28029
  path_params = {}
28304
28030
 
28305
28031
  query_params = []
28306
- if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28307
- query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28308
- if 'workspace_id' in local_var_params and local_var_params['workspace_id'] is not None: # noqa: E501
28309
- 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
28310
28034
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28311
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
28312
28038
  if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28313
28039
  query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28314
28040
  collection_formats['state_filter'] = 'multi' # noqa: E501
28315
- if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28316
- query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28317
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28318
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28319
- if 'source_cron_job_id' in local_var_params and local_var_params['source_cron_job_id'] is not None: # noqa: E501
28320
- query_params.append(('source_cron_job_id', local_var_params['source_cron_job_id'])) # noqa: E501
28321
- if 'archive_status' in local_var_params and local_var_params['archive_status'] is not None: # noqa: E501
28322
- query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
28323
- if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
28324
- query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
28325
28041
  if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28326
28042
  query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28327
28043
  if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
@@ -28345,14 +28061,14 @@ class DefaultApi(object):
28345
28061
  auth_settings = [] # noqa: E501
28346
28062
 
28347
28063
  return self.api_client.call_api(
28348
- '/api/v2/decorated_ha_jobs/', 'GET',
28064
+ '/api/v2/decorated_job_submissions/', 'GET',
28349
28065
  path_params,
28350
28066
  query_params,
28351
28067
  header_params,
28352
28068
  body=body_params,
28353
28069
  post_params=form_params,
28354
28070
  files=local_var_files,
28355
- response_type='DecoratedproductionjobListResponse', # noqa: E501
28071
+ response_type='DecoratedjobsubmissionListResponse', # noqa: E501
28356
28072
  auth_settings=auth_settings,
28357
28073
  async_req=local_var_params.get('async_req'),
28358
28074
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -28360,27 +28076,26 @@ class DefaultApi(object):
28360
28076
  _request_timeout=local_var_params.get('_request_timeout'),
28361
28077
  collection_formats=collection_formats)
28362
28078
 
28363
- 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
28364
28080
  """List Decorated Jobs # noqa: E501
28365
28081
 
28366
- DEPRECATED: Use list_decorated_interactive_sessions. List all decorated jobs. Optionally filter by project and runtime_env_id # noqa: E501
28367
28082
  This method makes a synchronous HTTP request by default. To make an
28368
28083
  asynchronous HTTP request, please pass async_req=True
28369
- >>> 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)
28370
28085
  >>> result = thread.get()
28371
28086
 
28372
28087
  :param async_req bool: execute request asynchronously
28373
28088
  :param str project_id: project_id to filter by
28374
- :param str runtime_env_id: runtime_env_id to filter by
28375
- :param str cluster_id: cluster_id to filter by
28376
- :param str creator_id: creator_id to filter by
28089
+ :param str workspace_id: workspace_id to filter by
28377
28090
  :param str name: name to filter by
28378
- :param str ha_job_id: ha_job_id to filter by
28379
- :param bool show_ray_client_runs_only: DEPRECATED: Shows only ray client runs. Orthogonaol to passing ha_job_id
28380
- :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
28381
- :param list[BaseJobStatus] state_filter: A list of session states to filter by
28382
- :param str order: 'asc' for ascending, 'desc' for descending
28383
- :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.
28384
28099
  :param str paging_token:
28385
28100
  :param int count:
28386
28101
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -28390,34 +28105,33 @@ class DefaultApi(object):
28390
28105
  number provided, it will be total request
28391
28106
  timeout. It can also be a pair (tuple) of
28392
28107
  (connection, read) timeouts.
28393
- :return: DecoratedjobListResponse
28108
+ :return: DecoratedproductionjobListResponse
28394
28109
  If the method is called asynchronously,
28395
28110
  returns the request thread.
28396
28111
  """
28397
28112
  kwargs['_return_http_data_only'] = True
28398
- 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
28399
28114
 
28400
- 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
28401
28116
  """List Decorated Jobs # noqa: E501
28402
28117
 
28403
- DEPRECATED: Use list_decorated_interactive_sessions. List all decorated jobs. Optionally filter by project and runtime_env_id # noqa: E501
28404
28118
  This method makes a synchronous HTTP request by default. To make an
28405
28119
  asynchronous HTTP request, please pass async_req=True
28406
- >>> 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)
28407
28121
  >>> result = thread.get()
28408
28122
 
28409
28123
  :param async_req bool: execute request asynchronously
28410
28124
  :param str project_id: project_id to filter by
28411
- :param str runtime_env_id: runtime_env_id to filter by
28412
- :param str cluster_id: cluster_id to filter by
28413
- :param str creator_id: creator_id to filter by
28125
+ :param str workspace_id: workspace_id to filter by
28414
28126
  :param str name: name to filter by
28415
- :param str ha_job_id: ha_job_id to filter by
28416
- :param bool show_ray_client_runs_only: DEPRECATED: Shows only ray client runs. Orthogonaol to passing ha_job_id
28417
- :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
28418
- :param list[BaseJobStatus] state_filter: A list of session states to filter by
28419
- :param str order: 'asc' for ascending, 'desc' for descending
28420
- :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.
28421
28135
  :param str paging_token:
28422
28136
  :param int count:
28423
28137
  :param _return_http_data_only: response data without head status code
@@ -28429,7 +28143,7 @@ class DefaultApi(object):
28429
28143
  number provided, it will be total request
28430
28144
  timeout. It can also be a pair (tuple) of
28431
28145
  (connection, read) timeouts.
28432
- :return: tuple(DecoratedjobListResponse, status_code(int), headers(HTTPHeaderDict))
28146
+ :return: tuple(DecoratedproductionjobListResponse, status_code(int), headers(HTTPHeaderDict))
28433
28147
  If the method is called asynchronously,
28434
28148
  returns the request thread.
28435
28149
  """
@@ -28438,16 +28152,16 @@ class DefaultApi(object):
28438
28152
 
28439
28153
  all_params = [
28440
28154
  'project_id',
28441
- 'runtime_env_id',
28442
- 'cluster_id',
28443
- 'creator_id',
28155
+ 'workspace_id',
28444
28156
  'name',
28445
- 'ha_job_id',
28446
- 'show_ray_client_runs_only',
28447
- 'type_filter',
28448
28157
  'state_filter',
28449
- 'order',
28450
- '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',
28451
28165
  'paging_token',
28452
28166
  'count'
28453
28167
  ]
@@ -28464,15 +28178,15 @@ class DefaultApi(object):
28464
28178
  if key not in all_params:
28465
28179
  raise ApiTypeError(
28466
28180
  "Got an unexpected keyword argument '%s'"
28467
- " to method list_decorated_jobs_api_v2_decorated_jobs_get" % key
28181
+ " to method list_decorated_jobs_api_v2_decorated_ha_jobs_get" % key
28468
28182
  )
28469
28183
  local_var_params[key] = val
28470
28184
  del local_var_params['kwargs']
28471
28185
 
28472
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28473
- 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
28474
28188
  if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28475
- 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
28476
28190
  collection_formats = {}
28477
28191
 
28478
28192
  path_params = {}
@@ -28480,28 +28194,27 @@ class DefaultApi(object):
28480
28194
  query_params = []
28481
28195
  if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28482
28196
  query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28483
- if 'runtime_env_id' in local_var_params and local_var_params['runtime_env_id'] is not None: # noqa: E501
28484
- query_params.append(('runtime_env_id', local_var_params['runtime_env_id'])) # noqa: E501
28485
- if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
28486
- query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
28487
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28488
- 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
28489
28199
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28490
28200
  query_params.append(('name', local_var_params['name'])) # noqa: E501
28491
- if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
28492
- query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
28493
- if 'show_ray_client_runs_only' in local_var_params and local_var_params['show_ray_client_runs_only'] is not None: # noqa: E501
28494
- query_params.append(('show_ray_client_runs_only', local_var_params['show_ray_client_runs_only'])) # noqa: E501
28495
- if 'type_filter' in local_var_params and local_var_params['type_filter'] is not None: # noqa: E501
28496
- query_params.append(('type_filter', local_var_params['type_filter'])) # noqa: E501
28497
- collection_formats['type_filter'] = 'multi' # noqa: E501
28498
28201
  if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28499
28202
  query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28500
28203
  collection_formats['state_filter'] = 'multi' # noqa: E501
28501
- if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501
28502
- query_params.append(('order', local_var_params['order'])) # noqa: E501
28503
- if 'include_child_jobs' in local_var_params and local_var_params['include_child_jobs'] is not None: # noqa: E501
28504
- 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
28505
28218
  if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28506
28219
  query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28507
28220
  if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
@@ -28521,14 +28234,14 @@ class DefaultApi(object):
28521
28234
  auth_settings = [] # noqa: E501
28522
28235
 
28523
28236
  return self.api_client.call_api(
28524
- '/api/v2/decorated_jobs/', 'GET',
28237
+ '/api/v2/decorated_ha_jobs/', 'GET',
28525
28238
  path_params,
28526
28239
  query_params,
28527
28240
  header_params,
28528
28241
  body=body_params,
28529
28242
  post_params=form_params,
28530
28243
  files=local_var_files,
28531
- response_type='DecoratedjobListResponse', # noqa: E501
28244
+ response_type='DecoratedproductionjobListResponse', # noqa: E501
28532
28245
  auth_settings=auth_settings,
28533
28246
  async_req=local_var_params.get('async_req'),
28534
28247
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -36518,133 +36231,6 @@ class DefaultApi(object):
36518
36231
  _request_timeout=local_var_params.get('_request_timeout'),
36519
36232
  collection_formats=collection_formats)
36520
36233
 
36521
- 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
36522
- """Setup And Initialize Session # noqa: E501
36523
-
36524
- 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
36525
- This method makes a synchronous HTTP request by default. To make an
36526
- asynchronous HTTP request, please pass async_req=True
36527
- >>> 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)
36528
- >>> result = thread.get()
36529
-
36530
- :param async_req bool: execute request asynchronously
36531
- :param str session_id: (required)
36532
- :param SetupInitializeSessionOptions setup_initialize_session_options: (required)
36533
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36534
- be returned without reading/decoding response
36535
- data. Default is True.
36536
- :param _request_timeout: timeout setting for this request. If one
36537
- number provided, it will be total request
36538
- timeout. It can also be a pair (tuple) of
36539
- (connection, read) timeouts.
36540
- :return: None
36541
- If the method is called asynchronously,
36542
- returns the request thread.
36543
- """
36544
- kwargs['_return_http_data_only'] = True
36545
- 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
36546
-
36547
- 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
36548
- """Setup And Initialize Session # noqa: E501
36549
-
36550
- 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
36551
- This method makes a synchronous HTTP request by default. To make an
36552
- asynchronous HTTP request, please pass async_req=True
36553
- >>> 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)
36554
- >>> result = thread.get()
36555
-
36556
- :param async_req bool: execute request asynchronously
36557
- :param str session_id: (required)
36558
- :param SetupInitializeSessionOptions setup_initialize_session_options: (required)
36559
- :param _return_http_data_only: response data without head status code
36560
- and headers
36561
- :param _preload_content: if False, the urllib3.HTTPResponse object will
36562
- be returned without reading/decoding response
36563
- data. Default is True.
36564
- :param _request_timeout: timeout setting for this request. If one
36565
- number provided, it will be total request
36566
- timeout. It can also be a pair (tuple) of
36567
- (connection, read) timeouts.
36568
- :return: None
36569
- If the method is called asynchronously,
36570
- returns the request thread.
36571
- """
36572
-
36573
- local_var_params = locals()
36574
-
36575
- all_params = [
36576
- 'session_id',
36577
- 'setup_initialize_session_options'
36578
- ]
36579
- all_params.extend(
36580
- [
36581
- 'async_req',
36582
- '_return_http_data_only',
36583
- '_preload_content',
36584
- '_request_timeout'
36585
- ]
36586
- )
36587
-
36588
- for key, val in six.iteritems(local_var_params['kwargs']):
36589
- if key not in all_params:
36590
- raise ApiTypeError(
36591
- "Got an unexpected keyword argument '%s'"
36592
- " to method setup_and_initialize_session_api_v2_sessions_session_id_setup_and_initialize_session_post" % key
36593
- )
36594
- local_var_params[key] = val
36595
- del local_var_params['kwargs']
36596
- # verify the required parameter 'session_id' is set
36597
- if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
36598
- local_var_params['session_id'] is None): # noqa: E501
36599
- 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
36600
- # verify the required parameter 'setup_initialize_session_options' is set
36601
- if self.api_client.client_side_validation and ('setup_initialize_session_options' not in local_var_params or # noqa: E501
36602
- local_var_params['setup_initialize_session_options'] is None): # noqa: E501
36603
- 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
36604
-
36605
- collection_formats = {}
36606
-
36607
- path_params = {}
36608
- if 'session_id' in local_var_params:
36609
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
36610
-
36611
- query_params = []
36612
-
36613
- header_params = {}
36614
-
36615
- form_params = []
36616
- local_var_files = {}
36617
-
36618
- body_params = None
36619
- if 'setup_initialize_session_options' in local_var_params:
36620
- body_params = local_var_params['setup_initialize_session_options']
36621
- # HTTP header `Accept`
36622
- header_params['Accept'] = self.api_client.select_header_accept(
36623
- ['application/json']) # noqa: E501
36624
-
36625
- # HTTP header `Content-Type`
36626
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
36627
- ['application/json']) # noqa: E501
36628
-
36629
- # Authentication setting
36630
- auth_settings = [] # noqa: E501
36631
-
36632
- return self.api_client.call_api(
36633
- '/api/v2/sessions/{session_id}/setup_and_initialize_session', 'POST',
36634
- path_params,
36635
- query_params,
36636
- header_params,
36637
- body=body_params,
36638
- post_params=form_params,
36639
- files=local_var_files,
36640
- response_type=None, # noqa: E501
36641
- auth_settings=auth_settings,
36642
- async_req=local_var_params.get('async_req'),
36643
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36644
- _preload_content=local_var_params.get('_preload_content', True),
36645
- _request_timeout=local_var_params.get('_request_timeout'),
36646
- collection_formats=collection_formats)
36647
-
36648
36234
  def show_one_time_password_source_api_v2_users_show_otp_source_post(self, otp, **kwargs): # noqa: E501
36649
36235
  """Show One Time Password Source # noqa: E501
36650
36236