anyscale 0.26.17__py3-none-any.whl → 0.26.20__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/_private/docgen/models.md +3 -3
- anyscale/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +18 -38
- anyscale/client/openapi_client/__init__.py +14 -20
- anyscale/client/openapi_client/api/default_api.py +460 -2097
- anyscale/client/openapi_client/models/__init__.py +14 -20
- anyscale/client/openapi_client/models/aws_config.py +402 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
- anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
- anyscale/client/openapi_client/models/decorated_production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/file_storage.py +206 -0
- anyscale/client/openapi_client/models/gcp_config.py +402 -0
- anyscale/client/openapi_client/models/{session_details.py → job_queue_sort_directive.py} +39 -39
- anyscale/client/openapi_client/models/{sessiondescribe_response.py → job_queue_sort_field.py} +20 -34
- anyscale/client/openapi_client/models/job_queues_query.py +31 -3
- anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
- anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
- anyscale/client/openapi_client/models/object_storage.py +178 -0
- anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
- anyscale/client/openapi_client/models/production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/{external_service_status.py → update_job_queue_request.py} +39 -36
- anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
- anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
- anyscale/commands/cloud_commands.py +55 -7
- anyscale/commands/command_examples.py +58 -0
- anyscale/commands/job_commands.py +2 -2
- anyscale/commands/job_queue_commands.py +172 -0
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +60 -3
- anyscale/controllers/job_controller.py +215 -3
- anyscale/scripts.py +3 -0
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/util.py +3 -1
- anyscale/utils/connect_helpers.py +34 -0
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +19 -6
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/METADATA +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/RECORD +48 -53
- anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
- 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/create_session_response.py +0 -174
- anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
- 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/session_describe.py +0 -175
- anyscale/client/openapi_client/models/session_history_item.py +0 -146
- 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.17.dist-info → anyscale-0.26.20.dist-info}/LICENSE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/NOTICE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/WHEEL +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.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
|
|
@@ -12926,6 +12225,118 @@ class DefaultApi(object):
|
|
12926
12225
|
_request_timeout=local_var_params.get('_request_timeout'),
|
12927
12226
|
collection_formats=collection_formats)
|
12928
12227
|
|
12228
|
+
def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(self, cloud_id, **kwargs): # noqa: E501
|
12229
|
+
"""Get Cloud Deployments # noqa: E501
|
12230
|
+
|
12231
|
+
This method makes a synchronous HTTP request by default. To make an
|
12232
|
+
asynchronous HTTP request, please pass async_req=True
|
12233
|
+
>>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get(cloud_id, async_req=True)
|
12234
|
+
>>> result = thread.get()
|
12235
|
+
|
12236
|
+
:param async_req bool: execute request asynchronously
|
12237
|
+
:param str cloud_id: (required)
|
12238
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
12239
|
+
be returned without reading/decoding response
|
12240
|
+
data. Default is True.
|
12241
|
+
:param _request_timeout: timeout setting for this request. If one
|
12242
|
+
number provided, it will be total request
|
12243
|
+
timeout. It can also be a pair (tuple) of
|
12244
|
+
(connection, read) timeouts.
|
12245
|
+
:return: ClouddeploymentListResponse
|
12246
|
+
If the method is called asynchronously,
|
12247
|
+
returns the request thread.
|
12248
|
+
"""
|
12249
|
+
kwargs['_return_http_data_only'] = True
|
12250
|
+
return self.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, **kwargs) # noqa: E501
|
12251
|
+
|
12252
|
+
def get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(self, cloud_id, **kwargs): # noqa: E501
|
12253
|
+
"""Get Cloud Deployments # noqa: E501
|
12254
|
+
|
12255
|
+
This method makes a synchronous HTTP request by default. To make an
|
12256
|
+
asynchronous HTTP request, please pass async_req=True
|
12257
|
+
>>> thread = api.get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get_with_http_info(cloud_id, async_req=True)
|
12258
|
+
>>> result = thread.get()
|
12259
|
+
|
12260
|
+
:param async_req bool: execute request asynchronously
|
12261
|
+
:param str cloud_id: (required)
|
12262
|
+
:param _return_http_data_only: response data without head status code
|
12263
|
+
and headers
|
12264
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
12265
|
+
be returned without reading/decoding response
|
12266
|
+
data. Default is True.
|
12267
|
+
:param _request_timeout: timeout setting for this request. If one
|
12268
|
+
number provided, it will be total request
|
12269
|
+
timeout. It can also be a pair (tuple) of
|
12270
|
+
(connection, read) timeouts.
|
12271
|
+
:return: tuple(ClouddeploymentListResponse, status_code(int), headers(HTTPHeaderDict))
|
12272
|
+
If the method is called asynchronously,
|
12273
|
+
returns the request thread.
|
12274
|
+
"""
|
12275
|
+
|
12276
|
+
local_var_params = locals()
|
12277
|
+
|
12278
|
+
all_params = [
|
12279
|
+
'cloud_id'
|
12280
|
+
]
|
12281
|
+
all_params.extend(
|
12282
|
+
[
|
12283
|
+
'async_req',
|
12284
|
+
'_return_http_data_only',
|
12285
|
+
'_preload_content',
|
12286
|
+
'_request_timeout'
|
12287
|
+
]
|
12288
|
+
)
|
12289
|
+
|
12290
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
12291
|
+
if key not in all_params:
|
12292
|
+
raise ApiTypeError(
|
12293
|
+
"Got an unexpected keyword argument '%s'"
|
12294
|
+
" to method get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get" % key
|
12295
|
+
)
|
12296
|
+
local_var_params[key] = val
|
12297
|
+
del local_var_params['kwargs']
|
12298
|
+
# verify the required parameter 'cloud_id' is set
|
12299
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
12300
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
12301
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `get_cloud_deployments_api_v2_clouds_cloud_id_deployments_get`") # noqa: E501
|
12302
|
+
|
12303
|
+
collection_formats = {}
|
12304
|
+
|
12305
|
+
path_params = {}
|
12306
|
+
if 'cloud_id' in local_var_params:
|
12307
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
12308
|
+
|
12309
|
+
query_params = []
|
12310
|
+
|
12311
|
+
header_params = {}
|
12312
|
+
|
12313
|
+
form_params = []
|
12314
|
+
local_var_files = {}
|
12315
|
+
|
12316
|
+
body_params = None
|
12317
|
+
# HTTP header `Accept`
|
12318
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
12319
|
+
['application/json']) # noqa: E501
|
12320
|
+
|
12321
|
+
# Authentication setting
|
12322
|
+
auth_settings = [] # noqa: E501
|
12323
|
+
|
12324
|
+
return self.api_client.call_api(
|
12325
|
+
'/api/v2/clouds/{cloud_id}/deployments', 'GET',
|
12326
|
+
path_params,
|
12327
|
+
query_params,
|
12328
|
+
header_params,
|
12329
|
+
body=body_params,
|
12330
|
+
post_params=form_params,
|
12331
|
+
files=local_var_files,
|
12332
|
+
response_type='ClouddeploymentListResponse', # noqa: E501
|
12333
|
+
auth_settings=auth_settings,
|
12334
|
+
async_req=local_var_params.get('async_req'),
|
12335
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
12336
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
12337
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
12338
|
+
collection_formats=collection_formats)
|
12339
|
+
|
12929
12340
|
def get_cloud_overview_dashboard_api_v2_clouds_cloud_id_cloud_overview_dashboard_get(self, cloud_id, **kwargs): # noqa: E501
|
12930
12341
|
"""Get Cloud Overview Dashboard # noqa: E501
|
12931
12342
|
|
@@ -15877,258 +15288,6 @@ class DefaultApi(object):
|
|
15877
15288
|
_request_timeout=local_var_params.get('_request_timeout'),
|
15878
15289
|
collection_formats=collection_formats)
|
15879
15290
|
|
15880
|
-
def get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get(self, session_command_id, start_line, end_line, **kwargs): # noqa: E501
|
15881
|
-
"""Get Execution Logs # noqa: E501
|
15882
|
-
|
15883
|
-
This method makes a synchronous HTTP request by default. To make an
|
15884
|
-
asynchronous HTTP request, please pass async_req=True
|
15885
|
-
>>> thread = api.get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get(session_command_id, start_line, end_line, async_req=True)
|
15886
|
-
>>> result = thread.get()
|
15887
|
-
|
15888
|
-
:param async_req bool: execute request asynchronously
|
15889
|
-
:param str session_command_id: (required)
|
15890
|
-
:param int start_line: (required)
|
15891
|
-
:param int end_line: (required)
|
15892
|
-
:param str extension:
|
15893
|
-
:param datetime start_time:
|
15894
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
15895
|
-
be returned without reading/decoding response
|
15896
|
-
data. Default is True.
|
15897
|
-
:param _request_timeout: timeout setting for this request. If one
|
15898
|
-
number provided, it will be total request
|
15899
|
-
timeout. It can also be a pair (tuple) of
|
15900
|
-
(connection, read) timeouts.
|
15901
|
-
:return: LogsoutputResponse
|
15902
|
-
If the method is called asynchronously,
|
15903
|
-
returns the request thread.
|
15904
|
-
"""
|
15905
|
-
kwargs['_return_http_data_only'] = True
|
15906
|
-
return self.get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get_with_http_info(session_command_id, start_line, end_line, **kwargs) # noqa: E501
|
15907
|
-
|
15908
|
-
def get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get_with_http_info(self, session_command_id, start_line, end_line, **kwargs): # noqa: E501
|
15909
|
-
"""Get Execution Logs # noqa: E501
|
15910
|
-
|
15911
|
-
This method makes a synchronous HTTP request by default. To make an
|
15912
|
-
asynchronous HTTP request, please pass async_req=True
|
15913
|
-
>>> thread = api.get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get_with_http_info(session_command_id, start_line, end_line, async_req=True)
|
15914
|
-
>>> result = thread.get()
|
15915
|
-
|
15916
|
-
:param async_req bool: execute request asynchronously
|
15917
|
-
:param str session_command_id: (required)
|
15918
|
-
:param int start_line: (required)
|
15919
|
-
:param int end_line: (required)
|
15920
|
-
:param str extension:
|
15921
|
-
:param datetime start_time:
|
15922
|
-
:param _return_http_data_only: response data without head status code
|
15923
|
-
and headers
|
15924
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
15925
|
-
be returned without reading/decoding response
|
15926
|
-
data. Default is True.
|
15927
|
-
:param _request_timeout: timeout setting for this request. If one
|
15928
|
-
number provided, it will be total request
|
15929
|
-
timeout. It can also be a pair (tuple) of
|
15930
|
-
(connection, read) timeouts.
|
15931
|
-
:return: tuple(LogsoutputResponse, status_code(int), headers(HTTPHeaderDict))
|
15932
|
-
If the method is called asynchronously,
|
15933
|
-
returns the request thread.
|
15934
|
-
"""
|
15935
|
-
|
15936
|
-
local_var_params = locals()
|
15937
|
-
|
15938
|
-
all_params = [
|
15939
|
-
'session_command_id',
|
15940
|
-
'start_line',
|
15941
|
-
'end_line',
|
15942
|
-
'extension',
|
15943
|
-
'start_time'
|
15944
|
-
]
|
15945
|
-
all_params.extend(
|
15946
|
-
[
|
15947
|
-
'async_req',
|
15948
|
-
'_return_http_data_only',
|
15949
|
-
'_preload_content',
|
15950
|
-
'_request_timeout'
|
15951
|
-
]
|
15952
|
-
)
|
15953
|
-
|
15954
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
15955
|
-
if key not in all_params:
|
15956
|
-
raise ApiTypeError(
|
15957
|
-
"Got an unexpected keyword argument '%s'"
|
15958
|
-
" to method get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get" % key
|
15959
|
-
)
|
15960
|
-
local_var_params[key] = val
|
15961
|
-
del local_var_params['kwargs']
|
15962
|
-
# verify the required parameter 'session_command_id' is set
|
15963
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
15964
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
15965
|
-
raise ApiValueError("Missing the required parameter `session_command_id` when calling `get_execution_logs_api_v2_session_commands_session_command_id_execution_logs_get`") # noqa: E501
|
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
|
15974
|
-
|
15975
|
-
collection_formats = {}
|
15976
|
-
|
15977
|
-
path_params = {}
|
15978
|
-
if 'session_command_id' in local_var_params:
|
15979
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
15980
|
-
|
15981
|
-
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
|
-
|
15991
|
-
header_params = {}
|
15992
|
-
|
15993
|
-
form_params = []
|
15994
|
-
local_var_files = {}
|
15995
|
-
|
15996
|
-
body_params = None
|
15997
|
-
# HTTP header `Accept`
|
15998
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
15999
|
-
['application/json']) # noqa: E501
|
16000
|
-
|
16001
|
-
# Authentication setting
|
16002
|
-
auth_settings = [] # noqa: E501
|
16003
|
-
|
16004
|
-
return self.api_client.call_api(
|
16005
|
-
'/api/v2/session_commands/{session_command_id}/execution_logs', 'GET',
|
16006
|
-
path_params,
|
16007
|
-
query_params,
|
16008
|
-
header_params,
|
16009
|
-
body=body_params,
|
16010
|
-
post_params=form_params,
|
16011
|
-
files=local_var_files,
|
16012
|
-
response_type='LogsoutputResponse', # noqa: E501
|
16013
|
-
auth_settings=auth_settings,
|
16014
|
-
async_req=local_var_params.get('async_req'),
|
16015
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
16016
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
16017
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
16018
|
-
collection_formats=collection_formats)
|
16019
|
-
|
16020
|
-
def get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get(self, session_command_id, **kwargs): # noqa: E501
|
16021
|
-
"""Get Execution Logs Archived # noqa: E501
|
16022
|
-
|
16023
|
-
This method makes a synchronous HTTP request by default. To make an
|
16024
|
-
asynchronous HTTP request, please pass async_req=True
|
16025
|
-
>>> thread = api.get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get(session_command_id, async_req=True)
|
16026
|
-
>>> result = thread.get()
|
16027
|
-
|
16028
|
-
:param async_req bool: execute request asynchronously
|
16029
|
-
:param str session_command_id: (required)
|
16030
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16031
|
-
be returned without reading/decoding response
|
16032
|
-
data. Default is True.
|
16033
|
-
:param _request_timeout: timeout setting for this request. If one
|
16034
|
-
number provided, it will be total request
|
16035
|
-
timeout. It can also be a pair (tuple) of
|
16036
|
-
(connection, read) timeouts.
|
16037
|
-
:return: ArchivedlogsinfoResponse
|
16038
|
-
If the method is called asynchronously,
|
16039
|
-
returns the request thread.
|
16040
|
-
"""
|
16041
|
-
kwargs['_return_http_data_only'] = True
|
16042
|
-
return self.get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get_with_http_info(session_command_id, **kwargs) # noqa: E501
|
16043
|
-
|
16044
|
-
def get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get_with_http_info(self, session_command_id, **kwargs): # noqa: E501
|
16045
|
-
"""Get Execution Logs Archived # noqa: E501
|
16046
|
-
|
16047
|
-
This method makes a synchronous HTTP request by default. To make an
|
16048
|
-
asynchronous HTTP request, please pass async_req=True
|
16049
|
-
>>> thread = api.get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get_with_http_info(session_command_id, async_req=True)
|
16050
|
-
>>> result = thread.get()
|
16051
|
-
|
16052
|
-
:param async_req bool: execute request asynchronously
|
16053
|
-
:param str session_command_id: (required)
|
16054
|
-
:param _return_http_data_only: response data without head status code
|
16055
|
-
and headers
|
16056
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
16057
|
-
be returned without reading/decoding response
|
16058
|
-
data. Default is True.
|
16059
|
-
:param _request_timeout: timeout setting for this request. If one
|
16060
|
-
number provided, it will be total request
|
16061
|
-
timeout. It can also be a pair (tuple) of
|
16062
|
-
(connection, read) timeouts.
|
16063
|
-
:return: tuple(ArchivedlogsinfoResponse, status_code(int), headers(HTTPHeaderDict))
|
16064
|
-
If the method is called asynchronously,
|
16065
|
-
returns the request thread.
|
16066
|
-
"""
|
16067
|
-
|
16068
|
-
local_var_params = locals()
|
16069
|
-
|
16070
|
-
all_params = [
|
16071
|
-
'session_command_id'
|
16072
|
-
]
|
16073
|
-
all_params.extend(
|
16074
|
-
[
|
16075
|
-
'async_req',
|
16076
|
-
'_return_http_data_only',
|
16077
|
-
'_preload_content',
|
16078
|
-
'_request_timeout'
|
16079
|
-
]
|
16080
|
-
)
|
16081
|
-
|
16082
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
16083
|
-
if key not in all_params:
|
16084
|
-
raise ApiTypeError(
|
16085
|
-
"Got an unexpected keyword argument '%s'"
|
16086
|
-
" to method get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get" % key
|
16087
|
-
)
|
16088
|
-
local_var_params[key] = val
|
16089
|
-
del local_var_params['kwargs']
|
16090
|
-
# verify the required parameter 'session_command_id' is set
|
16091
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
16092
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
16093
|
-
raise ApiValueError("Missing the required parameter `session_command_id` when calling `get_execution_logs_archived_api_v2_session_commands_session_command_id_execution_logs_archived_get`") # noqa: E501
|
16094
|
-
|
16095
|
-
collection_formats = {}
|
16096
|
-
|
16097
|
-
path_params = {}
|
16098
|
-
if 'session_command_id' in local_var_params:
|
16099
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
16100
|
-
|
16101
|
-
query_params = []
|
16102
|
-
|
16103
|
-
header_params = {}
|
16104
|
-
|
16105
|
-
form_params = []
|
16106
|
-
local_var_files = {}
|
16107
|
-
|
16108
|
-
body_params = None
|
16109
|
-
# HTTP header `Accept`
|
16110
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
16111
|
-
['application/json']) # noqa: E501
|
16112
|
-
|
16113
|
-
# Authentication setting
|
16114
|
-
auth_settings = [] # noqa: E501
|
16115
|
-
|
16116
|
-
return self.api_client.call_api(
|
16117
|
-
'/api/v2/session_commands/{session_command_id}/execution_logs_archived', 'GET',
|
16118
|
-
path_params,
|
16119
|
-
query_params,
|
16120
|
-
header_params,
|
16121
|
-
body=body_params,
|
16122
|
-
post_params=form_params,
|
16123
|
-
files=local_var_files,
|
16124
|
-
response_type='ArchivedlogsinfoResponse', # noqa: E501
|
16125
|
-
auth_settings=auth_settings,
|
16126
|
-
async_req=local_var_params.get('async_req'),
|
16127
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
16128
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
16129
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
16130
|
-
collection_formats=collection_formats)
|
16131
|
-
|
16132
15291
|
def get_instance_usage_budget_api_v2_instance_usage_budgets_instance_usage_budget_id_get(self, instance_usage_budget_id, **kwargs): # noqa: E501
|
16133
15292
|
"""Get Instance Usage Budget # noqa: E501
|
16134
15293
|
|
@@ -18231,235 +17390,6 @@ class DefaultApi(object):
|
|
18231
17390
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18232
17391
|
collection_formats=collection_formats)
|
18233
17392
|
|
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
17393
|
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
17394
|
"""Get Operator Metrics # noqa: E501
|
18465
17395
|
|
@@ -18722,120 +17652,6 @@ class DefaultApi(object):
|
|
18722
17652
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18723
17653
|
collection_formats=collection_formats)
|
18724
17654
|
|
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
17655
|
def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
|
18840
17656
|
"""Get Project # noqa: E501
|
18841
17657
|
|
@@ -19936,16 +18752,16 @@ class DefaultApi(object):
|
|
19936
18752
|
_request_timeout=local_var_params.get('_request_timeout'),
|
19937
18753
|
collection_formats=collection_formats)
|
19938
18754
|
|
19939
|
-
def
|
19940
|
-
"""Get Root Cause # noqa: E501
|
18755
|
+
def get_root_cause_for_job_api_v2_iknow_get(self, ha_job_id, **kwargs): # noqa: E501
|
18756
|
+
"""Get Root Cause For Job # noqa: E501
|
19941
18757
|
|
19942
18758
|
This method makes a synchronous HTTP request by default. To make an
|
19943
18759
|
asynchronous HTTP request, please pass async_req=True
|
19944
|
-
>>> thread = api.
|
18760
|
+
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get(ha_job_id, async_req=True)
|
19945
18761
|
>>> result = thread.get()
|
19946
18762
|
|
19947
18763
|
:param async_req bool: execute request asynchronously
|
19948
|
-
:param str
|
18764
|
+
:param str ha_job_id: (required)
|
19949
18765
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
19950
18766
|
be returned without reading/decoding response
|
19951
18767
|
data. Default is True.
|
@@ -19958,18 +18774,18 @@ class DefaultApi(object):
|
|
19958
18774
|
returns the request thread.
|
19959
18775
|
"""
|
19960
18776
|
kwargs['_return_http_data_only'] = True
|
19961
|
-
return self.
|
18777
|
+
return self.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, **kwargs) # noqa: E501
|
19962
18778
|
|
19963
|
-
def
|
19964
|
-
"""Get Root Cause # noqa: E501
|
18779
|
+
def get_root_cause_for_job_api_v2_iknow_get_with_http_info(self, ha_job_id, **kwargs): # noqa: E501
|
18780
|
+
"""Get Root Cause For Job # noqa: E501
|
19965
18781
|
|
19966
18782
|
This method makes a synchronous HTTP request by default. To make an
|
19967
18783
|
asynchronous HTTP request, please pass async_req=True
|
19968
|
-
>>> thread = api.
|
18784
|
+
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, async_req=True)
|
19969
18785
|
>>> result = thread.get()
|
19970
18786
|
|
19971
18787
|
:param async_req bool: execute request asynchronously
|
19972
|
-
:param str
|
18788
|
+
:param str ha_job_id: (required)
|
19973
18789
|
:param _return_http_data_only: response data without head status code
|
19974
18790
|
and headers
|
19975
18791
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -19987,7 +18803,7 @@ class DefaultApi(object):
|
|
19987
18803
|
local_var_params = locals()
|
19988
18804
|
|
19989
18805
|
all_params = [
|
19990
|
-
'
|
18806
|
+
'ha_job_id'
|
19991
18807
|
]
|
19992
18808
|
all_params.extend(
|
19993
18809
|
[
|
@@ -20002,22 +18818,22 @@ class DefaultApi(object):
|
|
20002
18818
|
if key not in all_params:
|
20003
18819
|
raise ApiTypeError(
|
20004
18820
|
"Got an unexpected keyword argument '%s'"
|
20005
|
-
" to method
|
18821
|
+
" to method get_root_cause_for_job_api_v2_iknow_get" % key
|
20006
18822
|
)
|
20007
18823
|
local_var_params[key] = val
|
20008
18824
|
del local_var_params['kwargs']
|
20009
|
-
# verify the required parameter '
|
20010
|
-
if self.api_client.client_side_validation and ('
|
20011
|
-
local_var_params['
|
20012
|
-
raise ApiValueError("Missing the required parameter `
|
18825
|
+
# verify the required parameter 'ha_job_id' is set
|
18826
|
+
if self.api_client.client_side_validation and ('ha_job_id' not in local_var_params or # noqa: E501
|
18827
|
+
local_var_params['ha_job_id'] is None): # noqa: E501
|
18828
|
+
raise ApiValueError("Missing the required parameter `ha_job_id` when calling `get_root_cause_for_job_api_v2_iknow_get`") # noqa: E501
|
20013
18829
|
|
20014
18830
|
collection_formats = {}
|
20015
18831
|
|
20016
18832
|
path_params = {}
|
20017
18833
|
|
20018
18834
|
query_params = []
|
20019
|
-
if '
|
20020
|
-
query_params.append(('
|
18835
|
+
if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
|
18836
|
+
query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
|
20021
18837
|
|
20022
18838
|
header_params = {}
|
20023
18839
|
|
@@ -20903,385 +19719,14 @@ class DefaultApi(object):
|
|
20903
19719
|
auth_settings = [] # noqa: E501
|
20904
19720
|
|
20905
19721
|
return self.api_client.call_api(
|
20906
|
-
'/api/v2/sessions/{session_id}', 'GET',
|
20907
|
-
path_params,
|
20908
|
-
query_params,
|
20909
|
-
header_params,
|
20910
|
-
body=body_params,
|
20911
|
-
post_params=form_params,
|
20912
|
-
files=local_var_files,
|
20913
|
-
response_type='SessionResponse', # noqa: E501
|
20914
|
-
auth_settings=auth_settings,
|
20915
|
-
async_req=local_var_params.get('async_req'),
|
20916
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
20917
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
20918
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
20919
|
-
collection_formats=collection_formats)
|
20920
|
-
|
20921
|
-
def get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get(self, session_id, session_command_id, **kwargs): # noqa: E501
|
20922
|
-
"""Get Session Command Logs Download # noqa: E501
|
20923
|
-
|
20924
|
-
This method makes a synchronous HTTP request by default. To make an
|
20925
|
-
asynchronous HTTP request, please pass async_req=True
|
20926
|
-
>>> thread = api.get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get(session_id, session_command_id, async_req=True)
|
20927
|
-
>>> result = thread.get()
|
20928
|
-
|
20929
|
-
:param async_req bool: execute request asynchronously
|
20930
|
-
:param str session_id: (required)
|
20931
|
-
:param str session_command_id: (required)
|
20932
|
-
:param bool use_bearer_token: Whether to use the more performant bearer-token based log downloading for GCP. Defaults to false for backwards compatibility.
|
20933
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
20934
|
-
be returned without reading/decoding response
|
20935
|
-
data. Default is True.
|
20936
|
-
:param _request_timeout: timeout setting for this request. If one
|
20937
|
-
number provided, it will be total request
|
20938
|
-
timeout. It can also be a pair (tuple) of
|
20939
|
-
(connection, read) timeouts.
|
20940
|
-
:return: LogdownloadresultResponse
|
20941
|
-
If the method is called asynchronously,
|
20942
|
-
returns the request thread.
|
20943
|
-
"""
|
20944
|
-
kwargs['_return_http_data_only'] = True
|
20945
|
-
return self.get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get_with_http_info(session_id, session_command_id, **kwargs) # noqa: E501
|
20946
|
-
|
20947
|
-
def get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get_with_http_info(self, session_id, session_command_id, **kwargs): # noqa: E501
|
20948
|
-
"""Get Session Command Logs Download # noqa: E501
|
20949
|
-
|
20950
|
-
This method makes a synchronous HTTP request by default. To make an
|
20951
|
-
asynchronous HTTP request, please pass async_req=True
|
20952
|
-
>>> thread = api.get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get_with_http_info(session_id, session_command_id, async_req=True)
|
20953
|
-
>>> result = thread.get()
|
20954
|
-
|
20955
|
-
:param async_req bool: execute request asynchronously
|
20956
|
-
:param str session_id: (required)
|
20957
|
-
:param str session_command_id: (required)
|
20958
|
-
:param bool use_bearer_token: Whether to use the more performant bearer-token based log downloading for GCP. Defaults to false for backwards compatibility.
|
20959
|
-
:param _return_http_data_only: response data without head status code
|
20960
|
-
and headers
|
20961
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
20962
|
-
be returned without reading/decoding response
|
20963
|
-
data. Default is True.
|
20964
|
-
:param _request_timeout: timeout setting for this request. If one
|
20965
|
-
number provided, it will be total request
|
20966
|
-
timeout. It can also be a pair (tuple) of
|
20967
|
-
(connection, read) timeouts.
|
20968
|
-
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
20969
|
-
If the method is called asynchronously,
|
20970
|
-
returns the request thread.
|
20971
|
-
"""
|
20972
|
-
|
20973
|
-
local_var_params = locals()
|
20974
|
-
|
20975
|
-
all_params = [
|
20976
|
-
'session_id',
|
20977
|
-
'session_command_id',
|
20978
|
-
'use_bearer_token'
|
20979
|
-
]
|
20980
|
-
all_params.extend(
|
20981
|
-
[
|
20982
|
-
'async_req',
|
20983
|
-
'_return_http_data_only',
|
20984
|
-
'_preload_content',
|
20985
|
-
'_request_timeout'
|
20986
|
-
]
|
20987
|
-
)
|
20988
|
-
|
20989
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
20990
|
-
if key not in all_params:
|
20991
|
-
raise ApiTypeError(
|
20992
|
-
"Got an unexpected keyword argument '%s'"
|
20993
|
-
" to method get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get" % key
|
20994
|
-
)
|
20995
|
-
local_var_params[key] = val
|
20996
|
-
del local_var_params['kwargs']
|
20997
|
-
# verify the required parameter 'session_id' is set
|
20998
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
20999
|
-
local_var_params['session_id'] is None): # noqa: E501
|
21000
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get`") # noqa: E501
|
21001
|
-
# verify the required parameter 'session_command_id' is set
|
21002
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
21003
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
21004
|
-
raise ApiValueError("Missing the required parameter `session_command_id` when calling `get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get`") # noqa: E501
|
21005
|
-
|
21006
|
-
collection_formats = {}
|
21007
|
-
|
21008
|
-
path_params = {}
|
21009
|
-
if 'session_id' in local_var_params:
|
21010
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21011
|
-
if 'session_command_id' in local_var_params:
|
21012
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
21013
|
-
|
21014
|
-
query_params = []
|
21015
|
-
if 'use_bearer_token' in local_var_params and local_var_params['use_bearer_token'] is not None: # noqa: E501
|
21016
|
-
query_params.append(('use_bearer_token', local_var_params['use_bearer_token'])) # noqa: E501
|
21017
|
-
|
21018
|
-
header_params = {}
|
21019
|
-
|
21020
|
-
form_params = []
|
21021
|
-
local_var_files = {}
|
21022
|
-
|
21023
|
-
body_params = None
|
21024
|
-
# HTTP header `Accept`
|
21025
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
21026
|
-
['application/json']) # noqa: E501
|
21027
|
-
|
21028
|
-
# Authentication setting
|
21029
|
-
auth_settings = [] # noqa: E501
|
21030
|
-
|
21031
|
-
return self.api_client.call_api(
|
21032
|
-
'/api/v2/logs/session_command_logs/{session_id}/{session_command_id}', 'GET',
|
21033
|
-
path_params,
|
21034
|
-
query_params,
|
21035
|
-
header_params,
|
21036
|
-
body=body_params,
|
21037
|
-
post_params=form_params,
|
21038
|
-
files=local_var_files,
|
21039
|
-
response_type='LogdownloadresultResponse', # noqa: E501
|
21040
|
-
auth_settings=auth_settings,
|
21041
|
-
async_req=local_var_params.get('async_req'),
|
21042
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
21043
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
21044
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
21045
|
-
collection_formats=collection_formats)
|
21046
|
-
|
21047
|
-
def get_session_commands_history_api_v2_session_commands_get(self, session_id, **kwargs): # noqa: E501
|
21048
|
-
"""Get Session Commands History # noqa: E501
|
21049
|
-
|
21050
|
-
List all commands that have been run on a session. # noqa: E501
|
21051
|
-
This method makes a synchronous HTTP request by default. To make an
|
21052
|
-
asynchronous HTTP request, please pass async_req=True
|
21053
|
-
>>> thread = api.get_session_commands_history_api_v2_session_commands_get(session_id, async_req=True)
|
21054
|
-
>>> result = thread.get()
|
21055
|
-
|
21056
|
-
:param async_req bool: execute request asynchronously
|
21057
|
-
:param str session_id: (required)
|
21058
|
-
:param str shell_command: shell command to filter by
|
21059
|
-
:param str paging_token:
|
21060
|
-
:param int count:
|
21061
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21062
|
-
be returned without reading/decoding response
|
21063
|
-
data. Default is True.
|
21064
|
-
:param _request_timeout: timeout setting for this request. If one
|
21065
|
-
number provided, it will be total request
|
21066
|
-
timeout. It can also be a pair (tuple) of
|
21067
|
-
(connection, read) timeouts.
|
21068
|
-
:return: SessioncommandListResponse
|
21069
|
-
If the method is called asynchronously,
|
21070
|
-
returns the request thread.
|
21071
|
-
"""
|
21072
|
-
kwargs['_return_http_data_only'] = True
|
21073
|
-
return self.get_session_commands_history_api_v2_session_commands_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21074
|
-
|
21075
|
-
def get_session_commands_history_api_v2_session_commands_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
21076
|
-
"""Get Session Commands History # noqa: E501
|
21077
|
-
|
21078
|
-
List all commands that have been run on a session. # noqa: E501
|
21079
|
-
This method makes a synchronous HTTP request by default. To make an
|
21080
|
-
asynchronous HTTP request, please pass async_req=True
|
21081
|
-
>>> thread = api.get_session_commands_history_api_v2_session_commands_get_with_http_info(session_id, async_req=True)
|
21082
|
-
>>> result = thread.get()
|
21083
|
-
|
21084
|
-
:param async_req bool: execute request asynchronously
|
21085
|
-
:param str session_id: (required)
|
21086
|
-
:param str shell_command: shell command to filter by
|
21087
|
-
:param str paging_token:
|
21088
|
-
:param int count:
|
21089
|
-
:param _return_http_data_only: response data without head status code
|
21090
|
-
and headers
|
21091
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21092
|
-
be returned without reading/decoding response
|
21093
|
-
data. Default is True.
|
21094
|
-
:param _request_timeout: timeout setting for this request. If one
|
21095
|
-
number provided, it will be total request
|
21096
|
-
timeout. It can also be a pair (tuple) of
|
21097
|
-
(connection, read) timeouts.
|
21098
|
-
:return: tuple(SessioncommandListResponse, status_code(int), headers(HTTPHeaderDict))
|
21099
|
-
If the method is called asynchronously,
|
21100
|
-
returns the request thread.
|
21101
|
-
"""
|
21102
|
-
|
21103
|
-
local_var_params = locals()
|
21104
|
-
|
21105
|
-
all_params = [
|
21106
|
-
'session_id',
|
21107
|
-
'shell_command',
|
21108
|
-
'paging_token',
|
21109
|
-
'count'
|
21110
|
-
]
|
21111
|
-
all_params.extend(
|
21112
|
-
[
|
21113
|
-
'async_req',
|
21114
|
-
'_return_http_data_only',
|
21115
|
-
'_preload_content',
|
21116
|
-
'_request_timeout'
|
21117
|
-
]
|
21118
|
-
)
|
21119
|
-
|
21120
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
21121
|
-
if key not in all_params:
|
21122
|
-
raise ApiTypeError(
|
21123
|
-
"Got an unexpected keyword argument '%s'"
|
21124
|
-
" to method get_session_commands_history_api_v2_session_commands_get" % key
|
21125
|
-
)
|
21126
|
-
local_var_params[key] = val
|
21127
|
-
del local_var_params['kwargs']
|
21128
|
-
# verify the required parameter 'session_id' is set
|
21129
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21130
|
-
local_var_params['session_id'] is None): # noqa: E501
|
21131
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_commands_history_api_v2_session_commands_get`") # noqa: E501
|
21132
|
-
|
21133
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
21134
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `get_session_commands_history_api_v2_session_commands_get`, must be a value less than or equal to `50`") # noqa: E501
|
21135
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
21136
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `get_session_commands_history_api_v2_session_commands_get`, must be a value greater than or equal to `0`") # noqa: E501
|
21137
|
-
collection_formats = {}
|
21138
|
-
|
21139
|
-
path_params = {}
|
21140
|
-
|
21141
|
-
query_params = []
|
21142
|
-
if 'session_id' in local_var_params and local_var_params['session_id'] is not None: # noqa: E501
|
21143
|
-
query_params.append(('session_id', local_var_params['session_id'])) # noqa: E501
|
21144
|
-
if 'shell_command' in local_var_params and local_var_params['shell_command'] is not None: # noqa: E501
|
21145
|
-
query_params.append(('shell_command', local_var_params['shell_command'])) # noqa: E501
|
21146
|
-
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
21147
|
-
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
21148
|
-
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
21149
|
-
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
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/session_commands/', '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='SessioncommandListResponse', # 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
|
-
def get_session_details_api_v2_sessions_session_id_details_get(self, session_id, **kwargs): # noqa: E501
|
21181
|
-
"""Get Session Details # noqa: E501
|
21182
|
-
|
21183
|
-
This method makes a synchronous HTTP request by default. To make an
|
21184
|
-
asynchronous HTTP request, please pass async_req=True
|
21185
|
-
>>> thread = api.get_session_details_api_v2_sessions_session_id_details_get(session_id, async_req=True)
|
21186
|
-
>>> result = thread.get()
|
21187
|
-
|
21188
|
-
:param async_req bool: execute request asynchronously
|
21189
|
-
:param str session_id: (required)
|
21190
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21191
|
-
be returned without reading/decoding response
|
21192
|
-
data. Default is True.
|
21193
|
-
:param _request_timeout: timeout setting for this request. If one
|
21194
|
-
number provided, it will be total request
|
21195
|
-
timeout. It can also be a pair (tuple) of
|
21196
|
-
(connection, read) timeouts.
|
21197
|
-
:return: SessiondetailsResponse
|
21198
|
-
If the method is called asynchronously,
|
21199
|
-
returns the request thread.
|
21200
|
-
"""
|
21201
|
-
kwargs['_return_http_data_only'] = True
|
21202
|
-
return self.get_session_details_api_v2_sessions_session_id_details_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21203
|
-
|
21204
|
-
def get_session_details_api_v2_sessions_session_id_details_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
21205
|
-
"""Get Session Details # noqa: E501
|
21206
|
-
|
21207
|
-
This method makes a synchronous HTTP request by default. To make an
|
21208
|
-
asynchronous HTTP request, please pass async_req=True
|
21209
|
-
>>> thread = api.get_session_details_api_v2_sessions_session_id_details_get_with_http_info(session_id, async_req=True)
|
21210
|
-
>>> result = thread.get()
|
21211
|
-
|
21212
|
-
:param async_req bool: execute request asynchronously
|
21213
|
-
:param str session_id: (required)
|
21214
|
-
:param _return_http_data_only: response data without head status code
|
21215
|
-
and headers
|
21216
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21217
|
-
be returned without reading/decoding response
|
21218
|
-
data. Default is True.
|
21219
|
-
:param _request_timeout: timeout setting for this request. If one
|
21220
|
-
number provided, it will be total request
|
21221
|
-
timeout. It can also be a pair (tuple) of
|
21222
|
-
(connection, read) timeouts.
|
21223
|
-
:return: tuple(SessiondetailsResponse, status_code(int), headers(HTTPHeaderDict))
|
21224
|
-
If the method is called asynchronously,
|
21225
|
-
returns the request thread.
|
21226
|
-
"""
|
21227
|
-
|
21228
|
-
local_var_params = locals()
|
21229
|
-
|
21230
|
-
all_params = [
|
21231
|
-
'session_id'
|
21232
|
-
]
|
21233
|
-
all_params.extend(
|
21234
|
-
[
|
21235
|
-
'async_req',
|
21236
|
-
'_return_http_data_only',
|
21237
|
-
'_preload_content',
|
21238
|
-
'_request_timeout'
|
21239
|
-
]
|
21240
|
-
)
|
21241
|
-
|
21242
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
21243
|
-
if key not in all_params:
|
21244
|
-
raise ApiTypeError(
|
21245
|
-
"Got an unexpected keyword argument '%s'"
|
21246
|
-
" to method get_session_details_api_v2_sessions_session_id_details_get" % key
|
21247
|
-
)
|
21248
|
-
local_var_params[key] = val
|
21249
|
-
del local_var_params['kwargs']
|
21250
|
-
# verify the required parameter 'session_id' is set
|
21251
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21252
|
-
local_var_params['session_id'] is None): # noqa: E501
|
21253
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_details_api_v2_sessions_session_id_details_get`") # noqa: E501
|
21254
|
-
|
21255
|
-
collection_formats = {}
|
21256
|
-
|
21257
|
-
path_params = {}
|
21258
|
-
if 'session_id' in local_var_params:
|
21259
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21260
|
-
|
21261
|
-
query_params = []
|
21262
|
-
|
21263
|
-
header_params = {}
|
21264
|
-
|
21265
|
-
form_params = []
|
21266
|
-
local_var_files = {}
|
21267
|
-
|
21268
|
-
body_params = None
|
21269
|
-
# HTTP header `Accept`
|
21270
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
21271
|
-
['application/json']) # noqa: E501
|
21272
|
-
|
21273
|
-
# Authentication setting
|
21274
|
-
auth_settings = [] # noqa: E501
|
21275
|
-
|
21276
|
-
return self.api_client.call_api(
|
21277
|
-
'/api/v2/sessions/{session_id}/details', 'GET',
|
19722
|
+
'/api/v2/sessions/{session_id}', 'GET',
|
21278
19723
|
path_params,
|
21279
19724
|
query_params,
|
21280
19725
|
header_params,
|
21281
19726
|
body=body_params,
|
21282
19727
|
post_params=form_params,
|
21283
19728
|
files=local_var_files,
|
21284
|
-
response_type='
|
19729
|
+
response_type='SessionResponse', # noqa: E501
|
21285
19730
|
auth_settings=auth_settings,
|
21286
19731
|
async_req=local_var_params.get('async_req'),
|
21287
19732
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -21289,17 +19734,18 @@ class DefaultApi(object):
|
|
21289
19734
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21290
19735
|
collection_formats=collection_formats)
|
21291
19736
|
|
21292
|
-
def
|
21293
|
-
"""Get Session
|
19737
|
+
def get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get(self, session_id, session_command_id, **kwargs): # noqa: E501
|
19738
|
+
"""Get Session Command Logs Download # noqa: E501
|
21294
19739
|
|
21295
|
-
Fetches the ip of the head node of the session. # noqa: E501
|
21296
19740
|
This method makes a synchronous HTTP request by default. To make an
|
21297
19741
|
asynchronous HTTP request, please pass async_req=True
|
21298
|
-
>>> thread = api.
|
19742
|
+
>>> thread = api.get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get(session_id, session_command_id, async_req=True)
|
21299
19743
|
>>> result = thread.get()
|
21300
19744
|
|
21301
19745
|
:param async_req bool: execute request asynchronously
|
21302
19746
|
:param str session_id: (required)
|
19747
|
+
:param str session_command_id: (required)
|
19748
|
+
:param bool use_bearer_token: Whether to use the more performant bearer-token based log downloading for GCP. Defaults to false for backwards compatibility.
|
21303
19749
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21304
19750
|
be returned without reading/decoding response
|
21305
19751
|
data. Default is True.
|
@@ -21307,24 +19753,25 @@ class DefaultApi(object):
|
|
21307
19753
|
number provided, it will be total request
|
21308
19754
|
timeout. It can also be a pair (tuple) of
|
21309
19755
|
(connection, read) timeouts.
|
21310
|
-
:return:
|
19756
|
+
:return: LogdownloadresultResponse
|
21311
19757
|
If the method is called asynchronously,
|
21312
19758
|
returns the request thread.
|
21313
19759
|
"""
|
21314
19760
|
kwargs['_return_http_data_only'] = True
|
21315
|
-
return self.
|
19761
|
+
return self.get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get_with_http_info(session_id, session_command_id, **kwargs) # noqa: E501
|
21316
19762
|
|
21317
|
-
def
|
21318
|
-
"""Get Session
|
19763
|
+
def get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get_with_http_info(self, session_id, session_command_id, **kwargs): # noqa: E501
|
19764
|
+
"""Get Session Command Logs Download # noqa: E501
|
21319
19765
|
|
21320
|
-
Fetches the ip of the head node of the session. # noqa: E501
|
21321
19766
|
This method makes a synchronous HTTP request by default. To make an
|
21322
19767
|
asynchronous HTTP request, please pass async_req=True
|
21323
|
-
>>> thread = api.
|
19768
|
+
>>> thread = api.get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get_with_http_info(session_id, session_command_id, async_req=True)
|
21324
19769
|
>>> result = thread.get()
|
21325
19770
|
|
21326
19771
|
:param async_req bool: execute request asynchronously
|
21327
19772
|
:param str session_id: (required)
|
19773
|
+
:param str session_command_id: (required)
|
19774
|
+
:param bool use_bearer_token: Whether to use the more performant bearer-token based log downloading for GCP. Defaults to false for backwards compatibility.
|
21328
19775
|
:param _return_http_data_only: response data without head status code
|
21329
19776
|
and headers
|
21330
19777
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -21334,7 +19781,7 @@ class DefaultApi(object):
|
|
21334
19781
|
number provided, it will be total request
|
21335
19782
|
timeout. It can also be a pair (tuple) of
|
21336
19783
|
(connection, read) timeouts.
|
21337
|
-
:return: tuple(
|
19784
|
+
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
21338
19785
|
If the method is called asynchronously,
|
21339
19786
|
returns the request thread.
|
21340
19787
|
"""
|
@@ -21342,7 +19789,9 @@ class DefaultApi(object):
|
|
21342
19789
|
local_var_params = locals()
|
21343
19790
|
|
21344
19791
|
all_params = [
|
21345
|
-
'session_id'
|
19792
|
+
'session_id',
|
19793
|
+
'session_command_id',
|
19794
|
+
'use_bearer_token'
|
21346
19795
|
]
|
21347
19796
|
all_params.extend(
|
21348
19797
|
[
|
@@ -21357,22 +19806,30 @@ class DefaultApi(object):
|
|
21357
19806
|
if key not in all_params:
|
21358
19807
|
raise ApiTypeError(
|
21359
19808
|
"Got an unexpected keyword argument '%s'"
|
21360
|
-
" to method
|
19809
|
+
" to method get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get" % key
|
21361
19810
|
)
|
21362
19811
|
local_var_params[key] = val
|
21363
19812
|
del local_var_params['kwargs']
|
21364
19813
|
# verify the required parameter 'session_id' is set
|
21365
19814
|
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21366
19815
|
local_var_params['session_id'] is None): # noqa: E501
|
21367
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `
|
19816
|
+
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get`") # noqa: E501
|
19817
|
+
# verify the required parameter 'session_command_id' is set
|
19818
|
+
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
19819
|
+
local_var_params['session_command_id'] is None): # noqa: E501
|
19820
|
+
raise ApiValueError("Missing the required parameter `session_command_id` when calling `get_session_command_logs_download_api_v2_logs_session_command_logs_session_id_session_command_id_get`") # noqa: E501
|
21368
19821
|
|
21369
19822
|
collection_formats = {}
|
21370
19823
|
|
21371
19824
|
path_params = {}
|
21372
19825
|
if 'session_id' in local_var_params:
|
21373
19826
|
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
19827
|
+
if 'session_command_id' in local_var_params:
|
19828
|
+
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
21374
19829
|
|
21375
19830
|
query_params = []
|
19831
|
+
if 'use_bearer_token' in local_var_params and local_var_params['use_bearer_token'] is not None: # noqa: E501
|
19832
|
+
query_params.append(('use_bearer_token', local_var_params['use_bearer_token'])) # noqa: E501
|
21376
19833
|
|
21377
19834
|
header_params = {}
|
21378
19835
|
|
@@ -21388,14 +19845,14 @@ class DefaultApi(object):
|
|
21388
19845
|
auth_settings = [] # noqa: E501
|
21389
19846
|
|
21390
19847
|
return self.api_client.call_api(
|
21391
|
-
'/api/v2/
|
19848
|
+
'/api/v2/logs/session_command_logs/{session_id}/{session_command_id}', 'GET',
|
21392
19849
|
path_params,
|
21393
19850
|
query_params,
|
21394
19851
|
header_params,
|
21395
19852
|
body=body_params,
|
21396
19853
|
post_params=form_params,
|
21397
19854
|
files=local_var_files,
|
21398
|
-
response_type='
|
19855
|
+
response_type='LogdownloadresultResponse', # noqa: E501
|
21399
19856
|
auth_settings=auth_settings,
|
21400
19857
|
async_req=local_var_params.get('async_req'),
|
21401
19858
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -21403,17 +19860,18 @@ class DefaultApi(object):
|
|
21403
19860
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21404
19861
|
collection_formats=collection_formats)
|
21405
19862
|
|
21406
|
-
def
|
21407
|
-
"""Get Session History # noqa: E501
|
19863
|
+
def get_session_commands_history_api_v2_session_commands_get(self, session_id, **kwargs): # noqa: E501
|
19864
|
+
"""Get Session Commands History # noqa: E501
|
21408
19865
|
|
21409
|
-
|
19866
|
+
List all commands that have been run on a session. # noqa: E501
|
21410
19867
|
This method makes a synchronous HTTP request by default. To make an
|
21411
19868
|
asynchronous HTTP request, please pass async_req=True
|
21412
|
-
>>> thread = api.
|
19869
|
+
>>> thread = api.get_session_commands_history_api_v2_session_commands_get(session_id, async_req=True)
|
21413
19870
|
>>> result = thread.get()
|
21414
19871
|
|
21415
19872
|
:param async_req bool: execute request asynchronously
|
21416
19873
|
:param str session_id: (required)
|
19874
|
+
:param str shell_command: shell command to filter by
|
21417
19875
|
:param str paging_token:
|
21418
19876
|
:param int count:
|
21419
19877
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -21423,24 +19881,25 @@ class DefaultApi(object):
|
|
21423
19881
|
number provided, it will be total request
|
21424
19882
|
timeout. It can also be a pair (tuple) of
|
21425
19883
|
(connection, read) timeouts.
|
21426
|
-
:return:
|
19884
|
+
:return: SessioncommandListResponse
|
21427
19885
|
If the method is called asynchronously,
|
21428
19886
|
returns the request thread.
|
21429
19887
|
"""
|
21430
19888
|
kwargs['_return_http_data_only'] = True
|
21431
|
-
return self.
|
19889
|
+
return self.get_session_commands_history_api_v2_session_commands_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21432
19890
|
|
21433
|
-
def
|
21434
|
-
"""Get Session History # noqa: E501
|
19891
|
+
def get_session_commands_history_api_v2_session_commands_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
19892
|
+
"""Get Session Commands History # noqa: E501
|
21435
19893
|
|
21436
|
-
|
19894
|
+
List all commands that have been run on a session. # noqa: E501
|
21437
19895
|
This method makes a synchronous HTTP request by default. To make an
|
21438
19896
|
asynchronous HTTP request, please pass async_req=True
|
21439
|
-
>>> thread = api.
|
19897
|
+
>>> thread = api.get_session_commands_history_api_v2_session_commands_get_with_http_info(session_id, async_req=True)
|
21440
19898
|
>>> result = thread.get()
|
21441
19899
|
|
21442
19900
|
:param async_req bool: execute request asynchronously
|
21443
19901
|
:param str session_id: (required)
|
19902
|
+
:param str shell_command: shell command to filter by
|
21444
19903
|
:param str paging_token:
|
21445
19904
|
:param int count:
|
21446
19905
|
:param _return_http_data_only: response data without head status code
|
@@ -21452,7 +19911,7 @@ class DefaultApi(object):
|
|
21452
19911
|
number provided, it will be total request
|
21453
19912
|
timeout. It can also be a pair (tuple) of
|
21454
19913
|
(connection, read) timeouts.
|
21455
|
-
:return: tuple(
|
19914
|
+
:return: tuple(SessioncommandListResponse, status_code(int), headers(HTTPHeaderDict))
|
21456
19915
|
If the method is called asynchronously,
|
21457
19916
|
returns the request thread.
|
21458
19917
|
"""
|
@@ -21461,6 +19920,7 @@ class DefaultApi(object):
|
|
21461
19920
|
|
21462
19921
|
all_params = [
|
21463
19922
|
'session_id',
|
19923
|
+
'shell_command',
|
21464
19924
|
'paging_token',
|
21465
19925
|
'count'
|
21466
19926
|
]
|
@@ -21477,26 +19937,28 @@ class DefaultApi(object):
|
|
21477
19937
|
if key not in all_params:
|
21478
19938
|
raise ApiTypeError(
|
21479
19939
|
"Got an unexpected keyword argument '%s'"
|
21480
|
-
" to method
|
19940
|
+
" to method get_session_commands_history_api_v2_session_commands_get" % key
|
21481
19941
|
)
|
21482
19942
|
local_var_params[key] = val
|
21483
19943
|
del local_var_params['kwargs']
|
21484
19944
|
# verify the required parameter 'session_id' is set
|
21485
19945
|
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21486
19946
|
local_var_params['session_id'] is None): # noqa: E501
|
21487
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `
|
19947
|
+
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_commands_history_api_v2_session_commands_get`") # noqa: E501
|
21488
19948
|
|
21489
19949
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
21490
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `
|
19950
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `get_session_commands_history_api_v2_session_commands_get`, must be a value less than or equal to `50`") # noqa: E501
|
21491
19951
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
21492
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `
|
19952
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `get_session_commands_history_api_v2_session_commands_get`, must be a value greater than or equal to `0`") # noqa: E501
|
21493
19953
|
collection_formats = {}
|
21494
19954
|
|
21495
19955
|
path_params = {}
|
21496
|
-
if 'session_id' in local_var_params:
|
21497
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21498
19956
|
|
21499
19957
|
query_params = []
|
19958
|
+
if 'session_id' in local_var_params and local_var_params['session_id'] is not None: # noqa: E501
|
19959
|
+
query_params.append(('session_id', local_var_params['session_id'])) # noqa: E501
|
19960
|
+
if 'shell_command' in local_var_params and local_var_params['shell_command'] is not None: # noqa: E501
|
19961
|
+
query_params.append(('shell_command', local_var_params['shell_command'])) # noqa: E501
|
21500
19962
|
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
21501
19963
|
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
21502
19964
|
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
@@ -21516,14 +19978,14 @@ class DefaultApi(object):
|
|
21516
19978
|
auth_settings = [] # noqa: E501
|
21517
19979
|
|
21518
19980
|
return self.api_client.call_api(
|
21519
|
-
'/api/v2/
|
19981
|
+
'/api/v2/session_commands/', 'GET',
|
21520
19982
|
path_params,
|
21521
19983
|
query_params,
|
21522
19984
|
header_params,
|
21523
19985
|
body=body_params,
|
21524
19986
|
post_params=form_params,
|
21525
19987
|
files=local_var_files,
|
21526
|
-
response_type='
|
19988
|
+
response_type='SessioncommandListResponse', # noqa: E501
|
21527
19989
|
auth_settings=auth_settings,
|
21528
19990
|
async_req=local_var_params.get('async_req'),
|
21529
19991
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -21531,13 +19993,13 @@ class DefaultApi(object):
|
|
21531
19993
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21532
19994
|
collection_formats=collection_formats)
|
21533
19995
|
|
21534
|
-
def
|
21535
|
-
"""Get Session
|
19996
|
+
def get_session_head_ip_api_v2_sessions_session_id_head_ip_get(self, session_id, **kwargs): # noqa: E501
|
19997
|
+
"""Get Session Head Ip # noqa: E501
|
21536
19998
|
|
21537
|
-
|
19999
|
+
Fetches the ip of the head node of the session. # noqa: E501
|
21538
20000
|
This method makes a synchronous HTTP request by default. To make an
|
21539
20001
|
asynchronous HTTP request, please pass async_req=True
|
21540
|
-
>>> thread = api.
|
20002
|
+
>>> thread = api.get_session_head_ip_api_v2_sessions_session_id_head_ip_get(session_id, async_req=True)
|
21541
20003
|
>>> result = thread.get()
|
21542
20004
|
|
21543
20005
|
:param async_req bool: execute request asynchronously
|
@@ -21549,20 +20011,20 @@ class DefaultApi(object):
|
|
21549
20011
|
number provided, it will be total request
|
21550
20012
|
timeout. It can also be a pair (tuple) of
|
21551
20013
|
(connection, read) timeouts.
|
21552
|
-
:return:
|
20014
|
+
:return: HeadipResponse
|
21553
20015
|
If the method is called asynchronously,
|
21554
20016
|
returns the request thread.
|
21555
20017
|
"""
|
21556
20018
|
kwargs['_return_http_data_only'] = True
|
21557
|
-
return self.
|
20019
|
+
return self.get_session_head_ip_api_v2_sessions_session_id_head_ip_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21558
20020
|
|
21559
|
-
def
|
21560
|
-
"""Get Session
|
20021
|
+
def get_session_head_ip_api_v2_sessions_session_id_head_ip_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
20022
|
+
"""Get Session Head Ip # noqa: E501
|
21561
20023
|
|
21562
|
-
|
20024
|
+
Fetches the ip of the head node of the session. # noqa: E501
|
21563
20025
|
This method makes a synchronous HTTP request by default. To make an
|
21564
20026
|
asynchronous HTTP request, please pass async_req=True
|
21565
|
-
>>> thread = api.
|
20027
|
+
>>> thread = api.get_session_head_ip_api_v2_sessions_session_id_head_ip_get_with_http_info(session_id, async_req=True)
|
21566
20028
|
>>> result = thread.get()
|
21567
20029
|
|
21568
20030
|
:param async_req bool: execute request asynchronously
|
@@ -21576,7 +20038,7 @@ class DefaultApi(object):
|
|
21576
20038
|
number provided, it will be total request
|
21577
20039
|
timeout. It can also be a pair (tuple) of
|
21578
20040
|
(connection, read) timeouts.
|
21579
|
-
:return: tuple(
|
20041
|
+
:return: tuple(HeadipResponse, status_code(int), headers(HTTPHeaderDict))
|
21580
20042
|
If the method is called asynchronously,
|
21581
20043
|
returns the request thread.
|
21582
20044
|
"""
|
@@ -21599,14 +20061,14 @@ class DefaultApi(object):
|
|
21599
20061
|
if key not in all_params:
|
21600
20062
|
raise ApiTypeError(
|
21601
20063
|
"Got an unexpected keyword argument '%s'"
|
21602
|
-
" to method
|
20064
|
+
" to method get_session_head_ip_api_v2_sessions_session_id_head_ip_get" % key
|
21603
20065
|
)
|
21604
20066
|
local_var_params[key] = val
|
21605
20067
|
del local_var_params['kwargs']
|
21606
20068
|
# verify the required parameter 'session_id' is set
|
21607
20069
|
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21608
20070
|
local_var_params['session_id'] is None): # noqa: E501
|
21609
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `
|
20071
|
+
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_head_ip_api_v2_sessions_session_id_head_ip_get`") # noqa: E501
|
21610
20072
|
|
21611
20073
|
collection_formats = {}
|
21612
20074
|
|
@@ -21630,14 +20092,14 @@ class DefaultApi(object):
|
|
21630
20092
|
auth_settings = [] # noqa: E501
|
21631
20093
|
|
21632
20094
|
return self.api_client.call_api(
|
21633
|
-
'/api/v2/sessions/{session_id}/
|
20095
|
+
'/api/v2/sessions/{session_id}/head_ip', 'GET',
|
21634
20096
|
path_params,
|
21635
20097
|
query_params,
|
21636
20098
|
header_params,
|
21637
20099
|
body=body_params,
|
21638
20100
|
post_params=form_params,
|
21639
20101
|
files=local_var_files,
|
21640
|
-
response_type='
|
20102
|
+
response_type='HeadipResponse', # noqa: E501
|
21641
20103
|
auth_settings=auth_settings,
|
21642
20104
|
async_req=local_var_params.get('async_req'),
|
21643
20105
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -21645,20 +20107,17 @@ class DefaultApi(object):
|
|
21645
20107
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21646
20108
|
collection_formats=collection_formats)
|
21647
20109
|
|
21648
|
-
def
|
21649
|
-
"""Get
|
20110
|
+
def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(self, session_id, **kwargs): # noqa: E501
|
20111
|
+
"""Get Session Ssh Key # noqa: E501
|
21650
20112
|
|
20113
|
+
Download SSH needed to log into a given session. # noqa: E501
|
21651
20114
|
This method makes a synchronous HTTP request by default. To make an
|
21652
20115
|
asynchronous HTTP request, please pass async_req=True
|
21653
|
-
>>> thread = api.
|
20116
|
+
>>> thread = api.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get(session_id, async_req=True)
|
21654
20117
|
>>> result = thread.get()
|
21655
20118
|
|
21656
20119
|
:param async_req bool: execute request asynchronously
|
21657
20120
|
:param str session_id: (required)
|
21658
|
-
:param int start_line: (required)
|
21659
|
-
:param int end_line: (required)
|
21660
|
-
:param str extension:
|
21661
|
-
:param datetime start_time:
|
21662
20121
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21663
20122
|
be returned without reading/decoding response
|
21664
20123
|
data. Default is True.
|
@@ -21666,27 +20125,24 @@ class DefaultApi(object):
|
|
21666
20125
|
number provided, it will be total request
|
21667
20126
|
timeout. It can also be a pair (tuple) of
|
21668
20127
|
(connection, read) timeouts.
|
21669
|
-
:return:
|
20128
|
+
:return: SessionsshkeyResponse
|
21670
20129
|
If the method is called asynchronously,
|
21671
20130
|
returns the request thread.
|
21672
20131
|
"""
|
21673
20132
|
kwargs['_return_http_data_only'] = True
|
21674
|
-
return self.
|
20133
|
+
return self.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(session_id, **kwargs) # noqa: E501
|
21675
20134
|
|
21676
|
-
def
|
21677
|
-
"""Get
|
20135
|
+
def get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
20136
|
+
"""Get Session Ssh Key # noqa: E501
|
21678
20137
|
|
20138
|
+
Download SSH needed to log into a given session. # noqa: E501
|
21679
20139
|
This method makes a synchronous HTTP request by default. To make an
|
21680
20140
|
asynchronous HTTP request, please pass async_req=True
|
21681
|
-
>>> thread = api.
|
20141
|
+
>>> thread = api.get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get_with_http_info(session_id, async_req=True)
|
21682
20142
|
>>> result = thread.get()
|
21683
20143
|
|
21684
20144
|
:param async_req bool: execute request asynchronously
|
21685
20145
|
:param str session_id: (required)
|
21686
|
-
:param int start_line: (required)
|
21687
|
-
:param int end_line: (required)
|
21688
|
-
:param str extension:
|
21689
|
-
:param datetime start_time:
|
21690
20146
|
:param _return_http_data_only: response data without head status code
|
21691
20147
|
and headers
|
21692
20148
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -21696,7 +20152,7 @@ class DefaultApi(object):
|
|
21696
20152
|
number provided, it will be total request
|
21697
20153
|
timeout. It can also be a pair (tuple) of
|
21698
20154
|
(connection, read) timeouts.
|
21699
|
-
:return: tuple(
|
20155
|
+
:return: tuple(SessionsshkeyResponse, status_code(int), headers(HTTPHeaderDict))
|
21700
20156
|
If the method is called asynchronously,
|
21701
20157
|
returns the request thread.
|
21702
20158
|
"""
|
@@ -21704,11 +20160,7 @@ class DefaultApi(object):
|
|
21704
20160
|
local_var_params = locals()
|
21705
20161
|
|
21706
20162
|
all_params = [
|
21707
|
-
'session_id'
|
21708
|
-
'start_line',
|
21709
|
-
'end_line',
|
21710
|
-
'extension',
|
21711
|
-
'start_time'
|
20163
|
+
'session_id'
|
21712
20164
|
]
|
21713
20165
|
all_params.extend(
|
21714
20166
|
[
|
@@ -21723,22 +20175,14 @@ class DefaultApi(object):
|
|
21723
20175
|
if key not in all_params:
|
21724
20176
|
raise ApiTypeError(
|
21725
20177
|
"Got an unexpected keyword argument '%s'"
|
21726
|
-
" to method
|
20178
|
+
" to method get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get" % key
|
21727
20179
|
)
|
21728
20180
|
local_var_params[key] = val
|
21729
20181
|
del local_var_params['kwargs']
|
21730
20182
|
# verify the required parameter 'session_id' is set
|
21731
20183
|
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21732
20184
|
local_var_params['session_id'] is None): # noqa: E501
|
21733
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `
|
21734
|
-
# verify the required parameter 'start_line' is set
|
21735
|
-
if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
|
21736
|
-
local_var_params['start_line'] is None): # noqa: E501
|
21737
|
-
raise ApiValueError("Missing the required parameter `start_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
|
21738
|
-
# verify the required parameter 'end_line' is set
|
21739
|
-
if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
|
21740
|
-
local_var_params['end_line'] is None): # noqa: E501
|
21741
|
-
raise ApiValueError("Missing the required parameter `end_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
|
20185
|
+
raise ApiValueError("Missing the required parameter `session_id` when calling `get_session_ssh_key_api_v2_sessions_session_id_ssh_key_get`") # noqa: E501
|
21742
20186
|
|
21743
20187
|
collection_formats = {}
|
21744
20188
|
|
@@ -21747,14 +20191,6 @@ class DefaultApi(object):
|
|
21747
20191
|
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21748
20192
|
|
21749
20193
|
query_params = []
|
21750
|
-
if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
|
21751
|
-
query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
|
21752
|
-
if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
|
21753
|
-
query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
|
21754
|
-
if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
|
21755
|
-
query_params.append(('extension', local_var_params['extension'])) # noqa: E501
|
21756
|
-
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
21757
|
-
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
21758
20194
|
|
21759
20195
|
header_params = {}
|
21760
20196
|
|
@@ -21770,14 +20206,14 @@ class DefaultApi(object):
|
|
21770
20206
|
auth_settings = [] # noqa: E501
|
21771
20207
|
|
21772
20208
|
return self.api_client.call_api(
|
21773
|
-
'/api/v2/sessions/{session_id}/
|
20209
|
+
'/api/v2/sessions/{session_id}/ssh_key', 'GET',
|
21774
20210
|
path_params,
|
21775
20211
|
query_params,
|
21776
20212
|
header_params,
|
21777
20213
|
body=body_params,
|
21778
20214
|
post_params=form_params,
|
21779
20215
|
files=local_var_files,
|
21780
|
-
response_type='
|
20216
|
+
response_type='SessionsshkeyResponse', # noqa: E501
|
21781
20217
|
auth_settings=auth_settings,
|
21782
20218
|
async_req=local_var_params.get('async_req'),
|
21783
20219
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -21785,16 +20221,20 @@ class DefaultApi(object):
|
|
21785
20221
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21786
20222
|
collection_formats=collection_formats)
|
21787
20223
|
|
21788
|
-
def
|
21789
|
-
"""Get Startup Logs
|
20224
|
+
def get_startup_logs_api_v2_sessions_session_id_startup_logs_get(self, session_id, start_line, end_line, **kwargs): # noqa: E501
|
20225
|
+
"""Get Startup Logs # noqa: E501
|
21790
20226
|
|
21791
20227
|
This method makes a synchronous HTTP request by default. To make an
|
21792
20228
|
asynchronous HTTP request, please pass async_req=True
|
21793
|
-
>>> thread = api.
|
20229
|
+
>>> thread = api.get_startup_logs_api_v2_sessions_session_id_startup_logs_get(session_id, start_line, end_line, async_req=True)
|
21794
20230
|
>>> result = thread.get()
|
21795
20231
|
|
21796
20232
|
:param async_req bool: execute request asynchronously
|
21797
20233
|
:param str session_id: (required)
|
20234
|
+
:param int start_line: (required)
|
20235
|
+
:param int end_line: (required)
|
20236
|
+
:param str extension:
|
20237
|
+
:param datetime start_time:
|
21798
20238
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21799
20239
|
be returned without reading/decoding response
|
21800
20240
|
data. Default is True.
|
@@ -21802,23 +20242,27 @@ class DefaultApi(object):
|
|
21802
20242
|
number provided, it will be total request
|
21803
20243
|
timeout. It can also be a pair (tuple) of
|
21804
20244
|
(connection, read) timeouts.
|
21805
|
-
:return:
|
20245
|
+
:return: LogsoutputResponse
|
21806
20246
|
If the method is called asynchronously,
|
21807
20247
|
returns the request thread.
|
21808
20248
|
"""
|
21809
20249
|
kwargs['_return_http_data_only'] = True
|
21810
|
-
return self.
|
20250
|
+
return self.get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(session_id, start_line, end_line, **kwargs) # noqa: E501
|
21811
20251
|
|
21812
|
-
def
|
21813
|
-
"""Get Startup Logs
|
20252
|
+
def get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(self, session_id, start_line, end_line, **kwargs): # noqa: E501
|
20253
|
+
"""Get Startup Logs # noqa: E501
|
21814
20254
|
|
21815
20255
|
This method makes a synchronous HTTP request by default. To make an
|
21816
20256
|
asynchronous HTTP request, please pass async_req=True
|
21817
|
-
>>> thread = api.
|
20257
|
+
>>> thread = api.get_startup_logs_api_v2_sessions_session_id_startup_logs_get_with_http_info(session_id, start_line, end_line, async_req=True)
|
21818
20258
|
>>> result = thread.get()
|
21819
20259
|
|
21820
20260
|
:param async_req bool: execute request asynchronously
|
21821
20261
|
:param str session_id: (required)
|
20262
|
+
:param int start_line: (required)
|
20263
|
+
:param int end_line: (required)
|
20264
|
+
:param str extension:
|
20265
|
+
:param datetime start_time:
|
21822
20266
|
:param _return_http_data_only: response data without head status code
|
21823
20267
|
and headers
|
21824
20268
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -21828,7 +20272,7 @@ class DefaultApi(object):
|
|
21828
20272
|
number provided, it will be total request
|
21829
20273
|
timeout. It can also be a pair (tuple) of
|
21830
20274
|
(connection, read) timeouts.
|
21831
|
-
:return: tuple(
|
20275
|
+
:return: tuple(LogsoutputResponse, status_code(int), headers(HTTPHeaderDict))
|
21832
20276
|
If the method is called asynchronously,
|
21833
20277
|
returns the request thread.
|
21834
20278
|
"""
|
@@ -21836,7 +20280,11 @@ class DefaultApi(object):
|
|
21836
20280
|
local_var_params = locals()
|
21837
20281
|
|
21838
20282
|
all_params = [
|
21839
|
-
'session_id'
|
20283
|
+
'session_id',
|
20284
|
+
'start_line',
|
20285
|
+
'end_line',
|
20286
|
+
'extension',
|
20287
|
+
'start_time'
|
21840
20288
|
]
|
21841
20289
|
all_params.extend(
|
21842
20290
|
[
|
@@ -21851,14 +20299,22 @@ class DefaultApi(object):
|
|
21851
20299
|
if key not in all_params:
|
21852
20300
|
raise ApiTypeError(
|
21853
20301
|
"Got an unexpected keyword argument '%s'"
|
21854
|
-
" to method
|
20302
|
+
" to method get_startup_logs_api_v2_sessions_session_id_startup_logs_get" % key
|
21855
20303
|
)
|
21856
20304
|
local_var_params[key] = val
|
21857
20305
|
del local_var_params['kwargs']
|
21858
20306
|
# verify the required parameter 'session_id' is set
|
21859
20307
|
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
21860
20308
|
local_var_params['session_id'] is None): # noqa: E501
|
21861
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `
|
20309
|
+
raise ApiValueError("Missing the required parameter `session_id` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
|
20310
|
+
# verify the required parameter 'start_line' is set
|
20311
|
+
if self.api_client.client_side_validation and ('start_line' not in local_var_params or # noqa: E501
|
20312
|
+
local_var_params['start_line'] is None): # noqa: E501
|
20313
|
+
raise ApiValueError("Missing the required parameter `start_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
|
20314
|
+
# verify the required parameter 'end_line' is set
|
20315
|
+
if self.api_client.client_side_validation and ('end_line' not in local_var_params or # noqa: E501
|
20316
|
+
local_var_params['end_line'] is None): # noqa: E501
|
20317
|
+
raise ApiValueError("Missing the required parameter `end_line` when calling `get_startup_logs_api_v2_sessions_session_id_startup_logs_get`") # noqa: E501
|
21862
20318
|
|
21863
20319
|
collection_formats = {}
|
21864
20320
|
|
@@ -21867,6 +20323,14 @@ class DefaultApi(object):
|
|
21867
20323
|
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
21868
20324
|
|
21869
20325
|
query_params = []
|
20326
|
+
if 'start_line' in local_var_params and local_var_params['start_line'] is not None: # noqa: E501
|
20327
|
+
query_params.append(('start_line', local_var_params['start_line'])) # noqa: E501
|
20328
|
+
if 'end_line' in local_var_params and local_var_params['end_line'] is not None: # noqa: E501
|
20329
|
+
query_params.append(('end_line', local_var_params['end_line'])) # noqa: E501
|
20330
|
+
if 'extension' in local_var_params and local_var_params['extension'] is not None: # noqa: E501
|
20331
|
+
query_params.append(('extension', local_var_params['extension'])) # noqa: E501
|
20332
|
+
if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
|
20333
|
+
query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
|
21870
20334
|
|
21871
20335
|
header_params = {}
|
21872
20336
|
|
@@ -21882,14 +20346,14 @@ class DefaultApi(object):
|
|
21882
20346
|
auth_settings = [] # noqa: E501
|
21883
20347
|
|
21884
20348
|
return self.api_client.call_api(
|
21885
|
-
'/api/v2/sessions/{session_id}/
|
20349
|
+
'/api/v2/sessions/{session_id}/startup_logs', 'GET',
|
21886
20350
|
path_params,
|
21887
20351
|
query_params,
|
21888
20352
|
header_params,
|
21889
20353
|
body=body_params,
|
21890
20354
|
post_params=form_params,
|
21891
20355
|
files=local_var_files,
|
21892
|
-
response_type='
|
20356
|
+
response_type='LogsoutputResponse', # noqa: E501
|
21893
20357
|
auth_settings=auth_settings,
|
21894
20358
|
async_req=local_var_params.get('async_req'),
|
21895
20359
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -22490,7 +20954,7 @@ class DefaultApi(object):
|
|
22490
20954
|
number provided, it will be total request
|
22491
20955
|
timeout. It can also be a pair (tuple) of
|
22492
20956
|
(connection, read) timeouts.
|
22493
|
-
:return:
|
20957
|
+
:return: WorkspacetemplatereadmeResponse
|
22494
20958
|
If the method is called asynchronously,
|
22495
20959
|
returns the request thread.
|
22496
20960
|
"""
|
@@ -22517,7 +20981,7 @@ class DefaultApi(object):
|
|
22517
20981
|
number provided, it will be total request
|
22518
20982
|
timeout. It can also be a pair (tuple) of
|
22519
20983
|
(connection, read) timeouts.
|
22520
|
-
:return: tuple(
|
20984
|
+
:return: tuple(WorkspacetemplatereadmeResponse, status_code(int), headers(HTTPHeaderDict))
|
22521
20985
|
If the method is called asynchronously,
|
22522
20986
|
returns the request thread.
|
22523
20987
|
"""
|
@@ -22578,7 +21042,7 @@ class DefaultApi(object):
|
|
22578
21042
|
body=body_params,
|
22579
21043
|
post_params=form_params,
|
22580
21044
|
files=local_var_files,
|
22581
|
-
response_type='
|
21045
|
+
response_type='WorkspacetemplatereadmeResponse', # noqa: E501
|
22582
21046
|
auth_settings=auth_settings,
|
22583
21047
|
async_req=local_var_params.get('async_req'),
|
22584
21048
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -24820,118 +23284,6 @@ class DefaultApi(object):
|
|
24820
23284
|
_request_timeout=local_var_params.get('_request_timeout'),
|
24821
23285
|
collection_formats=collection_formats)
|
24822
23286
|
|
24823
|
-
def kill_session_command_api_v2_session_commands_session_command_id_kill_post(self, session_command_id, **kwargs): # noqa: E501
|
24824
|
-
"""Kill Session Command # noqa: E501
|
24825
|
-
|
24826
|
-
This method makes a synchronous HTTP request by default. To make an
|
24827
|
-
asynchronous HTTP request, please pass async_req=True
|
24828
|
-
>>> thread = api.kill_session_command_api_v2_session_commands_session_command_id_kill_post(session_command_id, async_req=True)
|
24829
|
-
>>> result = thread.get()
|
24830
|
-
|
24831
|
-
:param async_req bool: execute request asynchronously
|
24832
|
-
:param str session_command_id: (required)
|
24833
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24834
|
-
be returned without reading/decoding response
|
24835
|
-
data. Default is True.
|
24836
|
-
:param _request_timeout: timeout setting for this request. If one
|
24837
|
-
number provided, it will be total request
|
24838
|
-
timeout. It can also be a pair (tuple) of
|
24839
|
-
(connection, read) timeouts.
|
24840
|
-
:return: None
|
24841
|
-
If the method is called asynchronously,
|
24842
|
-
returns the request thread.
|
24843
|
-
"""
|
24844
|
-
kwargs['_return_http_data_only'] = True
|
24845
|
-
return self.kill_session_command_api_v2_session_commands_session_command_id_kill_post_with_http_info(session_command_id, **kwargs) # noqa: E501
|
24846
|
-
|
24847
|
-
def kill_session_command_api_v2_session_commands_session_command_id_kill_post_with_http_info(self, session_command_id, **kwargs): # noqa: E501
|
24848
|
-
"""Kill Session Command # noqa: E501
|
24849
|
-
|
24850
|
-
This method makes a synchronous HTTP request by default. To make an
|
24851
|
-
asynchronous HTTP request, please pass async_req=True
|
24852
|
-
>>> thread = api.kill_session_command_api_v2_session_commands_session_command_id_kill_post_with_http_info(session_command_id, async_req=True)
|
24853
|
-
>>> result = thread.get()
|
24854
|
-
|
24855
|
-
:param async_req bool: execute request asynchronously
|
24856
|
-
:param str session_command_id: (required)
|
24857
|
-
:param _return_http_data_only: response data without head status code
|
24858
|
-
and headers
|
24859
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24860
|
-
be returned without reading/decoding response
|
24861
|
-
data. Default is True.
|
24862
|
-
:param _request_timeout: timeout setting for this request. If one
|
24863
|
-
number provided, it will be total request
|
24864
|
-
timeout. It can also be a pair (tuple) of
|
24865
|
-
(connection, read) timeouts.
|
24866
|
-
:return: None
|
24867
|
-
If the method is called asynchronously,
|
24868
|
-
returns the request thread.
|
24869
|
-
"""
|
24870
|
-
|
24871
|
-
local_var_params = locals()
|
24872
|
-
|
24873
|
-
all_params = [
|
24874
|
-
'session_command_id'
|
24875
|
-
]
|
24876
|
-
all_params.extend(
|
24877
|
-
[
|
24878
|
-
'async_req',
|
24879
|
-
'_return_http_data_only',
|
24880
|
-
'_preload_content',
|
24881
|
-
'_request_timeout'
|
24882
|
-
]
|
24883
|
-
)
|
24884
|
-
|
24885
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
24886
|
-
if key not in all_params:
|
24887
|
-
raise ApiTypeError(
|
24888
|
-
"Got an unexpected keyword argument '%s'"
|
24889
|
-
" to method kill_session_command_api_v2_session_commands_session_command_id_kill_post" % key
|
24890
|
-
)
|
24891
|
-
local_var_params[key] = val
|
24892
|
-
del local_var_params['kwargs']
|
24893
|
-
# verify the required parameter 'session_command_id' is set
|
24894
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
24895
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
24896
|
-
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
|
24897
|
-
|
24898
|
-
collection_formats = {}
|
24899
|
-
|
24900
|
-
path_params = {}
|
24901
|
-
if 'session_command_id' in local_var_params:
|
24902
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
24903
|
-
|
24904
|
-
query_params = []
|
24905
|
-
|
24906
|
-
header_params = {}
|
24907
|
-
|
24908
|
-
form_params = []
|
24909
|
-
local_var_files = {}
|
24910
|
-
|
24911
|
-
body_params = None
|
24912
|
-
# HTTP header `Accept`
|
24913
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
24914
|
-
['application/json']) # noqa: E501
|
24915
|
-
|
24916
|
-
# Authentication setting
|
24917
|
-
auth_settings = [] # noqa: E501
|
24918
|
-
|
24919
|
-
return self.api_client.call_api(
|
24920
|
-
'/api/v2/session_commands/{session_command_id}/kill', 'POST',
|
24921
|
-
path_params,
|
24922
|
-
query_params,
|
24923
|
-
header_params,
|
24924
|
-
body=body_params,
|
24925
|
-
post_params=form_params,
|
24926
|
-
files=local_var_files,
|
24927
|
-
response_type=None, # noqa: E501
|
24928
|
-
auth_settings=auth_settings,
|
24929
|
-
async_req=local_var_params.get('async_req'),
|
24930
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
24931
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
24932
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
24933
|
-
collection_formats=collection_formats)
|
24934
|
-
|
24935
23287
|
def list_application_templates_api_v2_application_templates_get(self, **kwargs): # noqa: E501
|
24936
23288
|
"""List Application Templates # noqa: E501
|
24937
23289
|
|
@@ -28841,120 +27193,6 @@ class DefaultApi(object):
|
|
28841
27193
|
_request_timeout=local_var_params.get('_request_timeout'),
|
28842
27194
|
collection_formats=collection_formats)
|
28843
27195
|
|
28844
|
-
def list_web_terminals_api_v2_sessions_session_id_web_terminals_get(self, session_id, **kwargs): # noqa: E501
|
28845
|
-
"""List Web Terminals # noqa: E501
|
28846
|
-
|
28847
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
28848
|
-
This method makes a synchronous HTTP request by default. To make an
|
28849
|
-
asynchronous HTTP request, please pass async_req=True
|
28850
|
-
>>> thread = api.list_web_terminals_api_v2_sessions_session_id_web_terminals_get(session_id, async_req=True)
|
28851
|
-
>>> result = thread.get()
|
28852
|
-
|
28853
|
-
:param async_req bool: execute request asynchronously
|
28854
|
-
:param str session_id: (required)
|
28855
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28856
|
-
be returned without reading/decoding response
|
28857
|
-
data. Default is True.
|
28858
|
-
:param _request_timeout: timeout setting for this request. If one
|
28859
|
-
number provided, it will be total request
|
28860
|
-
timeout. It can also be a pair (tuple) of
|
28861
|
-
(connection, read) timeouts.
|
28862
|
-
:return: WebterminalListResponse
|
28863
|
-
If the method is called asynchronously,
|
28864
|
-
returns the request thread.
|
28865
|
-
"""
|
28866
|
-
kwargs['_return_http_data_only'] = True
|
28867
|
-
return self.list_web_terminals_api_v2_sessions_session_id_web_terminals_get_with_http_info(session_id, **kwargs) # noqa: E501
|
28868
|
-
|
28869
|
-
def list_web_terminals_api_v2_sessions_session_id_web_terminals_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
28870
|
-
"""List Web Terminals # noqa: E501
|
28871
|
-
|
28872
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
28873
|
-
This method makes a synchronous HTTP request by default. To make an
|
28874
|
-
asynchronous HTTP request, please pass async_req=True
|
28875
|
-
>>> thread = api.list_web_terminals_api_v2_sessions_session_id_web_terminals_get_with_http_info(session_id, async_req=True)
|
28876
|
-
>>> result = thread.get()
|
28877
|
-
|
28878
|
-
:param async_req bool: execute request asynchronously
|
28879
|
-
:param str session_id: (required)
|
28880
|
-
:param _return_http_data_only: response data without head status code
|
28881
|
-
and headers
|
28882
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28883
|
-
be returned without reading/decoding response
|
28884
|
-
data. Default is True.
|
28885
|
-
:param _request_timeout: timeout setting for this request. If one
|
28886
|
-
number provided, it will be total request
|
28887
|
-
timeout. It can also be a pair (tuple) of
|
28888
|
-
(connection, read) timeouts.
|
28889
|
-
:return: tuple(WebterminalListResponse, status_code(int), headers(HTTPHeaderDict))
|
28890
|
-
If the method is called asynchronously,
|
28891
|
-
returns the request thread.
|
28892
|
-
"""
|
28893
|
-
|
28894
|
-
local_var_params = locals()
|
28895
|
-
|
28896
|
-
all_params = [
|
28897
|
-
'session_id'
|
28898
|
-
]
|
28899
|
-
all_params.extend(
|
28900
|
-
[
|
28901
|
-
'async_req',
|
28902
|
-
'_return_http_data_only',
|
28903
|
-
'_preload_content',
|
28904
|
-
'_request_timeout'
|
28905
|
-
]
|
28906
|
-
)
|
28907
|
-
|
28908
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
28909
|
-
if key not in all_params:
|
28910
|
-
raise ApiTypeError(
|
28911
|
-
"Got an unexpected keyword argument '%s'"
|
28912
|
-
" to method list_web_terminals_api_v2_sessions_session_id_web_terminals_get" % key
|
28913
|
-
)
|
28914
|
-
local_var_params[key] = val
|
28915
|
-
del local_var_params['kwargs']
|
28916
|
-
# verify the required parameter 'session_id' is set
|
28917
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
28918
|
-
local_var_params['session_id'] is None): # noqa: E501
|
28919
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `list_web_terminals_api_v2_sessions_session_id_web_terminals_get`") # noqa: E501
|
28920
|
-
|
28921
|
-
collection_formats = {}
|
28922
|
-
|
28923
|
-
path_params = {}
|
28924
|
-
if 'session_id' in local_var_params:
|
28925
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
28926
|
-
|
28927
|
-
query_params = []
|
28928
|
-
|
28929
|
-
header_params = {}
|
28930
|
-
|
28931
|
-
form_params = []
|
28932
|
-
local_var_files = {}
|
28933
|
-
|
28934
|
-
body_params = None
|
28935
|
-
# HTTP header `Accept`
|
28936
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
28937
|
-
['application/json']) # noqa: E501
|
28938
|
-
|
28939
|
-
# Authentication setting
|
28940
|
-
auth_settings = [] # noqa: E501
|
28941
|
-
|
28942
|
-
return self.api_client.call_api(
|
28943
|
-
'/api/v2/sessions/{session_id}/web_terminals', 'GET',
|
28944
|
-
path_params,
|
28945
|
-
query_params,
|
28946
|
-
header_params,
|
28947
|
-
body=body_params,
|
28948
|
-
post_params=form_params,
|
28949
|
-
files=local_var_files,
|
28950
|
-
response_type='WebterminalListResponse', # noqa: E501
|
28951
|
-
auth_settings=auth_settings,
|
28952
|
-
async_req=local_var_params.get('async_req'),
|
28953
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28954
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
28955
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
28956
|
-
collection_formats=collection_formats)
|
28957
|
-
|
28958
27196
|
def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
|
28959
27197
|
"""List Workspace Templates # noqa: E501
|
28960
27198
|
|
@@ -35905,18 +34143,17 @@ class DefaultApi(object):
|
|
35905
34143
|
_request_timeout=local_var_params.get('_request_timeout'),
|
35906
34144
|
collection_formats=collection_formats)
|
35907
34145
|
|
35908
|
-
def
|
35909
|
-
"""Update Cloud
|
34146
|
+
def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
34147
|
+
"""Update Cloud Deployments # noqa: E501
|
35910
34148
|
|
35911
|
-
Updates a Cloud with CloudResource. # noqa: E501
|
35912
34149
|
This method makes a synchronous HTTP request by default. To make an
|
35913
34150
|
asynchronous HTTP request, please pass async_req=True
|
35914
|
-
>>> thread = api.
|
34151
|
+
>>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(cloud_id, cloud_deployment, async_req=True)
|
35915
34152
|
>>> result = thread.get()
|
35916
34153
|
|
35917
34154
|
:param async_req bool: execute request asynchronously
|
35918
34155
|
:param str cloud_id: (required)
|
35919
|
-
:param
|
34156
|
+
:param list[CloudDeployment] cloud_deployment: (required)
|
35920
34157
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35921
34158
|
be returned without reading/decoding response
|
35922
34159
|
data. Default is True.
|
@@ -35924,25 +34161,24 @@ class DefaultApi(object):
|
|
35924
34161
|
number provided, it will be total request
|
35925
34162
|
timeout. It can also be a pair (tuple) of
|
35926
34163
|
(connection, read) timeouts.
|
35927
|
-
:return:
|
34164
|
+
:return: object
|
35928
34165
|
If the method is called asynchronously,
|
35929
34166
|
returns the request thread.
|
35930
34167
|
"""
|
35931
34168
|
kwargs['_return_http_data_only'] = True
|
35932
|
-
return self.
|
34169
|
+
return self.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
|
35933
34170
|
|
35934
|
-
def
|
35935
|
-
"""Update Cloud
|
34171
|
+
def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
34172
|
+
"""Update Cloud Deployments # noqa: E501
|
35936
34173
|
|
35937
|
-
Updates a Cloud with CloudResource. # noqa: E501
|
35938
34174
|
This method makes a synchronous HTTP request by default. To make an
|
35939
34175
|
asynchronous HTTP request, please pass async_req=True
|
35940
|
-
>>> thread = api.
|
34176
|
+
>>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
|
35941
34177
|
>>> result = thread.get()
|
35942
34178
|
|
35943
34179
|
:param async_req bool: execute request asynchronously
|
35944
34180
|
:param str cloud_id: (required)
|
35945
|
-
:param
|
34181
|
+
:param list[CloudDeployment] cloud_deployment: (required)
|
35946
34182
|
:param _return_http_data_only: response data without head status code
|
35947
34183
|
and headers
|
35948
34184
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -35952,7 +34188,7 @@ class DefaultApi(object):
|
|
35952
34188
|
number provided, it will be total request
|
35953
34189
|
timeout. It can also be a pair (tuple) of
|
35954
34190
|
(connection, read) timeouts.
|
35955
|
-
:return: tuple(
|
34191
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
35956
34192
|
If the method is called asynchronously,
|
35957
34193
|
returns the request thread.
|
35958
34194
|
"""
|
@@ -35961,7 +34197,7 @@ class DefaultApi(object):
|
|
35961
34197
|
|
35962
34198
|
all_params = [
|
35963
34199
|
'cloud_id',
|
35964
|
-
'
|
34200
|
+
'cloud_deployment'
|
35965
34201
|
]
|
35966
34202
|
all_params.extend(
|
35967
34203
|
[
|
@@ -35976,18 +34212,18 @@ class DefaultApi(object):
|
|
35976
34212
|
if key not in all_params:
|
35977
34213
|
raise ApiTypeError(
|
35978
34214
|
"Got an unexpected keyword argument '%s'"
|
35979
|
-
" to method
|
34215
|
+
" to method update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put" % key
|
35980
34216
|
)
|
35981
34217
|
local_var_params[key] = val
|
35982
34218
|
del local_var_params['kwargs']
|
35983
34219
|
# verify the required parameter 'cloud_id' is set
|
35984
34220
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
35985
34221
|
local_var_params['cloud_id'] is None): # noqa: E501
|
35986
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
35987
|
-
# verify the required parameter '
|
35988
|
-
if self.api_client.client_side_validation and ('
|
35989
|
-
local_var_params['
|
35990
|
-
raise ApiValueError("Missing the required parameter `
|
34222
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
|
34223
|
+
# verify the required parameter 'cloud_deployment' is set
|
34224
|
+
if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
|
34225
|
+
local_var_params['cloud_deployment'] is None): # noqa: E501
|
34226
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
|
35991
34227
|
|
35992
34228
|
collection_formats = {}
|
35993
34229
|
|
@@ -36003,8 +34239,8 @@ class DefaultApi(object):
|
|
36003
34239
|
local_var_files = {}
|
36004
34240
|
|
36005
34241
|
body_params = None
|
36006
|
-
if '
|
36007
|
-
body_params = local_var_params['
|
34242
|
+
if 'cloud_deployment' in local_var_params:
|
34243
|
+
body_params = local_var_params['cloud_deployment']
|
36008
34244
|
# HTTP header `Accept`
|
36009
34245
|
header_params['Accept'] = self.api_client.select_header_accept(
|
36010
34246
|
['application/json']) # noqa: E501
|
@@ -36017,14 +34253,14 @@ class DefaultApi(object):
|
|
36017
34253
|
auth_settings = [] # noqa: E501
|
36018
34254
|
|
36019
34255
|
return self.api_client.call_api(
|
36020
|
-
'/api/v2/
|
34256
|
+
'/api/v2/clouds/{cloud_id}/deployments', 'PUT',
|
36021
34257
|
path_params,
|
36022
34258
|
query_params,
|
36023
34259
|
header_params,
|
36024
34260
|
body=body_params,
|
36025
34261
|
post_params=form_params,
|
36026
34262
|
files=local_var_files,
|
36027
|
-
response_type='
|
34263
|
+
response_type='object', # noqa: E501
|
36028
34264
|
auth_settings=auth_settings,
|
36029
34265
|
async_req=local_var_params.get('async_req'),
|
36030
34266
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -36032,18 +34268,18 @@ class DefaultApi(object):
|
|
36032
34268
|
_request_timeout=local_var_params.get('_request_timeout'),
|
36033
34269
|
collection_formats=collection_formats)
|
36034
34270
|
|
36035
|
-
def
|
34271
|
+
def update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put(self, cloud_id, update_cloud_with_cloud_resource_gcp, **kwargs): # noqa: E501
|
36036
34272
|
"""Update Cloud With Cloud Resource # noqa: E501
|
36037
34273
|
|
36038
34274
|
Updates a Cloud with CloudResource. # noqa: E501
|
36039
34275
|
This method makes a synchronous HTTP request by default. To make an
|
36040
34276
|
asynchronous HTTP request, please pass async_req=True
|
36041
|
-
>>> thread = api.
|
34277
|
+
>>> thread = api.update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put(cloud_id, update_cloud_with_cloud_resource_gcp, async_req=True)
|
36042
34278
|
>>> result = thread.get()
|
36043
34279
|
|
36044
34280
|
:param async_req bool: execute request asynchronously
|
36045
34281
|
:param str cloud_id: (required)
|
36046
|
-
:param
|
34282
|
+
:param UpdateCloudWithCloudResourceGCP update_cloud_with_cloud_resource_gcp: (required)
|
36047
34283
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
36048
34284
|
be returned without reading/decoding response
|
36049
34285
|
data. Default is True.
|
@@ -36051,25 +34287,25 @@ class DefaultApi(object):
|
|
36051
34287
|
number provided, it will be total request
|
36052
34288
|
timeout. It can also be a pair (tuple) of
|
36053
34289
|
(connection, read) timeouts.
|
36054
|
-
:return:
|
34290
|
+
:return: CloudwithcloudresourcegcpResponse
|
36055
34291
|
If the method is called asynchronously,
|
36056
34292
|
returns the request thread.
|
36057
34293
|
"""
|
36058
34294
|
kwargs['_return_http_data_only'] = True
|
36059
|
-
return self.
|
34295
|
+
return self.update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put_with_http_info(cloud_id, update_cloud_with_cloud_resource_gcp, **kwargs) # noqa: E501
|
36060
34296
|
|
36061
|
-
def
|
34297
|
+
def update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put_with_http_info(self, cloud_id, update_cloud_with_cloud_resource_gcp, **kwargs): # noqa: E501
|
36062
34298
|
"""Update Cloud With Cloud Resource # noqa: E501
|
36063
34299
|
|
36064
34300
|
Updates a Cloud with CloudResource. # noqa: E501
|
36065
34301
|
This method makes a synchronous HTTP request by default. To make an
|
36066
34302
|
asynchronous HTTP request, please pass async_req=True
|
36067
|
-
>>> thread = api.
|
34303
|
+
>>> thread = api.update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put_with_http_info(cloud_id, update_cloud_with_cloud_resource_gcp, async_req=True)
|
36068
34304
|
>>> result = thread.get()
|
36069
34305
|
|
36070
34306
|
:param async_req bool: execute request asynchronously
|
36071
34307
|
:param str cloud_id: (required)
|
36072
|
-
:param
|
34308
|
+
:param UpdateCloudWithCloudResourceGCP update_cloud_with_cloud_resource_gcp: (required)
|
36073
34309
|
:param _return_http_data_only: response data without head status code
|
36074
34310
|
and headers
|
36075
34311
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -36079,7 +34315,7 @@ class DefaultApi(object):
|
|
36079
34315
|
number provided, it will be total request
|
36080
34316
|
timeout. It can also be a pair (tuple) of
|
36081
34317
|
(connection, read) timeouts.
|
36082
|
-
:return: tuple(
|
34318
|
+
:return: tuple(CloudwithcloudresourcegcpResponse, status_code(int), headers(HTTPHeaderDict))
|
36083
34319
|
If the method is called asynchronously,
|
36084
34320
|
returns the request thread.
|
36085
34321
|
"""
|
@@ -36088,7 +34324,7 @@ class DefaultApi(object):
|
|
36088
34324
|
|
36089
34325
|
all_params = [
|
36090
34326
|
'cloud_id',
|
36091
|
-
'
|
34327
|
+
'update_cloud_with_cloud_resource_gcp'
|
36092
34328
|
]
|
36093
34329
|
all_params.extend(
|
36094
34330
|
[
|
@@ -36103,18 +34339,18 @@ class DefaultApi(object):
|
|
36103
34339
|
if key not in all_params:
|
36104
34340
|
raise ApiTypeError(
|
36105
34341
|
"Got an unexpected keyword argument '%s'"
|
36106
|
-
" to method
|
34342
|
+
" to method update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put" % key
|
36107
34343
|
)
|
36108
34344
|
local_var_params[key] = val
|
36109
34345
|
del local_var_params['kwargs']
|
36110
34346
|
# verify the required parameter 'cloud_id' is set
|
36111
34347
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
36112
34348
|
local_var_params['cloud_id'] is None): # noqa: E501
|
36113
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
36114
|
-
# verify the required parameter '
|
36115
|
-
if self.api_client.client_side_validation and ('
|
36116
|
-
local_var_params['
|
36117
|
-
raise ApiValueError("Missing the required parameter `
|
34349
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put`") # noqa: E501
|
34350
|
+
# verify the required parameter 'update_cloud_with_cloud_resource_gcp' is set
|
34351
|
+
if self.api_client.client_side_validation and ('update_cloud_with_cloud_resource_gcp' not in local_var_params or # noqa: E501
|
34352
|
+
local_var_params['update_cloud_with_cloud_resource_gcp'] is None): # noqa: E501
|
34353
|
+
raise ApiValueError("Missing the required parameter `update_cloud_with_cloud_resource_gcp` when calling `update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_gcp_router_cloud_id_put`") # noqa: E501
|
36118
34354
|
|
36119
34355
|
collection_formats = {}
|
36120
34356
|
|
@@ -36130,8 +34366,8 @@ class DefaultApi(object):
|
|
36130
34366
|
local_var_files = {}
|
36131
34367
|
|
36132
34368
|
body_params = None
|
36133
|
-
if '
|
36134
|
-
body_params = local_var_params['
|
34369
|
+
if 'update_cloud_with_cloud_resource_gcp' in local_var_params:
|
34370
|
+
body_params = local_var_params['update_cloud_with_cloud_resource_gcp']
|
36135
34371
|
# HTTP header `Accept`
|
36136
34372
|
header_params['Accept'] = self.api_client.select_header_accept(
|
36137
34373
|
['application/json']) # noqa: E501
|
@@ -36144,14 +34380,14 @@ class DefaultApi(object):
|
|
36144
34380
|
auth_settings = [] # noqa: E501
|
36145
34381
|
|
36146
34382
|
return self.api_client.call_api(
|
36147
|
-
'/api/v2/
|
34383
|
+
'/api/v2/clouds_with_cloud_resource_gcp_router/{cloud_id}', 'PUT',
|
36148
34384
|
path_params,
|
36149
34385
|
query_params,
|
36150
34386
|
header_params,
|
36151
34387
|
body=body_params,
|
36152
34388
|
post_params=form_params,
|
36153
34389
|
files=local_var_files,
|
36154
|
-
response_type='
|
34390
|
+
response_type='CloudwithcloudresourcegcpResponse', # noqa: E501
|
36155
34391
|
auth_settings=auth_settings,
|
36156
34392
|
async_req=local_var_params.get('async_req'),
|
36157
34393
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -36159,18 +34395,18 @@ class DefaultApi(object):
|
|
36159
34395
|
_request_timeout=local_var_params.get('_request_timeout'),
|
36160
34396
|
collection_formats=collection_formats)
|
36161
34397
|
|
36162
|
-
def
|
36163
|
-
"""Update
|
34398
|
+
def update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put(self, cloud_id, update_cloud_with_cloud_resource, **kwargs): # noqa: E501
|
34399
|
+
"""Update Cloud With Cloud Resource # noqa: E501
|
36164
34400
|
|
36165
|
-
Updates a
|
34401
|
+
Updates a Cloud with CloudResource. # noqa: E501
|
36166
34402
|
This method makes a synchronous HTTP request by default. To make an
|
36167
34403
|
asynchronous HTTP request, please pass async_req=True
|
36168
|
-
>>> thread = api.
|
34404
|
+
>>> thread = api.update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put(cloud_id, update_cloud_with_cloud_resource, async_req=True)
|
36169
34405
|
>>> result = thread.get()
|
36170
34406
|
|
36171
34407
|
:param async_req bool: execute request asynchronously
|
36172
|
-
:param str
|
36173
|
-
:param
|
34408
|
+
:param str cloud_id: (required)
|
34409
|
+
:param UpdateCloudWithCloudResource update_cloud_with_cloud_resource: (required)
|
36174
34410
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
36175
34411
|
be returned without reading/decoding response
|
36176
34412
|
data. Default is True.
|
@@ -36178,25 +34414,25 @@ class DefaultApi(object):
|
|
36178
34414
|
number provided, it will be total request
|
36179
34415
|
timeout. It can also be a pair (tuple) of
|
36180
34416
|
(connection, read) timeouts.
|
36181
|
-
:return:
|
34417
|
+
:return: CloudwithcloudresourceResponse
|
36182
34418
|
If the method is called asynchronously,
|
36183
34419
|
returns the request thread.
|
36184
34420
|
"""
|
36185
34421
|
kwargs['_return_http_data_only'] = True
|
36186
|
-
return self.
|
34422
|
+
return self.update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put_with_http_info(cloud_id, update_cloud_with_cloud_resource, **kwargs) # noqa: E501
|
36187
34423
|
|
36188
|
-
def
|
36189
|
-
"""Update
|
34424
|
+
def update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put_with_http_info(self, cloud_id, update_cloud_with_cloud_resource, **kwargs): # noqa: E501
|
34425
|
+
"""Update Cloud With Cloud Resource # noqa: E501
|
36190
34426
|
|
36191
|
-
Updates a
|
34427
|
+
Updates a Cloud with CloudResource. # noqa: E501
|
36192
34428
|
This method makes a synchronous HTTP request by default. To make an
|
36193
34429
|
asynchronous HTTP request, please pass async_req=True
|
36194
|
-
>>> thread = api.
|
34430
|
+
>>> thread = api.update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put_with_http_info(cloud_id, update_cloud_with_cloud_resource, async_req=True)
|
36195
34431
|
>>> result = thread.get()
|
36196
34432
|
|
36197
34433
|
:param async_req bool: execute request asynchronously
|
36198
|
-
:param str
|
36199
|
-
:param
|
34434
|
+
:param str cloud_id: (required)
|
34435
|
+
:param UpdateCloudWithCloudResource update_cloud_with_cloud_resource: (required)
|
36200
34436
|
:param _return_http_data_only: response data without head status code
|
36201
34437
|
and headers
|
36202
34438
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -36206,7 +34442,7 @@ class DefaultApi(object):
|
|
36206
34442
|
number provided, it will be total request
|
36207
34443
|
timeout. It can also be a pair (tuple) of
|
36208
34444
|
(connection, read) timeouts.
|
36209
|
-
:return: tuple(
|
34445
|
+
:return: tuple(CloudwithcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
|
36210
34446
|
If the method is called asynchronously,
|
36211
34447
|
returns the request thread.
|
36212
34448
|
"""
|
@@ -36214,8 +34450,8 @@ class DefaultApi(object):
|
|
36214
34450
|
local_var_params = locals()
|
36215
34451
|
|
36216
34452
|
all_params = [
|
36217
|
-
'
|
36218
|
-
'
|
34453
|
+
'cloud_id',
|
34454
|
+
'update_cloud_with_cloud_resource'
|
36219
34455
|
]
|
36220
34456
|
all_params.extend(
|
36221
34457
|
[
|
@@ -36230,24 +34466,24 @@ class DefaultApi(object):
|
|
36230
34466
|
if key not in all_params:
|
36231
34467
|
raise ApiTypeError(
|
36232
34468
|
"Got an unexpected keyword argument '%s'"
|
36233
|
-
" to method
|
34469
|
+
" to method update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put" % key
|
36234
34470
|
)
|
36235
34471
|
local_var_params[key] = val
|
36236
34472
|
del local_var_params['kwargs']
|
36237
|
-
# verify the required parameter '
|
36238
|
-
if self.api_client.client_side_validation and ('
|
36239
|
-
local_var_params['
|
36240
|
-
raise ApiValueError("Missing the required parameter `
|
36241
|
-
# verify the required parameter '
|
36242
|
-
if self.api_client.client_side_validation and ('
|
36243
|
-
local_var_params['
|
36244
|
-
raise ApiValueError("Missing the required parameter `
|
34473
|
+
# verify the required parameter 'cloud_id' is set
|
34474
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
34475
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
34476
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put`") # noqa: E501
|
34477
|
+
# verify the required parameter 'update_cloud_with_cloud_resource' is set
|
34478
|
+
if self.api_client.client_side_validation and ('update_cloud_with_cloud_resource' not in local_var_params or # noqa: E501
|
34479
|
+
local_var_params['update_cloud_with_cloud_resource'] is None): # noqa: E501
|
34480
|
+
raise ApiValueError("Missing the required parameter `update_cloud_with_cloud_resource` when calling `update_cloud_with_cloud_resource_api_v2_clouds_with_cloud_resource_router_cloud_id_put`") # noqa: E501
|
36245
34481
|
|
36246
34482
|
collection_formats = {}
|
36247
34483
|
|
36248
34484
|
path_params = {}
|
36249
|
-
if '
|
36250
|
-
path_params['
|
34485
|
+
if 'cloud_id' in local_var_params:
|
34486
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
36251
34487
|
|
36252
34488
|
query_params = []
|
36253
34489
|
|
@@ -36257,8 +34493,8 @@ class DefaultApi(object):
|
|
36257
34493
|
local_var_files = {}
|
36258
34494
|
|
36259
34495
|
body_params = None
|
36260
|
-
if '
|
36261
|
-
body_params = local_var_params['
|
34496
|
+
if 'update_cloud_with_cloud_resource' in local_var_params:
|
34497
|
+
body_params = local_var_params['update_cloud_with_cloud_resource']
|
36262
34498
|
# HTTP header `Accept`
|
36263
34499
|
header_params['Accept'] = self.api_client.select_header_accept(
|
36264
34500
|
['application/json']) # noqa: E501
|
@@ -36271,14 +34507,14 @@ class DefaultApi(object):
|
|
36271
34507
|
auth_settings = [] # noqa: E501
|
36272
34508
|
|
36273
34509
|
return self.api_client.call_api(
|
36274
|
-
'/api/v2/
|
34510
|
+
'/api/v2/clouds_with_cloud_resource_router/{cloud_id}', 'PUT',
|
36275
34511
|
path_params,
|
36276
34512
|
query_params,
|
36277
34513
|
header_params,
|
36278
34514
|
body=body_params,
|
36279
34515
|
post_params=form_params,
|
36280
34516
|
files=local_var_files,
|
36281
|
-
response_type='
|
34517
|
+
response_type='CloudwithcloudresourceResponse', # noqa: E501
|
36282
34518
|
auth_settings=auth_settings,
|
36283
34519
|
async_req=local_var_params.get('async_req'),
|
36284
34520
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -36761,6 +34997,133 @@ class DefaultApi(object):
|
|
36761
34997
|
_request_timeout=local_var_params.get('_request_timeout'),
|
36762
34998
|
collection_formats=collection_formats)
|
36763
34999
|
|
35000
|
+
def update_job_queue_api_v2_job_queues_job_queue_id_put(self, job_queue_id, update_job_queue_request, **kwargs): # noqa: E501
|
35001
|
+
"""Update Job Queue # noqa: E501
|
35002
|
+
|
35003
|
+
Update a job queue. # noqa: E501
|
35004
|
+
This method makes a synchronous HTTP request by default. To make an
|
35005
|
+
asynchronous HTTP request, please pass async_req=True
|
35006
|
+
>>> thread = api.update_job_queue_api_v2_job_queues_job_queue_id_put(job_queue_id, update_job_queue_request, async_req=True)
|
35007
|
+
>>> result = thread.get()
|
35008
|
+
|
35009
|
+
:param async_req bool: execute request asynchronously
|
35010
|
+
:param str job_queue_id: (required)
|
35011
|
+
:param UpdateJobQueueRequest update_job_queue_request: (required)
|
35012
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35013
|
+
be returned without reading/decoding response
|
35014
|
+
data. Default is True.
|
35015
|
+
:param _request_timeout: timeout setting for this request. If one
|
35016
|
+
number provided, it will be total request
|
35017
|
+
timeout. It can also be a pair (tuple) of
|
35018
|
+
(connection, read) timeouts.
|
35019
|
+
:return: DecoratedjobqueueResponse
|
35020
|
+
If the method is called asynchronously,
|
35021
|
+
returns the request thread.
|
35022
|
+
"""
|
35023
|
+
kwargs['_return_http_data_only'] = True
|
35024
|
+
return self.update_job_queue_api_v2_job_queues_job_queue_id_put_with_http_info(job_queue_id, update_job_queue_request, **kwargs) # noqa: E501
|
35025
|
+
|
35026
|
+
def update_job_queue_api_v2_job_queues_job_queue_id_put_with_http_info(self, job_queue_id, update_job_queue_request, **kwargs): # noqa: E501
|
35027
|
+
"""Update Job Queue # noqa: E501
|
35028
|
+
|
35029
|
+
Update a job queue. # noqa: E501
|
35030
|
+
This method makes a synchronous HTTP request by default. To make an
|
35031
|
+
asynchronous HTTP request, please pass async_req=True
|
35032
|
+
>>> thread = api.update_job_queue_api_v2_job_queues_job_queue_id_put_with_http_info(job_queue_id, update_job_queue_request, async_req=True)
|
35033
|
+
>>> result = thread.get()
|
35034
|
+
|
35035
|
+
:param async_req bool: execute request asynchronously
|
35036
|
+
:param str job_queue_id: (required)
|
35037
|
+
:param UpdateJobQueueRequest update_job_queue_request: (required)
|
35038
|
+
:param _return_http_data_only: response data without head status code
|
35039
|
+
and headers
|
35040
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
35041
|
+
be returned without reading/decoding response
|
35042
|
+
data. Default is True.
|
35043
|
+
:param _request_timeout: timeout setting for this request. If one
|
35044
|
+
number provided, it will be total request
|
35045
|
+
timeout. It can also be a pair (tuple) of
|
35046
|
+
(connection, read) timeouts.
|
35047
|
+
:return: tuple(DecoratedjobqueueResponse, status_code(int), headers(HTTPHeaderDict))
|
35048
|
+
If the method is called asynchronously,
|
35049
|
+
returns the request thread.
|
35050
|
+
"""
|
35051
|
+
|
35052
|
+
local_var_params = locals()
|
35053
|
+
|
35054
|
+
all_params = [
|
35055
|
+
'job_queue_id',
|
35056
|
+
'update_job_queue_request'
|
35057
|
+
]
|
35058
|
+
all_params.extend(
|
35059
|
+
[
|
35060
|
+
'async_req',
|
35061
|
+
'_return_http_data_only',
|
35062
|
+
'_preload_content',
|
35063
|
+
'_request_timeout'
|
35064
|
+
]
|
35065
|
+
)
|
35066
|
+
|
35067
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
35068
|
+
if key not in all_params:
|
35069
|
+
raise ApiTypeError(
|
35070
|
+
"Got an unexpected keyword argument '%s'"
|
35071
|
+
" to method update_job_queue_api_v2_job_queues_job_queue_id_put" % key
|
35072
|
+
)
|
35073
|
+
local_var_params[key] = val
|
35074
|
+
del local_var_params['kwargs']
|
35075
|
+
# verify the required parameter 'job_queue_id' is set
|
35076
|
+
if self.api_client.client_side_validation and ('job_queue_id' not in local_var_params or # noqa: E501
|
35077
|
+
local_var_params['job_queue_id'] is None): # noqa: E501
|
35078
|
+
raise ApiValueError("Missing the required parameter `job_queue_id` when calling `update_job_queue_api_v2_job_queues_job_queue_id_put`") # noqa: E501
|
35079
|
+
# verify the required parameter 'update_job_queue_request' is set
|
35080
|
+
if self.api_client.client_side_validation and ('update_job_queue_request' not in local_var_params or # noqa: E501
|
35081
|
+
local_var_params['update_job_queue_request'] is None): # noqa: E501
|
35082
|
+
raise ApiValueError("Missing the required parameter `update_job_queue_request` when calling `update_job_queue_api_v2_job_queues_job_queue_id_put`") # noqa: E501
|
35083
|
+
|
35084
|
+
collection_formats = {}
|
35085
|
+
|
35086
|
+
path_params = {}
|
35087
|
+
if 'job_queue_id' in local_var_params:
|
35088
|
+
path_params['job_queue_id'] = local_var_params['job_queue_id'] # noqa: E501
|
35089
|
+
|
35090
|
+
query_params = []
|
35091
|
+
|
35092
|
+
header_params = {}
|
35093
|
+
|
35094
|
+
form_params = []
|
35095
|
+
local_var_files = {}
|
35096
|
+
|
35097
|
+
body_params = None
|
35098
|
+
if 'update_job_queue_request' in local_var_params:
|
35099
|
+
body_params = local_var_params['update_job_queue_request']
|
35100
|
+
# HTTP header `Accept`
|
35101
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
35102
|
+
['application/json']) # noqa: E501
|
35103
|
+
|
35104
|
+
# HTTP header `Content-Type`
|
35105
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
35106
|
+
['application/json']) # noqa: E501
|
35107
|
+
|
35108
|
+
# Authentication setting
|
35109
|
+
auth_settings = [] # noqa: E501
|
35110
|
+
|
35111
|
+
return self.api_client.call_api(
|
35112
|
+
'/api/v2/job_queues/{job_queue_id}', 'PUT',
|
35113
|
+
path_params,
|
35114
|
+
query_params,
|
35115
|
+
header_params,
|
35116
|
+
body=body_params,
|
35117
|
+
post_params=form_params,
|
35118
|
+
files=local_var_files,
|
35119
|
+
response_type='DecoratedjobqueueResponse', # noqa: E501
|
35120
|
+
auth_settings=auth_settings,
|
35121
|
+
async_req=local_var_params.get('async_req'),
|
35122
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
35123
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
35124
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
35125
|
+
collection_formats=collection_formats)
|
35126
|
+
|
36764
35127
|
def update_job_queue_config_api_v2_decorated_ha_jobs_production_job_id_update_job_queue_config_put(self, production_job_id, job_queue_config, **kwargs): # noqa: E501
|
36765
35128
|
"""Update Job Queue Config # noqa: E501
|
36766
35129
|
|