anyscale 0.26.16__py3-none-any.whl → 0.26.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/anyscale-cloud-setup-gcp.yaml +2 -0
- anyscale/client/README.md +7 -0
- anyscale/client/openapi_client/__init__.py +5 -0
- anyscale/client/openapi_client/api/default_api.py +248 -0
- anyscale/client/openapi_client/models/__init__.py +5 -0
- anyscale/client/openapi_client/models/i_know_response.py +174 -0
- anyscale/client/openapi_client/models/i_know_time_series_event.py +148 -0
- anyscale/client/openapi_client/models/job_report.py +199 -0
- anyscale/client/openapi_client/models/job_with_report.py +254 -0
- anyscale/client/openapi_client/models/jobwithreport_list_response.py +147 -0
- anyscale/commands/cloud_commands.py +43 -0
- anyscale/controllers/cloud_controller.py +144 -1
- anyscale/job/_private/job_sdk.py +22 -24
- anyscale/version.py +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/METADATA +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/RECORD +21 -16
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/LICENSE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/NOTICE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/WHEEL +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/top_level.txt +0 -0
@@ -101,6 +101,7 @@ resources:
|
|
101
101
|
dependsOn:
|
102
102
|
- ${ANYSCALE_ACCESS_SERVICE_ACCOUNT}
|
103
103
|
- storage-bucket-${CLOUD_ID}
|
104
|
+
- iam-policy-anyscale-access-project-${CLOUD_ID}
|
104
105
|
- name: bucket-iam-${CLOUD_ID}
|
105
106
|
type: gcp-types/storage-v1:virtual.buckets.iamMemberBinding
|
106
107
|
properties:
|
@@ -111,3 +112,4 @@ resources:
|
|
111
112
|
dependsOn:
|
112
113
|
- ${CLOUD_ID}
|
113
114
|
- storage-bucket-${CLOUD_ID}
|
115
|
+
- iam-policy-instance-project-${CLOUD_ID}
|
anyscale/client/README.md
CHANGED
@@ -244,6 +244,7 @@ Class | Method | HTTP request | Description
|
|
244
244
|
*DefaultApi* | [**get_regions_and_zones_api_v2_clouds_gcp_regions_and_zones_get**](docs/DefaultApi.md#get_regions_and_zones_api_v2_clouds_gcp_regions_and_zones_get) | **GET** /api/v2/clouds/gcp/regions_and_zones | Get Regions And Zones
|
245
245
|
*DefaultApi* | [**get_resource_notification_api_v2_resource_notifications_resource_notification_id_get**](docs/DefaultApi.md#get_resource_notification_api_v2_resource_notifications_resource_notification_id_get) | **GET** /api/v2/resource_notifications/{resource_notification_id} | Get Resource Notification
|
246
246
|
*DefaultApi* | [**get_resource_quota_api_v2_resource_quotas_resource_quota_id_get**](docs/DefaultApi.md#get_resource_quota_api_v2_resource_quotas_resource_quota_id_get) | **GET** /api/v2/resource_quotas/{resource_quota_id} | Get Resource Quota
|
247
|
+
*DefaultApi* | [**get_root_cause_api_v2_iknow_get**](docs/DefaultApi.md#get_root_cause_api_v2_iknow_get) | **GET** /api/v2/iknow/ | Get Root Cause
|
247
248
|
*DefaultApi* | [**get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get**](docs/DefaultApi.md#get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get) | **GET** /api/v2/logs/runtime_env_logs_download/{session_id} | Get Runtime Env Logs Download
|
248
249
|
*DefaultApi* | [**get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get**](docs/DefaultApi.md#get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get) | **GET** /api/v2/logs/serve_logs_download/{cluster_id} | Get Serve Logs Download
|
249
250
|
*DefaultApi* | [**get_service_api_v2_services_v2_service_id_get**](docs/DefaultApi.md#get_service_api_v2_services_v2_service_id_get) | **GET** /api/v2/services-v2/{service_id} | Get Service
|
@@ -299,6 +300,7 @@ Class | Method | HTTP request | Description
|
|
299
300
|
*DefaultApi* | [**list_instance_usage_budgets_api_v2_instance_usage_budgets_get**](docs/DefaultApi.md#list_instance_usage_budgets_api_v2_instance_usage_budgets_get) | **GET** /api/v2/instance_usage_budgets/ | List Instance Usage Budgets
|
300
301
|
*DefaultApi* | [**list_invitations_api_v2_organization_invitations_get**](docs/DefaultApi.md#list_invitations_api_v2_organization_invitations_get) | **GET** /api/v2/organization_invitations/ | List Invitations
|
301
302
|
*DefaultApi* | [**list_job_queues_api_v2_job_queues_post**](docs/DefaultApi.md#list_job_queues_api_v2_job_queues_post) | **POST** /api/v2/job_queues/ | List Job Queues
|
303
|
+
*DefaultApi* | [**list_job_reports_api_v2_job_reports_get**](docs/DefaultApi.md#list_job_reports_api_v2_job_reports_get) | **GET** /api/v2/job_reports/ | List Job Reports
|
302
304
|
*DefaultApi* | [**list_job_states_api_v2_decorated_ha_job_states_get**](docs/DefaultApi.md#list_job_states_api_v2_decorated_ha_job_states_get) | **GET** /api/v2/decorated_ha_job_states/ | List Job States
|
303
305
|
*DefaultApi* | [**list_jobs_api_v2_decorated_unified_jobs_get**](docs/DefaultApi.md#list_jobs_api_v2_decorated_unified_jobs_get) | **GET** /api/v2/decorated_unified_jobs/ | List Jobs
|
304
306
|
*DefaultApi* | [**list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get**](docs/DefaultApi.md#list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get) | **GET** /api/v2/decorated_sessions/long-running-workloads | List Long Running Workloads
|
@@ -678,6 +680,8 @@ Class | Method | HTTP request | Description
|
|
678
680
|
- [HeadIp](docs/HeadIp.md)
|
679
681
|
- [HeadipResponse](docs/HeadipResponse.md)
|
680
682
|
- [HttpProtocolConfig](docs/HttpProtocolConfig.md)
|
683
|
+
- [IKnowResponse](docs/IKnowResponse.md)
|
684
|
+
- [IKnowTimeSeriesEvent](docs/IKnowTimeSeriesEvent.md)
|
681
685
|
- [IdleTerminationStatus](docs/IdleTerminationStatus.md)
|
682
686
|
- [InstanceUsageBudget](docs/InstanceUsageBudget.md)
|
683
687
|
- [InstanceUsageBudgetEvaluationPeriod](docs/InstanceUsageBudgetEvaluationPeriod.md)
|
@@ -698,10 +702,13 @@ Class | Method | HTTP request | Description
|
|
698
702
|
- [JobQueueSpec](docs/JobQueueSpec.md)
|
699
703
|
- [JobQueueState](docs/JobQueueState.md)
|
700
704
|
- [JobQueuesQuery](docs/JobQueuesQuery.md)
|
705
|
+
- [JobReport](docs/JobReport.md)
|
701
706
|
- [JobRunType](docs/JobRunType.md)
|
702
707
|
- [JobStateLogLevelTypes](docs/JobStateLogLevelTypes.md)
|
708
|
+
- [JobWithReport](docs/JobWithReport.md)
|
703
709
|
- [JobqueueResponse](docs/JobqueueResponse.md)
|
704
710
|
- [JobsSortField](docs/JobsSortField.md)
|
711
|
+
- [JobwithreportListResponse](docs/JobwithreportListResponse.md)
|
705
712
|
- [JsonPatchOperation](docs/JsonPatchOperation.md)
|
706
713
|
- [KubernetesManagerRegistrationRequest](docs/KubernetesManagerRegistrationRequest.md)
|
707
714
|
- [KubernetesManagerRegistrationResponse](docs/KubernetesManagerRegistrationResponse.md)
|
@@ -310,6 +310,8 @@ from openapi_client.models.ha_jobs_sort_field import HaJobsSortField
|
|
310
310
|
from openapi_client.models.head_ip import HeadIp
|
311
311
|
from openapi_client.models.headip_response import HeadipResponse
|
312
312
|
from openapi_client.models.http_protocol_config import HttpProtocolConfig
|
313
|
+
from openapi_client.models.i_know_response import IKnowResponse
|
314
|
+
from openapi_client.models.i_know_time_series_event import IKnowTimeSeriesEvent
|
313
315
|
from openapi_client.models.idle_termination_status import IdleTerminationStatus
|
314
316
|
from openapi_client.models.instance_usage_budget import InstanceUsageBudget
|
315
317
|
from openapi_client.models.instance_usage_budget_evaluation_period import InstanceUsageBudgetEvaluationPeriod
|
@@ -330,10 +332,13 @@ from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
|
|
330
332
|
from openapi_client.models.job_queue_spec import JobQueueSpec
|
331
333
|
from openapi_client.models.job_queue_state import JobQueueState
|
332
334
|
from openapi_client.models.job_queues_query import JobQueuesQuery
|
335
|
+
from openapi_client.models.job_report import JobReport
|
333
336
|
from openapi_client.models.job_run_type import JobRunType
|
334
337
|
from openapi_client.models.job_state_log_level_types import JobStateLogLevelTypes
|
338
|
+
from openapi_client.models.job_with_report import JobWithReport
|
335
339
|
from openapi_client.models.jobqueue_response import JobqueueResponse
|
336
340
|
from openapi_client.models.jobs_sort_field import JobsSortField
|
341
|
+
from openapi_client.models.jobwithreport_list_response import JobwithreportListResponse
|
337
342
|
from openapi_client.models.json_patch_operation import JsonPatchOperation
|
338
343
|
from openapi_client.models.kubernetes_manager_registration_request import KubernetesManagerRegistrationRequest
|
339
344
|
from openapi_client.models.kubernetes_manager_registration_response import KubernetesManagerRegistrationResponse
|
@@ -19936,6 +19936,118 @@ class DefaultApi(object):
|
|
19936
19936
|
_request_timeout=local_var_params.get('_request_timeout'),
|
19937
19937
|
collection_formats=collection_formats)
|
19938
19938
|
|
19939
|
+
def get_root_cause_api_v2_iknow_get(self, cluster_id, **kwargs): # noqa: E501
|
19940
|
+
"""Get Root Cause # noqa: E501
|
19941
|
+
|
19942
|
+
This method makes a synchronous HTTP request by default. To make an
|
19943
|
+
asynchronous HTTP request, please pass async_req=True
|
19944
|
+
>>> thread = api.get_root_cause_api_v2_iknow_get(cluster_id, async_req=True)
|
19945
|
+
>>> result = thread.get()
|
19946
|
+
|
19947
|
+
:param async_req bool: execute request asynchronously
|
19948
|
+
:param str cluster_id: (required)
|
19949
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
19950
|
+
be returned without reading/decoding response
|
19951
|
+
data. Default is True.
|
19952
|
+
:param _request_timeout: timeout setting for this request. If one
|
19953
|
+
number provided, it will be total request
|
19954
|
+
timeout. It can also be a pair (tuple) of
|
19955
|
+
(connection, read) timeouts.
|
19956
|
+
:return: IKnowResponse
|
19957
|
+
If the method is called asynchronously,
|
19958
|
+
returns the request thread.
|
19959
|
+
"""
|
19960
|
+
kwargs['_return_http_data_only'] = True
|
19961
|
+
return self.get_root_cause_api_v2_iknow_get_with_http_info(cluster_id, **kwargs) # noqa: E501
|
19962
|
+
|
19963
|
+
def get_root_cause_api_v2_iknow_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
19964
|
+
"""Get Root Cause # noqa: E501
|
19965
|
+
|
19966
|
+
This method makes a synchronous HTTP request by default. To make an
|
19967
|
+
asynchronous HTTP request, please pass async_req=True
|
19968
|
+
>>> thread = api.get_root_cause_api_v2_iknow_get_with_http_info(cluster_id, async_req=True)
|
19969
|
+
>>> result = thread.get()
|
19970
|
+
|
19971
|
+
:param async_req bool: execute request asynchronously
|
19972
|
+
:param str cluster_id: (required)
|
19973
|
+
:param _return_http_data_only: response data without head status code
|
19974
|
+
and headers
|
19975
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
19976
|
+
be returned without reading/decoding response
|
19977
|
+
data. Default is True.
|
19978
|
+
:param _request_timeout: timeout setting for this request. If one
|
19979
|
+
number provided, it will be total request
|
19980
|
+
timeout. It can also be a pair (tuple) of
|
19981
|
+
(connection, read) timeouts.
|
19982
|
+
:return: tuple(IKnowResponse, status_code(int), headers(HTTPHeaderDict))
|
19983
|
+
If the method is called asynchronously,
|
19984
|
+
returns the request thread.
|
19985
|
+
"""
|
19986
|
+
|
19987
|
+
local_var_params = locals()
|
19988
|
+
|
19989
|
+
all_params = [
|
19990
|
+
'cluster_id'
|
19991
|
+
]
|
19992
|
+
all_params.extend(
|
19993
|
+
[
|
19994
|
+
'async_req',
|
19995
|
+
'_return_http_data_only',
|
19996
|
+
'_preload_content',
|
19997
|
+
'_request_timeout'
|
19998
|
+
]
|
19999
|
+
)
|
20000
|
+
|
20001
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
20002
|
+
if key not in all_params:
|
20003
|
+
raise ApiTypeError(
|
20004
|
+
"Got an unexpected keyword argument '%s'"
|
20005
|
+
" to method get_root_cause_api_v2_iknow_get" % key
|
20006
|
+
)
|
20007
|
+
local_var_params[key] = val
|
20008
|
+
del local_var_params['kwargs']
|
20009
|
+
# verify the required parameter 'cluster_id' is set
|
20010
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
20011
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
20012
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_root_cause_api_v2_iknow_get`") # noqa: E501
|
20013
|
+
|
20014
|
+
collection_formats = {}
|
20015
|
+
|
20016
|
+
path_params = {}
|
20017
|
+
|
20018
|
+
query_params = []
|
20019
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
20020
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
20021
|
+
|
20022
|
+
header_params = {}
|
20023
|
+
|
20024
|
+
form_params = []
|
20025
|
+
local_var_files = {}
|
20026
|
+
|
20027
|
+
body_params = None
|
20028
|
+
# HTTP header `Accept`
|
20029
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
20030
|
+
['application/json']) # noqa: E501
|
20031
|
+
|
20032
|
+
# Authentication setting
|
20033
|
+
auth_settings = [] # noqa: E501
|
20034
|
+
|
20035
|
+
return self.api_client.call_api(
|
20036
|
+
'/api/v2/iknow/', 'GET',
|
20037
|
+
path_params,
|
20038
|
+
query_params,
|
20039
|
+
header_params,
|
20040
|
+
body=body_params,
|
20041
|
+
post_params=form_params,
|
20042
|
+
files=local_var_files,
|
20043
|
+
response_type='IKnowResponse', # noqa: E501
|
20044
|
+
auth_settings=auth_settings,
|
20045
|
+
async_req=local_var_params.get('async_req'),
|
20046
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
20047
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
20048
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
20049
|
+
collection_formats=collection_formats)
|
20050
|
+
|
19939
20051
|
def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(self, session_id, **kwargs): # noqa: E501
|
19940
20052
|
"""Get Runtime Env Logs Download # noqa: E501
|
19941
20053
|
|
@@ -26732,6 +26844,142 @@ class DefaultApi(object):
|
|
26732
26844
|
_request_timeout=local_var_params.get('_request_timeout'),
|
26733
26845
|
collection_formats=collection_formats)
|
26734
26846
|
|
26847
|
+
def list_job_reports_api_v2_job_reports_get(self, cloud_id, **kwargs): # noqa: E501
|
26848
|
+
"""List Job Reports # noqa: E501
|
26849
|
+
|
26850
|
+
This method makes a synchronous HTTP request by default. To make an
|
26851
|
+
asynchronous HTTP request, please pass async_req=True
|
26852
|
+
>>> thread = api.list_job_reports_api_v2_job_reports_get(cloud_id, async_req=True)
|
26853
|
+
>>> result = thread.get()
|
26854
|
+
|
26855
|
+
:param async_req bool: execute request asynchronously
|
26856
|
+
:param str cloud_id: (required)
|
26857
|
+
:param datetime start_time:
|
26858
|
+
:param datetime end_time:
|
26859
|
+
:param str paging_token:
|
26860
|
+
:param int count:
|
26861
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26862
|
+
be returned without reading/decoding response
|
26863
|
+
data. Default is True.
|
26864
|
+
:param _request_timeout: timeout setting for this request. If one
|
26865
|
+
number provided, it will be total request
|
26866
|
+
timeout. It can also be a pair (tuple) of
|
26867
|
+
(connection, read) timeouts.
|
26868
|
+
:return: JobwithreportListResponse
|
26869
|
+
If the method is called asynchronously,
|
26870
|
+
returns the request thread.
|
26871
|
+
"""
|
26872
|
+
kwargs['_return_http_data_only'] = True
|
26873
|
+
return self.list_job_reports_api_v2_job_reports_get_with_http_info(cloud_id, **kwargs) # noqa: E501
|
26874
|
+
|
26875
|
+
def list_job_reports_api_v2_job_reports_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
26876
|
+
"""List Job Reports # noqa: E501
|
26877
|
+
|
26878
|
+
This method makes a synchronous HTTP request by default. To make an
|
26879
|
+
asynchronous HTTP request, please pass async_req=True
|
26880
|
+
>>> thread = api.list_job_reports_api_v2_job_reports_get_with_http_info(cloud_id, async_req=True)
|
26881
|
+
>>> result = thread.get()
|
26882
|
+
|
26883
|
+
:param async_req bool: execute request asynchronously
|
26884
|
+
:param str cloud_id: (required)
|
26885
|
+
:param datetime start_time:
|
26886
|
+
:param datetime end_time:
|
26887
|
+
:param str paging_token:
|
26888
|
+
:param int count:
|
26889
|
+
:param _return_http_data_only: response data without head status code
|
26890
|
+
and headers
|
26891
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26892
|
+
be returned without reading/decoding response
|
26893
|
+
data. Default is True.
|
26894
|
+
:param _request_timeout: timeout setting for this request. If one
|
26895
|
+
number provided, it will be total request
|
26896
|
+
timeout. It can also be a pair (tuple) of
|
26897
|
+
(connection, read) timeouts.
|
26898
|
+
:return: tuple(JobwithreportListResponse, status_code(int), headers(HTTPHeaderDict))
|
26899
|
+
If the method is called asynchronously,
|
26900
|
+
returns the request thread.
|
26901
|
+
"""
|
26902
|
+
|
26903
|
+
local_var_params = locals()
|
26904
|
+
|
26905
|
+
all_params = [
|
26906
|
+
'cloud_id',
|
26907
|
+
'start_time',
|
26908
|
+
'end_time',
|
26909
|
+
'paging_token',
|
26910
|
+
'count'
|
26911
|
+
]
|
26912
|
+
all_params.extend(
|
26913
|
+
[
|
26914
|
+
'async_req',
|
26915
|
+
'_return_http_data_only',
|
26916
|
+
'_preload_content',
|
26917
|
+
'_request_timeout'
|
26918
|
+
]
|
26919
|
+
)
|
26920
|
+
|
26921
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
26922
|
+
if key not in all_params:
|
26923
|
+
raise ApiTypeError(
|
26924
|
+
"Got an unexpected keyword argument '%s'"
|
26925
|
+
" to method list_job_reports_api_v2_job_reports_get" % key
|
26926
|
+
)
|
26927
|
+
local_var_params[key] = val
|
26928
|
+
del local_var_params['kwargs']
|
26929
|
+
# verify the required parameter 'cloud_id' is set
|
26930
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
26931
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
26932
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `list_job_reports_api_v2_job_reports_get`") # noqa: E501
|
26933
|
+
|
26934
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
26935
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_job_reports_api_v2_job_reports_get`, must be a value less than or equal to `50`") # noqa: E501
|
26936
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
26937
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_job_reports_api_v2_job_reports_get`, must be a value greater than or equal to `0`") # noqa: E501
|
26938
|
+
collection_formats = {}
|
26939
|
+
|
26940
|
+
path_params = {}
|
26941
|
+
|
26942
|
+
query_params = []
|
26943
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
26944
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
26945
|
+
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
26946
|
+
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
26947
|
+
if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
|
26948
|
+
query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
|
26949
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
26950
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
26951
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
26952
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
26953
|
+
|
26954
|
+
header_params = {}
|
26955
|
+
|
26956
|
+
form_params = []
|
26957
|
+
local_var_files = {}
|
26958
|
+
|
26959
|
+
body_params = None
|
26960
|
+
# HTTP header `Accept`
|
26961
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
26962
|
+
['application/json']) # noqa: E501
|
26963
|
+
|
26964
|
+
# Authentication setting
|
26965
|
+
auth_settings = [] # noqa: E501
|
26966
|
+
|
26967
|
+
return self.api_client.call_api(
|
26968
|
+
'/api/v2/job_reports/', 'GET',
|
26969
|
+
path_params,
|
26970
|
+
query_params,
|
26971
|
+
header_params,
|
26972
|
+
body=body_params,
|
26973
|
+
post_params=form_params,
|
26974
|
+
files=local_var_files,
|
26975
|
+
response_type='JobwithreportListResponse', # noqa: E501
|
26976
|
+
auth_settings=auth_settings,
|
26977
|
+
async_req=local_var_params.get('async_req'),
|
26978
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
26979
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
26980
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
26981
|
+
collection_formats=collection_formats)
|
26982
|
+
|
26735
26983
|
def list_job_states_api_v2_decorated_ha_job_states_get(self, ha_job_id, **kwargs): # noqa: E501
|
26736
26984
|
"""List Job States # noqa: E501
|
26737
26985
|
|
@@ -296,6 +296,8 @@ from openapi_client.models.ha_jobs_sort_field import HaJobsSortField
|
|
296
296
|
from openapi_client.models.head_ip import HeadIp
|
297
297
|
from openapi_client.models.headip_response import HeadipResponse
|
298
298
|
from openapi_client.models.http_protocol_config import HttpProtocolConfig
|
299
|
+
from openapi_client.models.i_know_response import IKnowResponse
|
300
|
+
from openapi_client.models.i_know_time_series_event import IKnowTimeSeriesEvent
|
299
301
|
from openapi_client.models.idle_termination_status import IdleTerminationStatus
|
300
302
|
from openapi_client.models.instance_usage_budget import InstanceUsageBudget
|
301
303
|
from openapi_client.models.instance_usage_budget_evaluation_period import InstanceUsageBudgetEvaluationPeriod
|
@@ -316,10 +318,13 @@ from openapi_client.models.job_queue_execution_mode import JobQueueExecutionMode
|
|
316
318
|
from openapi_client.models.job_queue_spec import JobQueueSpec
|
317
319
|
from openapi_client.models.job_queue_state import JobQueueState
|
318
320
|
from openapi_client.models.job_queues_query import JobQueuesQuery
|
321
|
+
from openapi_client.models.job_report import JobReport
|
319
322
|
from openapi_client.models.job_run_type import JobRunType
|
320
323
|
from openapi_client.models.job_state_log_level_types import JobStateLogLevelTypes
|
324
|
+
from openapi_client.models.job_with_report import JobWithReport
|
321
325
|
from openapi_client.models.jobqueue_response import JobqueueResponse
|
322
326
|
from openapi_client.models.jobs_sort_field import JobsSortField
|
327
|
+
from openapi_client.models.jobwithreport_list_response import JobwithreportListResponse
|
323
328
|
from openapi_client.models.json_patch_operation import JsonPatchOperation
|
324
329
|
from openapi_client.models.kubernetes_manager_registration_request import KubernetesManagerRegistrationRequest
|
325
330
|
from openapi_client.models.kubernetes_manager_registration_response import KubernetesManagerRegistrationResponse
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Managed Ray API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from openapi_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class IKnowResponse(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'error': 'str',
|
37
|
+
'time_series_events': 'list[IKnowTimeSeriesEvent]',
|
38
|
+
'rootcause': 'str'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'error': 'error',
|
43
|
+
'time_series_events': 'time_series_events',
|
44
|
+
'rootcause': 'rootcause'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, error=None, time_series_events=None, rootcause=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""IKnowResponse - a model defined in OpenAPI""" # noqa: E501
|
49
|
+
if local_vars_configuration is None:
|
50
|
+
local_vars_configuration = Configuration()
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
52
|
+
|
53
|
+
self._error = None
|
54
|
+
self._time_series_events = None
|
55
|
+
self._rootcause = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
if error is not None:
|
59
|
+
self.error = error
|
60
|
+
self.time_series_events = time_series_events
|
61
|
+
self.rootcause = rootcause
|
62
|
+
|
63
|
+
@property
|
64
|
+
def error(self):
|
65
|
+
"""Gets the error of this IKnowResponse. # noqa: E501
|
66
|
+
|
67
|
+
|
68
|
+
:return: The error of this IKnowResponse. # noqa: E501
|
69
|
+
:rtype: str
|
70
|
+
"""
|
71
|
+
return self._error
|
72
|
+
|
73
|
+
@error.setter
|
74
|
+
def error(self, error):
|
75
|
+
"""Sets the error of this IKnowResponse.
|
76
|
+
|
77
|
+
|
78
|
+
:param error: The error of this IKnowResponse. # noqa: E501
|
79
|
+
:type: str
|
80
|
+
"""
|
81
|
+
|
82
|
+
self._error = error
|
83
|
+
|
84
|
+
@property
|
85
|
+
def time_series_events(self):
|
86
|
+
"""Gets the time_series_events of this IKnowResponse. # noqa: E501
|
87
|
+
|
88
|
+
|
89
|
+
:return: The time_series_events of this IKnowResponse. # noqa: E501
|
90
|
+
:rtype: list[IKnowTimeSeriesEvent]
|
91
|
+
"""
|
92
|
+
return self._time_series_events
|
93
|
+
|
94
|
+
@time_series_events.setter
|
95
|
+
def time_series_events(self, time_series_events):
|
96
|
+
"""Sets the time_series_events of this IKnowResponse.
|
97
|
+
|
98
|
+
|
99
|
+
:param time_series_events: The time_series_events of this IKnowResponse. # noqa: E501
|
100
|
+
:type: list[IKnowTimeSeriesEvent]
|
101
|
+
"""
|
102
|
+
if self.local_vars_configuration.client_side_validation and time_series_events is None: # noqa: E501
|
103
|
+
raise ValueError("Invalid value for `time_series_events`, must not be `None`") # noqa: E501
|
104
|
+
|
105
|
+
self._time_series_events = time_series_events
|
106
|
+
|
107
|
+
@property
|
108
|
+
def rootcause(self):
|
109
|
+
"""Gets the rootcause of this IKnowResponse. # noqa: E501
|
110
|
+
|
111
|
+
|
112
|
+
:return: The rootcause of this IKnowResponse. # noqa: E501
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._rootcause
|
116
|
+
|
117
|
+
@rootcause.setter
|
118
|
+
def rootcause(self, rootcause):
|
119
|
+
"""Sets the rootcause of this IKnowResponse.
|
120
|
+
|
121
|
+
|
122
|
+
:param rootcause: The rootcause of this IKnowResponse. # noqa: E501
|
123
|
+
:type: str
|
124
|
+
"""
|
125
|
+
if self.local_vars_configuration.client_side_validation and rootcause is None: # noqa: E501
|
126
|
+
raise ValueError("Invalid value for `rootcause`, must not be `None`") # noqa: E501
|
127
|
+
|
128
|
+
self._rootcause = rootcause
|
129
|
+
|
130
|
+
def to_dict(self):
|
131
|
+
"""Returns the model properties as a dict"""
|
132
|
+
result = {}
|
133
|
+
|
134
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
135
|
+
value = getattr(self, attr)
|
136
|
+
if isinstance(value, list):
|
137
|
+
result[attr] = list(map(
|
138
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
139
|
+
value
|
140
|
+
))
|
141
|
+
elif hasattr(value, "to_dict"):
|
142
|
+
result[attr] = value.to_dict()
|
143
|
+
elif isinstance(value, dict):
|
144
|
+
result[attr] = dict(map(
|
145
|
+
lambda item: (item[0], item[1].to_dict())
|
146
|
+
if hasattr(item[1], "to_dict") else item,
|
147
|
+
value.items()
|
148
|
+
))
|
149
|
+
else:
|
150
|
+
result[attr] = value
|
151
|
+
|
152
|
+
return result
|
153
|
+
|
154
|
+
def to_str(self):
|
155
|
+
"""Returns the string representation of the model"""
|
156
|
+
return pprint.pformat(self.to_dict())
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print` and `pprint`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, IKnowResponse):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.to_dict() == other.to_dict()
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
if not isinstance(other, IKnowResponse):
|
172
|
+
return True
|
173
|
+
|
174
|
+
return self.to_dict() != other.to_dict()
|