anyscale 0.26.3__py3-none-any.whl → 0.26.4__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 (28) hide show
  1. anyscale/_private/docgen/models.md +2 -1
  2. anyscale/_private/workload/workload_config.py +11 -0
  3. anyscale/_private/workload/workload_sdk.py +4 -0
  4. anyscale/client/README.md +2 -10
  5. anyscale/client/openapi_client/__init__.py +0 -6
  6. anyscale/client/openapi_client/api/default_api.py +281 -513
  7. anyscale/client/openapi_client/models/__init__.py +0 -6
  8. anyscale/client/openapi_client/models/node_type.py +2 -1
  9. anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
  10. anyscale/client/openapi_client/models/train_run.py +29 -3
  11. anyscale/client/openapi_client/models/train_worker.py +29 -3
  12. anyscale/job/_private/job_sdk.py +4 -0
  13. anyscale/sdk/anyscale_client/models/node_type.py +2 -1
  14. anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
  15. anyscale/version.py +1 -1
  16. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
  17. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -28
  18. anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
  19. anyscale/client/openapi_client/models/log_detail.py +0 -187
  20. anyscale/client/openapi_client/models/log_details.py +0 -151
  21. anyscale/client/openapi_client/models/logdetails_response.py +0 -121
  22. anyscale/client/openapi_client/models/provider_metadata.py +0 -205
  23. anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
  24. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
  25. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
  26. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
  27. {anyscale-0.26.3.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
  28. {anyscale-0.26.3.dist-info → anyscale-0.26.4.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
 
@@ -18989,18 +18985,16 @@ class DefaultApi(object):
18989
18985
  _request_timeout=local_var_params.get('_request_timeout'),
18990
18986
  collection_formats=collection_formats)
18991
18987
 
18992
- def get_log_files_api_v2_sessions_session_id_get_log_files_post(self, session_id, **kwargs): # noqa: E501
18993
- """Get Log Files # noqa: E501
18988
+ def get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get(self, **kwargs): # noqa: E501
18989
+ """Get Manage Billing Url # noqa: E501
18994
18990
 
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
18991
+ Returns URL to manage/edit billing information. # noqa: E501
18996
18992
  This method makes a synchronous HTTP request by default. To make an
18997
18993
  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)
18994
+ >>> thread = api.get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get(async_req=True)
18999
18995
  >>> result = thread.get()
19000
18996
 
19001
18997
  :param async_req bool: execute request asynchronously
19002
- :param str session_id: the session id or 'latest' (required)
19003
- :param LogDownloadRequest log_download_request:
19004
18998
  :param _preload_content: if False, the urllib3.HTTPResponse object will
19005
18999
  be returned without reading/decoding response
19006
19000
  data. Default is True.
@@ -19008,25 +19002,23 @@ class DefaultApi(object):
19008
19002
  number provided, it will be total request
19009
19003
  timeout. It can also be a pair (tuple) of
19010
19004
  (connection, read) timeouts.
19011
- :return: LogdetailsResponse
19005
+ :return: str
19012
19006
  If the method is called asynchronously,
19013
19007
  returns the request thread.
19014
19008
  """
19015
19009
  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
19010
+ return self.get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get_with_http_info(**kwargs) # noqa: E501
19017
19011
 
19018
- def get_log_files_api_v2_sessions_session_id_get_log_files_post_with_http_info(self, session_id, **kwargs): # noqa: E501
19019
- """Get Log Files # noqa: E501
19012
+ def get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get_with_http_info(self, **kwargs): # noqa: E501
19013
+ """Get Manage Billing Url # noqa: E501
19020
19014
 
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
19015
+ Returns URL to manage/edit billing information. # noqa: E501
19022
19016
  This method makes a synchronous HTTP request by default. To make an
19023
19017
  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)
19018
+ >>> thread = api.get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get_with_http_info(async_req=True)
19025
19019
  >>> result = thread.get()
19026
19020
 
19027
19021
  :param async_req bool: execute request asynchronously
19028
- :param str session_id: the session id or 'latest' (required)
19029
- :param LogDownloadRequest log_download_request:
19030
19022
  :param _return_http_data_only: response data without head status code
19031
19023
  and headers
19032
19024
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -19036,7 +19028,7 @@ class DefaultApi(object):
19036
19028
  number provided, it will be total request
19037
19029
  timeout. It can also be a pair (tuple) of
19038
19030
  (connection, read) timeouts.
19039
- :return: tuple(LogdetailsResponse, status_code(int), headers(HTTPHeaderDict))
19031
+ :return: tuple(str, status_code(int), headers(HTTPHeaderDict))
19040
19032
  If the method is called asynchronously,
19041
19033
  returns the request thread.
19042
19034
  """
@@ -19044,8 +19036,6 @@ class DefaultApi(object):
19044
19036
  local_var_params = locals()
19045
19037
 
19046
19038
  all_params = [
19047
- 'session_id',
19048
- 'log_download_request'
19049
19039
  ]
19050
19040
  all_params.extend(
19051
19041
  [
@@ -19060,20 +19050,14 @@ class DefaultApi(object):
19060
19050
  if key not in all_params:
19061
19051
  raise ApiTypeError(
19062
19052
  "Got an unexpected keyword argument '%s'"
19063
- " to method get_log_files_api_v2_sessions_session_id_get_log_files_post" % key
19053
+ " to method get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get" % key
19064
19054
  )
19065
19055
  local_var_params[key] = val
19066
19056
  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
19057
 
19072
19058
  collection_formats = {}
19073
19059
 
19074
19060
  path_params = {}
19075
- if 'session_id' in local_var_params:
19076
- path_params['session_id'] = local_var_params['session_id'] # noqa: E501
19077
19061
 
19078
19062
  query_params = []
19079
19063
 
@@ -19083,28 +19067,22 @@ class DefaultApi(object):
19083
19067
  local_var_files = {}
19084
19068
 
19085
19069
  body_params = None
19086
- if 'log_download_request' in local_var_params:
19087
- body_params = local_var_params['log_download_request']
19088
19070
  # HTTP header `Accept`
19089
19071
  header_params['Accept'] = self.api_client.select_header_accept(
19090
- ['application/json']) # noqa: E501
19091
-
19092
- # HTTP header `Content-Type`
19093
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
19094
- ['application/json']) # noqa: E501
19072
+ ['text/plain']) # noqa: E501
19095
19073
 
19096
19074
  # Authentication setting
19097
19075
  auth_settings = [] # noqa: E501
19098
19076
 
19099
19077
  return self.api_client.call_api(
19100
- '/api/v2/sessions/{session_id}/get_log_files', 'POST',
19078
+ '/api/v2/organization_billing/manage_billing_url', 'GET',
19101
19079
  path_params,
19102
19080
  query_params,
19103
19081
  header_params,
19104
19082
  body=body_params,
19105
19083
  post_params=form_params,
19106
19084
  files=local_var_files,
19107
- response_type='LogdetailsResponse', # noqa: E501
19085
+ response_type='str', # noqa: E501
19108
19086
  auth_settings=auth_settings,
19109
19087
  async_req=local_var_params.get('async_req'),
19110
19088
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -19112,16 +19090,16 @@ class DefaultApi(object):
19112
19090
  _request_timeout=local_var_params.get('_request_timeout'),
19113
19091
  collection_formats=collection_formats)
19114
19092
 
19115
- def get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get(self, **kwargs): # noqa: E501
19116
- """Get Manage Billing Url # noqa: E501
19093
+ def get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get(self, organization_id, **kwargs): # noqa: E501
19094
+ """Get Metronome Customer Info # noqa: E501
19117
19095
 
19118
- Returns URL to manage/edit billing information. # noqa: E501
19119
19096
  This method makes a synchronous HTTP request by default. To make an
19120
19097
  asynchronous HTTP request, please pass async_req=True
19121
- >>> thread = api.get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get(async_req=True)
19098
+ >>> thread = api.get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get(organization_id, async_req=True)
19122
19099
  >>> result = thread.get()
19123
19100
 
19124
19101
  :param async_req bool: execute request asynchronously
19102
+ :param str organization_id: (required)
19125
19103
  :param _preload_content: if False, the urllib3.HTTPResponse object will
19126
19104
  be returned without reading/decoding response
19127
19105
  data. Default is True.
@@ -19129,23 +19107,23 @@ class DefaultApi(object):
19129
19107
  number provided, it will be total request
19130
19108
  timeout. It can also be a pair (tuple) of
19131
19109
  (connection, read) timeouts.
19132
- :return: str
19110
+ :return: MetronomecustomerinfomodelResponse
19133
19111
  If the method is called asynchronously,
19134
19112
  returns the request thread.
19135
19113
  """
19136
19114
  kwargs['_return_http_data_only'] = True
19137
- return self.get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get_with_http_info(**kwargs) # noqa: E501
19115
+ return self.get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get_with_http_info(organization_id, **kwargs) # noqa: E501
19138
19116
 
19139
- def get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get_with_http_info(self, **kwargs): # noqa: E501
19140
- """Get Manage Billing Url # noqa: E501
19117
+ def get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get_with_http_info(self, organization_id, **kwargs): # noqa: E501
19118
+ """Get Metronome Customer Info # noqa: E501
19141
19119
 
19142
- Returns URL to manage/edit billing information. # noqa: E501
19143
19120
  This method makes a synchronous HTTP request by default. To make an
19144
19121
  asynchronous HTTP request, please pass async_req=True
19145
- >>> thread = api.get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get_with_http_info(async_req=True)
19122
+ >>> thread = api.get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get_with_http_info(organization_id, async_req=True)
19146
19123
  >>> result = thread.get()
19147
19124
 
19148
19125
  :param async_req bool: execute request asynchronously
19126
+ :param str organization_id: (required)
19149
19127
  :param _return_http_data_only: response data without head status code
19150
19128
  and headers
19151
19129
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -19155,7 +19133,7 @@ class DefaultApi(object):
19155
19133
  number provided, it will be total request
19156
19134
  timeout. It can also be a pair (tuple) of
19157
19135
  (connection, read) timeouts.
19158
- :return: tuple(str, status_code(int), headers(HTTPHeaderDict))
19136
+ :return: tuple(MetronomecustomerinfomodelResponse, status_code(int), headers(HTTPHeaderDict))
19159
19137
  If the method is called asynchronously,
19160
19138
  returns the request thread.
19161
19139
  """
@@ -19163,112 +19141,7 @@ class DefaultApi(object):
19163
19141
  local_var_params = locals()
19164
19142
 
19165
19143
  all_params = [
19166
- ]
19167
- all_params.extend(
19168
- [
19169
- 'async_req',
19170
- '_return_http_data_only',
19171
- '_preload_content',
19172
- '_request_timeout'
19173
- ]
19174
- )
19175
-
19176
- for key, val in six.iteritems(local_var_params['kwargs']):
19177
- if key not in all_params:
19178
- raise ApiTypeError(
19179
- "Got an unexpected keyword argument '%s'"
19180
- " to method get_manage_billing_url_api_v2_organization_billing_manage_billing_url_get" % key
19181
- )
19182
- local_var_params[key] = val
19183
- del local_var_params['kwargs']
19184
-
19185
- collection_formats = {}
19186
-
19187
- path_params = {}
19188
-
19189
- query_params = []
19190
-
19191
- header_params = {}
19192
-
19193
- form_params = []
19194
- local_var_files = {}
19195
-
19196
- body_params = None
19197
- # HTTP header `Accept`
19198
- header_params['Accept'] = self.api_client.select_header_accept(
19199
- ['text/plain']) # noqa: E501
19200
-
19201
- # Authentication setting
19202
- auth_settings = [] # noqa: E501
19203
-
19204
- return self.api_client.call_api(
19205
- '/api/v2/organization_billing/manage_billing_url', 'GET',
19206
- path_params,
19207
- query_params,
19208
- header_params,
19209
- body=body_params,
19210
- post_params=form_params,
19211
- files=local_var_files,
19212
- response_type='str', # noqa: E501
19213
- auth_settings=auth_settings,
19214
- async_req=local_var_params.get('async_req'),
19215
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
19216
- _preload_content=local_var_params.get('_preload_content', True),
19217
- _request_timeout=local_var_params.get('_request_timeout'),
19218
- collection_formats=collection_formats)
19219
-
19220
- def get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get(self, organization_id, **kwargs): # noqa: E501
19221
- """Get Metronome Customer Info # noqa: E501
19222
-
19223
- This method makes a synchronous HTTP request by default. To make an
19224
- asynchronous HTTP request, please pass async_req=True
19225
- >>> thread = api.get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get(organization_id, async_req=True)
19226
- >>> result = thread.get()
19227
-
19228
- :param async_req bool: execute request asynchronously
19229
- :param str organization_id: (required)
19230
- :param _preload_content: if False, the urllib3.HTTPResponse object will
19231
- be returned without reading/decoding response
19232
- data. Default is True.
19233
- :param _request_timeout: timeout setting for this request. If one
19234
- number provided, it will be total request
19235
- timeout. It can also be a pair (tuple) of
19236
- (connection, read) timeouts.
19237
- :return: MetronomecustomerinfomodelResponse
19238
- If the method is called asynchronously,
19239
- returns the request thread.
19240
- """
19241
- kwargs['_return_http_data_only'] = True
19242
- return self.get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get_with_http_info(organization_id, **kwargs) # noqa: E501
19243
-
19244
- def get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get_with_http_info(self, organization_id, **kwargs): # noqa: E501
19245
- """Get Metronome Customer Info # noqa: E501
19246
-
19247
- This method makes a synchronous HTTP request by default. To make an
19248
- asynchronous HTTP request, please pass async_req=True
19249
- >>> thread = api.get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get_with_http_info(organization_id, async_req=True)
19250
- >>> result = thread.get()
19251
-
19252
- :param async_req bool: execute request asynchronously
19253
- :param str organization_id: (required)
19254
- :param _return_http_data_only: response data without head status code
19255
- and headers
19256
- :param _preload_content: if False, the urllib3.HTTPResponse object will
19257
- be returned without reading/decoding response
19258
- data. Default is True.
19259
- :param _request_timeout: timeout setting for this request. If one
19260
- number provided, it will be total request
19261
- timeout. It can also be a pair (tuple) of
19262
- (connection, read) timeouts.
19263
- :return: tuple(MetronomecustomerinfomodelResponse, status_code(int), headers(HTTPHeaderDict))
19264
- If the method is called asynchronously,
19265
- returns the request thread.
19266
- """
19267
-
19268
- local_var_params = locals()
19269
-
19270
- all_params = [
19271
- 'organization_id'
19144
+ 'organization_id'
19272
19145
  ]
19273
19146
  all_params.extend(
19274
19147
  [
@@ -20837,127 +20710,6 @@ class DefaultApi(object):
20837
20710
  _request_timeout=local_var_params.get('_request_timeout'),
20838
20711
  collection_formats=collection_formats)
20839
20712
 
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
20713
  def get_public_identifier_api_v2_organizations_public_identifier_get(self, organization_name, **kwargs): # noqa: E501
20962
20714
  """Get Public Identifier # noqa: E501
20963
20715
 
@@ -21070,130 +20822,6 @@ class DefaultApi(object):
21070
20822
  _request_timeout=local_var_params.get('_request_timeout'),
21071
20823
  collection_formats=collection_formats)
21072
20824
 
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
20825
  def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(self, **kwargs): # noqa: E501
21198
20826
  """Get Recent Cluster Compute Configs # noqa: E501
21199
20827
 
@@ -24925,6 +24553,146 @@ class DefaultApi(object):
24925
24553
  _request_timeout=local_var_params.get('_request_timeout'),
24926
24554
  collection_formats=collection_formats)
24927
24555
 
24556
+ def get_train_logs_download_api_v2_train_runs_logs_get(self, cluster_id, log_id, **kwargs): # noqa: E501
24557
+ """Get Train Logs Download # noqa: E501
24558
+
24559
+ 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
24560
+ This method makes a synchronous HTTP request by default. To make an
24561
+ asynchronous HTTP request, please pass async_req=True
24562
+ >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get(cluster_id, log_id, async_req=True)
24563
+ >>> result = thread.get()
24564
+
24565
+ :param async_req bool: execute request asynchronously
24566
+ :param str cluster_id: (required)
24567
+ :param str log_id: (required)
24568
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
24569
+ :param str next_page_token: Pagination token for getting newer logs.
24570
+ :param str previous_page_token: Pagination token for getting older logs.
24571
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24572
+ be returned without reading/decoding response
24573
+ data. Default is True.
24574
+ :param _request_timeout: timeout setting for this request. If one
24575
+ number provided, it will be total request
24576
+ timeout. It can also be a pair (tuple) of
24577
+ (connection, read) timeouts.
24578
+ :return: LogdownloadresultResponse
24579
+ If the method is called asynchronously,
24580
+ returns the request thread.
24581
+ """
24582
+ kwargs['_return_http_data_only'] = True
24583
+ return self.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, **kwargs) # noqa: E501
24584
+
24585
+ def get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(self, cluster_id, log_id, **kwargs): # noqa: E501
24586
+ """Get Train Logs Download # noqa: E501
24587
+
24588
+ 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
24589
+ This method makes a synchronous HTTP request by default. To make an
24590
+ asynchronous HTTP request, please pass async_req=True
24591
+ >>> thread = api.get_train_logs_download_api_v2_train_runs_logs_get_with_http_info(cluster_id, log_id, async_req=True)
24592
+ >>> result = thread.get()
24593
+
24594
+ :param async_req bool: execute request asynchronously
24595
+ :param str cluster_id: (required)
24596
+ :param str log_id: (required)
24597
+ :param int page_size: Number of chunks to fetch. Defaults to 400. Max of 1000.
24598
+ :param str next_page_token: Pagination token for getting newer logs.
24599
+ :param str previous_page_token: Pagination token for getting older logs.
24600
+ :param _return_http_data_only: response data without head status code
24601
+ and headers
24602
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24603
+ be returned without reading/decoding response
24604
+ data. Default is True.
24605
+ :param _request_timeout: timeout setting for this request. If one
24606
+ number provided, it will be total request
24607
+ timeout. It can also be a pair (tuple) of
24608
+ (connection, read) timeouts.
24609
+ :return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
24610
+ If the method is called asynchronously,
24611
+ returns the request thread.
24612
+ """
24613
+
24614
+ local_var_params = locals()
24615
+
24616
+ all_params = [
24617
+ 'cluster_id',
24618
+ 'log_id',
24619
+ 'page_size',
24620
+ 'next_page_token',
24621
+ 'previous_page_token'
24622
+ ]
24623
+ all_params.extend(
24624
+ [
24625
+ 'async_req',
24626
+ '_return_http_data_only',
24627
+ '_preload_content',
24628
+ '_request_timeout'
24629
+ ]
24630
+ )
24631
+
24632
+ for key, val in six.iteritems(local_var_params['kwargs']):
24633
+ if key not in all_params:
24634
+ raise ApiTypeError(
24635
+ "Got an unexpected keyword argument '%s'"
24636
+ " to method get_train_logs_download_api_v2_train_runs_logs_get" % key
24637
+ )
24638
+ local_var_params[key] = val
24639
+ del local_var_params['kwargs']
24640
+ # verify the required parameter 'cluster_id' is set
24641
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
24642
+ local_var_params['cluster_id'] is None): # noqa: E501
24643
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_train_logs_download_api_v2_train_runs_logs_get`") # noqa: E501
24644
+ # verify the required parameter 'log_id' is set
24645
+ if self.api_client.client_side_validation and ('log_id' not in local_var_params or # noqa: E501
24646
+ local_var_params['log_id'] is None): # noqa: E501
24647
+ raise ApiValueError("Missing the required parameter `log_id` when calling `get_train_logs_download_api_v2_train_runs_logs_get`") # noqa: E501
24648
+
24649
+ if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 1000: # noqa: E501
24650
+ 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
24651
+ collection_formats = {}
24652
+
24653
+ path_params = {}
24654
+
24655
+ query_params = []
24656
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
24657
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
24658
+ if 'log_id' in local_var_params and local_var_params['log_id'] is not None: # noqa: E501
24659
+ query_params.append(('log_id', local_var_params['log_id'])) # noqa: E501
24660
+ if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
24661
+ query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
24662
+ if 'next_page_token' in local_var_params and local_var_params['next_page_token'] is not None: # noqa: E501
24663
+ query_params.append(('next_page_token', local_var_params['next_page_token'])) # noqa: E501
24664
+ if 'previous_page_token' in local_var_params and local_var_params['previous_page_token'] is not None: # noqa: E501
24665
+ query_params.append(('previous_page_token', local_var_params['previous_page_token'])) # noqa: E501
24666
+
24667
+ header_params = {}
24668
+
24669
+ form_params = []
24670
+ local_var_files = {}
24671
+
24672
+ body_params = None
24673
+ # HTTP header `Accept`
24674
+ header_params['Accept'] = self.api_client.select_header_accept(
24675
+ ['application/json']) # noqa: E501
24676
+
24677
+ # Authentication setting
24678
+ auth_settings = [] # noqa: E501
24679
+
24680
+ return self.api_client.call_api(
24681
+ '/api/v2/train_runs/logs', 'GET',
24682
+ path_params,
24683
+ query_params,
24684
+ header_params,
24685
+ body=body_params,
24686
+ post_params=form_params,
24687
+ files=local_var_files,
24688
+ response_type='LogdownloadresultResponse', # noqa: E501
24689
+ auth_settings=auth_settings,
24690
+ async_req=local_var_params.get('async_req'),
24691
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
24692
+ _preload_content=local_var_params.get('_preload_content', True),
24693
+ _request_timeout=local_var_params.get('_request_timeout'),
24694
+ collection_formats=collection_formats)
24695
+
24928
24696
  def get_train_runs_api_v2_train_runs_get(self, cluster_id, **kwargs): # noqa: E501
24929
24697
  """Get Train Runs # noqa: E501
24930
24698