anyscale 0.26.19__py3-none-any.whl → 0.26.21__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 +1 -1
- anyscale/client/README.md +6 -10
- anyscale/client/openapi_client/__init__.py +3 -3
- anyscale/client/openapi_client/api/default_api.py +238 -671
- anyscale/client/openapi_client/models/__init__.py +3 -3
- anyscale/client/openapi_client/models/decorated_production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/{organizationpublicidentifier_response.py → job_queue_sort_directive.py} +49 -22
- anyscale/client/openapi_client/models/{organization_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/production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/{organization_public_identifier.py → update_job_queue_request.py} +51 -22
- anyscale/commands/cloud_commands.py +15 -4
- anyscale/commands/command_examples.py +58 -0
- anyscale/commands/job_commands.py +2 -2
- anyscale/commands/job_queue_commands.py +172 -0
- anyscale/controllers/cloud_controller.py +358 -49
- anyscale/controllers/job_controller.py +215 -3
- anyscale/scripts.py +3 -0
- anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
- anyscale/util.py +3 -1
- anyscale/utils/connect_helpers.py +34 -0
- anyscale/utils/gcp_utils.py +20 -4
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +19 -6
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/METADATA +1 -1
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/RECORD +31 -30
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/LICENSE +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/NOTICE +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/WHEEL +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.19.dist-info → anyscale-0.26.21.dist-info}/top_level.txt +0 -0
@@ -10620,230 +10620,6 @@ class DefaultApi(object):
|
|
10620
10620
|
_request_timeout=local_var_params.get('_request_timeout'),
|
10621
10621
|
collection_formats=collection_formats)
|
10622
10622
|
|
10623
|
-
def find_with_invitation_api_v2_organizations_find_with_invitation_get(self, invitation_id, **kwargs): # noqa: E501
|
10624
|
-
"""Find With Invitation # noqa: E501
|
10625
|
-
|
10626
|
-
This method makes a synchronous HTTP request by default. To make an
|
10627
|
-
asynchronous HTTP request, please pass async_req=True
|
10628
|
-
>>> thread = api.find_with_invitation_api_v2_organizations_find_with_invitation_get(invitation_id, async_req=True)
|
10629
|
-
>>> result = thread.get()
|
10630
|
-
|
10631
|
-
:param async_req bool: execute request asynchronously
|
10632
|
-
:param str invitation_id: (required)
|
10633
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
10634
|
-
be returned without reading/decoding response
|
10635
|
-
data. Default is True.
|
10636
|
-
:param _request_timeout: timeout setting for this request. If one
|
10637
|
-
number provided, it will be total request
|
10638
|
-
timeout. It can also be a pair (tuple) of
|
10639
|
-
(connection, read) timeouts.
|
10640
|
-
:return: OrganizationResponse
|
10641
|
-
If the method is called asynchronously,
|
10642
|
-
returns the request thread.
|
10643
|
-
"""
|
10644
|
-
kwargs['_return_http_data_only'] = True
|
10645
|
-
return self.find_with_invitation_api_v2_organizations_find_with_invitation_get_with_http_info(invitation_id, **kwargs) # noqa: E501
|
10646
|
-
|
10647
|
-
def find_with_invitation_api_v2_organizations_find_with_invitation_get_with_http_info(self, invitation_id, **kwargs): # noqa: E501
|
10648
|
-
"""Find With Invitation # noqa: E501
|
10649
|
-
|
10650
|
-
This method makes a synchronous HTTP request by default. To make an
|
10651
|
-
asynchronous HTTP request, please pass async_req=True
|
10652
|
-
>>> thread = api.find_with_invitation_api_v2_organizations_find_with_invitation_get_with_http_info(invitation_id, async_req=True)
|
10653
|
-
>>> result = thread.get()
|
10654
|
-
|
10655
|
-
:param async_req bool: execute request asynchronously
|
10656
|
-
:param str invitation_id: (required)
|
10657
|
-
:param _return_http_data_only: response data without head status code
|
10658
|
-
and headers
|
10659
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
10660
|
-
be returned without reading/decoding response
|
10661
|
-
data. Default is True.
|
10662
|
-
:param _request_timeout: timeout setting for this request. If one
|
10663
|
-
number provided, it will be total request
|
10664
|
-
timeout. It can also be a pair (tuple) of
|
10665
|
-
(connection, read) timeouts.
|
10666
|
-
:return: tuple(OrganizationResponse, status_code(int), headers(HTTPHeaderDict))
|
10667
|
-
If the method is called asynchronously,
|
10668
|
-
returns the request thread.
|
10669
|
-
"""
|
10670
|
-
|
10671
|
-
local_var_params = locals()
|
10672
|
-
|
10673
|
-
all_params = [
|
10674
|
-
'invitation_id'
|
10675
|
-
]
|
10676
|
-
all_params.extend(
|
10677
|
-
[
|
10678
|
-
'async_req',
|
10679
|
-
'_return_http_data_only',
|
10680
|
-
'_preload_content',
|
10681
|
-
'_request_timeout'
|
10682
|
-
]
|
10683
|
-
)
|
10684
|
-
|
10685
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
10686
|
-
if key not in all_params:
|
10687
|
-
raise ApiTypeError(
|
10688
|
-
"Got an unexpected keyword argument '%s'"
|
10689
|
-
" to method find_with_invitation_api_v2_organizations_find_with_invitation_get" % key
|
10690
|
-
)
|
10691
|
-
local_var_params[key] = val
|
10692
|
-
del local_var_params['kwargs']
|
10693
|
-
# verify the required parameter 'invitation_id' is set
|
10694
|
-
if self.api_client.client_side_validation and ('invitation_id' not in local_var_params or # noqa: E501
|
10695
|
-
local_var_params['invitation_id'] is None): # noqa: E501
|
10696
|
-
raise ApiValueError("Missing the required parameter `invitation_id` when calling `find_with_invitation_api_v2_organizations_find_with_invitation_get`") # noqa: E501
|
10697
|
-
|
10698
|
-
collection_formats = {}
|
10699
|
-
|
10700
|
-
path_params = {}
|
10701
|
-
|
10702
|
-
query_params = []
|
10703
|
-
if 'invitation_id' in local_var_params and local_var_params['invitation_id'] is not None: # noqa: E501
|
10704
|
-
query_params.append(('invitation_id', local_var_params['invitation_id'])) # noqa: E501
|
10705
|
-
|
10706
|
-
header_params = {}
|
10707
|
-
|
10708
|
-
form_params = []
|
10709
|
-
local_var_files = {}
|
10710
|
-
|
10711
|
-
body_params = None
|
10712
|
-
# HTTP header `Accept`
|
10713
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
10714
|
-
['application/json']) # noqa: E501
|
10715
|
-
|
10716
|
-
# Authentication setting
|
10717
|
-
auth_settings = [] # noqa: E501
|
10718
|
-
|
10719
|
-
return self.api_client.call_api(
|
10720
|
-
'/api/v2/organizations/find_with_invitation', 'GET',
|
10721
|
-
path_params,
|
10722
|
-
query_params,
|
10723
|
-
header_params,
|
10724
|
-
body=body_params,
|
10725
|
-
post_params=form_params,
|
10726
|
-
files=local_var_files,
|
10727
|
-
response_type='OrganizationResponse', # noqa: E501
|
10728
|
-
auth_settings=auth_settings,
|
10729
|
-
async_req=local_var_params.get('async_req'),
|
10730
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
10731
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
10732
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
10733
|
-
collection_formats=collection_formats)
|
10734
|
-
|
10735
|
-
def find_with_user_api_v2_organizations_find_with_user_get(self, user_email, **kwargs): # noqa: E501
|
10736
|
-
"""Find With User # noqa: E501
|
10737
|
-
|
10738
|
-
This method makes a synchronous HTTP request by default. To make an
|
10739
|
-
asynchronous HTTP request, please pass async_req=True
|
10740
|
-
>>> thread = api.find_with_user_api_v2_organizations_find_with_user_get(user_email, async_req=True)
|
10741
|
-
>>> result = thread.get()
|
10742
|
-
|
10743
|
-
:param async_req bool: execute request asynchronously
|
10744
|
-
:param str user_email: (required)
|
10745
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
10746
|
-
be returned without reading/decoding response
|
10747
|
-
data. Default is True.
|
10748
|
-
:param _request_timeout: timeout setting for this request. If one
|
10749
|
-
number provided, it will be total request
|
10750
|
-
timeout. It can also be a pair (tuple) of
|
10751
|
-
(connection, read) timeouts.
|
10752
|
-
:return: OrganizationResponse
|
10753
|
-
If the method is called asynchronously,
|
10754
|
-
returns the request thread.
|
10755
|
-
"""
|
10756
|
-
kwargs['_return_http_data_only'] = True
|
10757
|
-
return self.find_with_user_api_v2_organizations_find_with_user_get_with_http_info(user_email, **kwargs) # noqa: E501
|
10758
|
-
|
10759
|
-
def find_with_user_api_v2_organizations_find_with_user_get_with_http_info(self, user_email, **kwargs): # noqa: E501
|
10760
|
-
"""Find With User # noqa: E501
|
10761
|
-
|
10762
|
-
This method makes a synchronous HTTP request by default. To make an
|
10763
|
-
asynchronous HTTP request, please pass async_req=True
|
10764
|
-
>>> thread = api.find_with_user_api_v2_organizations_find_with_user_get_with_http_info(user_email, async_req=True)
|
10765
|
-
>>> result = thread.get()
|
10766
|
-
|
10767
|
-
:param async_req bool: execute request asynchronously
|
10768
|
-
:param str user_email: (required)
|
10769
|
-
:param _return_http_data_only: response data without head status code
|
10770
|
-
and headers
|
10771
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
10772
|
-
be returned without reading/decoding response
|
10773
|
-
data. Default is True.
|
10774
|
-
:param _request_timeout: timeout setting for this request. If one
|
10775
|
-
number provided, it will be total request
|
10776
|
-
timeout. It can also be a pair (tuple) of
|
10777
|
-
(connection, read) timeouts.
|
10778
|
-
:return: tuple(OrganizationResponse, status_code(int), headers(HTTPHeaderDict))
|
10779
|
-
If the method is called asynchronously,
|
10780
|
-
returns the request thread.
|
10781
|
-
"""
|
10782
|
-
|
10783
|
-
local_var_params = locals()
|
10784
|
-
|
10785
|
-
all_params = [
|
10786
|
-
'user_email'
|
10787
|
-
]
|
10788
|
-
all_params.extend(
|
10789
|
-
[
|
10790
|
-
'async_req',
|
10791
|
-
'_return_http_data_only',
|
10792
|
-
'_preload_content',
|
10793
|
-
'_request_timeout'
|
10794
|
-
]
|
10795
|
-
)
|
10796
|
-
|
10797
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
10798
|
-
if key not in all_params:
|
10799
|
-
raise ApiTypeError(
|
10800
|
-
"Got an unexpected keyword argument '%s'"
|
10801
|
-
" to method find_with_user_api_v2_organizations_find_with_user_get" % key
|
10802
|
-
)
|
10803
|
-
local_var_params[key] = val
|
10804
|
-
del local_var_params['kwargs']
|
10805
|
-
# verify the required parameter 'user_email' is set
|
10806
|
-
if self.api_client.client_side_validation and ('user_email' not in local_var_params or # noqa: E501
|
10807
|
-
local_var_params['user_email'] is None): # noqa: E501
|
10808
|
-
raise ApiValueError("Missing the required parameter `user_email` when calling `find_with_user_api_v2_organizations_find_with_user_get`") # noqa: E501
|
10809
|
-
|
10810
|
-
collection_formats = {}
|
10811
|
-
|
10812
|
-
path_params = {}
|
10813
|
-
|
10814
|
-
query_params = []
|
10815
|
-
if 'user_email' in local_var_params and local_var_params['user_email'] is not None: # noqa: E501
|
10816
|
-
query_params.append(('user_email', local_var_params['user_email'])) # noqa: E501
|
10817
|
-
|
10818
|
-
header_params = {}
|
10819
|
-
|
10820
|
-
form_params = []
|
10821
|
-
local_var_files = {}
|
10822
|
-
|
10823
|
-
body_params = None
|
10824
|
-
# HTTP header `Accept`
|
10825
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
10826
|
-
['application/json']) # noqa: E501
|
10827
|
-
|
10828
|
-
# Authentication setting
|
10829
|
-
auth_settings = [] # noqa: E501
|
10830
|
-
|
10831
|
-
return self.api_client.call_api(
|
10832
|
-
'/api/v2/organizations/find_with_user', 'GET',
|
10833
|
-
path_params,
|
10834
|
-
query_params,
|
10835
|
-
header_params,
|
10836
|
-
body=body_params,
|
10837
|
-
post_params=form_params,
|
10838
|
-
files=local_var_files,
|
10839
|
-
response_type='OrganizationResponse', # noqa: E501
|
10840
|
-
auth_settings=auth_settings,
|
10841
|
-
async_req=local_var_params.get('async_req'),
|
10842
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
10843
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
10844
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
10845
|
-
collection_formats=collection_formats)
|
10846
|
-
|
10847
10623
|
def finish_session_command_api_v2_session_commands_session_command_id_finish_post(self, session_command_id, session_command_finish_options, **kwargs): # noqa: E501
|
10848
10624
|
"""Finish Session Command # noqa: E501
|
10849
10625
|
|
@@ -15899,118 +15675,6 @@ class DefaultApi(object):
|
|
15899
15675
|
_request_timeout=local_var_params.get('_request_timeout'),
|
15900
15676
|
collection_formats=collection_formats)
|
15901
15677
|
|
15902
|
-
def get_job_logs_download_api_v2_logs_job_logs_download_job_id_get(self, job_id, **kwargs): # noqa: E501
|
15903
|
-
"""Get Job Logs Download # noqa: E501
|
15904
|
-
|
15905
|
-
This method makes a synchronous HTTP request by default. To make an
|
15906
|
-
asynchronous HTTP request, please pass async_req=True
|
15907
|
-
>>> thread = api.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get(job_id, async_req=True)
|
15908
|
-
>>> result = thread.get()
|
15909
|
-
|
15910
|
-
:param async_req bool: execute request asynchronously
|
15911
|
-
:param str job_id: (required)
|
15912
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
15913
|
-
be returned without reading/decoding response
|
15914
|
-
data. Default is True.
|
15915
|
-
:param _request_timeout: timeout setting for this request. If one
|
15916
|
-
number provided, it will be total request
|
15917
|
-
timeout. It can also be a pair (tuple) of
|
15918
|
-
(connection, read) timeouts.
|
15919
|
-
:return: LogdownloadresultResponse
|
15920
|
-
If the method is called asynchronously,
|
15921
|
-
returns the request thread.
|
15922
|
-
"""
|
15923
|
-
kwargs['_return_http_data_only'] = True
|
15924
|
-
return self.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(job_id, **kwargs) # noqa: E501
|
15925
|
-
|
15926
|
-
def get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(self, job_id, **kwargs): # noqa: E501
|
15927
|
-
"""Get Job Logs Download # noqa: E501
|
15928
|
-
|
15929
|
-
This method makes a synchronous HTTP request by default. To make an
|
15930
|
-
asynchronous HTTP request, please pass async_req=True
|
15931
|
-
>>> thread = api.get_job_logs_download_api_v2_logs_job_logs_download_job_id_get_with_http_info(job_id, async_req=True)
|
15932
|
-
>>> result = thread.get()
|
15933
|
-
|
15934
|
-
:param async_req bool: execute request asynchronously
|
15935
|
-
:param str job_id: (required)
|
15936
|
-
:param _return_http_data_only: response data without head status code
|
15937
|
-
and headers
|
15938
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
15939
|
-
be returned without reading/decoding response
|
15940
|
-
data. Default is True.
|
15941
|
-
:param _request_timeout: timeout setting for this request. If one
|
15942
|
-
number provided, it will be total request
|
15943
|
-
timeout. It can also be a pair (tuple) of
|
15944
|
-
(connection, read) timeouts.
|
15945
|
-
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
15946
|
-
If the method is called asynchronously,
|
15947
|
-
returns the request thread.
|
15948
|
-
"""
|
15949
|
-
|
15950
|
-
local_var_params = locals()
|
15951
|
-
|
15952
|
-
all_params = [
|
15953
|
-
'job_id'
|
15954
|
-
]
|
15955
|
-
all_params.extend(
|
15956
|
-
[
|
15957
|
-
'async_req',
|
15958
|
-
'_return_http_data_only',
|
15959
|
-
'_preload_content',
|
15960
|
-
'_request_timeout'
|
15961
|
-
]
|
15962
|
-
)
|
15963
|
-
|
15964
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
15965
|
-
if key not in all_params:
|
15966
|
-
raise ApiTypeError(
|
15967
|
-
"Got an unexpected keyword argument '%s'"
|
15968
|
-
" to method get_job_logs_download_api_v2_logs_job_logs_download_job_id_get" % key
|
15969
|
-
)
|
15970
|
-
local_var_params[key] = val
|
15971
|
-
del local_var_params['kwargs']
|
15972
|
-
# verify the required parameter 'job_id' is set
|
15973
|
-
if self.api_client.client_side_validation and ('job_id' not in local_var_params or # noqa: E501
|
15974
|
-
local_var_params['job_id'] is None): # noqa: E501
|
15975
|
-
raise ApiValueError("Missing the required parameter `job_id` when calling `get_job_logs_download_api_v2_logs_job_logs_download_job_id_get`") # noqa: E501
|
15976
|
-
|
15977
|
-
collection_formats = {}
|
15978
|
-
|
15979
|
-
path_params = {}
|
15980
|
-
if 'job_id' in local_var_params:
|
15981
|
-
path_params['job_id'] = local_var_params['job_id'] # noqa: E501
|
15982
|
-
|
15983
|
-
query_params = []
|
15984
|
-
|
15985
|
-
header_params = {}
|
15986
|
-
|
15987
|
-
form_params = []
|
15988
|
-
local_var_files = {}
|
15989
|
-
|
15990
|
-
body_params = None
|
15991
|
-
# HTTP header `Accept`
|
15992
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
15993
|
-
['application/json']) # noqa: E501
|
15994
|
-
|
15995
|
-
# Authentication setting
|
15996
|
-
auth_settings = [] # noqa: E501
|
15997
|
-
|
15998
|
-
return self.api_client.call_api(
|
15999
|
-
'/api/v2/logs/job_logs_download/{job_id}', 'GET',
|
16000
|
-
path_params,
|
16001
|
-
query_params,
|
16002
|
-
header_params,
|
16003
|
-
body=body_params,
|
16004
|
-
post_params=form_params,
|
16005
|
-
files=local_var_files,
|
16006
|
-
response_type='LogdownloadresultResponse', # noqa: E501
|
16007
|
-
auth_settings=auth_settings,
|
16008
|
-
async_req=local_var_params.get('async_req'),
|
16009
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
16010
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
16011
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
16012
|
-
collection_formats=collection_formats)
|
16013
|
-
|
16014
15678
|
def get_job_logs_download_v2_api_v2_logs_job_logs_download_v2_job_id_get(self, job_id, **kwargs): # noqa: E501
|
16015
15679
|
"""Get Job Logs Download V2 # noqa: E501
|
16016
15680
|
|
@@ -17876,118 +17540,6 @@ class DefaultApi(object):
|
|
17876
17540
|
_request_timeout=local_var_params.get('_request_timeout'),
|
17877
17541
|
collection_formats=collection_formats)
|
17878
17542
|
|
17879
|
-
def get_public_identifier_api_v2_organizations_public_identifier_get(self, organization_name, **kwargs): # noqa: E501
|
17880
|
-
"""Get Public Identifier # noqa: E501
|
17881
|
-
|
17882
|
-
This method makes a synchronous HTTP request by default. To make an
|
17883
|
-
asynchronous HTTP request, please pass async_req=True
|
17884
|
-
>>> thread = api.get_public_identifier_api_v2_organizations_public_identifier_get(organization_name, async_req=True)
|
17885
|
-
>>> result = thread.get()
|
17886
|
-
|
17887
|
-
:param async_req bool: execute request asynchronously
|
17888
|
-
:param str organization_name: (required)
|
17889
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17890
|
-
be returned without reading/decoding response
|
17891
|
-
data. Default is True.
|
17892
|
-
:param _request_timeout: timeout setting for this request. If one
|
17893
|
-
number provided, it will be total request
|
17894
|
-
timeout. It can also be a pair (tuple) of
|
17895
|
-
(connection, read) timeouts.
|
17896
|
-
:return: OrganizationpublicidentifierResponse
|
17897
|
-
If the method is called asynchronously,
|
17898
|
-
returns the request thread.
|
17899
|
-
"""
|
17900
|
-
kwargs['_return_http_data_only'] = True
|
17901
|
-
return self.get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(organization_name, **kwargs) # noqa: E501
|
17902
|
-
|
17903
|
-
def get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(self, organization_name, **kwargs): # noqa: E501
|
17904
|
-
"""Get Public Identifier # noqa: E501
|
17905
|
-
|
17906
|
-
This method makes a synchronous HTTP request by default. To make an
|
17907
|
-
asynchronous HTTP request, please pass async_req=True
|
17908
|
-
>>> thread = api.get_public_identifier_api_v2_organizations_public_identifier_get_with_http_info(organization_name, async_req=True)
|
17909
|
-
>>> result = thread.get()
|
17910
|
-
|
17911
|
-
:param async_req bool: execute request asynchronously
|
17912
|
-
:param str organization_name: (required)
|
17913
|
-
:param _return_http_data_only: response data without head status code
|
17914
|
-
and headers
|
17915
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17916
|
-
be returned without reading/decoding response
|
17917
|
-
data. Default is True.
|
17918
|
-
:param _request_timeout: timeout setting for this request. If one
|
17919
|
-
number provided, it will be total request
|
17920
|
-
timeout. It can also be a pair (tuple) of
|
17921
|
-
(connection, read) timeouts.
|
17922
|
-
:return: tuple(OrganizationpublicidentifierResponse, status_code(int), headers(HTTPHeaderDict))
|
17923
|
-
If the method is called asynchronously,
|
17924
|
-
returns the request thread.
|
17925
|
-
"""
|
17926
|
-
|
17927
|
-
local_var_params = locals()
|
17928
|
-
|
17929
|
-
all_params = [
|
17930
|
-
'organization_name'
|
17931
|
-
]
|
17932
|
-
all_params.extend(
|
17933
|
-
[
|
17934
|
-
'async_req',
|
17935
|
-
'_return_http_data_only',
|
17936
|
-
'_preload_content',
|
17937
|
-
'_request_timeout'
|
17938
|
-
]
|
17939
|
-
)
|
17940
|
-
|
17941
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
17942
|
-
if key not in all_params:
|
17943
|
-
raise ApiTypeError(
|
17944
|
-
"Got an unexpected keyword argument '%s'"
|
17945
|
-
" to method get_public_identifier_api_v2_organizations_public_identifier_get" % key
|
17946
|
-
)
|
17947
|
-
local_var_params[key] = val
|
17948
|
-
del local_var_params['kwargs']
|
17949
|
-
# verify the required parameter 'organization_name' is set
|
17950
|
-
if self.api_client.client_side_validation and ('organization_name' not in local_var_params or # noqa: E501
|
17951
|
-
local_var_params['organization_name'] is None): # noqa: E501
|
17952
|
-
raise ApiValueError("Missing the required parameter `organization_name` when calling `get_public_identifier_api_v2_organizations_public_identifier_get`") # noqa: E501
|
17953
|
-
|
17954
|
-
collection_formats = {}
|
17955
|
-
|
17956
|
-
path_params = {}
|
17957
|
-
|
17958
|
-
query_params = []
|
17959
|
-
if 'organization_name' in local_var_params and local_var_params['organization_name'] is not None: # noqa: E501
|
17960
|
-
query_params.append(('organization_name', local_var_params['organization_name'])) # noqa: E501
|
17961
|
-
|
17962
|
-
header_params = {}
|
17963
|
-
|
17964
|
-
form_params = []
|
17965
|
-
local_var_files = {}
|
17966
|
-
|
17967
|
-
body_params = None
|
17968
|
-
# HTTP header `Accept`
|
17969
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
17970
|
-
['application/json']) # noqa: E501
|
17971
|
-
|
17972
|
-
# Authentication setting
|
17973
|
-
auth_settings = [] # noqa: E501
|
17974
|
-
|
17975
|
-
return self.api_client.call_api(
|
17976
|
-
'/api/v2/organizations/public_identifier', 'GET',
|
17977
|
-
path_params,
|
17978
|
-
query_params,
|
17979
|
-
header_params,
|
17980
|
-
body=body_params,
|
17981
|
-
post_params=form_params,
|
17982
|
-
files=local_var_files,
|
17983
|
-
response_type='OrganizationpublicidentifierResponse', # noqa: E501
|
17984
|
-
auth_settings=auth_settings,
|
17985
|
-
async_req=local_var_params.get('async_req'),
|
17986
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
17987
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
17988
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
17989
|
-
collection_formats=collection_formats)
|
17990
|
-
|
17991
17543
|
def get_recent_cluster_compute_configs_api_v2_recent_activity_cluster_compute_configs_get(self, **kwargs): # noqa: E501
|
17992
17544
|
"""Get Recent Cluster Compute Configs # noqa: E501
|
17993
17545
|
|
@@ -18552,128 +18104,16 @@ class DefaultApi(object):
|
|
18552
18104
|
kwargs['_return_http_data_only'] = True
|
18553
18105
|
return self.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, **kwargs) # noqa: E501
|
18554
18106
|
|
18555
|
-
def get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(self, resource_notification_id, **kwargs): # noqa: E501
|
18556
|
-
"""Get Resource Notification # noqa: E501
|
18557
|
-
|
18558
|
-
This method makes a synchronous HTTP request by default. To make an
|
18559
|
-
asynchronous HTTP request, please pass async_req=True
|
18560
|
-
>>> thread = api.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, async_req=True)
|
18561
|
-
>>> result = thread.get()
|
18562
|
-
|
18563
|
-
:param async_req bool: execute request asynchronously
|
18564
|
-
:param str resource_notification_id: (required)
|
18565
|
-
:param _return_http_data_only: response data without head status code
|
18566
|
-
and headers
|
18567
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18568
|
-
be returned without reading/decoding response
|
18569
|
-
data. Default is True.
|
18570
|
-
:param _request_timeout: timeout setting for this request. If one
|
18571
|
-
number provided, it will be total request
|
18572
|
-
timeout. It can also be a pair (tuple) of
|
18573
|
-
(connection, read) timeouts.
|
18574
|
-
:return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
|
18575
|
-
If the method is called asynchronously,
|
18576
|
-
returns the request thread.
|
18577
|
-
"""
|
18578
|
-
|
18579
|
-
local_var_params = locals()
|
18580
|
-
|
18581
|
-
all_params = [
|
18582
|
-
'resource_notification_id'
|
18583
|
-
]
|
18584
|
-
all_params.extend(
|
18585
|
-
[
|
18586
|
-
'async_req',
|
18587
|
-
'_return_http_data_only',
|
18588
|
-
'_preload_content',
|
18589
|
-
'_request_timeout'
|
18590
|
-
]
|
18591
|
-
)
|
18592
|
-
|
18593
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
18594
|
-
if key not in all_params:
|
18595
|
-
raise ApiTypeError(
|
18596
|
-
"Got an unexpected keyword argument '%s'"
|
18597
|
-
" to method get_resource_notification_api_v2_resource_notifications_resource_notification_id_get" % key
|
18598
|
-
)
|
18599
|
-
local_var_params[key] = val
|
18600
|
-
del local_var_params['kwargs']
|
18601
|
-
# verify the required parameter 'resource_notification_id' is set
|
18602
|
-
if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
|
18603
|
-
local_var_params['resource_notification_id'] is None): # noqa: E501
|
18604
|
-
raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `get_resource_notification_api_v2_resource_notifications_resource_notification_id_get`") # noqa: E501
|
18605
|
-
|
18606
|
-
collection_formats = {}
|
18607
|
-
|
18608
|
-
path_params = {}
|
18609
|
-
if 'resource_notification_id' in local_var_params:
|
18610
|
-
path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
|
18611
|
-
|
18612
|
-
query_params = []
|
18613
|
-
|
18614
|
-
header_params = {}
|
18615
|
-
|
18616
|
-
form_params = []
|
18617
|
-
local_var_files = {}
|
18618
|
-
|
18619
|
-
body_params = None
|
18620
|
-
# HTTP header `Accept`
|
18621
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
18622
|
-
['application/json']) # noqa: E501
|
18623
|
-
|
18624
|
-
# Authentication setting
|
18625
|
-
auth_settings = [] # noqa: E501
|
18626
|
-
|
18627
|
-
return self.api_client.call_api(
|
18628
|
-
'/api/v2/resource_notifications/{resource_notification_id}', 'GET',
|
18629
|
-
path_params,
|
18630
|
-
query_params,
|
18631
|
-
header_params,
|
18632
|
-
body=body_params,
|
18633
|
-
post_params=form_params,
|
18634
|
-
files=local_var_files,
|
18635
|
-
response_type='ResourcenotificationResponse', # noqa: E501
|
18636
|
-
auth_settings=auth_settings,
|
18637
|
-
async_req=local_var_params.get('async_req'),
|
18638
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18639
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
18640
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
18641
|
-
collection_formats=collection_formats)
|
18642
|
-
|
18643
|
-
def get_resource_quota_api_v2_resource_quotas_resource_quota_id_get(self, resource_quota_id, **kwargs): # noqa: E501
|
18644
|
-
"""Get Resource Quota # noqa: E501
|
18645
|
-
|
18646
|
-
This method makes a synchronous HTTP request by default. To make an
|
18647
|
-
asynchronous HTTP request, please pass async_req=True
|
18648
|
-
>>> thread = api.get_resource_quota_api_v2_resource_quotas_resource_quota_id_get(resource_quota_id, async_req=True)
|
18649
|
-
>>> result = thread.get()
|
18650
|
-
|
18651
|
-
:param async_req bool: execute request asynchronously
|
18652
|
-
:param str resource_quota_id: (required)
|
18653
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18654
|
-
be returned without reading/decoding response
|
18655
|
-
data. Default is True.
|
18656
|
-
:param _request_timeout: timeout setting for this request. If one
|
18657
|
-
number provided, it will be total request
|
18658
|
-
timeout. It can also be a pair (tuple) of
|
18659
|
-
(connection, read) timeouts.
|
18660
|
-
:return: ResourcequotaResponse
|
18661
|
-
If the method is called asynchronously,
|
18662
|
-
returns the request thread.
|
18663
|
-
"""
|
18664
|
-
kwargs['_return_http_data_only'] = True
|
18665
|
-
return self.get_resource_quota_api_v2_resource_quotas_resource_quota_id_get_with_http_info(resource_quota_id, **kwargs) # noqa: E501
|
18666
|
-
|
18667
|
-
def get_resource_quota_api_v2_resource_quotas_resource_quota_id_get_with_http_info(self, resource_quota_id, **kwargs): # noqa: E501
|
18668
|
-
"""Get Resource Quota # noqa: E501
|
18669
|
-
|
18107
|
+
def get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(self, resource_notification_id, **kwargs): # noqa: E501
|
18108
|
+
"""Get Resource Notification # noqa: E501
|
18109
|
+
|
18670
18110
|
This method makes a synchronous HTTP request by default. To make an
|
18671
18111
|
asynchronous HTTP request, please pass async_req=True
|
18672
|
-
>>> thread = api.
|
18112
|
+
>>> thread = api.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, async_req=True)
|
18673
18113
|
>>> result = thread.get()
|
18674
18114
|
|
18675
18115
|
:param async_req bool: execute request asynchronously
|
18676
|
-
:param str
|
18116
|
+
:param str resource_notification_id: (required)
|
18677
18117
|
:param _return_http_data_only: response data without head status code
|
18678
18118
|
and headers
|
18679
18119
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -18683,7 +18123,7 @@ class DefaultApi(object):
|
|
18683
18123
|
number provided, it will be total request
|
18684
18124
|
timeout. It can also be a pair (tuple) of
|
18685
18125
|
(connection, read) timeouts.
|
18686
|
-
:return: tuple(
|
18126
|
+
:return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
|
18687
18127
|
If the method is called asynchronously,
|
18688
18128
|
returns the request thread.
|
18689
18129
|
"""
|
@@ -18691,7 +18131,7 @@ class DefaultApi(object):
|
|
18691
18131
|
local_var_params = locals()
|
18692
18132
|
|
18693
18133
|
all_params = [
|
18694
|
-
'
|
18134
|
+
'resource_notification_id'
|
18695
18135
|
]
|
18696
18136
|
all_params.extend(
|
18697
18137
|
[
|
@@ -18706,20 +18146,20 @@ class DefaultApi(object):
|
|
18706
18146
|
if key not in all_params:
|
18707
18147
|
raise ApiTypeError(
|
18708
18148
|
"Got an unexpected keyword argument '%s'"
|
18709
|
-
" to method
|
18149
|
+
" to method get_resource_notification_api_v2_resource_notifications_resource_notification_id_get" % key
|
18710
18150
|
)
|
18711
18151
|
local_var_params[key] = val
|
18712
18152
|
del local_var_params['kwargs']
|
18713
|
-
# verify the required parameter '
|
18714
|
-
if self.api_client.client_side_validation and ('
|
18715
|
-
local_var_params['
|
18716
|
-
raise ApiValueError("Missing the required parameter `
|
18153
|
+
# verify the required parameter 'resource_notification_id' is set
|
18154
|
+
if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
|
18155
|
+
local_var_params['resource_notification_id'] is None): # noqa: E501
|
18156
|
+
raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `get_resource_notification_api_v2_resource_notifications_resource_notification_id_get`") # noqa: E501
|
18717
18157
|
|
18718
18158
|
collection_formats = {}
|
18719
18159
|
|
18720
18160
|
path_params = {}
|
18721
|
-
if '
|
18722
|
-
path_params['
|
18161
|
+
if 'resource_notification_id' in local_var_params:
|
18162
|
+
path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
|
18723
18163
|
|
18724
18164
|
query_params = []
|
18725
18165
|
|
@@ -18737,14 +18177,14 @@ class DefaultApi(object):
|
|
18737
18177
|
auth_settings = [] # noqa: E501
|
18738
18178
|
|
18739
18179
|
return self.api_client.call_api(
|
18740
|
-
'/api/v2/
|
18180
|
+
'/api/v2/resource_notifications/{resource_notification_id}', 'GET',
|
18741
18181
|
path_params,
|
18742
18182
|
query_params,
|
18743
18183
|
header_params,
|
18744
18184
|
body=body_params,
|
18745
18185
|
post_params=form_params,
|
18746
18186
|
files=local_var_files,
|
18747
|
-
response_type='
|
18187
|
+
response_type='ResourcenotificationResponse', # noqa: E501
|
18748
18188
|
auth_settings=auth_settings,
|
18749
18189
|
async_req=local_var_params.get('async_req'),
|
18750
18190
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -18752,16 +18192,16 @@ class DefaultApi(object):
|
|
18752
18192
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18753
18193
|
collection_formats=collection_formats)
|
18754
18194
|
|
18755
|
-
def
|
18756
|
-
"""Get
|
18195
|
+
def get_resource_quota_api_v2_resource_quotas_resource_quota_id_get(self, resource_quota_id, **kwargs): # noqa: E501
|
18196
|
+
"""Get Resource Quota # noqa: E501
|
18757
18197
|
|
18758
18198
|
This method makes a synchronous HTTP request by default. To make an
|
18759
18199
|
asynchronous HTTP request, please pass async_req=True
|
18760
|
-
>>> thread = api.
|
18200
|
+
>>> thread = api.get_resource_quota_api_v2_resource_quotas_resource_quota_id_get(resource_quota_id, async_req=True)
|
18761
18201
|
>>> result = thread.get()
|
18762
18202
|
|
18763
18203
|
:param async_req bool: execute request asynchronously
|
18764
|
-
:param str
|
18204
|
+
:param str resource_quota_id: (required)
|
18765
18205
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18766
18206
|
be returned without reading/decoding response
|
18767
18207
|
data. Default is True.
|
@@ -18769,23 +18209,23 @@ class DefaultApi(object):
|
|
18769
18209
|
number provided, it will be total request
|
18770
18210
|
timeout. It can also be a pair (tuple) of
|
18771
18211
|
(connection, read) timeouts.
|
18772
|
-
:return:
|
18212
|
+
:return: ResourcequotaResponse
|
18773
18213
|
If the method is called asynchronously,
|
18774
18214
|
returns the request thread.
|
18775
18215
|
"""
|
18776
18216
|
kwargs['_return_http_data_only'] = True
|
18777
|
-
return self.
|
18217
|
+
return self.get_resource_quota_api_v2_resource_quotas_resource_quota_id_get_with_http_info(resource_quota_id, **kwargs) # noqa: E501
|
18778
18218
|
|
18779
|
-
def
|
18780
|
-
"""Get
|
18219
|
+
def get_resource_quota_api_v2_resource_quotas_resource_quota_id_get_with_http_info(self, resource_quota_id, **kwargs): # noqa: E501
|
18220
|
+
"""Get Resource Quota # noqa: E501
|
18781
18221
|
|
18782
18222
|
This method makes a synchronous HTTP request by default. To make an
|
18783
18223
|
asynchronous HTTP request, please pass async_req=True
|
18784
|
-
>>> thread = api.
|
18224
|
+
>>> thread = api.get_resource_quota_api_v2_resource_quotas_resource_quota_id_get_with_http_info(resource_quota_id, async_req=True)
|
18785
18225
|
>>> result = thread.get()
|
18786
18226
|
|
18787
18227
|
:param async_req bool: execute request asynchronously
|
18788
|
-
:param str
|
18228
|
+
:param str resource_quota_id: (required)
|
18789
18229
|
:param _return_http_data_only: response data without head status code
|
18790
18230
|
and headers
|
18791
18231
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -18795,7 +18235,7 @@ class DefaultApi(object):
|
|
18795
18235
|
number provided, it will be total request
|
18796
18236
|
timeout. It can also be a pair (tuple) of
|
18797
18237
|
(connection, read) timeouts.
|
18798
|
-
:return: tuple(
|
18238
|
+
:return: tuple(ResourcequotaResponse, status_code(int), headers(HTTPHeaderDict))
|
18799
18239
|
If the method is called asynchronously,
|
18800
18240
|
returns the request thread.
|
18801
18241
|
"""
|
@@ -18803,7 +18243,7 @@ class DefaultApi(object):
|
|
18803
18243
|
local_var_params = locals()
|
18804
18244
|
|
18805
18245
|
all_params = [
|
18806
|
-
'
|
18246
|
+
'resource_quota_id'
|
18807
18247
|
]
|
18808
18248
|
all_params.extend(
|
18809
18249
|
[
|
@@ -18818,22 +18258,22 @@ class DefaultApi(object):
|
|
18818
18258
|
if key not in all_params:
|
18819
18259
|
raise ApiTypeError(
|
18820
18260
|
"Got an unexpected keyword argument '%s'"
|
18821
|
-
" to method
|
18261
|
+
" to method get_resource_quota_api_v2_resource_quotas_resource_quota_id_get" % key
|
18822
18262
|
)
|
18823
18263
|
local_var_params[key] = val
|
18824
18264
|
del local_var_params['kwargs']
|
18825
|
-
# verify the required parameter '
|
18826
|
-
if self.api_client.client_side_validation and ('
|
18827
|
-
local_var_params['
|
18828
|
-
raise ApiValueError("Missing the required parameter `
|
18265
|
+
# verify the required parameter 'resource_quota_id' is set
|
18266
|
+
if self.api_client.client_side_validation and ('resource_quota_id' not in local_var_params or # noqa: E501
|
18267
|
+
local_var_params['resource_quota_id'] is None): # noqa: E501
|
18268
|
+
raise ApiValueError("Missing the required parameter `resource_quota_id` when calling `get_resource_quota_api_v2_resource_quotas_resource_quota_id_get`") # noqa: E501
|
18829
18269
|
|
18830
18270
|
collection_formats = {}
|
18831
18271
|
|
18832
18272
|
path_params = {}
|
18273
|
+
if 'resource_quota_id' in local_var_params:
|
18274
|
+
path_params['resource_quota_id'] = local_var_params['resource_quota_id'] # noqa: E501
|
18833
18275
|
|
18834
18276
|
query_params = []
|
18835
|
-
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
18836
|
-
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
18837
18277
|
|
18838
18278
|
header_params = {}
|
18839
18279
|
|
@@ -18849,14 +18289,14 @@ class DefaultApi(object):
|
|
18849
18289
|
auth_settings = [] # noqa: E501
|
18850
18290
|
|
18851
18291
|
return self.api_client.call_api(
|
18852
|
-
'/api/v2/
|
18292
|
+
'/api/v2/resource_quotas/{resource_quota_id}', 'GET',
|
18853
18293
|
path_params,
|
18854
18294
|
query_params,
|
18855
18295
|
header_params,
|
18856
18296
|
body=body_params,
|
18857
18297
|
post_params=form_params,
|
18858
18298
|
files=local_var_files,
|
18859
|
-
response_type='
|
18299
|
+
response_type='ResourcequotaResponse', # noqa: E501
|
18860
18300
|
auth_settings=auth_settings,
|
18861
18301
|
async_req=local_var_params.get('async_req'),
|
18862
18302
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -18864,16 +18304,16 @@ class DefaultApi(object):
|
|
18864
18304
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18865
18305
|
collection_formats=collection_formats)
|
18866
18306
|
|
18867
|
-
def
|
18868
|
-
"""Get
|
18307
|
+
def get_root_cause_for_job_api_v2_iknow_get(self, ha_job_id, **kwargs): # noqa: E501
|
18308
|
+
"""Get Root Cause For Job # noqa: E501
|
18869
18309
|
|
18870
18310
|
This method makes a synchronous HTTP request by default. To make an
|
18871
18311
|
asynchronous HTTP request, please pass async_req=True
|
18872
|
-
>>> thread = api.
|
18312
|
+
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get(ha_job_id, async_req=True)
|
18873
18313
|
>>> result = thread.get()
|
18874
18314
|
|
18875
18315
|
:param async_req bool: execute request asynchronously
|
18876
|
-
:param str
|
18316
|
+
:param str ha_job_id: (required)
|
18877
18317
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18878
18318
|
be returned without reading/decoding response
|
18879
18319
|
data. Default is True.
|
@@ -18881,23 +18321,23 @@ class DefaultApi(object):
|
|
18881
18321
|
number provided, it will be total request
|
18882
18322
|
timeout. It can also be a pair (tuple) of
|
18883
18323
|
(connection, read) timeouts.
|
18884
|
-
:return:
|
18324
|
+
:return: IKnowResponse
|
18885
18325
|
If the method is called asynchronously,
|
18886
18326
|
returns the request thread.
|
18887
18327
|
"""
|
18888
18328
|
kwargs['_return_http_data_only'] = True
|
18889
|
-
return self.
|
18329
|
+
return self.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, **kwargs) # noqa: E501
|
18890
18330
|
|
18891
|
-
def
|
18892
|
-
"""Get
|
18331
|
+
def get_root_cause_for_job_api_v2_iknow_get_with_http_info(self, ha_job_id, **kwargs): # noqa: E501
|
18332
|
+
"""Get Root Cause For Job # noqa: E501
|
18893
18333
|
|
18894
18334
|
This method makes a synchronous HTTP request by default. To make an
|
18895
18335
|
asynchronous HTTP request, please pass async_req=True
|
18896
|
-
>>> thread = api.
|
18336
|
+
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, async_req=True)
|
18897
18337
|
>>> result = thread.get()
|
18898
18338
|
|
18899
18339
|
:param async_req bool: execute request asynchronously
|
18900
|
-
:param str
|
18340
|
+
:param str ha_job_id: (required)
|
18901
18341
|
:param _return_http_data_only: response data without head status code
|
18902
18342
|
and headers
|
18903
18343
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -18907,7 +18347,7 @@ class DefaultApi(object):
|
|
18907
18347
|
number provided, it will be total request
|
18908
18348
|
timeout. It can also be a pair (tuple) of
|
18909
18349
|
(connection, read) timeouts.
|
18910
|
-
:return: tuple(
|
18350
|
+
:return: tuple(IKnowResponse, status_code(int), headers(HTTPHeaderDict))
|
18911
18351
|
If the method is called asynchronously,
|
18912
18352
|
returns the request thread.
|
18913
18353
|
"""
|
@@ -18915,7 +18355,7 @@ class DefaultApi(object):
|
|
18915
18355
|
local_var_params = locals()
|
18916
18356
|
|
18917
18357
|
all_params = [
|
18918
|
-
'
|
18358
|
+
'ha_job_id'
|
18919
18359
|
]
|
18920
18360
|
all_params.extend(
|
18921
18361
|
[
|
@@ -18930,22 +18370,22 @@ class DefaultApi(object):
|
|
18930
18370
|
if key not in all_params:
|
18931
18371
|
raise ApiTypeError(
|
18932
18372
|
"Got an unexpected keyword argument '%s'"
|
18933
|
-
" to method
|
18373
|
+
" to method get_root_cause_for_job_api_v2_iknow_get" % key
|
18934
18374
|
)
|
18935
18375
|
local_var_params[key] = val
|
18936
18376
|
del local_var_params['kwargs']
|
18937
|
-
# verify the required parameter '
|
18938
|
-
if self.api_client.client_side_validation and ('
|
18939
|
-
local_var_params['
|
18940
|
-
raise ApiValueError("Missing the required parameter `
|
18377
|
+
# verify the required parameter 'ha_job_id' is set
|
18378
|
+
if self.api_client.client_side_validation and ('ha_job_id' not in local_var_params or # noqa: E501
|
18379
|
+
local_var_params['ha_job_id'] is None): # noqa: E501
|
18380
|
+
raise ApiValueError("Missing the required parameter `ha_job_id` when calling `get_root_cause_for_job_api_v2_iknow_get`") # noqa: E501
|
18941
18381
|
|
18942
18382
|
collection_formats = {}
|
18943
18383
|
|
18944
18384
|
path_params = {}
|
18945
|
-
if 'session_id' in local_var_params:
|
18946
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
18947
18385
|
|
18948
18386
|
query_params = []
|
18387
|
+
if 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
|
18388
|
+
query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
|
18949
18389
|
|
18950
18390
|
header_params = {}
|
18951
18391
|
|
@@ -18961,14 +18401,14 @@ class DefaultApi(object):
|
|
18961
18401
|
auth_settings = [] # noqa: E501
|
18962
18402
|
|
18963
18403
|
return self.api_client.call_api(
|
18964
|
-
'/api/v2/
|
18404
|
+
'/api/v2/iknow/', 'GET',
|
18965
18405
|
path_params,
|
18966
18406
|
query_params,
|
18967
18407
|
header_params,
|
18968
18408
|
body=body_params,
|
18969
18409
|
post_params=form_params,
|
18970
18410
|
files=local_var_files,
|
18971
|
-
response_type='
|
18411
|
+
response_type='IKnowResponse', # noqa: E501
|
18972
18412
|
auth_settings=auth_settings,
|
18973
18413
|
async_req=local_var_params.get('async_req'),
|
18974
18414
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -33884,17 +33324,18 @@ class DefaultApi(object):
|
|
33884
33324
|
_request_timeout=local_var_params.get('_request_timeout'),
|
33885
33325
|
collection_formats=collection_formats)
|
33886
33326
|
|
33887
|
-
def
|
33888
|
-
"""Update Cloud Config # noqa: E501
|
33327
|
+
def update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put(self, cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs): # noqa: E501
|
33328
|
+
"""Update Cloud Deployment Config # noqa: E501
|
33889
33329
|
|
33890
33330
|
This method makes a synchronous HTTP request by default. To make an
|
33891
33331
|
asynchronous HTTP request, please pass async_req=True
|
33892
|
-
>>> thread = api.
|
33332
|
+
>>> thread = api.update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put(cloud_id, cloud_deployment_id, cloud_deployment_config, async_req=True)
|
33893
33333
|
>>> result = thread.get()
|
33894
33334
|
|
33895
33335
|
:param async_req bool: execute request asynchronously
|
33896
33336
|
:param str cloud_id: (required)
|
33897
|
-
:param
|
33337
|
+
:param str cloud_deployment_id: (required)
|
33338
|
+
:param CloudDeploymentConfig cloud_deployment_config: (required)
|
33898
33339
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33899
33340
|
be returned without reading/decoding response
|
33900
33341
|
data. Default is True.
|
@@ -33902,24 +33343,25 @@ class DefaultApi(object):
|
|
33902
33343
|
number provided, it will be total request
|
33903
33344
|
timeout. It can also be a pair (tuple) of
|
33904
33345
|
(connection, read) timeouts.
|
33905
|
-
:return:
|
33346
|
+
:return: ClouddeploymentconfigResponse
|
33906
33347
|
If the method is called asynchronously,
|
33907
33348
|
returns the request thread.
|
33908
33349
|
"""
|
33909
33350
|
kwargs['_return_http_data_only'] = True
|
33910
|
-
return self.
|
33351
|
+
return self.update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put_with_http_info(cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs) # noqa: E501
|
33911
33352
|
|
33912
|
-
def
|
33913
|
-
"""Update Cloud Config # noqa: E501
|
33353
|
+
def update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put_with_http_info(self, cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs): # noqa: E501
|
33354
|
+
"""Update Cloud Deployment Config # noqa: E501
|
33914
33355
|
|
33915
33356
|
This method makes a synchronous HTTP request by default. To make an
|
33916
33357
|
asynchronous HTTP request, please pass async_req=True
|
33917
|
-
>>> thread = api.
|
33358
|
+
>>> thread = api.update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put_with_http_info(cloud_id, cloud_deployment_id, cloud_deployment_config, async_req=True)
|
33918
33359
|
>>> result = thread.get()
|
33919
33360
|
|
33920
33361
|
:param async_req bool: execute request asynchronously
|
33921
33362
|
:param str cloud_id: (required)
|
33922
|
-
:param
|
33363
|
+
:param str cloud_deployment_id: (required)
|
33364
|
+
:param CloudDeploymentConfig cloud_deployment_config: (required)
|
33923
33365
|
:param _return_http_data_only: response data without head status code
|
33924
33366
|
and headers
|
33925
33367
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -33929,7 +33371,7 @@ class DefaultApi(object):
|
|
33929
33371
|
number provided, it will be total request
|
33930
33372
|
timeout. It can also be a pair (tuple) of
|
33931
33373
|
(connection, read) timeouts.
|
33932
|
-
:return: tuple(
|
33374
|
+
:return: tuple(ClouddeploymentconfigResponse, status_code(int), headers(HTTPHeaderDict))
|
33933
33375
|
If the method is called asynchronously,
|
33934
33376
|
returns the request thread.
|
33935
33377
|
"""
|
@@ -33938,7 +33380,8 @@ class DefaultApi(object):
|
|
33938
33380
|
|
33939
33381
|
all_params = [
|
33940
33382
|
'cloud_id',
|
33941
|
-
'
|
33383
|
+
'cloud_deployment_id',
|
33384
|
+
'cloud_deployment_config'
|
33942
33385
|
]
|
33943
33386
|
all_params.extend(
|
33944
33387
|
[
|
@@ -33953,24 +33396,30 @@ class DefaultApi(object):
|
|
33953
33396
|
if key not in all_params:
|
33954
33397
|
raise ApiTypeError(
|
33955
33398
|
"Got an unexpected keyword argument '%s'"
|
33956
|
-
" to method
|
33399
|
+
" to method update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put" % key
|
33957
33400
|
)
|
33958
33401
|
local_var_params[key] = val
|
33959
33402
|
del local_var_params['kwargs']
|
33960
33403
|
# verify the required parameter 'cloud_id' is set
|
33961
33404
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
33962
33405
|
local_var_params['cloud_id'] is None): # noqa: E501
|
33963
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
33964
|
-
# verify the required parameter '
|
33965
|
-
if self.api_client.client_side_validation and ('
|
33966
|
-
local_var_params['
|
33967
|
-
raise ApiValueError("Missing the required parameter `
|
33406
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
|
33407
|
+
# verify the required parameter 'cloud_deployment_id' is set
|
33408
|
+
if self.api_client.client_side_validation and ('cloud_deployment_id' not in local_var_params or # noqa: E501
|
33409
|
+
local_var_params['cloud_deployment_id'] is None): # noqa: E501
|
33410
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment_id` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
|
33411
|
+
# verify the required parameter 'cloud_deployment_config' is set
|
33412
|
+
if self.api_client.client_side_validation and ('cloud_deployment_config' not in local_var_params or # noqa: E501
|
33413
|
+
local_var_params['cloud_deployment_config'] is None): # noqa: E501
|
33414
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment_config` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
|
33968
33415
|
|
33969
33416
|
collection_formats = {}
|
33970
33417
|
|
33971
33418
|
path_params = {}
|
33972
33419
|
if 'cloud_id' in local_var_params:
|
33973
33420
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
33421
|
+
if 'cloud_deployment_id' in local_var_params:
|
33422
|
+
path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
|
33974
33423
|
|
33975
33424
|
query_params = []
|
33976
33425
|
|
@@ -33980,8 +33429,8 @@ class DefaultApi(object):
|
|
33980
33429
|
local_var_files = {}
|
33981
33430
|
|
33982
33431
|
body_params = None
|
33983
|
-
if '
|
33984
|
-
body_params = local_var_params['
|
33432
|
+
if 'cloud_deployment_config' in local_var_params:
|
33433
|
+
body_params = local_var_params['cloud_deployment_config']
|
33985
33434
|
# HTTP header `Accept`
|
33986
33435
|
header_params['Accept'] = self.api_client.select_header_accept(
|
33987
33436
|
['application/json']) # noqa: E501
|
@@ -33994,14 +33443,14 @@ class DefaultApi(object):
|
|
33994
33443
|
auth_settings = [] # noqa: E501
|
33995
33444
|
|
33996
33445
|
return self.api_client.call_api(
|
33997
|
-
'/api/v2/clouds/{cloud_id}/config', 'PUT',
|
33446
|
+
'/api/v2/clouds/{cloud_id}/deployment/{cloud_deployment_id}/config', 'PUT',
|
33998
33447
|
path_params,
|
33999
33448
|
query_params,
|
34000
33449
|
header_params,
|
34001
33450
|
body=body_params,
|
34002
33451
|
post_params=form_params,
|
34003
33452
|
files=local_var_files,
|
34004
|
-
response_type='
|
33453
|
+
response_type='ClouddeploymentconfigResponse', # noqa: E501
|
34005
33454
|
auth_settings=auth_settings,
|
34006
33455
|
async_req=local_var_params.get('async_req'),
|
34007
33456
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -34009,18 +33458,17 @@ class DefaultApi(object):
|
|
34009
33458
|
_request_timeout=local_var_params.get('_request_timeout'),
|
34010
33459
|
collection_formats=collection_formats)
|
34011
33460
|
|
34012
|
-
def
|
34013
|
-
"""Update Cloud
|
33461
|
+
def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
33462
|
+
"""Update Cloud Deployments # noqa: E501
|
34014
33463
|
|
34015
33464
|
This method makes a synchronous HTTP request by default. To make an
|
34016
33465
|
asynchronous HTTP request, please pass async_req=True
|
34017
|
-
>>> thread = api.
|
33466
|
+
>>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put(cloud_id, cloud_deployment, async_req=True)
|
34018
33467
|
>>> result = thread.get()
|
34019
33468
|
|
34020
33469
|
:param async_req bool: execute request asynchronously
|
34021
33470
|
:param str cloud_id: (required)
|
34022
|
-
:param
|
34023
|
-
:param CloudDeploymentConfig cloud_deployment_config: (required)
|
33471
|
+
:param list[CloudDeployment] cloud_deployment: (required)
|
34024
33472
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
34025
33473
|
be returned without reading/decoding response
|
34026
33474
|
data. Default is True.
|
@@ -34028,25 +33476,24 @@ class DefaultApi(object):
|
|
34028
33476
|
number provided, it will be total request
|
34029
33477
|
timeout. It can also be a pair (tuple) of
|
34030
33478
|
(connection, read) timeouts.
|
34031
|
-
:return:
|
33479
|
+
:return: object
|
34032
33480
|
If the method is called asynchronously,
|
34033
33481
|
returns the request thread.
|
34034
33482
|
"""
|
34035
33483
|
kwargs['_return_http_data_only'] = True
|
34036
|
-
return self.
|
33484
|
+
return self.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
|
34037
33485
|
|
34038
|
-
def
|
34039
|
-
"""Update Cloud
|
33486
|
+
def update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
|
33487
|
+
"""Update Cloud Deployments # noqa: E501
|
34040
33488
|
|
34041
33489
|
This method makes a synchronous HTTP request by default. To make an
|
34042
33490
|
asynchronous HTTP request, please pass async_req=True
|
34043
|
-
>>> thread = api.
|
33491
|
+
>>> thread = api.update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
|
34044
33492
|
>>> result = thread.get()
|
34045
33493
|
|
34046
33494
|
:param async_req bool: execute request asynchronously
|
34047
33495
|
:param str cloud_id: (required)
|
34048
|
-
:param
|
34049
|
-
:param CloudDeploymentConfig cloud_deployment_config: (required)
|
33496
|
+
:param list[CloudDeployment] cloud_deployment: (required)
|
34050
33497
|
:param _return_http_data_only: response data without head status code
|
34051
33498
|
and headers
|
34052
33499
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -34056,7 +33503,7 @@ class DefaultApi(object):
|
|
34056
33503
|
number provided, it will be total request
|
34057
33504
|
timeout. It can also be a pair (tuple) of
|
34058
33505
|
(connection, read) timeouts.
|
34059
|
-
:return: tuple(
|
33506
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
34060
33507
|
If the method is called asynchronously,
|
34061
33508
|
returns the request thread.
|
34062
33509
|
"""
|
@@ -34065,8 +33512,7 @@ class DefaultApi(object):
|
|
34065
33512
|
|
34066
33513
|
all_params = [
|
34067
33514
|
'cloud_id',
|
34068
|
-
'
|
34069
|
-
'cloud_deployment_config'
|
33515
|
+
'cloud_deployment'
|
34070
33516
|
]
|
34071
33517
|
all_params.extend(
|
34072
33518
|
[
|
@@ -34081,30 +33527,24 @@ class DefaultApi(object):
|
|
34081
33527
|
if key not in all_params:
|
34082
33528
|
raise ApiTypeError(
|
34083
33529
|
"Got an unexpected keyword argument '%s'"
|
34084
|
-
" to method
|
33530
|
+
" to method update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put" % key
|
34085
33531
|
)
|
34086
33532
|
local_var_params[key] = val
|
34087
33533
|
del local_var_params['kwargs']
|
34088
33534
|
# verify the required parameter 'cloud_id' is set
|
34089
33535
|
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
34090
33536
|
local_var_params['cloud_id'] is None): # noqa: E501
|
34091
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `
|
34092
|
-
# verify the required parameter '
|
34093
|
-
if self.api_client.client_side_validation and ('
|
34094
|
-
local_var_params['
|
34095
|
-
raise ApiValueError("Missing the required parameter `
|
34096
|
-
# verify the required parameter 'cloud_deployment_config' is set
|
34097
|
-
if self.api_client.client_side_validation and ('cloud_deployment_config' not in local_var_params or # noqa: E501
|
34098
|
-
local_var_params['cloud_deployment_config'] is None): # noqa: E501
|
34099
|
-
raise ApiValueError("Missing the required parameter `cloud_deployment_config` when calling `update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put`") # noqa: E501
|
33537
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
|
33538
|
+
# verify the required parameter 'cloud_deployment' is set
|
33539
|
+
if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
|
33540
|
+
local_var_params['cloud_deployment'] is None): # noqa: E501
|
33541
|
+
raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_deployments_api_v2_clouds_cloud_id_deployments_put`") # noqa: E501
|
34100
33542
|
|
34101
33543
|
collection_formats = {}
|
34102
33544
|
|
34103
33545
|
path_params = {}
|
34104
33546
|
if 'cloud_id' in local_var_params:
|
34105
33547
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
34106
|
-
if 'cloud_deployment_id' in local_var_params:
|
34107
|
-
path_params['cloud_deployment_id'] = local_var_params['cloud_deployment_id'] # noqa: E501
|
34108
33548
|
|
34109
33549
|
query_params = []
|
34110
33550
|
|
@@ -34114,8 +33554,8 @@ class DefaultApi(object):
|
|
34114
33554
|
local_var_files = {}
|
34115
33555
|
|
34116
33556
|
body_params = None
|
34117
|
-
if '
|
34118
|
-
body_params = local_var_params['
|
33557
|
+
if 'cloud_deployment' in local_var_params:
|
33558
|
+
body_params = local_var_params['cloud_deployment']
|
34119
33559
|
# HTTP header `Accept`
|
34120
33560
|
header_params['Accept'] = self.api_client.select_header_accept(
|
34121
33561
|
['application/json']) # noqa: E501
|
@@ -34128,14 +33568,14 @@ class DefaultApi(object):
|
|
34128
33568
|
auth_settings = [] # noqa: E501
|
34129
33569
|
|
34130
33570
|
return self.api_client.call_api(
|
34131
|
-
'/api/v2/clouds/{cloud_id}/
|
33571
|
+
'/api/v2/clouds/{cloud_id}/deployments', 'PUT',
|
34132
33572
|
path_params,
|
34133
33573
|
query_params,
|
34134
33574
|
header_params,
|
34135
33575
|
body=body_params,
|
34136
33576
|
post_params=form_params,
|
34137
33577
|
files=local_var_files,
|
34138
|
-
response_type='
|
33578
|
+
response_type='object', # noqa: E501
|
34139
33579
|
auth_settings=auth_settings,
|
34140
33580
|
async_req=local_var_params.get('async_req'),
|
34141
33581
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -34872,6 +34312,133 @@ class DefaultApi(object):
|
|
34872
34312
|
_request_timeout=local_var_params.get('_request_timeout'),
|
34873
34313
|
collection_formats=collection_formats)
|
34874
34314
|
|
34315
|
+
def update_job_queue_api_v2_job_queues_job_queue_id_put(self, job_queue_id, update_job_queue_request, **kwargs): # noqa: E501
|
34316
|
+
"""Update Job Queue # noqa: E501
|
34317
|
+
|
34318
|
+
Update a job queue. # noqa: E501
|
34319
|
+
This method makes a synchronous HTTP request by default. To make an
|
34320
|
+
asynchronous HTTP request, please pass async_req=True
|
34321
|
+
>>> thread = api.update_job_queue_api_v2_job_queues_job_queue_id_put(job_queue_id, update_job_queue_request, async_req=True)
|
34322
|
+
>>> result = thread.get()
|
34323
|
+
|
34324
|
+
:param async_req bool: execute request asynchronously
|
34325
|
+
:param str job_queue_id: (required)
|
34326
|
+
:param UpdateJobQueueRequest update_job_queue_request: (required)
|
34327
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
34328
|
+
be returned without reading/decoding response
|
34329
|
+
data. Default is True.
|
34330
|
+
:param _request_timeout: timeout setting for this request. If one
|
34331
|
+
number provided, it will be total request
|
34332
|
+
timeout. It can also be a pair (tuple) of
|
34333
|
+
(connection, read) timeouts.
|
34334
|
+
:return: DecoratedjobqueueResponse
|
34335
|
+
If the method is called asynchronously,
|
34336
|
+
returns the request thread.
|
34337
|
+
"""
|
34338
|
+
kwargs['_return_http_data_only'] = True
|
34339
|
+
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
|
34340
|
+
|
34341
|
+
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
|
34342
|
+
"""Update Job Queue # noqa: E501
|
34343
|
+
|
34344
|
+
Update a job queue. # noqa: E501
|
34345
|
+
This method makes a synchronous HTTP request by default. To make an
|
34346
|
+
asynchronous HTTP request, please pass async_req=True
|
34347
|
+
>>> 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)
|
34348
|
+
>>> result = thread.get()
|
34349
|
+
|
34350
|
+
:param async_req bool: execute request asynchronously
|
34351
|
+
:param str job_queue_id: (required)
|
34352
|
+
:param UpdateJobQueueRequest update_job_queue_request: (required)
|
34353
|
+
:param _return_http_data_only: response data without head status code
|
34354
|
+
and headers
|
34355
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
34356
|
+
be returned without reading/decoding response
|
34357
|
+
data. Default is True.
|
34358
|
+
:param _request_timeout: timeout setting for this request. If one
|
34359
|
+
number provided, it will be total request
|
34360
|
+
timeout. It can also be a pair (tuple) of
|
34361
|
+
(connection, read) timeouts.
|
34362
|
+
:return: tuple(DecoratedjobqueueResponse, status_code(int), headers(HTTPHeaderDict))
|
34363
|
+
If the method is called asynchronously,
|
34364
|
+
returns the request thread.
|
34365
|
+
"""
|
34366
|
+
|
34367
|
+
local_var_params = locals()
|
34368
|
+
|
34369
|
+
all_params = [
|
34370
|
+
'job_queue_id',
|
34371
|
+
'update_job_queue_request'
|
34372
|
+
]
|
34373
|
+
all_params.extend(
|
34374
|
+
[
|
34375
|
+
'async_req',
|
34376
|
+
'_return_http_data_only',
|
34377
|
+
'_preload_content',
|
34378
|
+
'_request_timeout'
|
34379
|
+
]
|
34380
|
+
)
|
34381
|
+
|
34382
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
34383
|
+
if key not in all_params:
|
34384
|
+
raise ApiTypeError(
|
34385
|
+
"Got an unexpected keyword argument '%s'"
|
34386
|
+
" to method update_job_queue_api_v2_job_queues_job_queue_id_put" % key
|
34387
|
+
)
|
34388
|
+
local_var_params[key] = val
|
34389
|
+
del local_var_params['kwargs']
|
34390
|
+
# verify the required parameter 'job_queue_id' is set
|
34391
|
+
if self.api_client.client_side_validation and ('job_queue_id' not in local_var_params or # noqa: E501
|
34392
|
+
local_var_params['job_queue_id'] is None): # noqa: E501
|
34393
|
+
raise ApiValueError("Missing the required parameter `job_queue_id` when calling `update_job_queue_api_v2_job_queues_job_queue_id_put`") # noqa: E501
|
34394
|
+
# verify the required parameter 'update_job_queue_request' is set
|
34395
|
+
if self.api_client.client_side_validation and ('update_job_queue_request' not in local_var_params or # noqa: E501
|
34396
|
+
local_var_params['update_job_queue_request'] is None): # noqa: E501
|
34397
|
+
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
|
34398
|
+
|
34399
|
+
collection_formats = {}
|
34400
|
+
|
34401
|
+
path_params = {}
|
34402
|
+
if 'job_queue_id' in local_var_params:
|
34403
|
+
path_params['job_queue_id'] = local_var_params['job_queue_id'] # noqa: E501
|
34404
|
+
|
34405
|
+
query_params = []
|
34406
|
+
|
34407
|
+
header_params = {}
|
34408
|
+
|
34409
|
+
form_params = []
|
34410
|
+
local_var_files = {}
|
34411
|
+
|
34412
|
+
body_params = None
|
34413
|
+
if 'update_job_queue_request' in local_var_params:
|
34414
|
+
body_params = local_var_params['update_job_queue_request']
|
34415
|
+
# HTTP header `Accept`
|
34416
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
34417
|
+
['application/json']) # noqa: E501
|
34418
|
+
|
34419
|
+
# HTTP header `Content-Type`
|
34420
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
34421
|
+
['application/json']) # noqa: E501
|
34422
|
+
|
34423
|
+
# Authentication setting
|
34424
|
+
auth_settings = [] # noqa: E501
|
34425
|
+
|
34426
|
+
return self.api_client.call_api(
|
34427
|
+
'/api/v2/job_queues/{job_queue_id}', 'PUT',
|
34428
|
+
path_params,
|
34429
|
+
query_params,
|
34430
|
+
header_params,
|
34431
|
+
body=body_params,
|
34432
|
+
post_params=form_params,
|
34433
|
+
files=local_var_files,
|
34434
|
+
response_type='DecoratedjobqueueResponse', # noqa: E501
|
34435
|
+
auth_settings=auth_settings,
|
34436
|
+
async_req=local_var_params.get('async_req'),
|
34437
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
34438
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
34439
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
34440
|
+
collection_formats=collection_formats)
|
34441
|
+
|
34875
34442
|
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
|
34876
34443
|
"""Update Job Queue Config # noqa: E501
|
34877
34444
|
|