anyscale 0.26.16__py3-none-any.whl → 0.26.18__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/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +7 -37
- anyscale/client/openapi_client/__init__.py +5 -20
- anyscale/client/openapi_client/api/default_api.py +410 -2163
- anyscale/client/openapi_client/models/__init__.py +5 -20
- anyscale/client/openapi_client/models/{create_session_response.py → i_know_response.py} +51 -51
- anyscale/client/openapi_client/models/{session_details.py → i_know_time_series_event.py} +35 -35
- 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/{webterminal_list_response.py → jobwithreport_list_response.py} +15 -15
- anyscale/commands/cloud_commands.py +71 -0
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +164 -1
- anyscale/job/_private/job_sdk.py +22 -24
- anyscale/version.py +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/METADATA +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/RECORD +23 -38
- anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
- anyscale/client/openapi_client/models/archivedlogsinfo_response.py +0 -121
- anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
- anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
- anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
- anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
- anyscale/client/openapi_client/models/external_service_status.py +0 -147
- anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
- anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
- anyscale/client/openapi_client/models/monitor_logs_extension.py +0 -100
- anyscale/client/openapi_client/models/session_describe.py +0 -175
- anyscale/client/openapi_client/models/session_history_item.py +0 -146
- anyscale/client/openapi_client/models/sessiondescribe_response.py +0 -121
- anyscale/client/openapi_client/models/sessiondetails_response.py +0 -121
- anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
- anyscale/client/openapi_client/models/update_compute_template.py +0 -146
- anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/LICENSE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/NOTICE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/WHEEL +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/top_level.txt +0 -0
@@ -895,120 +895,6 @@ class DefaultApi(object):
|
|
895
895
|
_request_timeout=local_var_params.get('_request_timeout'),
|
896
896
|
collection_formats=collection_formats)
|
897
897
|
|
898
|
-
def archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post(self, cluster_id, **kwargs): # noqa: E501
|
899
|
-
"""Archive Cluster # noqa: E501
|
900
|
-
|
901
|
-
Archives the cluster. It is a no-op if the cluster is already archived. # noqa: E501
|
902
|
-
This method makes a synchronous HTTP request by default. To make an
|
903
|
-
asynchronous HTTP request, please pass async_req=True
|
904
|
-
>>> thread = api.archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post(cluster_id, async_req=True)
|
905
|
-
>>> result = thread.get()
|
906
|
-
|
907
|
-
:param async_req bool: execute request asynchronously
|
908
|
-
:param str cluster_id: (required)
|
909
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
910
|
-
be returned without reading/decoding response
|
911
|
-
data. Default is True.
|
912
|
-
:param _request_timeout: timeout setting for this request. If one
|
913
|
-
number provided, it will be total request
|
914
|
-
timeout. It can also be a pair (tuple) of
|
915
|
-
(connection, read) timeouts.
|
916
|
-
:return: None
|
917
|
-
If the method is called asynchronously,
|
918
|
-
returns the request thread.
|
919
|
-
"""
|
920
|
-
kwargs['_return_http_data_only'] = True
|
921
|
-
return self.archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post_with_http_info(cluster_id, **kwargs) # noqa: E501
|
922
|
-
|
923
|
-
def archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
924
|
-
"""Archive Cluster # noqa: E501
|
925
|
-
|
926
|
-
Archives the cluster. It is a no-op if the cluster is already archived. # noqa: E501
|
927
|
-
This method makes a synchronous HTTP request by default. To make an
|
928
|
-
asynchronous HTTP request, please pass async_req=True
|
929
|
-
>>> thread = api.archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post_with_http_info(cluster_id, async_req=True)
|
930
|
-
>>> result = thread.get()
|
931
|
-
|
932
|
-
:param async_req bool: execute request asynchronously
|
933
|
-
:param str cluster_id: (required)
|
934
|
-
:param _return_http_data_only: response data without head status code
|
935
|
-
and headers
|
936
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
937
|
-
be returned without reading/decoding response
|
938
|
-
data. Default is True.
|
939
|
-
:param _request_timeout: timeout setting for this request. If one
|
940
|
-
number provided, it will be total request
|
941
|
-
timeout. It can also be a pair (tuple) of
|
942
|
-
(connection, read) timeouts.
|
943
|
-
:return: None
|
944
|
-
If the method is called asynchronously,
|
945
|
-
returns the request thread.
|
946
|
-
"""
|
947
|
-
|
948
|
-
local_var_params = locals()
|
949
|
-
|
950
|
-
all_params = [
|
951
|
-
'cluster_id'
|
952
|
-
]
|
953
|
-
all_params.extend(
|
954
|
-
[
|
955
|
-
'async_req',
|
956
|
-
'_return_http_data_only',
|
957
|
-
'_preload_content',
|
958
|
-
'_request_timeout'
|
959
|
-
]
|
960
|
-
)
|
961
|
-
|
962
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
963
|
-
if key not in all_params:
|
964
|
-
raise ApiTypeError(
|
965
|
-
"Got an unexpected keyword argument '%s'"
|
966
|
-
" to method archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post" % key
|
967
|
-
)
|
968
|
-
local_var_params[key] = val
|
969
|
-
del local_var_params['kwargs']
|
970
|
-
# verify the required parameter 'cluster_id' is set
|
971
|
-
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
972
|
-
local_var_params['cluster_id'] is None): # noqa: E501
|
973
|
-
raise ApiValueError("Missing the required parameter `cluster_id` when calling `archive_cluster_api_v2_decorated_sessions_cluster_id_archive_post`") # noqa: E501
|
974
|
-
|
975
|
-
collection_formats = {}
|
976
|
-
|
977
|
-
path_params = {}
|
978
|
-
if 'cluster_id' in local_var_params:
|
979
|
-
path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501
|
980
|
-
|
981
|
-
query_params = []
|
982
|
-
|
983
|
-
header_params = {}
|
984
|
-
|
985
|
-
form_params = []
|
986
|
-
local_var_files = {}
|
987
|
-
|
988
|
-
body_params = None
|
989
|
-
# HTTP header `Accept`
|
990
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
991
|
-
['application/json']) # noqa: E501
|
992
|
-
|
993
|
-
# Authentication setting
|
994
|
-
auth_settings = [] # noqa: E501
|
995
|
-
|
996
|
-
return self.api_client.call_api(
|
997
|
-
'/api/v2/decorated_sessions/{cluster_id}/archive', 'POST',
|
998
|
-
path_params,
|
999
|
-
query_params,
|
1000
|
-
header_params,
|
1001
|
-
body=body_params,
|
1002
|
-
post_params=form_params,
|
1003
|
-
files=local_var_files,
|
1004
|
-
response_type=None, # noqa: E501
|
1005
|
-
auth_settings=auth_settings,
|
1006
|
-
async_req=local_var_params.get('async_req'),
|
1007
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
1008
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
1009
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
1010
|
-
collection_formats=collection_formats)
|
1011
|
-
|
1012
898
|
def archive_cluster_environment_api_v2_application_templates_application_template_id_archive_post(self, application_template_id, **kwargs): # noqa: E501
|
1013
899
|
"""Archive Cluster Environment # noqa: E501
|
1014
900
|
|
@@ -4524,124 +4410,6 @@ class DefaultApi(object):
|
|
4524
4410
|
_request_timeout=local_var_params.get('_request_timeout'),
|
4525
4411
|
collection_formats=collection_formats)
|
4526
4412
|
|
4527
|
-
def create_connect_session_api_v2_sessions_create_connect_session_post(self, create_session_in_db, **kwargs): # noqa: E501
|
4528
|
-
"""Create Connect Session # noqa: E501
|
4529
|
-
|
4530
|
-
Creates a session for anyscale connect. # noqa: E501
|
4531
|
-
This method makes a synchronous HTTP request by default. To make an
|
4532
|
-
asynchronous HTTP request, please pass async_req=True
|
4533
|
-
>>> thread = api.create_connect_session_api_v2_sessions_create_connect_session_post(create_session_in_db, async_req=True)
|
4534
|
-
>>> result = thread.get()
|
4535
|
-
|
4536
|
-
:param async_req bool: execute request asynchronously
|
4537
|
-
:param CreateSessionInDb create_session_in_db: (required)
|
4538
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
4539
|
-
be returned without reading/decoding response
|
4540
|
-
data. Default is True.
|
4541
|
-
:param _request_timeout: timeout setting for this request. If one
|
4542
|
-
number provided, it will be total request
|
4543
|
-
timeout. It can also be a pair (tuple) of
|
4544
|
-
(connection, read) timeouts.
|
4545
|
-
:return: SessionResponse
|
4546
|
-
If the method is called asynchronously,
|
4547
|
-
returns the request thread.
|
4548
|
-
"""
|
4549
|
-
kwargs['_return_http_data_only'] = True
|
4550
|
-
return self.create_connect_session_api_v2_sessions_create_connect_session_post_with_http_info(create_session_in_db, **kwargs) # noqa: E501
|
4551
|
-
|
4552
|
-
def create_connect_session_api_v2_sessions_create_connect_session_post_with_http_info(self, create_session_in_db, **kwargs): # noqa: E501
|
4553
|
-
"""Create Connect Session # noqa: E501
|
4554
|
-
|
4555
|
-
Creates a session for anyscale connect. # noqa: E501
|
4556
|
-
This method makes a synchronous HTTP request by default. To make an
|
4557
|
-
asynchronous HTTP request, please pass async_req=True
|
4558
|
-
>>> thread = api.create_connect_session_api_v2_sessions_create_connect_session_post_with_http_info(create_session_in_db, async_req=True)
|
4559
|
-
>>> result = thread.get()
|
4560
|
-
|
4561
|
-
:param async_req bool: execute request asynchronously
|
4562
|
-
:param CreateSessionInDb create_session_in_db: (required)
|
4563
|
-
:param _return_http_data_only: response data without head status code
|
4564
|
-
and headers
|
4565
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
4566
|
-
be returned without reading/decoding response
|
4567
|
-
data. Default is True.
|
4568
|
-
:param _request_timeout: timeout setting for this request. If one
|
4569
|
-
number provided, it will be total request
|
4570
|
-
timeout. It can also be a pair (tuple) of
|
4571
|
-
(connection, read) timeouts.
|
4572
|
-
:return: tuple(SessionResponse, status_code(int), headers(HTTPHeaderDict))
|
4573
|
-
If the method is called asynchronously,
|
4574
|
-
returns the request thread.
|
4575
|
-
"""
|
4576
|
-
|
4577
|
-
local_var_params = locals()
|
4578
|
-
|
4579
|
-
all_params = [
|
4580
|
-
'create_session_in_db'
|
4581
|
-
]
|
4582
|
-
all_params.extend(
|
4583
|
-
[
|
4584
|
-
'async_req',
|
4585
|
-
'_return_http_data_only',
|
4586
|
-
'_preload_content',
|
4587
|
-
'_request_timeout'
|
4588
|
-
]
|
4589
|
-
)
|
4590
|
-
|
4591
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
4592
|
-
if key not in all_params:
|
4593
|
-
raise ApiTypeError(
|
4594
|
-
"Got an unexpected keyword argument '%s'"
|
4595
|
-
" to method create_connect_session_api_v2_sessions_create_connect_session_post" % key
|
4596
|
-
)
|
4597
|
-
local_var_params[key] = val
|
4598
|
-
del local_var_params['kwargs']
|
4599
|
-
# verify the required parameter 'create_session_in_db' is set
|
4600
|
-
if self.api_client.client_side_validation and ('create_session_in_db' not in local_var_params or # noqa: E501
|
4601
|
-
local_var_params['create_session_in_db'] is None): # noqa: E501
|
4602
|
-
raise ApiValueError("Missing the required parameter `create_session_in_db` when calling `create_connect_session_api_v2_sessions_create_connect_session_post`") # noqa: E501
|
4603
|
-
|
4604
|
-
collection_formats = {}
|
4605
|
-
|
4606
|
-
path_params = {}
|
4607
|
-
|
4608
|
-
query_params = []
|
4609
|
-
|
4610
|
-
header_params = {}
|
4611
|
-
|
4612
|
-
form_params = []
|
4613
|
-
local_var_files = {}
|
4614
|
-
|
4615
|
-
body_params = None
|
4616
|
-
if 'create_session_in_db' in local_var_params:
|
4617
|
-
body_params = local_var_params['create_session_in_db']
|
4618
|
-
# HTTP header `Accept`
|
4619
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
4620
|
-
['application/json']) # noqa: E501
|
4621
|
-
|
4622
|
-
# HTTP header `Content-Type`
|
4623
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
4624
|
-
['application/json']) # noqa: E501
|
4625
|
-
|
4626
|
-
# Authentication setting
|
4627
|
-
auth_settings = [] # noqa: E501
|
4628
|
-
|
4629
|
-
return self.api_client.call_api(
|
4630
|
-
'/api/v2/sessions/create_connect_session', 'POST',
|
4631
|
-
path_params,
|
4632
|
-
query_params,
|
4633
|
-
header_params,
|
4634
|
-
body=body_params,
|
4635
|
-
post_params=form_params,
|
4636
|
-
files=local_var_files,
|
4637
|
-
response_type='SessionResponse', # noqa: E501
|
4638
|
-
auth_settings=auth_settings,
|
4639
|
-
async_req=local_var_params.get('async_req'),
|
4640
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
4641
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
4642
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
4643
|
-
collection_formats=collection_formats)
|
4644
|
-
|
4645
4413
|
def create_dataset_upload_api_v2_datasets_upload_post(self, create_dataset, **kwargs): # noqa: E501
|
4646
4414
|
"""Create Dataset Upload # noqa: E501
|
4647
4415
|
|
@@ -5464,122 +5232,6 @@ class DefaultApi(object):
|
|
5464
5232
|
_request_timeout=local_var_params.get('_request_timeout'),
|
5465
5233
|
collection_formats=collection_formats)
|
5466
5234
|
|
5467
|
-
def create_new_session_api_v2_sessions_create_new_session_post(self, create_session_from_snapshot_options, **kwargs): # noqa: E501
|
5468
|
-
"""Create New Session # noqa: E501
|
5469
|
-
|
5470
|
-
This method makes a synchronous HTTP request by default. To make an
|
5471
|
-
asynchronous HTTP request, please pass async_req=True
|
5472
|
-
>>> thread = api.create_new_session_api_v2_sessions_create_new_session_post(create_session_from_snapshot_options, async_req=True)
|
5473
|
-
>>> result = thread.get()
|
5474
|
-
|
5475
|
-
:param async_req bool: execute request asynchronously
|
5476
|
-
:param CreateSessionFromSnapshotOptions create_session_from_snapshot_options: (required)
|
5477
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
5478
|
-
be returned without reading/decoding response
|
5479
|
-
data. Default is True.
|
5480
|
-
:param _request_timeout: timeout setting for this request. If one
|
5481
|
-
number provided, it will be total request
|
5482
|
-
timeout. It can also be a pair (tuple) of
|
5483
|
-
(connection, read) timeouts.
|
5484
|
-
:return: CreatesessionresponseResponse
|
5485
|
-
If the method is called asynchronously,
|
5486
|
-
returns the request thread.
|
5487
|
-
"""
|
5488
|
-
kwargs['_return_http_data_only'] = True
|
5489
|
-
return self.create_new_session_api_v2_sessions_create_new_session_post_with_http_info(create_session_from_snapshot_options, **kwargs) # noqa: E501
|
5490
|
-
|
5491
|
-
def create_new_session_api_v2_sessions_create_new_session_post_with_http_info(self, create_session_from_snapshot_options, **kwargs): # noqa: E501
|
5492
|
-
"""Create New Session # noqa: E501
|
5493
|
-
|
5494
|
-
This method makes a synchronous HTTP request by default. To make an
|
5495
|
-
asynchronous HTTP request, please pass async_req=True
|
5496
|
-
>>> thread = api.create_new_session_api_v2_sessions_create_new_session_post_with_http_info(create_session_from_snapshot_options, async_req=True)
|
5497
|
-
>>> result = thread.get()
|
5498
|
-
|
5499
|
-
:param async_req bool: execute request asynchronously
|
5500
|
-
:param CreateSessionFromSnapshotOptions create_session_from_snapshot_options: (required)
|
5501
|
-
:param _return_http_data_only: response data without head status code
|
5502
|
-
and headers
|
5503
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
5504
|
-
be returned without reading/decoding response
|
5505
|
-
data. Default is True.
|
5506
|
-
:param _request_timeout: timeout setting for this request. If one
|
5507
|
-
number provided, it will be total request
|
5508
|
-
timeout. It can also be a pair (tuple) of
|
5509
|
-
(connection, read) timeouts.
|
5510
|
-
:return: tuple(CreatesessionresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
5511
|
-
If the method is called asynchronously,
|
5512
|
-
returns the request thread.
|
5513
|
-
"""
|
5514
|
-
|
5515
|
-
local_var_params = locals()
|
5516
|
-
|
5517
|
-
all_params = [
|
5518
|
-
'create_session_from_snapshot_options'
|
5519
|
-
]
|
5520
|
-
all_params.extend(
|
5521
|
-
[
|
5522
|
-
'async_req',
|
5523
|
-
'_return_http_data_only',
|
5524
|
-
'_preload_content',
|
5525
|
-
'_request_timeout'
|
5526
|
-
]
|
5527
|
-
)
|
5528
|
-
|
5529
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
5530
|
-
if key not in all_params:
|
5531
|
-
raise ApiTypeError(
|
5532
|
-
"Got an unexpected keyword argument '%s'"
|
5533
|
-
" to method create_new_session_api_v2_sessions_create_new_session_post" % key
|
5534
|
-
)
|
5535
|
-
local_var_params[key] = val
|
5536
|
-
del local_var_params['kwargs']
|
5537
|
-
# verify the required parameter 'create_session_from_snapshot_options' is set
|
5538
|
-
if self.api_client.client_side_validation and ('create_session_from_snapshot_options' not in local_var_params or # noqa: E501
|
5539
|
-
local_var_params['create_session_from_snapshot_options'] is None): # noqa: E501
|
5540
|
-
raise ApiValueError("Missing the required parameter `create_session_from_snapshot_options` when calling `create_new_session_api_v2_sessions_create_new_session_post`") # noqa: E501
|
5541
|
-
|
5542
|
-
collection_formats = {}
|
5543
|
-
|
5544
|
-
path_params = {}
|
5545
|
-
|
5546
|
-
query_params = []
|
5547
|
-
|
5548
|
-
header_params = {}
|
5549
|
-
|
5550
|
-
form_params = []
|
5551
|
-
local_var_files = {}
|
5552
|
-
|
5553
|
-
body_params = None
|
5554
|
-
if 'create_session_from_snapshot_options' in local_var_params:
|
5555
|
-
body_params = local_var_params['create_session_from_snapshot_options']
|
5556
|
-
# HTTP header `Accept`
|
5557
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
5558
|
-
['application/json']) # noqa: E501
|
5559
|
-
|
5560
|
-
# HTTP header `Content-Type`
|
5561
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
5562
|
-
['application/json']) # noqa: E501
|
5563
|
-
|
5564
|
-
# Authentication setting
|
5565
|
-
auth_settings = [] # noqa: E501
|
5566
|
-
|
5567
|
-
return self.api_client.call_api(
|
5568
|
-
'/api/v2/sessions/create_new_session', 'POST',
|
5569
|
-
path_params,
|
5570
|
-
query_params,
|
5571
|
-
header_params,
|
5572
|
-
body=body_params,
|
5573
|
-
post_params=form_params,
|
5574
|
-
files=local_var_files,
|
5575
|
-
response_type='CreatesessionresponseResponse', # noqa: E501
|
5576
|
-
auth_settings=auth_settings,
|
5577
|
-
async_req=local_var_params.get('async_req'),
|
5578
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
5579
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
5580
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
5581
|
-
collection_formats=collection_formats)
|
5582
|
-
|
5583
5235
|
def create_one_time_password_api_v2_users_create_otp_token_get(self, **kwargs): # noqa: E501
|
5584
5236
|
"""Create One Time Password # noqa: E501
|
5585
5237
|
|
@@ -6870,124 +6522,6 @@ class DefaultApi(object):
|
|
6870
6522
|
_request_timeout=local_var_params.get('_request_timeout'),
|
6871
6523
|
collection_formats=collection_formats)
|
6872
6524
|
|
6873
|
-
def create_workspace_from_job_api_v2_experimental_workspaces_from_job_post(self, create_experimental_workspace_from_job, **kwargs): # noqa: E501
|
6874
|
-
"""Create Workspace From Job # noqa: E501
|
6875
|
-
|
6876
|
-
Creates a Workspace from a job. # noqa: E501
|
6877
|
-
This method makes a synchronous HTTP request by default. To make an
|
6878
|
-
asynchronous HTTP request, please pass async_req=True
|
6879
|
-
>>> thread = api.create_workspace_from_job_api_v2_experimental_workspaces_from_job_post(create_experimental_workspace_from_job, async_req=True)
|
6880
|
-
>>> result = thread.get()
|
6881
|
-
|
6882
|
-
:param async_req bool: execute request asynchronously
|
6883
|
-
:param CreateExperimentalWorkspaceFromJob create_experimental_workspace_from_job: (required)
|
6884
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6885
|
-
be returned without reading/decoding response
|
6886
|
-
data. Default is True.
|
6887
|
-
:param _request_timeout: timeout setting for this request. If one
|
6888
|
-
number provided, it will be total request
|
6889
|
-
timeout. It can also be a pair (tuple) of
|
6890
|
-
(connection, read) timeouts.
|
6891
|
-
:return: ExperimentalworkspaceResponse
|
6892
|
-
If the method is called asynchronously,
|
6893
|
-
returns the request thread.
|
6894
|
-
"""
|
6895
|
-
kwargs['_return_http_data_only'] = True
|
6896
|
-
return self.create_workspace_from_job_api_v2_experimental_workspaces_from_job_post_with_http_info(create_experimental_workspace_from_job, **kwargs) # noqa: E501
|
6897
|
-
|
6898
|
-
def create_workspace_from_job_api_v2_experimental_workspaces_from_job_post_with_http_info(self, create_experimental_workspace_from_job, **kwargs): # noqa: E501
|
6899
|
-
"""Create Workspace From Job # noqa: E501
|
6900
|
-
|
6901
|
-
Creates a Workspace from a job. # noqa: E501
|
6902
|
-
This method makes a synchronous HTTP request by default. To make an
|
6903
|
-
asynchronous HTTP request, please pass async_req=True
|
6904
|
-
>>> thread = api.create_workspace_from_job_api_v2_experimental_workspaces_from_job_post_with_http_info(create_experimental_workspace_from_job, async_req=True)
|
6905
|
-
>>> result = thread.get()
|
6906
|
-
|
6907
|
-
:param async_req bool: execute request asynchronously
|
6908
|
-
:param CreateExperimentalWorkspaceFromJob create_experimental_workspace_from_job: (required)
|
6909
|
-
:param _return_http_data_only: response data without head status code
|
6910
|
-
and headers
|
6911
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6912
|
-
be returned without reading/decoding response
|
6913
|
-
data. Default is True.
|
6914
|
-
:param _request_timeout: timeout setting for this request. If one
|
6915
|
-
number provided, it will be total request
|
6916
|
-
timeout. It can also be a pair (tuple) of
|
6917
|
-
(connection, read) timeouts.
|
6918
|
-
:return: tuple(ExperimentalworkspaceResponse, status_code(int), headers(HTTPHeaderDict))
|
6919
|
-
If the method is called asynchronously,
|
6920
|
-
returns the request thread.
|
6921
|
-
"""
|
6922
|
-
|
6923
|
-
local_var_params = locals()
|
6924
|
-
|
6925
|
-
all_params = [
|
6926
|
-
'create_experimental_workspace_from_job'
|
6927
|
-
]
|
6928
|
-
all_params.extend(
|
6929
|
-
[
|
6930
|
-
'async_req',
|
6931
|
-
'_return_http_data_only',
|
6932
|
-
'_preload_content',
|
6933
|
-
'_request_timeout'
|
6934
|
-
]
|
6935
|
-
)
|
6936
|
-
|
6937
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
6938
|
-
if key not in all_params:
|
6939
|
-
raise ApiTypeError(
|
6940
|
-
"Got an unexpected keyword argument '%s'"
|
6941
|
-
" to method create_workspace_from_job_api_v2_experimental_workspaces_from_job_post" % key
|
6942
|
-
)
|
6943
|
-
local_var_params[key] = val
|
6944
|
-
del local_var_params['kwargs']
|
6945
|
-
# verify the required parameter 'create_experimental_workspace_from_job' is set
|
6946
|
-
if self.api_client.client_side_validation and ('create_experimental_workspace_from_job' not in local_var_params or # noqa: E501
|
6947
|
-
local_var_params['create_experimental_workspace_from_job'] is None): # noqa: E501
|
6948
|
-
raise ApiValueError("Missing the required parameter `create_experimental_workspace_from_job` when calling `create_workspace_from_job_api_v2_experimental_workspaces_from_job_post`") # noqa: E501
|
6949
|
-
|
6950
|
-
collection_formats = {}
|
6951
|
-
|
6952
|
-
path_params = {}
|
6953
|
-
|
6954
|
-
query_params = []
|
6955
|
-
|
6956
|
-
header_params = {}
|
6957
|
-
|
6958
|
-
form_params = []
|
6959
|
-
local_var_files = {}
|
6960
|
-
|
6961
|
-
body_params = None
|
6962
|
-
if 'create_experimental_workspace_from_job' in local_var_params:
|
6963
|
-
body_params = local_var_params['create_experimental_workspace_from_job']
|
6964
|
-
# HTTP header `Accept`
|
6965
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
6966
|
-
['application/json']) # noqa: E501
|
6967
|
-
|
6968
|
-
# HTTP header `Content-Type`
|
6969
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
6970
|
-
['application/json']) # noqa: E501
|
6971
|
-
|
6972
|
-
# Authentication setting
|
6973
|
-
auth_settings = [] # noqa: E501
|
6974
|
-
|
6975
|
-
return self.api_client.call_api(
|
6976
|
-
'/api/v2/experimental_workspaces/from_job', 'POST',
|
6977
|
-
path_params,
|
6978
|
-
query_params,
|
6979
|
-
header_params,
|
6980
|
-
body=body_params,
|
6981
|
-
post_params=form_params,
|
6982
|
-
files=local_var_files,
|
6983
|
-
response_type='ExperimentalworkspaceResponse', # noqa: E501
|
6984
|
-
auth_settings=auth_settings,
|
6985
|
-
async_req=local_var_params.get('async_req'),
|
6986
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
6987
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
6988
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
6989
|
-
collection_formats=collection_formats)
|
6990
|
-
|
6991
6525
|
def create_workspace_from_template_api_v2_experimental_workspaces_from_template_post(self, create_workspace_from_template, **kwargs): # noqa: E501
|
6992
6526
|
"""Create Workspace From Template # noqa: E501
|
6993
6527
|
|
@@ -8830,129 +8364,6 @@ class DefaultApi(object):
|
|
8830
8364
|
_request_timeout=local_var_params.get('_request_timeout'),
|
8831
8365
|
collection_formats=collection_formats)
|
8832
8366
|
|
8833
|
-
def delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete(self, session_id, terminal_id, **kwargs): # noqa: E501
|
8834
|
-
"""Delete Web Terminals # noqa: E501
|
8835
|
-
|
8836
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
8837
|
-
This method makes a synchronous HTTP request by default. To make an
|
8838
|
-
asynchronous HTTP request, please pass async_req=True
|
8839
|
-
>>> thread = api.delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete(session_id, terminal_id, async_req=True)
|
8840
|
-
>>> result = thread.get()
|
8841
|
-
|
8842
|
-
:param async_req bool: execute request asynchronously
|
8843
|
-
:param str session_id: (required)
|
8844
|
-
:param str terminal_id: (required)
|
8845
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
8846
|
-
be returned without reading/decoding response
|
8847
|
-
data. Default is True.
|
8848
|
-
:param _request_timeout: timeout setting for this request. If one
|
8849
|
-
number provided, it will be total request
|
8850
|
-
timeout. It can also be a pair (tuple) of
|
8851
|
-
(connection, read) timeouts.
|
8852
|
-
:return: None
|
8853
|
-
If the method is called asynchronously,
|
8854
|
-
returns the request thread.
|
8855
|
-
"""
|
8856
|
-
kwargs['_return_http_data_only'] = True
|
8857
|
-
return self.delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete_with_http_info(session_id, terminal_id, **kwargs) # noqa: E501
|
8858
|
-
|
8859
|
-
def delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete_with_http_info(self, session_id, terminal_id, **kwargs): # noqa: E501
|
8860
|
-
"""Delete Web Terminals # noqa: E501
|
8861
|
-
|
8862
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
8863
|
-
This method makes a synchronous HTTP request by default. To make an
|
8864
|
-
asynchronous HTTP request, please pass async_req=True
|
8865
|
-
>>> thread = api.delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete_with_http_info(session_id, terminal_id, async_req=True)
|
8866
|
-
>>> result = thread.get()
|
8867
|
-
|
8868
|
-
:param async_req bool: execute request asynchronously
|
8869
|
-
:param str session_id: (required)
|
8870
|
-
:param str terminal_id: (required)
|
8871
|
-
:param _return_http_data_only: response data without head status code
|
8872
|
-
and headers
|
8873
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
8874
|
-
be returned without reading/decoding response
|
8875
|
-
data. Default is True.
|
8876
|
-
:param _request_timeout: timeout setting for this request. If one
|
8877
|
-
number provided, it will be total request
|
8878
|
-
timeout. It can also be a pair (tuple) of
|
8879
|
-
(connection, read) timeouts.
|
8880
|
-
:return: None
|
8881
|
-
If the method is called asynchronously,
|
8882
|
-
returns the request thread.
|
8883
|
-
"""
|
8884
|
-
|
8885
|
-
local_var_params = locals()
|
8886
|
-
|
8887
|
-
all_params = [
|
8888
|
-
'session_id',
|
8889
|
-
'terminal_id'
|
8890
|
-
]
|
8891
|
-
all_params.extend(
|
8892
|
-
[
|
8893
|
-
'async_req',
|
8894
|
-
'_return_http_data_only',
|
8895
|
-
'_preload_content',
|
8896
|
-
'_request_timeout'
|
8897
|
-
]
|
8898
|
-
)
|
8899
|
-
|
8900
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
8901
|
-
if key not in all_params:
|
8902
|
-
raise ApiTypeError(
|
8903
|
-
"Got an unexpected keyword argument '%s'"
|
8904
|
-
" to method delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete" % key
|
8905
|
-
)
|
8906
|
-
local_var_params[key] = val
|
8907
|
-
del local_var_params['kwargs']
|
8908
|
-
# verify the required parameter 'session_id' is set
|
8909
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
8910
|
-
local_var_params['session_id'] is None): # noqa: E501
|
8911
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete`") # noqa: E501
|
8912
|
-
# verify the required parameter 'terminal_id' is set
|
8913
|
-
if self.api_client.client_side_validation and ('terminal_id' not in local_var_params or # noqa: E501
|
8914
|
-
local_var_params['terminal_id'] is None): # noqa: E501
|
8915
|
-
raise ApiValueError("Missing the required parameter `terminal_id` when calling `delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete`") # noqa: E501
|
8916
|
-
|
8917
|
-
collection_formats = {}
|
8918
|
-
|
8919
|
-
path_params = {}
|
8920
|
-
if 'session_id' in local_var_params:
|
8921
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
8922
|
-
if 'terminal_id' in local_var_params:
|
8923
|
-
path_params['terminal_id'] = local_var_params['terminal_id'] # noqa: E501
|
8924
|
-
|
8925
|
-
query_params = []
|
8926
|
-
|
8927
|
-
header_params = {}
|
8928
|
-
|
8929
|
-
form_params = []
|
8930
|
-
local_var_files = {}
|
8931
|
-
|
8932
|
-
body_params = None
|
8933
|
-
# HTTP header `Accept`
|
8934
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
8935
|
-
['application/json']) # noqa: E501
|
8936
|
-
|
8937
|
-
# Authentication setting
|
8938
|
-
auth_settings = [] # noqa: E501
|
8939
|
-
|
8940
|
-
return self.api_client.call_api(
|
8941
|
-
'/api/v2/sessions/{session_id}/web_terminals/{terminal_id}', 'DELETE',
|
8942
|
-
path_params,
|
8943
|
-
query_params,
|
8944
|
-
header_params,
|
8945
|
-
body=body_params,
|
8946
|
-
post_params=form_params,
|
8947
|
-
files=local_var_files,
|
8948
|
-
response_type=None, # noqa: E501
|
8949
|
-
auth_settings=auth_settings,
|
8950
|
-
async_req=local_var_params.get('async_req'),
|
8951
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
8952
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
8953
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
8954
|
-
collection_formats=collection_formats)
|
8955
|
-
|
8956
8367
|
def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
|
8957
8368
|
"""Delete Workspace # noqa: E501
|
8958
8369
|
|
@@ -9185,118 +8596,6 @@ class DefaultApi(object):
|
|
9185
8596
|
_request_timeout=local_var_params.get('_request_timeout'),
|
9186
8597
|
collection_formats=collection_formats)
|
9187
8598
|
|
9188
|
-
def describe_session_api_v2_sessions_session_id_describe_get(self, session_id, **kwargs): # noqa: E501
|
9189
|
-
"""Describe Session # noqa: E501
|
9190
|
-
|
9191
|
-
This method makes a synchronous HTTP request by default. To make an
|
9192
|
-
asynchronous HTTP request, please pass async_req=True
|
9193
|
-
>>> thread = api.describe_session_api_v2_sessions_session_id_describe_get(session_id, async_req=True)
|
9194
|
-
>>> result = thread.get()
|
9195
|
-
|
9196
|
-
:param async_req bool: execute request asynchronously
|
9197
|
-
:param str session_id: (required)
|
9198
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
9199
|
-
be returned without reading/decoding response
|
9200
|
-
data. Default is True.
|
9201
|
-
:param _request_timeout: timeout setting for this request. If one
|
9202
|
-
number provided, it will be total request
|
9203
|
-
timeout. It can also be a pair (tuple) of
|
9204
|
-
(connection, read) timeouts.
|
9205
|
-
:return: SessiondescribeResponse
|
9206
|
-
If the method is called asynchronously,
|
9207
|
-
returns the request thread.
|
9208
|
-
"""
|
9209
|
-
kwargs['_return_http_data_only'] = True
|
9210
|
-
return self.describe_session_api_v2_sessions_session_id_describe_get_with_http_info(session_id, **kwargs) # noqa: E501
|
9211
|
-
|
9212
|
-
def describe_session_api_v2_sessions_session_id_describe_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
9213
|
-
"""Describe Session # noqa: E501
|
9214
|
-
|
9215
|
-
This method makes a synchronous HTTP request by default. To make an
|
9216
|
-
asynchronous HTTP request, please pass async_req=True
|
9217
|
-
>>> thread = api.describe_session_api_v2_sessions_session_id_describe_get_with_http_info(session_id, async_req=True)
|
9218
|
-
>>> result = thread.get()
|
9219
|
-
|
9220
|
-
:param async_req bool: execute request asynchronously
|
9221
|
-
:param str session_id: (required)
|
9222
|
-
:param _return_http_data_only: response data without head status code
|
9223
|
-
and headers
|
9224
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
9225
|
-
be returned without reading/decoding response
|
9226
|
-
data. Default is True.
|
9227
|
-
:param _request_timeout: timeout setting for this request. If one
|
9228
|
-
number provided, it will be total request
|
9229
|
-
timeout. It can also be a pair (tuple) of
|
9230
|
-
(connection, read) timeouts.
|
9231
|
-
:return: tuple(SessiondescribeResponse, status_code(int), headers(HTTPHeaderDict))
|
9232
|
-
If the method is called asynchronously,
|
9233
|
-
returns the request thread.
|
9234
|
-
"""
|
9235
|
-
|
9236
|
-
local_var_params = locals()
|
9237
|
-
|
9238
|
-
all_params = [
|
9239
|
-
'session_id'
|
9240
|
-
]
|
9241
|
-
all_params.extend(
|
9242
|
-
[
|
9243
|
-
'async_req',
|
9244
|
-
'_return_http_data_only',
|
9245
|
-
'_preload_content',
|
9246
|
-
'_request_timeout'
|
9247
|
-
]
|
9248
|
-
)
|
9249
|
-
|
9250
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
9251
|
-
if key not in all_params:
|
9252
|
-
raise ApiTypeError(
|
9253
|
-
"Got an unexpected keyword argument '%s'"
|
9254
|
-
" to method describe_session_api_v2_sessions_session_id_describe_get" % key
|
9255
|
-
)
|
9256
|
-
local_var_params[key] = val
|
9257
|
-
del local_var_params['kwargs']
|
9258
|
-
# verify the required parameter 'session_id' is set
|
9259
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
9260
|
-
local_var_params['session_id'] is None): # noqa: E501
|
9261
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `describe_session_api_v2_sessions_session_id_describe_get`") # noqa: E501
|
9262
|
-
|
9263
|
-
collection_formats = {}
|
9264
|
-
|
9265
|
-
path_params = {}
|
9266
|
-
if 'session_id' in local_var_params:
|
9267
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
9268
|
-
|
9269
|
-
query_params = []
|
9270
|
-
|
9271
|
-
header_params = {}
|
9272
|
-
|
9273
|
-
form_params = []
|
9274
|
-
local_var_files = {}
|
9275
|
-
|
9276
|
-
body_params = None
|
9277
|
-
# HTTP header `Accept`
|
9278
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
9279
|
-
['application/json']) # noqa: E501
|
9280
|
-
|
9281
|
-
# Authentication setting
|
9282
|
-
auth_settings = [] # noqa: E501
|
9283
|
-
|
9284
|
-
return self.api_client.call_api(
|
9285
|
-
'/api/v2/sessions/{session_id}/describe', 'GET',
|
9286
|
-
path_params,
|
9287
|
-
query_params,
|
9288
|
-
header_params,
|
9289
|
-
body=body_params,
|
9290
|
-
post_params=form_params,
|
9291
|
-
files=local_var_files,
|
9292
|
-
response_type='SessiondescribeResponse', # noqa: E501
|
9293
|
-
auth_settings=auth_settings,
|
9294
|
-
async_req=local_var_params.get('async_req'),
|
9295
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
9296
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
9297
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
9298
|
-
collection_formats=collection_formats)
|
9299
|
-
|
9300
8599
|
def describe_system_workload_api_v2_system_workload_cloud_id_describe_post(self, cloud_id, workload_name, **kwargs): # noqa: E501
|
9301
8600
|
"""Describe System Workload # noqa: E501
|
9302
8601
|
|
@@ -15877,20 +15176,16 @@ class DefaultApi(object):
|
|
15877
15176
|
_request_timeout=local_var_params.get('_request_timeout'),
|
15878
15177
|
collection_formats=collection_formats)
|
15879
15178
|
|
15880
|
-
def
|
15881
|
-
"""Get
|
15179
|
+
def get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get(self, instance_usage_budget_id, **kwargs): # noqa: E501
|
15180
|
+
"""Get Instance Usage Budget # noqa: E501
|
15882
15181
|
|
15883
15182
|
This method makes a synchronous HTTP request by default. To make an
|
15884
15183
|
asynchronous HTTP request, please pass async_req=True
|
15885
|
-
>>> thread = api.
|
15184
|
+
>>> thread = api.get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get(instance_usage_budget_id, async_req=True)
|
15886
15185
|
>>> result = thread.get()
|
15887
15186
|
|
15888
15187
|
:param async_req bool: execute request asynchronously
|
15889
|
-
:param str
|
15890
|
-
:param int start_line: (required)
|
15891
|
-
:param int end_line: (required)
|
15892
|
-
:param str extension:
|
15893
|
-
:param datetime start_time:
|
15188
|
+
:param str instance_usage_budget_id: (required)
|
15894
15189
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
15895
15190
|
be returned without reading/decoding response
|
15896
15191
|
data. Default is True.
|
@@ -15898,27 +15193,23 @@ class DefaultApi(object):
|
|
15898
15193
|
number provided, it will be total request
|
15899
15194
|
timeout. It can also be a pair (tuple) of
|
15900
15195
|
(connection, read) timeouts.
|
15901
|
-
:return:
|
15196
|
+
:return: InstanceusagebudgetResponse
|
15902
15197
|
If the method is called asynchronously,
|
15903
15198
|
returns the request thread.
|
15904
15199
|
"""
|
15905
15200
|
kwargs['_return_http_data_only'] = True
|
15906
|
-
return self.
|
15201
|
+
return self.get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get_with_http_info(instance_usage_budget_id, **kwargs) # noqa: E501
|
15907
15202
|
|
15908
|
-
def
|
15909
|
-
"""Get
|
15203
|
+
def get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get_with_http_info(self, instance_usage_budget_id, **kwargs): # noqa: E501
|
15204
|
+
"""Get Instance Usage Budget # noqa: E501
|
15910
15205
|
|
15911
15206
|
This method makes a synchronous HTTP request by default. To make an
|
15912
15207
|
asynchronous HTTP request, please pass async_req=True
|
15913
|
-
>>> thread = api.
|
15208
|
+
>>> thread = api.get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get_with_http_info(instance_usage_budget_id, async_req=True)
|
15914
15209
|
>>> result = thread.get()
|
15915
15210
|
|
15916
15211
|
:param async_req bool: execute request asynchronously
|
15917
|
-
:param str
|
15918
|
-
:param int start_line: (required)
|
15919
|
-
:param int end_line: (required)
|
15920
|
-
:param str extension:
|
15921
|
-
:param datetime start_time:
|
15212
|
+
:param str instance_usage_budget_id: (required)
|
15922
15213
|
:param _return_http_data_only: response data without head status code
|
15923
15214
|
and headers
|
15924
15215
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -15928,7 +15219,7 @@ class DefaultApi(object):
|
|
15928
15219
|
number provided, it will be total request
|
15929
15220
|
timeout. It can also be a pair (tuple) of
|
15930
15221
|
(connection, read) timeouts.
|
15931
|
-
:return: tuple(
|
15222
|
+
:return: tuple(InstanceusagebudgetResponse, status_code(int), headers(HTTPHeaderDict))
|
15932
15223
|
If the method is called asynchronously,
|
15933
15224
|
returns the request thread.
|
15934
15225
|
"""
|
@@ -15936,11 +15227,7 @@ class DefaultApi(object):
|
|
15936
15227
|
local_var_params = locals()
|
15937
15228
|
|
15938
15229
|
all_params = [
|
15939
|
-
'
|
15940
|
-
'start_line',
|
15941
|
-
'end_line',
|
15942
|
-
'extension',
|
15943
|
-
'start_time'
|
15230
|
+
'instance_usage_budget_id'
|
15944
15231
|
]
|
15945
15232
|
all_params.extend(
|
15946
15233
|
[
|
@@ -15955,38 +15242,22 @@ class DefaultApi(object):
|
|
15955
15242
|
if key not in all_params:
|
15956
15243
|
raise ApiTypeError(
|
15957
15244
|
"Got an unexpected keyword argument '%s'"
|
15958
|
-
" to method
|
15245
|
+
" to method get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get" % key
|
15959
15246
|
)
|
15960
15247
|
local_var_params[key] = val
|
15961
15248
|
del local_var_params['kwargs']
|
15962
|
-
# verify the required parameter '
|
15963
|
-
if self.api_client.client_side_validation and ('
|
15964
|
-
local_var_params['
|
15965
|
-
raise ApiValueError("Missing the required parameter `
|
15966
|
-
# verify the required parameter 'start_line' is set
|
15967
|
-
if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
|
15968
|
-
local_var_params['start_line'] is None): # noqa: E501
|
15969
|
-
raise ApiValueError("Missing the required parameter `start_line` when calling `get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get`") # noqa: E501
|
15970
|
-
# verify the required parameter 'end_line' is set
|
15971
|
-
if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
|
15972
|
-
local_var_params['end_line'] is None): # noqa: E501
|
15973
|
-
raise ApiValueError("Missing the required parameter `end_line` when calling `get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get`") # noqa: E501
|
15249
|
+
# verify the required parameter 'instance_usage_budget_id' is set
|
15250
|
+
if self.api_client.client_side_validation and ('instance_usage_budget_id' not in local_var_params or # noqa: E501
|
15251
|
+
local_var_params['instance_usage_budget_id'] is None): # noqa: E501
|
15252
|
+
raise ApiValueError("Missing the required parameter `instance_usage_budget_id` when calling `get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get`") # noqa: E501
|
15974
15253
|
|
15975
15254
|
collection_formats = {}
|
15976
15255
|
|
15977
15256
|
path_params = {}
|
15978
|
-
if '
|
15979
|
-
path_params['
|
15257
|
+
if 'instance_usage_budget_id' in local_var_params:
|
15258
|
+
path_params['instance_usage_budget_id'] = local_var_params['instance_usage_budget_id'] # noqa: E501
|
15980
15259
|
|
15981
15260
|
query_params = []
|
15982
|
-
if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
|
15983
|
-
query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
|
15984
|
-
if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
|
15985
|
-
query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
|
15986
|
-
if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
|
15987
|
-
query_params.append(('extension', local_var_params['extension'])) # noqa: E501
|
15988
|
-
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
15989
|
-
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
15990
15261
|
|
15991
15262
|
header_params = {}
|
15992
15263
|
|
@@ -16002,14 +15273,14 @@ class DefaultApi(object):
|
|
16002
15273
|
auth_settings = [] # noqa: E501
|
16003
15274
|
|
16004
15275
|
return self.api_client.call_api(
|
16005
|
-
'/api/v2/
|
15276
|
+
'/api/v2/instance_usage_budgets/{instance_usage_budget_id}', 'GET',
|
16006
15277
|
path_params,
|
16007
15278
|
query_params,
|
16008
15279
|
header_params,
|
16009
15280
|
body=body_params,
|
16010
15281
|
post_params=form_params,
|
16011
15282
|
files=local_var_files,
|
16012
|
-
response_type='
|
15283
|
+
response_type='InstanceusagebudgetResponse', # noqa: E501
|
16013
15284
|
auth_settings=auth_settings,
|
16014
15285
|
async_req=local_var_params.get('async_req'),
|
16015
15286
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -16017,16 +15288,16 @@ class DefaultApi(object):
|
|
16017
15288
|
_request_timeout=local_var_params.get('_request_timeout'),
|
16018
15289
|
collection_formats=collection_formats)
|
16019
15290
|
|
16020
|
-
def
|
16021
|
-
"""Get
|
15291
|
+
def get_invitation_api_v2_organization_invitations_invitation_id_get(self, invitation_id, **kwargs): # noqa: E501
|
15292
|
+
"""Get Invitation # noqa: E501
|
16022
15293
|
|
16023
15294
|
This method makes a synchronous HTTP request by default. To make an
|
16024
15295
|
asynchronous HTTP request, please pass async_req=True
|
16025
|
-
>>> thread = api.
|
15296
|
+
>>> thread = api.get_invitation_api_v2_organization_invitations_invitation_id_get(invitation_id, async_req=True)
|
16026
15297
|
>>> result = thread.get()
|
16027
15298
|
|
16028
15299
|
:param async_req bool: execute request asynchronously
|
16029
|
-
:param str
|
15300
|
+
:param str invitation_id: (required)
|
16030
15301
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16031
15302
|
be returned without reading/decoding response
|
16032
15303
|
data. Default is True.
|
@@ -16034,23 +15305,23 @@ class DefaultApi(object):
|
|
16034
15305
|
number provided, it will be total request
|
16035
15306
|
timeout. It can also be a pair (tuple) of
|
16036
15307
|
(connection, read) timeouts.
|
16037
|
-
:return:
|
15308
|
+
:return: OrganizationinvitationResponse
|
16038
15309
|
If the method is called asynchronously,
|
16039
15310
|
returns the request thread.
|
16040
15311
|
"""
|
16041
15312
|
kwargs['_return_http_data_only'] = True
|
16042
|
-
return self.
|
15313
|
+
return self.get_invitation_api_v2_organization_invitations_invitation_id_get_with_http_info(invitation_id, **kwargs) # noqa: E501
|
16043
15314
|
|
16044
|
-
def
|
16045
|
-
"""Get
|
15315
|
+
def get_invitation_api_v2_organization_invitations_invitation_id_get_with_http_info(self, invitation_id, **kwargs): # noqa: E501
|
15316
|
+
"""Get Invitation # noqa: E501
|
16046
15317
|
|
16047
15318
|
This method makes a synchronous HTTP request by default. To make an
|
16048
15319
|
asynchronous HTTP request, please pass async_req=True
|
16049
|
-
>>> thread = api.
|
15320
|
+
>>> thread = api.get_invitation_api_v2_organization_invitations_invitation_id_get_with_http_info(invitation_id, async_req=True)
|
16050
15321
|
>>> result = thread.get()
|
16051
15322
|
|
16052
15323
|
:param async_req bool: execute request asynchronously
|
16053
|
-
:param str
|
15324
|
+
:param str invitation_id: (required)
|
16054
15325
|
:param _return_http_data_only: response data without head status code
|
16055
15326
|
and headers
|
16056
15327
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -16060,7 +15331,7 @@ class DefaultApi(object):
|
|
16060
15331
|
number provided, it will be total request
|
16061
15332
|
timeout. It can also be a pair (tuple) of
|
16062
15333
|
(connection, read) timeouts.
|
16063
|
-
:return: tuple(
|
15334
|
+
:return: tuple(OrganizationinvitationResponse, status_code(int), headers(HTTPHeaderDict))
|
16064
15335
|
If the method is called asynchronously,
|
16065
15336
|
returns the request thread.
|
16066
15337
|
"""
|
@@ -16068,7 +15339,7 @@ class DefaultApi(object):
|
|
16068
15339
|
local_var_params = locals()
|
16069
15340
|
|
16070
15341
|
all_params = [
|
16071
|
-
'
|
15342
|
+
'invitation_id'
|
16072
15343
|
]
|
16073
15344
|
all_params.extend(
|
16074
15345
|
[
|
@@ -16083,20 +15354,20 @@ class DefaultApi(object):
|
|
16083
15354
|
if key not in all_params:
|
16084
15355
|
raise ApiTypeError(
|
16085
15356
|
"Got an unexpected keyword argument '%s'"
|
16086
|
-
" to method
|
15357
|
+
" to method get_invitation_api_v2_organization_invitations_invitation_id_get" % key
|
16087
15358
|
)
|
16088
15359
|
local_var_params[key] = val
|
16089
15360
|
del local_var_params['kwargs']
|
16090
|
-
# verify the required parameter '
|
16091
|
-
if self.api_client.client_side_validation and ('
|
16092
|
-
local_var_params['
|
16093
|
-
raise ApiValueError("Missing the required parameter `
|
15361
|
+
# verify the required parameter 'invitation_id' is set
|
15362
|
+
if self.api_client.client_side_validation and ('invitation_id' not in local_var_params or # noqa: E501
|
15363
|
+
local_var_params['invitation_id'] is None): # noqa: E501
|
15364
|
+
raise ApiValueError("Missing the required parameter `invitation_id` when calling `get_invitation_api_v2_organization_invitations_invitation_id_get`") # noqa: E501
|
16094
15365
|
|
16095
15366
|
collection_formats = {}
|
16096
15367
|
|
16097
15368
|
path_params = {}
|
16098
|
-
if '
|
16099
|
-
path_params['
|
15369
|
+
if 'invitation_id' in local_var_params:
|
15370
|
+
path_params['invitation_id'] = local_var_params['invitation_id'] # noqa: E501
|
16100
15371
|
|
16101
15372
|
query_params = []
|
16102
15373
|
|
@@ -16114,14 +15385,14 @@ class DefaultApi(object):
|
|
16114
15385
|
auth_settings = [] # noqa: E501
|
16115
15386
|
|
16116
15387
|
return self.api_client.call_api(
|
16117
|
-
'/api/v2/
|
15388
|
+
'/api/v2/organization_invitations/{invitation_id}', 'GET',
|
16118
15389
|
path_params,
|
16119
15390
|
query_params,
|
16120
15391
|
header_params,
|
16121
15392
|
body=body_params,
|
16122
15393
|
post_params=form_params,
|
16123
15394
|
files=local_var_files,
|
16124
|
-
response_type='
|
15395
|
+
response_type='OrganizationinvitationResponse', # noqa: E501
|
16125
15396
|
auth_settings=auth_settings,
|
16126
15397
|
async_req=local_var_params.get('async_req'),
|
16127
15398
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -16129,16 +15400,17 @@ class DefaultApi(object):
|
|
16129
15400
|
_request_timeout=local_var_params.get('_request_timeout'),
|
16130
15401
|
collection_formats=collection_formats)
|
16131
15402
|
|
16132
|
-
def
|
16133
|
-
"""Get
|
15403
|
+
def get_job_api_v2_decorated_ha_jobs_production_job_id_get(self, production_job_id, **kwargs): # noqa: E501
|
15404
|
+
"""Get Job # noqa: E501
|
16134
15405
|
|
15406
|
+
Get an HA Job # noqa: E501
|
16135
15407
|
This method makes a synchronous HTTP request by default. To make an
|
16136
15408
|
asynchronous HTTP request, please pass async_req=True
|
16137
|
-
>>> thread = api.
|
15409
|
+
>>> thread = api.get_job_api_v2_decorated_ha_jobs_production_job_id_get(production_job_id, async_req=True)
|
16138
15410
|
>>> result = thread.get()
|
16139
15411
|
|
16140
15412
|
:param async_req bool: execute request asynchronously
|
16141
|
-
:param str
|
15413
|
+
:param str production_job_id: (required)
|
16142
15414
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16143
15415
|
be returned without reading/decoding response
|
16144
15416
|
data. Default is True.
|
@@ -16146,23 +15418,24 @@ class DefaultApi(object):
|
|
16146
15418
|
number provided, it will be total request
|
16147
15419
|
timeout. It can also be a pair (tuple) of
|
16148
15420
|
(connection, read) timeouts.
|
16149
|
-
:return:
|
15421
|
+
:return: DecoratedproductionjobResponse
|
16150
15422
|
If the method is called asynchronously,
|
16151
15423
|
returns the request thread.
|
16152
15424
|
"""
|
16153
15425
|
kwargs['_return_http_data_only'] = True
|
16154
|
-
return self.
|
15426
|
+
return self.get_job_api_v2_decorated_ha_jobs_production_job_id_get_with_http_info(production_job_id, **kwargs) # noqa: E501
|
16155
15427
|
|
16156
|
-
def
|
16157
|
-
"""Get
|
15428
|
+
def get_job_api_v2_decorated_ha_jobs_production_job_id_get_with_http_info(self, production_job_id, **kwargs): # noqa: E501
|
15429
|
+
"""Get Job # noqa: E501
|
16158
15430
|
|
15431
|
+
Get an HA Job # noqa: E501
|
16159
15432
|
This method makes a synchronous HTTP request by default. To make an
|
16160
15433
|
asynchronous HTTP request, please pass async_req=True
|
16161
|
-
>>> thread = api.
|
15434
|
+
>>> thread = api.get_job_api_v2_decorated_ha_jobs_production_job_id_get_with_http_info(production_job_id, async_req=True)
|
16162
15435
|
>>> result = thread.get()
|
16163
15436
|
|
16164
15437
|
:param async_req bool: execute request asynchronously
|
16165
|
-
:param str
|
15438
|
+
:param str production_job_id: (required)
|
16166
15439
|
:param _return_http_data_only: response data without head status code
|
16167
15440
|
and headers
|
16168
15441
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -16172,7 +15445,7 @@ class DefaultApi(object):
|
|
16172
15445
|
number provided, it will be total request
|
16173
15446
|
timeout. It can also be a pair (tuple) of
|
16174
15447
|
(connection, read) timeouts.
|
16175
|
-
:return: tuple(
|
15448
|
+
:return: tuple(DecoratedproductionjobResponse, status_code(int), headers(HTTPHeaderDict))
|
16176
15449
|
If the method is called asynchronously,
|
16177
15450
|
returns the request thread.
|
16178
15451
|
"""
|
@@ -16180,7 +15453,7 @@ class DefaultApi(object):
|
|
16180
15453
|
local_var_params = locals()
|
16181
15454
|
|
16182
15455
|
all_params = [
|
16183
|
-
'
|
15456
|
+
'production_job_id'
|
16184
15457
|
]
|
16185
15458
|
all_params.extend(
|
16186
15459
|
[
|
@@ -16195,20 +15468,20 @@ class DefaultApi(object):
|
|
16195
15468
|
if key not in all_params:
|
16196
15469
|
raise ApiTypeError(
|
16197
15470
|
"Got an unexpected keyword argument '%s'"
|
16198
|
-
" to method
|
15471
|
+
" to method get_job_api_v2_decorated_ha_jobs_production_job_id_get" % key
|
16199
15472
|
)
|
16200
15473
|
local_var_params[key] = val
|
16201
15474
|
del local_var_params['kwargs']
|
16202
|
-
# verify the required parameter '
|
16203
|
-
if self.api_client.client_side_validation and ('
|
16204
|
-
local_var_params['
|
16205
|
-
raise ApiValueError("Missing the required parameter `
|
15475
|
+
# verify the required parameter 'production_job_id' is set
|
15476
|
+
if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
|
15477
|
+
local_var_params['production_job_id'] is None): # noqa: E501
|
15478
|
+
raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_job_api_v2_decorated_ha_jobs_production_job_id_get`") # noqa: E501
|
16206
15479
|
|
16207
15480
|
collection_formats = {}
|
16208
15481
|
|
16209
15482
|
path_params = {}
|
16210
|
-
if '
|
16211
|
-
path_params['
|
15483
|
+
if 'production_job_id' in local_var_params:
|
15484
|
+
path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
|
16212
15485
|
|
16213
15486
|
query_params = []
|
16214
15487
|
|
@@ -16226,14 +15499,14 @@ class DefaultApi(object):
|
|
16226
15499
|
auth_settings = [] # noqa: E501
|
16227
15500
|
|
16228
15501
|
return self.api_client.call_api(
|
16229
|
-
'/api/v2/
|
15502
|
+
'/api/v2/decorated_ha_jobs/{production_job_id}', 'GET',
|
16230
15503
|
path_params,
|
16231
15504
|
query_params,
|
16232
15505
|
header_params,
|
16233
15506
|
body=body_params,
|
16234
15507
|
post_params=form_params,
|
16235
15508
|
files=local_var_files,
|
16236
|
-
response_type='
|
15509
|
+
response_type='DecoratedproductionjobResponse', # noqa: E501
|
16237
15510
|
auth_settings=auth_settings,
|
16238
15511
|
async_req=local_var_params.get('async_req'),
|
16239
15512
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -16241,16 +15514,17 @@ class DefaultApi(object):
|
|
16241
15514
|
_request_timeout=local_var_params.get('_request_timeout'),
|
16242
15515
|
collection_formats=collection_formats)
|
16243
15516
|
|
16244
|
-
def
|
16245
|
-
"""Get
|
15517
|
+
def get_job_api_v2_decorated_unified_jobs_job_id_get(self, job_id, **kwargs): # noqa: E501
|
15518
|
+
"""Get Job # noqa: E501
|
16246
15519
|
|
15520
|
+
Retrieve a job. # noqa: E501
|
16247
15521
|
This method makes a synchronous HTTP request by default. To make an
|
16248
15522
|
asynchronous HTTP request, please pass async_req=True
|
16249
|
-
>>> thread = api.
|
15523
|
+
>>> thread = api.get_job_api_v2_decorated_unified_jobs_job_id_get(job_id, async_req=True)
|
16250
15524
|
>>> result = thread.get()
|
16251
15525
|
|
16252
15526
|
:param async_req bool: execute request asynchronously
|
16253
|
-
:param str
|
15527
|
+
:param str job_id: The ID of the job. (required)
|
16254
15528
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16255
15529
|
be returned without reading/decoding response
|
16256
15530
|
data. Default is True.
|
@@ -16258,23 +15532,24 @@ class DefaultApi(object):
|
|
16258
15532
|
number provided, it will be total request
|
16259
15533
|
timeout. It can also be a pair (tuple) of
|
16260
15534
|
(connection, read) timeouts.
|
16261
|
-
:return:
|
15535
|
+
:return: DecoratedunifiedjobResponse
|
16262
15536
|
If the method is called asynchronously,
|
16263
15537
|
returns the request thread.
|
16264
15538
|
"""
|
16265
15539
|
kwargs['_return_http_data_only'] = True
|
16266
|
-
return self.
|
15540
|
+
return self.get_job_api_v2_decorated_unified_jobs_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
|
16267
15541
|
|
16268
|
-
def
|
16269
|
-
"""Get
|
15542
|
+
def get_job_api_v2_decorated_unified_jobs_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
|
15543
|
+
"""Get Job # noqa: E501
|
16270
15544
|
|
15545
|
+
Retrieve a job. # noqa: E501
|
16271
15546
|
This method makes a synchronous HTTP request by default. To make an
|
16272
15547
|
asynchronous HTTP request, please pass async_req=True
|
16273
|
-
>>> thread = api.
|
15548
|
+
>>> thread = api.get_job_api_v2_decorated_unified_jobs_job_id_get_with_http_info(job_id, async_req=True)
|
16274
15549
|
>>> result = thread.get()
|
16275
15550
|
|
16276
15551
|
:param async_req bool: execute request asynchronously
|
16277
|
-
:param str
|
15552
|
+
:param str job_id: The ID of the job. (required)
|
16278
15553
|
:param _return_http_data_only: response data without head status code
|
16279
15554
|
and headers
|
16280
15555
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -16284,7 +15559,7 @@ class DefaultApi(object):
|
|
16284
15559
|
number provided, it will be total request
|
16285
15560
|
timeout. It can also be a pair (tuple) of
|
16286
15561
|
(connection, read) timeouts.
|
16287
|
-
:return: tuple(
|
15562
|
+
:return: tuple(DecoratedunifiedjobResponse, status_code(int), headers(HTTPHeaderDict))
|
16288
15563
|
If the method is called asynchronously,
|
16289
15564
|
returns the request thread.
|
16290
15565
|
"""
|
@@ -16292,7 +15567,7 @@ class DefaultApi(object):
|
|
16292
15567
|
local_var_params = locals()
|
16293
15568
|
|
16294
15569
|
all_params = [
|
16295
|
-
'
|
15570
|
+
'job_id'
|
16296
15571
|
]
|
16297
15572
|
all_params.extend(
|
16298
15573
|
[
|
@@ -16307,20 +15582,20 @@ class DefaultApi(object):
|
|
16307
15582
|
if key not in all_params:
|
16308
15583
|
raise ApiTypeError(
|
16309
15584
|
"Got an unexpected keyword argument '%s'"
|
16310
|
-
" to method
|
15585
|
+
" to method get_job_api_v2_decorated_unified_jobs_job_id_get" % key
|
16311
15586
|
)
|
16312
15587
|
local_var_params[key] = val
|
16313
15588
|
del local_var_params['kwargs']
|
16314
|
-
# verify the required parameter '
|
16315
|
-
if self.api_client.client_side_validation and ('
|
16316
|
-
local_var_params['
|
16317
|
-
raise ApiValueError("Missing the required parameter `
|
15589
|
+
# verify the required parameter 'job_id' is set
|
15590
|
+
if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
|
15591
|
+
local_var_params['job_id'] is None): # noqa: E501
|
15592
|
+
raise ApiValueError("Missing the required parameter `job_id` when calling `get_job_api_v2_decorated_unified_jobs_job_id_get`") # noqa: E501
|
16318
15593
|
|
16319
15594
|
collection_formats = {}
|
16320
15595
|
|
16321
15596
|
path_params = {}
|
16322
|
-
if '
|
16323
|
-
path_params['
|
15597
|
+
if 'job_id' in local_var_params:
|
15598
|
+
path_params['job_id'] = local_var_params['job_id'] # noqa: E501
|
16324
15599
|
|
16325
15600
|
query_params = []
|
16326
15601
|
|
@@ -16338,14 +15613,14 @@ class DefaultApi(object):
|
|
16338
15613
|
auth_settings = [] # noqa: E501
|
16339
15614
|
|
16340
15615
|
return self.api_client.call_api(
|
16341
|
-
'/api/v2/
|
15616
|
+
'/api/v2/decorated_unified_jobs/{job_id}', 'GET',
|
16342
15617
|
path_params,
|
16343
15618
|
query_params,
|
16344
15619
|
header_params,
|
16345
15620
|
body=body_params,
|
16346
15621
|
post_params=form_params,
|
16347
15622
|
files=local_var_files,
|
16348
|
-
response_type='
|
15623
|
+
response_type='DecoratedunifiedjobResponse', # noqa: E501
|
16349
15624
|
auth_settings=auth_settings,
|
16350
15625
|
async_req=local_var_params.get('async_req'),
|
16351
15626
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -16353,17 +15628,25 @@ class DefaultApi(object):
|
|
16353
15628
|
_request_timeout=local_var_params.get('_request_timeout'),
|
16354
15629
|
collection_formats=collection_formats)
|
16355
15630
|
|
16356
|
-
def
|
16357
|
-
"""Get Job # noqa: E501
|
15631
|
+
def get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get(self, production_job_id, **kwargs): # noqa: E501
|
15632
|
+
"""Get Job Events # noqa: E501
|
16358
15633
|
|
16359
|
-
Get
|
15634
|
+
Get Production Job events # noqa: E501
|
16360
15635
|
This method makes a synchronous HTTP request by default. To make an
|
16361
15636
|
asynchronous HTTP request, please pass async_req=True
|
16362
|
-
>>> thread = api.
|
15637
|
+
>>> thread = api.get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get(production_job_id, async_req=True)
|
16363
15638
|
>>> result = thread.get()
|
16364
15639
|
|
16365
15640
|
:param async_req bool: execute request asynchronously
|
16366
|
-
:param str production_job_id: (required)
|
15641
|
+
:param str production_job_id: ID of the production job to fetch logs for. Note: This API doesn't support offset based pagination and the time filter should instead be used. (required)
|
15642
|
+
:param list[ProductionJobEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
|
15643
|
+
:param HaJobEventLevel level: Filter by level of event
|
15644
|
+
:param str message: Filter by message of event
|
15645
|
+
:param datetime start_time: The start time for the query. If start_time is not set, the query will use beginning of time. Non-inclusive.
|
15646
|
+
:param datetime end_time: The end time for the query. If end_time is not set, the query will use the time now. Non-inclusive.
|
15647
|
+
:param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
|
15648
|
+
:param str paging_token:
|
15649
|
+
:param int count:
|
16367
15650
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16368
15651
|
be returned without reading/decoding response
|
16369
15652
|
data. Default is True.
|
@@ -16371,24 +15654,32 @@ class DefaultApi(object):
|
|
16371
15654
|
number provided, it will be total request
|
16372
15655
|
timeout. It can also be a pair (tuple) of
|
16373
15656
|
(connection, read) timeouts.
|
16374
|
-
:return:
|
15657
|
+
:return: ProductionjobeventListResponse
|
16375
15658
|
If the method is called asynchronously,
|
16376
15659
|
returns the request thread.
|
16377
15660
|
"""
|
16378
15661
|
kwargs['_return_http_data_only'] = True
|
16379
|
-
return self.
|
15662
|
+
return self.get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get_with_http_info(production_job_id, **kwargs) # noqa: E501
|
16380
15663
|
|
16381
|
-
def
|
16382
|
-
"""Get Job # noqa: E501
|
15664
|
+
def get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get_with_http_info(self, production_job_id, **kwargs): # noqa: E501
|
15665
|
+
"""Get Job Events # noqa: E501
|
16383
15666
|
|
16384
|
-
Get
|
15667
|
+
Get Production Job events # noqa: E501
|
16385
15668
|
This method makes a synchronous HTTP request by default. To make an
|
16386
15669
|
asynchronous HTTP request, please pass async_req=True
|
16387
|
-
>>> thread = api.
|
15670
|
+
>>> thread = api.get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get_with_http_info(production_job_id, async_req=True)
|
16388
15671
|
>>> result = thread.get()
|
16389
15672
|
|
16390
15673
|
:param async_req bool: execute request asynchronously
|
16391
|
-
:param str production_job_id: (required)
|
15674
|
+
:param str production_job_id: ID of the production job to fetch logs for. Note: This API doesn't support offset based pagination and the time filter should instead be used. (required)
|
15675
|
+
:param list[ProductionJobEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
|
15676
|
+
:param HaJobEventLevel level: Filter by level of event
|
15677
|
+
:param str message: Filter by message of event
|
15678
|
+
:param datetime start_time: The start time for the query. If start_time is not set, the query will use beginning of time. Non-inclusive.
|
15679
|
+
:param datetime end_time: The end time for the query. If end_time is not set, the query will use the time now. Non-inclusive.
|
15680
|
+
:param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
|
15681
|
+
:param str paging_token:
|
15682
|
+
:param int count:
|
16392
15683
|
:param _return_http_data_only: response data without head status code
|
16393
15684
|
and headers
|
16394
15685
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -16398,7 +15689,7 @@ class DefaultApi(object):
|
|
16398
15689
|
number provided, it will be total request
|
16399
15690
|
timeout. It can also be a pair (tuple) of
|
16400
15691
|
(connection, read) timeouts.
|
16401
|
-
:return: tuple(
|
15692
|
+
:return: tuple(ProductionjobeventListResponse, status_code(int), headers(HTTPHeaderDict))
|
16402
15693
|
If the method is called asynchronously,
|
16403
15694
|
returns the request thread.
|
16404
15695
|
"""
|
@@ -16406,7 +15697,15 @@ class DefaultApi(object):
|
|
16406
15697
|
local_var_params = locals()
|
16407
15698
|
|
16408
15699
|
all_params = [
|
16409
|
-
'production_job_id'
|
15700
|
+
'production_job_id',
|
15701
|
+
'origin',
|
15702
|
+
'level',
|
15703
|
+
'message',
|
15704
|
+
'start_time',
|
15705
|
+
'end_time',
|
15706
|
+
'ascending_order',
|
15707
|
+
'paging_token',
|
15708
|
+
'count'
|
16410
15709
|
]
|
16411
15710
|
all_params.extend(
|
16412
15711
|
[
|
@@ -16421,15 +15720,19 @@ class DefaultApi(object):
|
|
16421
15720
|
if key not in all_params:
|
16422
15721
|
raise ApiTypeError(
|
16423
15722
|
"Got an unexpected keyword argument '%s'"
|
16424
|
-
" to method
|
15723
|
+
" to method get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get" % key
|
16425
15724
|
)
|
16426
15725
|
local_var_params[key] = val
|
16427
15726
|
del local_var_params['kwargs']
|
16428
15727
|
# verify the required parameter 'production_job_id' is set
|
16429
15728
|
if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
|
16430
15729
|
local_var_params['production_job_id'] is None): # noqa: E501
|
16431
|
-
raise ApiValueError("Missing the required parameter `production_job_id` when calling `
|
15730
|
+
raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get`") # noqa: E501
|
16432
15731
|
|
15732
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
15733
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get`, must be a value less than or equal to `1000`") # noqa: E501
|
15734
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
15735
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get`, must be a value greater than or equal to `0`") # noqa: E501
|
16433
15736
|
collection_formats = {}
|
16434
15737
|
|
16435
15738
|
path_params = {}
|
@@ -16437,6 +15740,23 @@ class DefaultApi(object):
|
|
16437
15740
|
path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
|
16438
15741
|
|
16439
15742
|
query_params = []
|
15743
|
+
if 'origin' in local_var_params and local_var_params['origin'] is not None: # noqa: E501
|
15744
|
+
query_params.append(('origin', local_var_params['origin'])) # noqa: E501
|
15745
|
+
collection_formats['origin'] = 'multi' # noqa: E501
|
15746
|
+
if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
|
15747
|
+
query_params.append(('level', local_var_params['level'])) # noqa: E501
|
15748
|
+
if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
|
15749
|
+
query_params.append(('message', local_var_params['message'])) # noqa: E501
|
15750
|
+
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
15751
|
+
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
15752
|
+
if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
|
15753
|
+
query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
|
15754
|
+
if 'ascending_order' in local_var_params and local_var_params['ascending_order'] is not None: # noqa: E501
|
15755
|
+
query_params.append(('ascending_order', local_var_params['ascending_order'])) # noqa: E501
|
15756
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
15757
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
15758
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
15759
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
16440
15760
|
|
16441
15761
|
header_params = {}
|
16442
15762
|
|
@@ -16452,14 +15772,14 @@ class DefaultApi(object):
|
|
16452
15772
|
auth_settings = [] # noqa: E501
|
16453
15773
|
|
16454
15774
|
return self.api_client.call_api(
|
16455
|
-
'/api/v2/decorated_ha_jobs/{production_job_id}', 'GET',
|
15775
|
+
'/api/v2/decorated_ha_jobs/{production_job_id}/events', 'GET',
|
16456
15776
|
path_params,
|
16457
15777
|
query_params,
|
16458
15778
|
header_params,
|
16459
15779
|
body=body_params,
|
16460
15780
|
post_params=form_params,
|
16461
15781
|
files=local_var_files,
|
16462
|
-
response_type='
|
15782
|
+
response_type='ProductionjobeventListResponse', # noqa: E501
|
16463
15783
|
auth_settings=auth_settings,
|
16464
15784
|
async_req=local_var_params.get('async_req'),
|
16465
15785
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -16467,17 +15787,16 @@ class DefaultApi(object):
|
|
16467
15787
|
_request_timeout=local_var_params.get('_request_timeout'),
|
16468
15788
|
collection_formats=collection_formats)
|
16469
15789
|
|
16470
|
-
def
|
16471
|
-
"""Get Job # noqa: E501
|
15790
|
+
def get_job_logs_download_api_v2_logs_job_logs_download_job_id_get(self, job_id, **kwargs): # noqa: E501
|
15791
|
+
"""Get Job Logs Download # noqa: E501
|
16472
15792
|
|
16473
|
-
Retrieve a job. # noqa: E501
|
16474
15793
|
This method makes a synchronous HTTP request by default. To make an
|
16475
15794
|
asynchronous HTTP request, please pass async_req=True
|
16476
|
-
>>> thread = api.
|
15795
|
+
>>> thread = api.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get(job_id, async_req=True)
|
16477
15796
|
>>> result = thread.get()
|
16478
15797
|
|
16479
15798
|
:param async_req bool: execute request asynchronously
|
16480
|
-
:param str job_id:
|
15799
|
+
:param str job_id: (required)
|
16481
15800
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16482
15801
|
be returned without reading/decoding response
|
16483
15802
|
data. Default is True.
|
@@ -16485,24 +15804,23 @@ class DefaultApi(object):
|
|
16485
15804
|
number provided, it will be total request
|
16486
15805
|
timeout. It can also be a pair (tuple) of
|
16487
15806
|
(connection, read) timeouts.
|
16488
|
-
:return:
|
15807
|
+
:return: LogdownloadresultResponse
|
16489
15808
|
If the method is called asynchronously,
|
16490
15809
|
returns the request thread.
|
16491
15810
|
"""
|
16492
15811
|
kwargs['_return_http_data_only'] = True
|
16493
|
-
return self.
|
15812
|
+
return self.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
|
16494
15813
|
|
16495
|
-
def
|
16496
|
-
"""Get Job # noqa: E501
|
15814
|
+
def get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
|
15815
|
+
"""Get Job Logs Download # noqa: E501
|
16497
15816
|
|
16498
|
-
Retrieve a job. # noqa: E501
|
16499
15817
|
This method makes a synchronous HTTP request by default. To make an
|
16500
15818
|
asynchronous HTTP request, please pass async_req=True
|
16501
|
-
>>> thread = api.
|
15819
|
+
>>> thread = api.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(job_id, async_req=True)
|
16502
15820
|
>>> result = thread.get()
|
16503
15821
|
|
16504
15822
|
:param async_req bool: execute request asynchronously
|
16505
|
-
:param str job_id:
|
15823
|
+
:param str job_id: (required)
|
16506
15824
|
:param _return_http_data_only: response data without head status code
|
16507
15825
|
and headers
|
16508
15826
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -16512,278 +15830,7 @@ class DefaultApi(object):
|
|
16512
15830
|
number provided, it will be total request
|
16513
15831
|
timeout. It can also be a pair (tuple) of
|
16514
15832
|
(connection, read) timeouts.
|
16515
|
-
:return: tuple(
|
16516
|
-
If the method is called asynchronously,
|
16517
|
-
returns the request thread.
|
16518
|
-
"""
|
16519
|
-
|
16520
|
-
local_var_params = locals()
|
16521
|
-
|
16522
|
-
all_params = [
|
16523
|
-
'job_id'
|
16524
|
-
]
|
16525
|
-
all_params.extend(
|
16526
|
-
[
|
16527
|
-
'async_req',
|
16528
|
-
'_return_http_data_only',
|
16529
|
-
'_preload_content',
|
16530
|
-
'_request_timeout'
|
16531
|
-
]
|
16532
|
-
)
|
16533
|
-
|
16534
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
16535
|
-
if key not in all_params:
|
16536
|
-
raise ApiTypeError(
|
16537
|
-
"Got an unexpected keyword argument '%s'"
|
16538
|
-
" to method get_job_api_v2_decorated_unified_jobs_job_id_get" % key
|
16539
|
-
)
|
16540
|
-
local_var_params[key] = val
|
16541
|
-
del local_var_params['kwargs']
|
16542
|
-
# verify the required parameter 'job_id' is set
|
16543
|
-
if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
|
16544
|
-
local_var_params['job_id'] is None): # noqa: E501
|
16545
|
-
raise ApiValueError("Missing the required parameter `job_id` when calling `get_job_api_v2_decorated_unified_jobs_job_id_get`") # noqa: E501
|
16546
|
-
|
16547
|
-
collection_formats = {}
|
16548
|
-
|
16549
|
-
path_params = {}
|
16550
|
-
if 'job_id' in local_var_params:
|
16551
|
-
path_params['job_id'] = local_var_params['job_id'] # noqa: E501
|
16552
|
-
|
16553
|
-
query_params = []
|
16554
|
-
|
16555
|
-
header_params = {}
|
16556
|
-
|
16557
|
-
form_params = []
|
16558
|
-
local_var_files = {}
|
16559
|
-
|
16560
|
-
body_params = None
|
16561
|
-
# HTTP header `Accept`
|
16562
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
16563
|
-
['application/json']) # noqa: E501
|
16564
|
-
|
16565
|
-
# Authentication setting
|
16566
|
-
auth_settings = [] # noqa: E501
|
16567
|
-
|
16568
|
-
return self.api_client.call_api(
|
16569
|
-
'/api/v2/decorated_unified_jobs/{job_id}', 'GET',
|
16570
|
-
path_params,
|
16571
|
-
query_params,
|
16572
|
-
header_params,
|
16573
|
-
body=body_params,
|
16574
|
-
post_params=form_params,
|
16575
|
-
files=local_var_files,
|
16576
|
-
response_type='DecoratedunifiedjobResponse', # noqa: E501
|
16577
|
-
auth_settings=auth_settings,
|
16578
|
-
async_req=local_var_params.get('async_req'),
|
16579
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
16580
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
16581
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
16582
|
-
collection_formats=collection_formats)
|
16583
|
-
|
16584
|
-
def get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get(self, production_job_id, **kwargs): # noqa: E501
|
16585
|
-
"""Get Job Events # noqa: E501
|
16586
|
-
|
16587
|
-
Get Production Job events # noqa: E501
|
16588
|
-
This method makes a synchronous HTTP request by default. To make an
|
16589
|
-
asynchronous HTTP request, please pass async_req=True
|
16590
|
-
>>> thread = api.get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get(production_job_id, async_req=True)
|
16591
|
-
>>> result = thread.get()
|
16592
|
-
|
16593
|
-
:param async_req bool: execute request asynchronously
|
16594
|
-
:param str production_job_id: ID of the production job to fetch logs for. Note: This API doesn't support offset based pagination and the time filter should instead be used. (required)
|
16595
|
-
:param list[ProductionJobEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
|
16596
|
-
:param HaJobEventLevel level: Filter by level of event
|
16597
|
-
:param str message: Filter by message of event
|
16598
|
-
:param datetime start_time: The start time for the query. If start_time is not set, the query will use beginning of time. Non-inclusive.
|
16599
|
-
:param datetime end_time: The end time for the query. If end_time is not set, the query will use the time now. Non-inclusive.
|
16600
|
-
:param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
|
16601
|
-
:param str paging_token:
|
16602
|
-
:param int count:
|
16603
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16604
|
-
be returned without reading/decoding response
|
16605
|
-
data. Default is True.
|
16606
|
-
:param _request_timeout: timeout setting for this request. If one
|
16607
|
-
number provided, it will be total request
|
16608
|
-
timeout. It can also be a pair (tuple) of
|
16609
|
-
(connection, read) timeouts.
|
16610
|
-
:return: ProductionjobeventListResponse
|
16611
|
-
If the method is called asynchronously,
|
16612
|
-
returns the request thread.
|
16613
|
-
"""
|
16614
|
-
kwargs['_return_http_data_only'] = True
|
16615
|
-
return self.get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get_with_http_info(production_job_id, **kwargs) # noqa: E501
|
16616
|
-
|
16617
|
-
def get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get_with_http_info(self, production_job_id, **kwargs): # noqa: E501
|
16618
|
-
"""Get Job Events # noqa: E501
|
16619
|
-
|
16620
|
-
Get Production Job events # noqa: E501
|
16621
|
-
This method makes a synchronous HTTP request by default. To make an
|
16622
|
-
asynchronous HTTP request, please pass async_req=True
|
16623
|
-
>>> thread = api.get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get_with_http_info(production_job_id, async_req=True)
|
16624
|
-
>>> result = thread.get()
|
16625
|
-
|
16626
|
-
:param async_req bool: execute request asynchronously
|
16627
|
-
:param str production_job_id: ID of the production job to fetch logs for. Note: This API doesn't support offset based pagination and the time filter should instead be used. (required)
|
16628
|
-
:param list[ProductionJobEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
|
16629
|
-
:param HaJobEventLevel level: Filter by level of event
|
16630
|
-
:param str message: Filter by message of event
|
16631
|
-
:param datetime start_time: The start time for the query. If start_time is not set, the query will use beginning of time. Non-inclusive.
|
16632
|
-
:param datetime end_time: The end time for the query. If end_time is not set, the query will use the time now. Non-inclusive.
|
16633
|
-
:param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
|
16634
|
-
:param str paging_token:
|
16635
|
-
:param int count:
|
16636
|
-
:param _return_http_data_only: response data without head status code
|
16637
|
-
and headers
|
16638
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16639
|
-
be returned without reading/decoding response
|
16640
|
-
data. Default is True.
|
16641
|
-
:param _request_timeout: timeout setting for this request. If one
|
16642
|
-
number provided, it will be total request
|
16643
|
-
timeout. It can also be a pair (tuple) of
|
16644
|
-
(connection, read) timeouts.
|
16645
|
-
:return: tuple(ProductionjobeventListResponse, status_code(int), headers(HTTPHeaderDict))
|
16646
|
-
If the method is called asynchronously,
|
16647
|
-
returns the request thread.
|
16648
|
-
"""
|
16649
|
-
|
16650
|
-
local_var_params = locals()
|
16651
|
-
|
16652
|
-
all_params = [
|
16653
|
-
'production_job_id',
|
16654
|
-
'origin',
|
16655
|
-
'level',
|
16656
|
-
'message',
|
16657
|
-
'start_time',
|
16658
|
-
'end_time',
|
16659
|
-
'ascending_order',
|
16660
|
-
'paging_token',
|
16661
|
-
'count'
|
16662
|
-
]
|
16663
|
-
all_params.extend(
|
16664
|
-
[
|
16665
|
-
'async_req',
|
16666
|
-
'_return_http_data_only',
|
16667
|
-
'_preload_content',
|
16668
|
-
'_request_timeout'
|
16669
|
-
]
|
16670
|
-
)
|
16671
|
-
|
16672
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
16673
|
-
if key not in all_params:
|
16674
|
-
raise ApiTypeError(
|
16675
|
-
"Got an unexpected keyword argument '%s'"
|
16676
|
-
" to method get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get" % key
|
16677
|
-
)
|
16678
|
-
local_var_params[key] = val
|
16679
|
-
del local_var_params['kwargs']
|
16680
|
-
# verify the required parameter 'production_job_id' is set
|
16681
|
-
if self.api_client.client_side_validation and ('production_job_id' not in local_var_params or # noqa: E501
|
16682
|
-
local_var_params['production_job_id'] is None): # noqa: E501
|
16683
|
-
raise ApiValueError("Missing the required parameter `production_job_id` when calling `get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get`") # noqa: E501
|
16684
|
-
|
16685
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
16686
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get`, must be a value less than or equal to `1000`") # noqa: E501
|
16687
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
16688
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `get_job_events_api_v2_decorated_ha_jobs_production_job_id_events_get`, must be a value greater than or equal to `0`") # noqa: E501
|
16689
|
-
collection_formats = {}
|
16690
|
-
|
16691
|
-
path_params = {}
|
16692
|
-
if 'production_job_id' in local_var_params:
|
16693
|
-
path_params['production_job_id'] = local_var_params['production_job_id'] # noqa: E501
|
16694
|
-
|
16695
|
-
query_params = []
|
16696
|
-
if 'origin' in local_var_params and local_var_params['origin'] is not None: # noqa: E501
|
16697
|
-
query_params.append(('origin', local_var_params['origin'])) # noqa: E501
|
16698
|
-
collection_formats['origin'] = 'multi' # noqa: E501
|
16699
|
-
if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
|
16700
|
-
query_params.append(('level', local_var_params['level'])) # noqa: E501
|
16701
|
-
if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
|
16702
|
-
query_params.append(('message', local_var_params['message'])) # noqa: E501
|
16703
|
-
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
16704
|
-
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
16705
|
-
if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
|
16706
|
-
query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
|
16707
|
-
if 'ascending_order' in local_var_params and local_var_params['ascending_order'] is not None: # noqa: E501
|
16708
|
-
query_params.append(('ascending_order', local_var_params['ascending_order'])) # noqa: E501
|
16709
|
-
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
16710
|
-
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
16711
|
-
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
16712
|
-
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
16713
|
-
|
16714
|
-
header_params = {}
|
16715
|
-
|
16716
|
-
form_params = []
|
16717
|
-
local_var_files = {}
|
16718
|
-
|
16719
|
-
body_params = None
|
16720
|
-
# HTTP header `Accept`
|
16721
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
16722
|
-
['application/json']) # noqa: E501
|
16723
|
-
|
16724
|
-
# Authentication setting
|
16725
|
-
auth_settings = [] # noqa: E501
|
16726
|
-
|
16727
|
-
return self.api_client.call_api(
|
16728
|
-
'/api/v2/decorated_ha_jobs/{production_job_id}/events', 'GET',
|
16729
|
-
path_params,
|
16730
|
-
query_params,
|
16731
|
-
header_params,
|
16732
|
-
body=body_params,
|
16733
|
-
post_params=form_params,
|
16734
|
-
files=local_var_files,
|
16735
|
-
response_type='ProductionjobeventListResponse', # noqa: E501
|
16736
|
-
auth_settings=auth_settings,
|
16737
|
-
async_req=local_var_params.get('async_req'),
|
16738
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
16739
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
16740
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
16741
|
-
collection_formats=collection_formats)
|
16742
|
-
|
16743
|
-
def get_job_logs_download_api_v2_logs_job_logs_download_job_id_get(self, job_id, **kwargs): # noqa: E501
|
16744
|
-
"""Get Job Logs Download # noqa: E501
|
16745
|
-
|
16746
|
-
This method makes a synchronous HTTP request by default. To make an
|
16747
|
-
asynchronous HTTP request, please pass async_req=True
|
16748
|
-
>>> thread = api.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get(job_id, async_req=True)
|
16749
|
-
>>> result = thread.get()
|
16750
|
-
|
16751
|
-
:param async_req bool: execute request asynchronously
|
16752
|
-
:param str job_id: (required)
|
16753
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16754
|
-
be returned without reading/decoding response
|
16755
|
-
data. Default is True.
|
16756
|
-
:param _request_timeout: timeout setting for this request. If one
|
16757
|
-
number provided, it will be total request
|
16758
|
-
timeout. It can also be a pair (tuple) of
|
16759
|
-
(connection, read) timeouts.
|
16760
|
-
:return: LogdownloadresultResponse
|
16761
|
-
If the method is called asynchronously,
|
16762
|
-
returns the request thread.
|
16763
|
-
"""
|
16764
|
-
kwargs['_return_http_data_only'] = True
|
16765
|
-
return self.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
|
16766
|
-
|
16767
|
-
def get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
|
16768
|
-
"""Get Job Logs Download # noqa: E501
|
16769
|
-
|
16770
|
-
This method makes a synchronous HTTP request by default. To make an
|
16771
|
-
asynchronous HTTP request, please pass async_req=True
|
16772
|
-
>>> thread = api.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(job_id, async_req=True)
|
16773
|
-
>>> result = thread.get()
|
16774
|
-
|
16775
|
-
:param async_req bool: execute request asynchronously
|
16776
|
-
:param str job_id: (required)
|
16777
|
-
:param _return_http_data_only: response data without head status code
|
16778
|
-
and headers
|
16779
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16780
|
-
be returned without reading/decoding response
|
16781
|
-
data. Default is True.
|
16782
|
-
:param _request_timeout: timeout setting for this request. If one
|
16783
|
-
number provided, it will be total request
|
16784
|
-
timeout. It can also be a pair (tuple) of
|
16785
|
-
(connection, read) timeouts.
|
16786
|
-
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
15833
|
+
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
16787
15834
|
If the method is called asynchronously,
|
16788
15835
|
returns the request thread.
|
16789
15836
|
"""
|
@@ -18231,235 +17278,6 @@ class DefaultApi(object):
|
|
18231
17278
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18232
17279
|
collection_formats=collection_formats)
|
18233
17280
|
|
18234
|
-
def get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get(self, session_id, **kwargs): # noqa: E501
|
18235
|
-
"""Get Monitor Logs Archived # noqa: E501
|
18236
|
-
|
18237
|
-
This method makes a synchronous HTTP request by default. To make an
|
18238
|
-
asynchronous HTTP request, please pass async_req=True
|
18239
|
-
>>> thread = api.get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get(session_id, async_req=True)
|
18240
|
-
>>> result = thread.get()
|
18241
|
-
|
18242
|
-
:param async_req bool: execute request asynchronously
|
18243
|
-
:param str session_id: (required)
|
18244
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18245
|
-
be returned without reading/decoding response
|
18246
|
-
data. Default is True.
|
18247
|
-
:param _request_timeout: timeout setting for this request. If one
|
18248
|
-
number provided, it will be total request
|
18249
|
-
timeout. It can also be a pair (tuple) of
|
18250
|
-
(connection, read) timeouts.
|
18251
|
-
:return: ArchivedlogsinfoResponse
|
18252
|
-
If the method is called asynchronously,
|
18253
|
-
returns the request thread.
|
18254
|
-
"""
|
18255
|
-
kwargs['_return_http_data_only'] = True
|
18256
|
-
return self.get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get_with_http_info(session_id, **kwargs) # noqa: E501
|
18257
|
-
|
18258
|
-
def get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
18259
|
-
"""Get Monitor Logs Archived # noqa: E501
|
18260
|
-
|
18261
|
-
This method makes a synchronous HTTP request by default. To make an
|
18262
|
-
asynchronous HTTP request, please pass async_req=True
|
18263
|
-
>>> thread = api.get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get_with_http_info(session_id, async_req=True)
|
18264
|
-
>>> result = thread.get()
|
18265
|
-
|
18266
|
-
:param async_req bool: execute request asynchronously
|
18267
|
-
:param str session_id: (required)
|
18268
|
-
:param _return_http_data_only: response data without head status code
|
18269
|
-
and headers
|
18270
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18271
|
-
be returned without reading/decoding response
|
18272
|
-
data. Default is True.
|
18273
|
-
:param _request_timeout: timeout setting for this request. If one
|
18274
|
-
number provided, it will be total request
|
18275
|
-
timeout. It can also be a pair (tuple) of
|
18276
|
-
(connection, read) timeouts.
|
18277
|
-
:return: tuple(ArchivedlogsinfoResponse, status_code(int), headers(HTTPHeaderDict))
|
18278
|
-
If the method is called asynchronously,
|
18279
|
-
returns the request thread.
|
18280
|
-
"""
|
18281
|
-
|
18282
|
-
local_var_params = locals()
|
18283
|
-
|
18284
|
-
all_params = [
|
18285
|
-
'session_id'
|
18286
|
-
]
|
18287
|
-
all_params.extend(
|
18288
|
-
[
|
18289
|
-
'async_req',
|
18290
|
-
'_return_http_data_only',
|
18291
|
-
'_preload_content',
|
18292
|
-
'_request_timeout'
|
18293
|
-
]
|
18294
|
-
)
|
18295
|
-
|
18296
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
18297
|
-
if key not in all_params:
|
18298
|
-
raise ApiTypeError(
|
18299
|
-
"Got an unexpected keyword argument '%s'"
|
18300
|
-
" to method get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get" % key
|
18301
|
-
)
|
18302
|
-
local_var_params[key] = val
|
18303
|
-
del local_var_params['kwargs']
|
18304
|
-
# verify the required parameter 'session_id' is set
|
18305
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
18306
|
-
local_var_params['session_id'] is None): # noqa: E501
|
18307
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_monitor_logs_archived_api_v2_sessions_session_id_monitor_logs_archived_get`") # noqa: E501
|
18308
|
-
|
18309
|
-
collection_formats = {}
|
18310
|
-
|
18311
|
-
path_params = {}
|
18312
|
-
if 'session_id' in local_var_params:
|
18313
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
18314
|
-
|
18315
|
-
query_params = []
|
18316
|
-
|
18317
|
-
header_params = {}
|
18318
|
-
|
18319
|
-
form_params = []
|
18320
|
-
local_var_files = {}
|
18321
|
-
|
18322
|
-
body_params = None
|
18323
|
-
# HTTP header `Accept`
|
18324
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
18325
|
-
['application/json']) # noqa: E501
|
18326
|
-
|
18327
|
-
# Authentication setting
|
18328
|
-
auth_settings = [] # noqa: E501
|
18329
|
-
|
18330
|
-
return self.api_client.call_api(
|
18331
|
-
'/api/v2/sessions/{session_id}/monitor_logs_archived', 'GET',
|
18332
|
-
path_params,
|
18333
|
-
query_params,
|
18334
|
-
header_params,
|
18335
|
-
body=body_params,
|
18336
|
-
post_params=form_params,
|
18337
|
-
files=local_var_files,
|
18338
|
-
response_type='ArchivedlogsinfoResponse', # noqa: E501
|
18339
|
-
auth_settings=auth_settings,
|
18340
|
-
async_req=local_var_params.get('async_req'),
|
18341
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18342
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
18343
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
18344
|
-
collection_formats=collection_formats)
|
18345
|
-
|
18346
|
-
def get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get(self, session_id, **kwargs): # noqa: E501
|
18347
|
-
"""Get Monitor Logs Download # noqa: E501
|
18348
|
-
|
18349
|
-
This method makes a synchronous HTTP request by default. To make an
|
18350
|
-
asynchronous HTTP request, please pass async_req=True
|
18351
|
-
>>> thread = api.get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get(session_id, async_req=True)
|
18352
|
-
>>> result = thread.get()
|
18353
|
-
|
18354
|
-
:param async_req bool: execute request asynchronously
|
18355
|
-
:param str session_id: (required)
|
18356
|
-
:param MonitorLogsExtension extension: Extension of monitor logs to return. Defaults to .log, which is for autoscaler status
|
18357
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18358
|
-
be returned without reading/decoding response
|
18359
|
-
data. Default is True.
|
18360
|
-
:param _request_timeout: timeout setting for this request. If one
|
18361
|
-
number provided, it will be total request
|
18362
|
-
timeout. It can also be a pair (tuple) of
|
18363
|
-
(connection, read) timeouts.
|
18364
|
-
:return: LogdownloadresultResponse
|
18365
|
-
If the method is called asynchronously,
|
18366
|
-
returns the request thread.
|
18367
|
-
"""
|
18368
|
-
kwargs['_return_http_data_only'] = True
|
18369
|
-
return self.get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
|
18370
|
-
|
18371
|
-
def get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
18372
|
-
"""Get Monitor Logs Download # noqa: E501
|
18373
|
-
|
18374
|
-
This method makes a synchronous HTTP request by default. To make an
|
18375
|
-
asynchronous HTTP request, please pass async_req=True
|
18376
|
-
>>> thread = api.get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get_with_http_info(session_id, async_req=True)
|
18377
|
-
>>> result = thread.get()
|
18378
|
-
|
18379
|
-
:param async_req bool: execute request asynchronously
|
18380
|
-
:param str session_id: (required)
|
18381
|
-
:param MonitorLogsExtension extension: Extension of monitor logs to return. Defaults to .log, which is for autoscaler status
|
18382
|
-
:param _return_http_data_only: response data without head status code
|
18383
|
-
and headers
|
18384
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18385
|
-
be returned without reading/decoding response
|
18386
|
-
data. Default is True.
|
18387
|
-
:param _request_timeout: timeout setting for this request. If one
|
18388
|
-
number provided, it will be total request
|
18389
|
-
timeout. It can also be a pair (tuple) of
|
18390
|
-
(connection, read) timeouts.
|
18391
|
-
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
18392
|
-
If the method is called asynchronously,
|
18393
|
-
returns the request thread.
|
18394
|
-
"""
|
18395
|
-
|
18396
|
-
local_var_params = locals()
|
18397
|
-
|
18398
|
-
all_params = [
|
18399
|
-
'session_id',
|
18400
|
-
'extension'
|
18401
|
-
]
|
18402
|
-
all_params.extend(
|
18403
|
-
[
|
18404
|
-
'async_req',
|
18405
|
-
'_return_http_data_only',
|
18406
|
-
'_preload_content',
|
18407
|
-
'_request_timeout'
|
18408
|
-
]
|
18409
|
-
)
|
18410
|
-
|
18411
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
18412
|
-
if key not in all_params:
|
18413
|
-
raise ApiTypeError(
|
18414
|
-
"Got an unexpected keyword argument '%s'"
|
18415
|
-
" to method get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get" % key
|
18416
|
-
)
|
18417
|
-
local_var_params[key] = val
|
18418
|
-
del local_var_params['kwargs']
|
18419
|
-
# verify the required parameter 'session_id' is set
|
18420
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
18421
|
-
local_var_params['session_id'] is None): # noqa: E501
|
18422
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_monitor_logs_download_api_v2_logs_monitor_logs_download_session_id_get`") # noqa: E501
|
18423
|
-
|
18424
|
-
collection_formats = {}
|
18425
|
-
|
18426
|
-
path_params = {}
|
18427
|
-
if 'session_id' in local_var_params:
|
18428
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
18429
|
-
|
18430
|
-
query_params = []
|
18431
|
-
if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
|
18432
|
-
query_params.append(('extension', local_var_params['extension'])) # noqa: E501
|
18433
|
-
|
18434
|
-
header_params = {}
|
18435
|
-
|
18436
|
-
form_params = []
|
18437
|
-
local_var_files = {}
|
18438
|
-
|
18439
|
-
body_params = None
|
18440
|
-
# HTTP header `Accept`
|
18441
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
18442
|
-
['application/json']) # noqa: E501
|
18443
|
-
|
18444
|
-
# Authentication setting
|
18445
|
-
auth_settings = [] # noqa: E501
|
18446
|
-
|
18447
|
-
return self.api_client.call_api(
|
18448
|
-
'/api/v2/logs/monitor_logs_download/{session_id}', 'GET',
|
18449
|
-
path_params,
|
18450
|
-
query_params,
|
18451
|
-
header_params,
|
18452
|
-
body=body_params,
|
18453
|
-
post_params=form_params,
|
18454
|
-
files=local_var_files,
|
18455
|
-
response_type='LogdownloadresultResponse', # noqa: E501
|
18456
|
-
auth_settings=auth_settings,
|
18457
|
-
async_req=local_var_params.get('async_req'),
|
18458
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18459
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
18460
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
18461
|
-
collection_formats=collection_formats)
|
18462
|
-
|
18463
17281
|
def get_operator_metrics_api_v2_dataset_runs_operator_get(self, cluster_id, session_name, dataset_id, operator_id, dataset_start_time, dataset_end_time, **kwargs): # noqa: E501
|
18464
17282
|
"""Get Operator Metrics # noqa: E501
|
18465
17283
|
|
@@ -18722,120 +17540,6 @@ class DefaultApi(object):
|
|
18722
17540
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18723
17541
|
collection_formats=collection_formats)
|
18724
17542
|
|
18725
|
-
def get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get(self, session_id, **kwargs): # noqa: E501
|
18726
|
-
"""Get Ping External Services # noqa: E501
|
18727
|
-
|
18728
|
-
Ping external session services to see if SSL negotiations have completed. SSL errors will throw URLErrors and will not have a status code. Using this endpoint is preferred over directly pinging these services on the web client because CORS is restricted. # noqa: E501
|
18729
|
-
This method makes a synchronous HTTP request by default. To make an
|
18730
|
-
asynchronous HTTP request, please pass async_req=True
|
18731
|
-
>>> thread = api.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get(session_id, async_req=True)
|
18732
|
-
>>> result = thread.get()
|
18733
|
-
|
18734
|
-
:param async_req bool: execute request asynchronously
|
18735
|
-
:param str session_id: (required)
|
18736
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18737
|
-
be returned without reading/decoding response
|
18738
|
-
data. Default is True.
|
18739
|
-
:param _request_timeout: timeout setting for this request. If one
|
18740
|
-
number provided, it will be total request
|
18741
|
-
timeout. It can also be a pair (tuple) of
|
18742
|
-
(connection, read) timeouts.
|
18743
|
-
:return: ExternalservicestatusresponseResponse
|
18744
|
-
If the method is called asynchronously,
|
18745
|
-
returns the request thread.
|
18746
|
-
"""
|
18747
|
-
kwargs['_return_http_data_only'] = True
|
18748
|
-
return self.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(session_id, **kwargs) # noqa: E501
|
18749
|
-
|
18750
|
-
def get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
18751
|
-
"""Get Ping External Services # noqa: E501
|
18752
|
-
|
18753
|
-
Ping external session services to see if SSL negotiations have completed. SSL errors will throw URLErrors and will not have a status code. Using this endpoint is preferred over directly pinging these services on the web client because CORS is restricted. # noqa: E501
|
18754
|
-
This method makes a synchronous HTTP request by default. To make an
|
18755
|
-
asynchronous HTTP request, please pass async_req=True
|
18756
|
-
>>> thread = api.get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get_with_http_info(session_id, async_req=True)
|
18757
|
-
>>> result = thread.get()
|
18758
|
-
|
18759
|
-
:param async_req bool: execute request asynchronously
|
18760
|
-
:param str session_id: (required)
|
18761
|
-
:param _return_http_data_only: response data without head status code
|
18762
|
-
and headers
|
18763
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18764
|
-
be returned without reading/decoding response
|
18765
|
-
data. Default is True.
|
18766
|
-
:param _request_timeout: timeout setting for this request. If one
|
18767
|
-
number provided, it will be total request
|
18768
|
-
timeout. It can also be a pair (tuple) of
|
18769
|
-
(connection, read) timeouts.
|
18770
|
-
:return: tuple(ExternalservicestatusresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
18771
|
-
If the method is called asynchronously,
|
18772
|
-
returns the request thread.
|
18773
|
-
"""
|
18774
|
-
|
18775
|
-
local_var_params = locals()
|
18776
|
-
|
18777
|
-
all_params = [
|
18778
|
-
'session_id'
|
18779
|
-
]
|
18780
|
-
all_params.extend(
|
18781
|
-
[
|
18782
|
-
'async_req',
|
18783
|
-
'_return_http_data_only',
|
18784
|
-
'_preload_content',
|
18785
|
-
'_request_timeout'
|
18786
|
-
]
|
18787
|
-
)
|
18788
|
-
|
18789
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
18790
|
-
if key not in all_params:
|
18791
|
-
raise ApiTypeError(
|
18792
|
-
"Got an unexpected keyword argument '%s'"
|
18793
|
-
" to method get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get" % key
|
18794
|
-
)
|
18795
|
-
local_var_params[key] = val
|
18796
|
-
del local_var_params['kwargs']
|
18797
|
-
# verify the required parameter 'session_id' is set
|
18798
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
18799
|
-
local_var_params['session_id'] is None): # noqa: E501
|
18800
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_ping_external_services_api_v2_sessions_session_id_ping_external_services_get`") # noqa: E501
|
18801
|
-
|
18802
|
-
collection_formats = {}
|
18803
|
-
|
18804
|
-
path_params = {}
|
18805
|
-
if 'session_id' in local_var_params:
|
18806
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
18807
|
-
|
18808
|
-
query_params = []
|
18809
|
-
|
18810
|
-
header_params = {}
|
18811
|
-
|
18812
|
-
form_params = []
|
18813
|
-
local_var_files = {}
|
18814
|
-
|
18815
|
-
body_params = None
|
18816
|
-
# HTTP header `Accept`
|
18817
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
18818
|
-
['application/json']) # noqa: E501
|
18819
|
-
|
18820
|
-
# Authentication setting
|
18821
|
-
auth_settings = [] # noqa: E501
|
18822
|
-
|
18823
|
-
return self.api_client.call_api(
|
18824
|
-
'/api/v2/sessions/{session_id}/ping_external_services', 'GET',
|
18825
|
-
path_params,
|
18826
|
-
query_params,
|
18827
|
-
header_params,
|
18828
|
-
body=body_params,
|
18829
|
-
post_params=form_params,
|
18830
|
-
files=local_var_files,
|
18831
|
-
response_type='ExternalservicestatusresponseResponse', # noqa: E501
|
18832
|
-
auth_settings=auth_settings,
|
18833
|
-
async_req=local_var_params.get('async_req'),
|
18834
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18835
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
18836
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
18837
|
-
collection_formats=collection_formats)
|
18838
|
-
|
18839
17543
|
def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
|
18840
17544
|
"""Get Project # noqa: E501
|
18841
17545
|
|
@@ -19936,6 +18640,118 @@ class DefaultApi(object):
|
|
19936
18640
|
_request_timeout=local_var_params.get('_request_timeout'),
|
19937
18641
|
collection_formats=collection_formats)
|
19938
18642
|
|
18643
|
+
def get_root_cause_api_v2_iknow_get(self, cluster_id, **kwargs): # noqa: E501
|
18644
|
+
"""Get Root Cause # noqa: E501
|
18645
|
+
|
18646
|
+
This method makes a synchronous HTTP request by default. To make an
|
18647
|
+
asynchronous HTTP request, please pass async_req=True
|
18648
|
+
>>> thread = api.get_root_cause_api_v2_iknow_get(cluster_id, async_req=True)
|
18649
|
+
>>> result = thread.get()
|
18650
|
+
|
18651
|
+
:param async_req bool: execute request asynchronously
|
18652
|
+
:param str cluster_id: (required)
|
18653
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18654
|
+
be returned without reading/decoding response
|
18655
|
+
data. Default is True.
|
18656
|
+
:param _request_timeout: timeout setting for this request. If one
|
18657
|
+
number provided, it will be total request
|
18658
|
+
timeout. It can also be a pair (tuple) of
|
18659
|
+
(connection, read) timeouts.
|
18660
|
+
:return: IKnowResponse
|
18661
|
+
If the method is called asynchronously,
|
18662
|
+
returns the request thread.
|
18663
|
+
"""
|
18664
|
+
kwargs['_return_http_data_only'] = True
|
18665
|
+
return self.get_root_cause_api_v2_iknow_get_with_http_info(cluster_id, **kwargs) # noqa: E501
|
18666
|
+
|
18667
|
+
def get_root_cause_api_v2_iknow_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
18668
|
+
"""Get Root Cause # noqa: E501
|
18669
|
+
|
18670
|
+
This method makes a synchronous HTTP request by default. To make an
|
18671
|
+
asynchronous HTTP request, please pass async_req=True
|
18672
|
+
>>> thread = api.get_root_cause_api_v2_iknow_get_with_http_info(cluster_id, async_req=True)
|
18673
|
+
>>> result = thread.get()
|
18674
|
+
|
18675
|
+
:param async_req bool: execute request asynchronously
|
18676
|
+
:param str cluster_id: (required)
|
18677
|
+
:param _return_http_data_only: response data without head status code
|
18678
|
+
and headers
|
18679
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18680
|
+
be returned without reading/decoding response
|
18681
|
+
data. Default is True.
|
18682
|
+
:param _request_timeout: timeout setting for this request. If one
|
18683
|
+
number provided, it will be total request
|
18684
|
+
timeout. It can also be a pair (tuple) of
|
18685
|
+
(connection, read) timeouts.
|
18686
|
+
:return: tuple(IKnowResponse, status_code(int), headers(HTTPHeaderDict))
|
18687
|
+
If the method is called asynchronously,
|
18688
|
+
returns the request thread.
|
18689
|
+
"""
|
18690
|
+
|
18691
|
+
local_var_params = locals()
|
18692
|
+
|
18693
|
+
all_params = [
|
18694
|
+
'cluster_id'
|
18695
|
+
]
|
18696
|
+
all_params.extend(
|
18697
|
+
[
|
18698
|
+
'async_req',
|
18699
|
+
'_return_http_data_only',
|
18700
|
+
'_preload_content',
|
18701
|
+
'_request_timeout'
|
18702
|
+
]
|
18703
|
+
)
|
18704
|
+
|
18705
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
18706
|
+
if key not in all_params:
|
18707
|
+
raise ApiTypeError(
|
18708
|
+
"Got an unexpected keyword argument '%s'"
|
18709
|
+
" to method get_root_cause_api_v2_iknow_get" % key
|
18710
|
+
)
|
18711
|
+
local_var_params[key] = val
|
18712
|
+
del local_var_params['kwargs']
|
18713
|
+
# verify the required parameter 'cluster_id' is set
|
18714
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
18715
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
18716
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_root_cause_api_v2_iknow_get`") # noqa: E501
|
18717
|
+
|
18718
|
+
collection_formats = {}
|
18719
|
+
|
18720
|
+
path_params = {}
|
18721
|
+
|
18722
|
+
query_params = []
|
18723
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
18724
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
18725
|
+
|
18726
|
+
header_params = {}
|
18727
|
+
|
18728
|
+
form_params = []
|
18729
|
+
local_var_files = {}
|
18730
|
+
|
18731
|
+
body_params = None
|
18732
|
+
# HTTP header `Accept`
|
18733
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
18734
|
+
['application/json']) # noqa: E501
|
18735
|
+
|
18736
|
+
# Authentication setting
|
18737
|
+
auth_settings = [] # noqa: E501
|
18738
|
+
|
18739
|
+
return self.api_client.call_api(
|
18740
|
+
'/api/v2/iknow/', 'GET',
|
18741
|
+
path_params,
|
18742
|
+
query_params,
|
18743
|
+
header_params,
|
18744
|
+
body=body_params,
|
18745
|
+
post_params=form_params,
|
18746
|
+
files=local_var_files,
|
18747
|
+
response_type='IKnowResponse', # noqa: E501
|
18748
|
+
auth_settings=auth_settings,
|
18749
|
+
async_req=local_var_params.get('async_req'),
|
18750
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18751
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
18752
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
18753
|
+
collection_formats=collection_formats)
|
18754
|
+
|
19939
18755
|
def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(self, session_id, **kwargs): # noqa: E501
|
19940
18756
|
"""Get Runtime Env Logs Download # noqa: E501
|
19941
18757
|
|
@@ -21065,118 +19881,6 @@ class DefaultApi(object):
|
|
21065
19881
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21066
19882
|
collection_formats=collection_formats)
|
21067
19883
|
|
21068
|
-
def get_session_details_api_v2_sessions_session_id_details_get(self, session_id, **kwargs): # noqa: E501
|
21069
|
-
"""Get Session Details # noqa: E501
|
21070
|
-
|
21071
|
-
This method makes a synchronous HTTP request by default. To make an
|
21072
|
-
asynchronous HTTP request, please pass async_req=True
|
21073
|
-
>>> thread = api.get_session_details_api_v2_sessions_session_id_details_get(session_id, async_req=True)
|
21074
|
-
>>> result = thread.get()
|
21075
|
-
|
21076
|
-
:param async_req bool: execute request asynchronously
|
21077
|
-
:param str session_id: (required)
|
21078
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21079
|
-
be returned without reading/decoding response
|
21080
|
-
data. Default is True.
|
21081
|
-
:param _request_timeout: timeout setting for this request. If one
|
21082
|
-
number provided, it will be total request
|
21083
|
-
timeout. It can also be a pair (tuple) of
|
21084
|
-
(connection, read) timeouts.
|
21085
|
-
:return: SessiondetailsResponse
|
21086
|
-
If the method is called asynchronously,
|
21087
|
-
returns the request thread.
|
21088
|
-
"""
|
21089
|
-
kwargs['_return_http_data_only'] = True
|
21090
|
-
return self.get_session_details_api_v2_sessions_session_id_details_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21091
|
-
|
21092
|
-
def get_session_details_api_v2_sessions_session_id_details_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
21093
|
-
"""Get Session Details # noqa: E501
|
21094
|
-
|
21095
|
-
This method makes a synchronous HTTP request by default. To make an
|
21096
|
-
asynchronous HTTP request, please pass async_req=True
|
21097
|
-
>>> thread = api.get_session_details_api_v2_sessions_session_id_details_get_with_http_info(session_id, async_req=True)
|
21098
|
-
>>> result = thread.get()
|
21099
|
-
|
21100
|
-
:param async_req bool: execute request asynchronously
|
21101
|
-
:param str session_id: (required)
|
21102
|
-
:param _return_http_data_only: response data without head status code
|
21103
|
-
and headers
|
21104
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21105
|
-
be returned without reading/decoding response
|
21106
|
-
data. Default is True.
|
21107
|
-
:param _request_timeout: timeout setting for this request. If one
|
21108
|
-
number provided, it will be total request
|
21109
|
-
timeout. It can also be a pair (tuple) of
|
21110
|
-
(connection, read) timeouts.
|
21111
|
-
:return: tuple(SessiondetailsResponse, status_code(int), headers(HTTPHeaderDict))
|
21112
|
-
If the method is called asynchronously,
|
21113
|
-
returns the request thread.
|
21114
|
-
"""
|
21115
|
-
|
21116
|
-
local_var_params = locals()
|
21117
|
-
|
21118
|
-
all_params = [
|
21119
|
-
'session_id'
|
21120
|
-
]
|
21121
|
-
all_params.extend(
|
21122
|
-
[
|
21123
|
-
'async_req',
|
21124
|
-
'_return_http_data_only',
|
21125
|
-
'_preload_content',
|
21126
|
-
'_request_timeout'
|
21127
|
-
]
|
21128
|
-
)
|
21129
|
-
|
21130
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
21131
|
-
if key not in all_params:
|
21132
|
-
raise ApiTypeError(
|
21133
|
-
"Got an unexpected keyword argument '%s'"
|
21134
|
-
" to method get_session_details_api_v2_sessions_session_id_details_get" % key
|
21135
|
-
)
|
21136
|
-
local_var_params[key] = val
|
21137
|
-
del local_var_params['kwargs']
|
21138
|
-
# verify the required parameter 'session_id' is set
|
21139
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21140
|
-
local_var_params['session_id'] is None): # noqa: E501
|
21141
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_details_api_v2_sessions_session_id_details_get`") # noqa: E501
|
21142
|
-
|
21143
|
-
collection_formats = {}
|
21144
|
-
|
21145
|
-
path_params = {}
|
21146
|
-
if 'session_id' in local_var_params:
|
21147
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21148
|
-
|
21149
|
-
query_params = []
|
21150
|
-
|
21151
|
-
header_params = {}
|
21152
|
-
|
21153
|
-
form_params = []
|
21154
|
-
local_var_files = {}
|
21155
|
-
|
21156
|
-
body_params = None
|
21157
|
-
# HTTP header `Accept`
|
21158
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
21159
|
-
['application/json']) # noqa: E501
|
21160
|
-
|
21161
|
-
# Authentication setting
|
21162
|
-
auth_settings = [] # noqa: E501
|
21163
|
-
|
21164
|
-
return self.api_client.call_api(
|
21165
|
-
'/api/v2/sessions/{session_id}/details', 'GET',
|
21166
|
-
path_params,
|
21167
|
-
query_params,
|
21168
|
-
header_params,
|
21169
|
-
body=body_params,
|
21170
|
-
post_params=form_params,
|
21171
|
-
files=local_var_files,
|
21172
|
-
response_type='SessiondetailsResponse', # noqa: E501
|
21173
|
-
auth_settings=auth_settings,
|
21174
|
-
async_req=local_var_params.get('async_req'),
|
21175
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
21176
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
21177
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
21178
|
-
collection_formats=collection_formats)
|
21179
|
-
|
21180
19884
|
def get_session_head_ip_api_v2_sessions_session_id_head_ip_get(self, session_id, **kwargs): # noqa: E501
|
21181
19885
|
"""Get Session Head Ip # noqa: E501
|
21182
19886
|
|
@@ -21291,134 +19995,6 @@ class DefaultApi(object):
|
|
21291
19995
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21292
19996
|
collection_formats=collection_formats)
|
21293
19997
|
|
21294
|
-
def get_session_history_api_v2_sessions_session_id_history_get(self, session_id, **kwargs): # noqa: E501
|
21295
|
-
"""Get Session History # noqa: E501
|
21296
|
-
|
21297
|
-
Describe all actions applied to a particular session. # noqa: E501
|
21298
|
-
This method makes a synchronous HTTP request by default. To make an
|
21299
|
-
asynchronous HTTP request, please pass async_req=True
|
21300
|
-
>>> thread = api.get_session_history_api_v2_sessions_session_id_history_get(session_id, async_req=True)
|
21301
|
-
>>> result = thread.get()
|
21302
|
-
|
21303
|
-
:param async_req bool: execute request asynchronously
|
21304
|
-
:param str session_id: (required)
|
21305
|
-
:param str paging_token:
|
21306
|
-
:param int count:
|
21307
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21308
|
-
be returned without reading/decoding response
|
21309
|
-
data. Default is True.
|
21310
|
-
:param _request_timeout: timeout setting for this request. If one
|
21311
|
-
number provided, it will be total request
|
21312
|
-
timeout. It can also be a pair (tuple) of
|
21313
|
-
(connection, read) timeouts.
|
21314
|
-
:return: SessionhistoryitemListResponse
|
21315
|
-
If the method is called asynchronously,
|
21316
|
-
returns the request thread.
|
21317
|
-
"""
|
21318
|
-
kwargs['_return_http_data_only'] = True
|
21319
|
-
return self.get_session_history_api_v2_sessions_session_id_history_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21320
|
-
|
21321
|
-
def get_session_history_api_v2_sessions_session_id_history_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
21322
|
-
"""Get Session History # noqa: E501
|
21323
|
-
|
21324
|
-
Describe all actions applied to a particular session. # noqa: E501
|
21325
|
-
This method makes a synchronous HTTP request by default. To make an
|
21326
|
-
asynchronous HTTP request, please pass async_req=True
|
21327
|
-
>>> thread = api.get_session_history_api_v2_sessions_session_id_history_get_with_http_info(session_id, async_req=True)
|
21328
|
-
>>> result = thread.get()
|
21329
|
-
|
21330
|
-
:param async_req bool: execute request asynchronously
|
21331
|
-
:param str session_id: (required)
|
21332
|
-
:param str paging_token:
|
21333
|
-
:param int count:
|
21334
|
-
:param _return_http_data_only: response data without head status code
|
21335
|
-
and headers
|
21336
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21337
|
-
be returned without reading/decoding response
|
21338
|
-
data. Default is True.
|
21339
|
-
:param _request_timeout: timeout setting for this request. If one
|
21340
|
-
number provided, it will be total request
|
21341
|
-
timeout. It can also be a pair (tuple) of
|
21342
|
-
(connection, read) timeouts.
|
21343
|
-
:return: tuple(SessionhistoryitemListResponse, status_code(int), headers(HTTPHeaderDict))
|
21344
|
-
If the method is called asynchronously,
|
21345
|
-
returns the request thread.
|
21346
|
-
"""
|
21347
|
-
|
21348
|
-
local_var_params = locals()
|
21349
|
-
|
21350
|
-
all_params = [
|
21351
|
-
'session_id',
|
21352
|
-
'paging_token',
|
21353
|
-
'count'
|
21354
|
-
]
|
21355
|
-
all_params.extend(
|
21356
|
-
[
|
21357
|
-
'async_req',
|
21358
|
-
'_return_http_data_only',
|
21359
|
-
'_preload_content',
|
21360
|
-
'_request_timeout'
|
21361
|
-
]
|
21362
|
-
)
|
21363
|
-
|
21364
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
21365
|
-
if key not in all_params:
|
21366
|
-
raise ApiTypeError(
|
21367
|
-
"Got an unexpected keyword argument '%s'"
|
21368
|
-
" to method get_session_history_api_v2_sessions_session_id_history_get" % key
|
21369
|
-
)
|
21370
|
-
local_var_params[key] = val
|
21371
|
-
del local_var_params['kwargs']
|
21372
|
-
# verify the required parameter 'session_id' is set
|
21373
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21374
|
-
local_var_params['session_id'] is None): # noqa: E501
|
21375
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_history_api_v2_sessions_session_id_history_get`") # noqa: E501
|
21376
|
-
|
21377
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
21378
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `get_session_history_api_v2_sessions_session_id_history_get`, must be a value less than or equal to `50`") # noqa: E501
|
21379
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
21380
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `get_session_history_api_v2_sessions_session_id_history_get`, must be a value greater than or equal to `0`") # noqa: E501
|
21381
|
-
collection_formats = {}
|
21382
|
-
|
21383
|
-
path_params = {}
|
21384
|
-
if 'session_id' in local_var_params:
|
21385
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21386
|
-
|
21387
|
-
query_params = []
|
21388
|
-
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
21389
|
-
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
21390
|
-
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
21391
|
-
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
21392
|
-
|
21393
|
-
header_params = {}
|
21394
|
-
|
21395
|
-
form_params = []
|
21396
|
-
local_var_files = {}
|
21397
|
-
|
21398
|
-
body_params = None
|
21399
|
-
# HTTP header `Accept`
|
21400
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
21401
|
-
['application/json']) # noqa: E501
|
21402
|
-
|
21403
|
-
# Authentication setting
|
21404
|
-
auth_settings = [] # noqa: E501
|
21405
|
-
|
21406
|
-
return self.api_client.call_api(
|
21407
|
-
'/api/v2/sessions/{session_id}/history', 'GET',
|
21408
|
-
path_params,
|
21409
|
-
query_params,
|
21410
|
-
header_params,
|
21411
|
-
body=body_params,
|
21412
|
-
post_params=form_params,
|
21413
|
-
files=local_var_files,
|
21414
|
-
response_type='SessionhistoryitemListResponse', # noqa: E501
|
21415
|
-
auth_settings=auth_settings,
|
21416
|
-
async_req=local_var_params.get('async_req'),
|
21417
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
21418
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
21419
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
21420
|
-
collection_formats=collection_formats)
|
21421
|
-
|
21422
19998
|
def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(self, session_id, **kwargs): # noqa: E501
|
21423
19999
|
"""Get Session Ssh Key # noqa: E501
|
21424
20000
|
|
@@ -21673,118 +20249,6 @@ class DefaultApi(object):
|
|
21673
20249
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21674
20250
|
collection_formats=collection_formats)
|
21675
20251
|
|
21676
|
-
def get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get(self, session_id, **kwargs): # noqa: E501
|
21677
|
-
"""Get Startup Logs Archived # noqa: E501
|
21678
|
-
|
21679
|
-
This method makes a synchronous HTTP request by default. To make an
|
21680
|
-
asynchronous HTTP request, please pass async_req=True
|
21681
|
-
>>> thread = api.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get(session_id, async_req=True)
|
21682
|
-
>>> result = thread.get()
|
21683
|
-
|
21684
|
-
:param async_req bool: execute request asynchronously
|
21685
|
-
:param str session_id: (required)
|
21686
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21687
|
-
be returned without reading/decoding response
|
21688
|
-
data. Default is True.
|
21689
|
-
:param _request_timeout: timeout setting for this request. If one
|
21690
|
-
number provided, it will be total request
|
21691
|
-
timeout. It can also be a pair (tuple) of
|
21692
|
-
(connection, read) timeouts.
|
21693
|
-
:return: ArchivedlogsinfoResponse
|
21694
|
-
If the method is called asynchronously,
|
21695
|
-
returns the request thread.
|
21696
|
-
"""
|
21697
|
-
kwargs['_return_http_data_only'] = True
|
21698
|
-
return self.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21699
|
-
|
21700
|
-
def get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
21701
|
-
"""Get Startup Logs Archived # noqa: E501
|
21702
|
-
|
21703
|
-
This method makes a synchronous HTTP request by default. To make an
|
21704
|
-
asynchronous HTTP request, please pass async_req=True
|
21705
|
-
>>> thread = api.get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get_with_http_info(session_id, async_req=True)
|
21706
|
-
>>> result = thread.get()
|
21707
|
-
|
21708
|
-
:param async_req bool: execute request asynchronously
|
21709
|
-
:param str session_id: (required)
|
21710
|
-
:param _return_http_data_only: response data without head status code
|
21711
|
-
and headers
|
21712
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21713
|
-
be returned without reading/decoding response
|
21714
|
-
data. Default is True.
|
21715
|
-
:param _request_timeout: timeout setting for this request. If one
|
21716
|
-
number provided, it will be total request
|
21717
|
-
timeout. It can also be a pair (tuple) of
|
21718
|
-
(connection, read) timeouts.
|
21719
|
-
:return: tuple(ArchivedlogsinfoResponse, status_code(int), headers(HTTPHeaderDict))
|
21720
|
-
If the method is called asynchronously,
|
21721
|
-
returns the request thread.
|
21722
|
-
"""
|
21723
|
-
|
21724
|
-
local_var_params = locals()
|
21725
|
-
|
21726
|
-
all_params = [
|
21727
|
-
'session_id'
|
21728
|
-
]
|
21729
|
-
all_params.extend(
|
21730
|
-
[
|
21731
|
-
'async_req',
|
21732
|
-
'_return_http_data_only',
|
21733
|
-
'_preload_content',
|
21734
|
-
'_request_timeout'
|
21735
|
-
]
|
21736
|
-
)
|
21737
|
-
|
21738
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
21739
|
-
if key not in all_params:
|
21740
|
-
raise ApiTypeError(
|
21741
|
-
"Got an unexpected keyword argument '%s'"
|
21742
|
-
" to method get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get" % key
|
21743
|
-
)
|
21744
|
-
local_var_params[key] = val
|
21745
|
-
del local_var_params['kwargs']
|
21746
|
-
# verify the required parameter 'session_id' is set
|
21747
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21748
|
-
local_var_params['session_id'] is None): # noqa: E501
|
21749
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_startup_logs_archived_api_v2_sessions_session_id_startup_logs_archived_get`") # noqa: E501
|
21750
|
-
|
21751
|
-
collection_formats = {}
|
21752
|
-
|
21753
|
-
path_params = {}
|
21754
|
-
if 'session_id' in local_var_params:
|
21755
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21756
|
-
|
21757
|
-
query_params = []
|
21758
|
-
|
21759
|
-
header_params = {}
|
21760
|
-
|
21761
|
-
form_params = []
|
21762
|
-
local_var_files = {}
|
21763
|
-
|
21764
|
-
body_params = None
|
21765
|
-
# HTTP header `Accept`
|
21766
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
21767
|
-
['application/json']) # noqa: E501
|
21768
|
-
|
21769
|
-
# Authentication setting
|
21770
|
-
auth_settings = [] # noqa: E501
|
21771
|
-
|
21772
|
-
return self.api_client.call_api(
|
21773
|
-
'/api/v2/sessions/{session_id}/startup_logs_archived', 'GET',
|
21774
|
-
path_params,
|
21775
|
-
query_params,
|
21776
|
-
header_params,
|
21777
|
-
body=body_params,
|
21778
|
-
post_params=form_params,
|
21779
|
-
files=local_var_files,
|
21780
|
-
response_type='ArchivedlogsinfoResponse', # noqa: E501
|
21781
|
-
auth_settings=auth_settings,
|
21782
|
-
async_req=local_var_params.get('async_req'),
|
21783
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
21784
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
21785
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
21786
|
-
collection_formats=collection_formats)
|
21787
|
-
|
21788
20252
|
def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(self, cluster_id, **kwargs): # noqa: E501
|
21789
20253
|
"""Get Task Exception Aggregates # noqa: E501
|
21790
20254
|
|
@@ -24708,118 +23172,6 @@ class DefaultApi(object):
|
|
24708
23172
|
_request_timeout=local_var_params.get('_request_timeout'),
|
24709
23173
|
collection_formats=collection_formats)
|
24710
23174
|
|
24711
|
-
def kill_session_command_api_v2_session_commands_session_command_id_kill_post(self, session_command_id, **kwargs): # noqa: E501
|
24712
|
-
"""Kill Session Command # noqa: E501
|
24713
|
-
|
24714
|
-
This method makes a synchronous HTTP request by default. To make an
|
24715
|
-
asynchronous HTTP request, please pass async_req=True
|
24716
|
-
>>> thread = api.kill_session_command_api_v2_session_commands_session_command_id_kill_post(session_command_id, async_req=True)
|
24717
|
-
>>> result = thread.get()
|
24718
|
-
|
24719
|
-
:param async_req bool: execute request asynchronously
|
24720
|
-
:param str session_command_id: (required)
|
24721
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24722
|
-
be returned without reading/decoding response
|
24723
|
-
data. Default is True.
|
24724
|
-
:param _request_timeout: timeout setting for this request. If one
|
24725
|
-
number provided, it will be total request
|
24726
|
-
timeout. It can also be a pair (tuple) of
|
24727
|
-
(connection, read) timeouts.
|
24728
|
-
:return: None
|
24729
|
-
If the method is called asynchronously,
|
24730
|
-
returns the request thread.
|
24731
|
-
"""
|
24732
|
-
kwargs['_return_http_data_only'] = True
|
24733
|
-
return self.kill_session_command_api_v2_session_commands_session_command_id_kill_post_with_http_info(session_command_id, **kwargs) # noqa: E501
|
24734
|
-
|
24735
|
-
def kill_session_command_api_v2_session_commands_session_command_id_kill_post_with_http_info(self, session_command_id, **kwargs): # noqa: E501
|
24736
|
-
"""Kill Session Command # noqa: E501
|
24737
|
-
|
24738
|
-
This method makes a synchronous HTTP request by default. To make an
|
24739
|
-
asynchronous HTTP request, please pass async_req=True
|
24740
|
-
>>> thread = api.kill_session_command_api_v2_session_commands_session_command_id_kill_post_with_http_info(session_command_id, async_req=True)
|
24741
|
-
>>> result = thread.get()
|
24742
|
-
|
24743
|
-
:param async_req bool: execute request asynchronously
|
24744
|
-
:param str session_command_id: (required)
|
24745
|
-
:param _return_http_data_only: response data without head status code
|
24746
|
-
and headers
|
24747
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24748
|
-
be returned without reading/decoding response
|
24749
|
-
data. Default is True.
|
24750
|
-
:param _request_timeout: timeout setting for this request. If one
|
24751
|
-
number provided, it will be total request
|
24752
|
-
timeout. It can also be a pair (tuple) of
|
24753
|
-
(connection, read) timeouts.
|
24754
|
-
:return: None
|
24755
|
-
If the method is called asynchronously,
|
24756
|
-
returns the request thread.
|
24757
|
-
"""
|
24758
|
-
|
24759
|
-
local_var_params = locals()
|
24760
|
-
|
24761
|
-
all_params = [
|
24762
|
-
'session_command_id'
|
24763
|
-
]
|
24764
|
-
all_params.extend(
|
24765
|
-
[
|
24766
|
-
'async_req',
|
24767
|
-
'_return_http_data_only',
|
24768
|
-
'_preload_content',
|
24769
|
-
'_request_timeout'
|
24770
|
-
]
|
24771
|
-
)
|
24772
|
-
|
24773
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
24774
|
-
if key not in all_params:
|
24775
|
-
raise ApiTypeError(
|
24776
|
-
"Got an unexpected keyword argument '%s'"
|
24777
|
-
" to method kill_session_command_api_v2_session_commands_session_command_id_kill_post" % key
|
24778
|
-
)
|
24779
|
-
local_var_params[key] = val
|
24780
|
-
del local_var_params['kwargs']
|
24781
|
-
# verify the required parameter 'session_command_id' is set
|
24782
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
24783
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
24784
|
-
raise ApiValueError("Missing the required parameter `session_command_id` when calling `kill_session_command_api_v2_session_commands_session_command_id_kill_post`") # noqa: E501
|
24785
|
-
|
24786
|
-
collection_formats = {}
|
24787
|
-
|
24788
|
-
path_params = {}
|
24789
|
-
if 'session_command_id' in local_var_params:
|
24790
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
24791
|
-
|
24792
|
-
query_params = []
|
24793
|
-
|
24794
|
-
header_params = {}
|
24795
|
-
|
24796
|
-
form_params = []
|
24797
|
-
local_var_files = {}
|
24798
|
-
|
24799
|
-
body_params = None
|
24800
|
-
# HTTP header `Accept`
|
24801
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
24802
|
-
['application/json']) # noqa: E501
|
24803
|
-
|
24804
|
-
# Authentication setting
|
24805
|
-
auth_settings = [] # noqa: E501
|
24806
|
-
|
24807
|
-
return self.api_client.call_api(
|
24808
|
-
'/api/v2/session_commands/{session_command_id}/kill', 'POST',
|
24809
|
-
path_params,
|
24810
|
-
query_params,
|
24811
|
-
header_params,
|
24812
|
-
body=body_params,
|
24813
|
-
post_params=form_params,
|
24814
|
-
files=local_var_files,
|
24815
|
-
response_type=None, # noqa: E501
|
24816
|
-
auth_settings=auth_settings,
|
24817
|
-
async_req=local_var_params.get('async_req'),
|
24818
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
24819
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
24820
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
24821
|
-
collection_formats=collection_formats)
|
24822
|
-
|
24823
23175
|
def list_application_templates_api_v2_application_templates_get(self, **kwargs): # noqa: E501
|
24824
23176
|
"""List Application Templates # noqa: E501
|
24825
23177
|
|
@@ -26732,6 +25084,142 @@ class DefaultApi(object):
|
|
26732
25084
|
_request_timeout=local_var_params.get('_request_timeout'),
|
26733
25085
|
collection_formats=collection_formats)
|
26734
25086
|
|
25087
|
+
def list_job_reports_api_v2_job_reports_get(self, cloud_id, **kwargs): # noqa: E501
|
25088
|
+
"""List Job Reports # noqa: E501
|
25089
|
+
|
25090
|
+
This method makes a synchronous HTTP request by default. To make an
|
25091
|
+
asynchronous HTTP request, please pass async_req=True
|
25092
|
+
>>> thread = api.list_job_reports_api_v2_job_reports_get(cloud_id, async_req=True)
|
25093
|
+
>>> result = thread.get()
|
25094
|
+
|
25095
|
+
:param async_req bool: execute request asynchronously
|
25096
|
+
:param str cloud_id: (required)
|
25097
|
+
:param datetime start_time:
|
25098
|
+
:param datetime end_time:
|
25099
|
+
:param str paging_token:
|
25100
|
+
:param int count:
|
25101
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
25102
|
+
be returned without reading/decoding response
|
25103
|
+
data. Default is True.
|
25104
|
+
:param _request_timeout: timeout setting for this request. If one
|
25105
|
+
number provided, it will be total request
|
25106
|
+
timeout. It can also be a pair (tuple) of
|
25107
|
+
(connection, read) timeouts.
|
25108
|
+
:return: JobwithreportListResponse
|
25109
|
+
If the method is called asynchronously,
|
25110
|
+
returns the request thread.
|
25111
|
+
"""
|
25112
|
+
kwargs['_return_http_data_only'] = True
|
25113
|
+
return self.list_job_reports_api_v2_job_reports_get_with_http_info(cloud_id, **kwargs) # noqa: E501
|
25114
|
+
|
25115
|
+
def list_job_reports_api_v2_job_reports_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
25116
|
+
"""List Job Reports # noqa: E501
|
25117
|
+
|
25118
|
+
This method makes a synchronous HTTP request by default. To make an
|
25119
|
+
asynchronous HTTP request, please pass async_req=True
|
25120
|
+
>>> thread = api.list_job_reports_api_v2_job_reports_get_with_http_info(cloud_id, async_req=True)
|
25121
|
+
>>> result = thread.get()
|
25122
|
+
|
25123
|
+
:param async_req bool: execute request asynchronously
|
25124
|
+
:param str cloud_id: (required)
|
25125
|
+
:param datetime start_time:
|
25126
|
+
:param datetime end_time:
|
25127
|
+
:param str paging_token:
|
25128
|
+
:param int count:
|
25129
|
+
:param _return_http_data_only: response data without head status code
|
25130
|
+
and headers
|
25131
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
25132
|
+
be returned without reading/decoding response
|
25133
|
+
data. Default is True.
|
25134
|
+
:param _request_timeout: timeout setting for this request. If one
|
25135
|
+
number provided, it will be total request
|
25136
|
+
timeout. It can also be a pair (tuple) of
|
25137
|
+
(connection, read) timeouts.
|
25138
|
+
:return: tuple(JobwithreportListResponse, status_code(int), headers(HTTPHeaderDict))
|
25139
|
+
If the method is called asynchronously,
|
25140
|
+
returns the request thread.
|
25141
|
+
"""
|
25142
|
+
|
25143
|
+
local_var_params = locals()
|
25144
|
+
|
25145
|
+
all_params = [
|
25146
|
+
'cloud_id',
|
25147
|
+
'start_time',
|
25148
|
+
'end_time',
|
25149
|
+
'paging_token',
|
25150
|
+
'count'
|
25151
|
+
]
|
25152
|
+
all_params.extend(
|
25153
|
+
[
|
25154
|
+
'async_req',
|
25155
|
+
'_return_http_data_only',
|
25156
|
+
'_preload_content',
|
25157
|
+
'_request_timeout'
|
25158
|
+
]
|
25159
|
+
)
|
25160
|
+
|
25161
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
25162
|
+
if key not in all_params:
|
25163
|
+
raise ApiTypeError(
|
25164
|
+
"Got an unexpected keyword argument '%s'"
|
25165
|
+
" to method list_job_reports_api_v2_job_reports_get" % key
|
25166
|
+
)
|
25167
|
+
local_var_params[key] = val
|
25168
|
+
del local_var_params['kwargs']
|
25169
|
+
# verify the required parameter 'cloud_id' is set
|
25170
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
25171
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
25172
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `list_job_reports_api_v2_job_reports_get`") # noqa: E501
|
25173
|
+
|
25174
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
25175
|
+
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
|
25176
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
25177
|
+
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
|
25178
|
+
collection_formats = {}
|
25179
|
+
|
25180
|
+
path_params = {}
|
25181
|
+
|
25182
|
+
query_params = []
|
25183
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
25184
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
25185
|
+
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
25186
|
+
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
25187
|
+
if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
|
25188
|
+
query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
|
25189
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
25190
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
25191
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
25192
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
25193
|
+
|
25194
|
+
header_params = {}
|
25195
|
+
|
25196
|
+
form_params = []
|
25197
|
+
local_var_files = {}
|
25198
|
+
|
25199
|
+
body_params = None
|
25200
|
+
# HTTP header `Accept`
|
25201
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
25202
|
+
['application/json']) # noqa: E501
|
25203
|
+
|
25204
|
+
# Authentication setting
|
25205
|
+
auth_settings = [] # noqa: E501
|
25206
|
+
|
25207
|
+
return self.api_client.call_api(
|
25208
|
+
'/api/v2/job_reports/', 'GET',
|
25209
|
+
path_params,
|
25210
|
+
query_params,
|
25211
|
+
header_params,
|
25212
|
+
body=body_params,
|
25213
|
+
post_params=form_params,
|
25214
|
+
files=local_var_files,
|
25215
|
+
response_type='JobwithreportListResponse', # noqa: E501
|
25216
|
+
auth_settings=auth_settings,
|
25217
|
+
async_req=local_var_params.get('async_req'),
|
25218
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
25219
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
25220
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
25221
|
+
collection_formats=collection_formats)
|
25222
|
+
|
26735
25223
|
def list_job_states_api_v2_decorated_ha_job_states_get(self, ha_job_id, **kwargs): # noqa: E501
|
26736
25224
|
"""List Job States # noqa: E501
|
26737
25225
|
|
@@ -28593,120 +27081,6 @@ class DefaultApi(object):
|
|
28593
27081
|
_request_timeout=local_var_params.get('_request_timeout'),
|
28594
27082
|
collection_formats=collection_formats)
|
28595
27083
|
|
28596
|
-
def list_web_terminals_api_v2_sessions_session_id_web_terminals_get(self, session_id, **kwargs): # noqa: E501
|
28597
|
-
"""List Web Terminals # noqa: E501
|
28598
|
-
|
28599
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
28600
|
-
This method makes a synchronous HTTP request by default. To make an
|
28601
|
-
asynchronous HTTP request, please pass async_req=True
|
28602
|
-
>>> thread = api.list_web_terminals_api_v2_sessions_session_id_web_terminals_get(session_id, async_req=True)
|
28603
|
-
>>> result = thread.get()
|
28604
|
-
|
28605
|
-
:param async_req bool: execute request asynchronously
|
28606
|
-
:param str session_id: (required)
|
28607
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28608
|
-
be returned without reading/decoding response
|
28609
|
-
data. Default is True.
|
28610
|
-
:param _request_timeout: timeout setting for this request. If one
|
28611
|
-
number provided, it will be total request
|
28612
|
-
timeout. It can also be a pair (tuple) of
|
28613
|
-
(connection, read) timeouts.
|
28614
|
-
:return: WebterminalListResponse
|
28615
|
-
If the method is called asynchronously,
|
28616
|
-
returns the request thread.
|
28617
|
-
"""
|
28618
|
-
kwargs['_return_http_data_only'] = True
|
28619
|
-
return self.list_web_terminals_api_v2_sessions_session_id_web_terminals_get_with_http_info(session_id, **kwargs) # noqa: E501
|
28620
|
-
|
28621
|
-
def list_web_terminals_api_v2_sessions_session_id_web_terminals_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
28622
|
-
"""List Web Terminals # noqa: E501
|
28623
|
-
|
28624
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
28625
|
-
This method makes a synchronous HTTP request by default. To make an
|
28626
|
-
asynchronous HTTP request, please pass async_req=True
|
28627
|
-
>>> thread = api.list_web_terminals_api_v2_sessions_session_id_web_terminals_get_with_http_info(session_id, async_req=True)
|
28628
|
-
>>> result = thread.get()
|
28629
|
-
|
28630
|
-
:param async_req bool: execute request asynchronously
|
28631
|
-
:param str session_id: (required)
|
28632
|
-
:param _return_http_data_only: response data without head status code
|
28633
|
-
and headers
|
28634
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28635
|
-
be returned without reading/decoding response
|
28636
|
-
data. Default is True.
|
28637
|
-
:param _request_timeout: timeout setting for this request. If one
|
28638
|
-
number provided, it will be total request
|
28639
|
-
timeout. It can also be a pair (tuple) of
|
28640
|
-
(connection, read) timeouts.
|
28641
|
-
:return: tuple(WebterminalListResponse, status_code(int), headers(HTTPHeaderDict))
|
28642
|
-
If the method is called asynchronously,
|
28643
|
-
returns the request thread.
|
28644
|
-
"""
|
28645
|
-
|
28646
|
-
local_var_params = locals()
|
28647
|
-
|
28648
|
-
all_params = [
|
28649
|
-
'session_id'
|
28650
|
-
]
|
28651
|
-
all_params.extend(
|
28652
|
-
[
|
28653
|
-
'async_req',
|
28654
|
-
'_return_http_data_only',
|
28655
|
-
'_preload_content',
|
28656
|
-
'_request_timeout'
|
28657
|
-
]
|
28658
|
-
)
|
28659
|
-
|
28660
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
28661
|
-
if key not in all_params:
|
28662
|
-
raise ApiTypeError(
|
28663
|
-
"Got an unexpected keyword argument '%s'"
|
28664
|
-
" to method list_web_terminals_api_v2_sessions_session_id_web_terminals_get" % key
|
28665
|
-
)
|
28666
|
-
local_var_params[key] = val
|
28667
|
-
del local_var_params['kwargs']
|
28668
|
-
# verify the required parameter 'session_id' is set
|
28669
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
28670
|
-
local_var_params['session_id'] is None): # noqa: E501
|
28671
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `list_web_terminals_api_v2_sessions_session_id_web_terminals_get`") # noqa: E501
|
28672
|
-
|
28673
|
-
collection_formats = {}
|
28674
|
-
|
28675
|
-
path_params = {}
|
28676
|
-
if 'session_id' in local_var_params:
|
28677
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
28678
|
-
|
28679
|
-
query_params = []
|
28680
|
-
|
28681
|
-
header_params = {}
|
28682
|
-
|
28683
|
-
form_params = []
|
28684
|
-
local_var_files = {}
|
28685
|
-
|
28686
|
-
body_params = None
|
28687
|
-
# HTTP header `Accept`
|
28688
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
28689
|
-
['application/json']) # noqa: E501
|
28690
|
-
|
28691
|
-
# Authentication setting
|
28692
|
-
auth_settings = [] # noqa: E501
|
28693
|
-
|
28694
|
-
return self.api_client.call_api(
|
28695
|
-
'/api/v2/sessions/{session_id}/web_terminals', 'GET',
|
28696
|
-
path_params,
|
28697
|
-
query_params,
|
28698
|
-
header_params,
|
28699
|
-
body=body_params,
|
28700
|
-
post_params=form_params,
|
28701
|
-
files=local_var_files,
|
28702
|
-
response_type='WebterminalListResponse', # noqa: E501
|
28703
|
-
auth_settings=auth_settings,
|
28704
|
-
async_req=local_var_params.get('async_req'),
|
28705
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28706
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
28707
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
28708
|
-
collection_formats=collection_formats)
|
28709
|
-
|
28710
27084
|
def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
|
28711
27085
|
"""List Workspace Templates # noqa: E501
|
28712
27086
|
|
@@ -35911,133 +34285,6 @@ class DefaultApi(object):
|
|
35911
34285
|
_request_timeout=local_var_params.get('_request_timeout'),
|
35912
34286
|
collection_formats=collection_formats)
|
35913
34287
|
|
35914
|
-
def update_compute_template_api_v2_compute_templates_compute_template_id_put(self, compute_template_id, update_compute_template, **kwargs): # noqa: E501
|
35915
|
-
"""Update Compute Template # noqa: E501
|
35916
|
-
|
35917
|
-
Updates a compute template. DEPRECATED: Compute templates will be immutable. Please create a new one instead of updating existing ones. # noqa: E501
|
35918
|
-
This method makes a synchronous HTTP request by default. To make an
|
35919
|
-
asynchronous HTTP request, please pass async_req=True
|
35920
|
-
>>> thread = api.update_compute_template_api_v2_compute_templates_compute_template_id_put(compute_template_id, update_compute_template, async_req=True)
|
35921
|
-
>>> result = thread.get()
|
35922
|
-
|
35923
|
-
:param async_req bool: execute request asynchronously
|
35924
|
-
:param str compute_template_id: (required)
|
35925
|
-
:param UpdateComputeTemplate update_compute_template: (required)
|
35926
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35927
|
-
be returned without reading/decoding response
|
35928
|
-
data. Default is True.
|
35929
|
-
:param _request_timeout: timeout setting for this request. If one
|
35930
|
-
number provided, it will be total request
|
35931
|
-
timeout. It can also be a pair (tuple) of
|
35932
|
-
(connection, read) timeouts.
|
35933
|
-
:return: ComputetemplateResponse
|
35934
|
-
If the method is called asynchronously,
|
35935
|
-
returns the request thread.
|
35936
|
-
"""
|
35937
|
-
kwargs['_return_http_data_only'] = True
|
35938
|
-
return self.update_compute_template_api_v2_compute_templates_compute_template_id_put_with_http_info(compute_template_id, update_compute_template, **kwargs) # noqa: E501
|
35939
|
-
|
35940
|
-
def update_compute_template_api_v2_compute_templates_compute_template_id_put_with_http_info(self, compute_template_id, update_compute_template, **kwargs): # noqa: E501
|
35941
|
-
"""Update Compute Template # noqa: E501
|
35942
|
-
|
35943
|
-
Updates a compute template. DEPRECATED: Compute templates will be immutable. Please create a new one instead of updating existing ones. # noqa: E501
|
35944
|
-
This method makes a synchronous HTTP request by default. To make an
|
35945
|
-
asynchronous HTTP request, please pass async_req=True
|
35946
|
-
>>> thread = api.update_compute_template_api_v2_compute_templates_compute_template_id_put_with_http_info(compute_template_id, update_compute_template, async_req=True)
|
35947
|
-
>>> result = thread.get()
|
35948
|
-
|
35949
|
-
:param async_req bool: execute request asynchronously
|
35950
|
-
:param str compute_template_id: (required)
|
35951
|
-
:param UpdateComputeTemplate update_compute_template: (required)
|
35952
|
-
:param _return_http_data_only: response data without head status code
|
35953
|
-
and headers
|
35954
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35955
|
-
be returned without reading/decoding response
|
35956
|
-
data. Default is True.
|
35957
|
-
:param _request_timeout: timeout setting for this request. If one
|
35958
|
-
number provided, it will be total request
|
35959
|
-
timeout. It can also be a pair (tuple) of
|
35960
|
-
(connection, read) timeouts.
|
35961
|
-
:return: tuple(ComputetemplateResponse, status_code(int), headers(HTTPHeaderDict))
|
35962
|
-
If the method is called asynchronously,
|
35963
|
-
returns the request thread.
|
35964
|
-
"""
|
35965
|
-
|
35966
|
-
local_var_params = locals()
|
35967
|
-
|
35968
|
-
all_params = [
|
35969
|
-
'compute_template_id',
|
35970
|
-
'update_compute_template'
|
35971
|
-
]
|
35972
|
-
all_params.extend(
|
35973
|
-
[
|
35974
|
-
'async_req',
|
35975
|
-
'_return_http_data_only',
|
35976
|
-
'_preload_content',
|
35977
|
-
'_request_timeout'
|
35978
|
-
]
|
35979
|
-
)
|
35980
|
-
|
35981
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
35982
|
-
if key not in all_params:
|
35983
|
-
raise ApiTypeError(
|
35984
|
-
"Got an unexpected keyword argument '%s'"
|
35985
|
-
" to method update_compute_template_api_v2_compute_templates_compute_template_id_put" % key
|
35986
|
-
)
|
35987
|
-
local_var_params[key] = val
|
35988
|
-
del local_var_params['kwargs']
|
35989
|
-
# verify the required parameter 'compute_template_id' is set
|
35990
|
-
if self.api_client.client_side_validation and ('compute_template_id' not in local_var_params or # noqa: E501
|
35991
|
-
local_var_params['compute_template_id'] is None): # noqa: E501
|
35992
|
-
raise ApiValueError("Missing the required parameter `compute_template_id` when calling `update_compute_template_api_v2_compute_templates_compute_template_id_put`") # noqa: E501
|
35993
|
-
# verify the required parameter 'update_compute_template' is set
|
35994
|
-
if self.api_client.client_side_validation and ('update_compute_template' not in local_var_params or # noqa: E501
|
35995
|
-
local_var_params['update_compute_template'] is None): # noqa: E501
|
35996
|
-
raise ApiValueError("Missing the required parameter `update_compute_template` when calling `update_compute_template_api_v2_compute_templates_compute_template_id_put`") # noqa: E501
|
35997
|
-
|
35998
|
-
collection_formats = {}
|
35999
|
-
|
36000
|
-
path_params = {}
|
36001
|
-
if 'compute_template_id' in local_var_params:
|
36002
|
-
path_params['compute_template_id'] = local_var_params['compute_template_id'] # noqa: E501
|
36003
|
-
|
36004
|
-
query_params = []
|
36005
|
-
|
36006
|
-
header_params = {}
|
36007
|
-
|
36008
|
-
form_params = []
|
36009
|
-
local_var_files = {}
|
36010
|
-
|
36011
|
-
body_params = None
|
36012
|
-
if 'update_compute_template' in local_var_params:
|
36013
|
-
body_params = local_var_params['update_compute_template']
|
36014
|
-
# HTTP header `Accept`
|
36015
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
36016
|
-
['application/json']) # noqa: E501
|
36017
|
-
|
36018
|
-
# HTTP header `Content-Type`
|
36019
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
36020
|
-
['application/json']) # noqa: E501
|
36021
|
-
|
36022
|
-
# Authentication setting
|
36023
|
-
auth_settings = [] # noqa: E501
|
36024
|
-
|
36025
|
-
return self.api_client.call_api(
|
36026
|
-
'/api/v2/compute_templates/{compute_template_id}', 'PUT',
|
36027
|
-
path_params,
|
36028
|
-
query_params,
|
36029
|
-
header_params,
|
36030
|
-
body=body_params,
|
36031
|
-
post_params=form_params,
|
36032
|
-
files=local_var_files,
|
36033
|
-
response_type='ComputetemplateResponse', # noqa: E501
|
36034
|
-
auth_settings=auth_settings,
|
36035
|
-
async_req=local_var_params.get('async_req'),
|
36036
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
36037
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
36038
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
36039
|
-
collection_formats=collection_formats)
|
36040
|
-
|
36041
34288
|
def update_customer_aggregated_logs_config_api_v2_clouds_cloud_id_update_customer_aggregated_logs_config_put(self, cloud_id, is_enabled, **kwargs): # noqa: E501
|
36042
34289
|
"""Update Customer Aggregated Logs Config # noqa: E501
|
36043
34290
|
|