anyscale 0.26.20__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/client/README.md +0 -9
- anyscale/client/openapi_client/__init__.py +0 -3
- anyscale/client/openapi_client/api/default_api.py +35 -720
- anyscale/client/openapi_client/models/__init__.py +0 -3
- anyscale/commands/cloud_commands.py +15 -4
- anyscale/controllers/cloud_controller.py +358 -49
- anyscale/utils/gcp_utils.py +20 -4
- anyscale/version.py +1 -1
- {anyscale-0.26.20.dist-info → anyscale-0.26.21.dist-info}/METADATA +1 -1
- {anyscale-0.26.20.dist-info → anyscale-0.26.21.dist-info}/RECORD +15 -18
- anyscale/client/openapi_client/models/organization_public_identifier.py +0 -121
- anyscale/client/openapi_client/models/organization_response.py +0 -121
- anyscale/client/openapi_client/models/organizationpublicidentifier_response.py +0 -121
- {anyscale-0.26.20.dist-info → anyscale-0.26.21.dist-info}/LICENSE +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.21.dist-info}/NOTICE +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.21.dist-info}/WHEEL +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.21.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.20.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
|
|
@@ -17644,119 +17308,7 @@ class DefaultApi(object):
|
|
17644
17308
|
body=body_params,
|
17645
17309
|
post_params=form_params,
|
17646
17310
|
files=local_var_files,
|
17647
|
-
response_type='OrganizationusagealertListResponse', # noqa: E501
|
17648
|
-
auth_settings=auth_settings,
|
17649
|
-
async_req=local_var_params.get('async_req'),
|
17650
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
17651
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
17652
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
17653
|
-
collection_formats=collection_formats)
|
17654
|
-
|
17655
|
-
def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
|
17656
|
-
"""Get Project # noqa: E501
|
17657
|
-
|
17658
|
-
This method makes a synchronous HTTP request by default. To make an
|
17659
|
-
asynchronous HTTP request, please pass async_req=True
|
17660
|
-
>>> thread = api.get_project_api_v2_projects_project_id_get(project_id, async_req=True)
|
17661
|
-
>>> result = thread.get()
|
17662
|
-
|
17663
|
-
:param async_req bool: execute request asynchronously
|
17664
|
-
:param str project_id: (required)
|
17665
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17666
|
-
be returned without reading/decoding response
|
17667
|
-
data. Default is True.
|
17668
|
-
:param _request_timeout: timeout setting for this request. If one
|
17669
|
-
number provided, it will be total request
|
17670
|
-
timeout. It can also be a pair (tuple) of
|
17671
|
-
(connection, read) timeouts.
|
17672
|
-
:return: ProjectResponse
|
17673
|
-
If the method is called asynchronously,
|
17674
|
-
returns the request thread.
|
17675
|
-
"""
|
17676
|
-
kwargs['_return_http_data_only'] = True
|
17677
|
-
return self.get_project_api_v2_projects_project_id_get_with_http_info(project_id, **kwargs) # noqa: E501
|
17678
|
-
|
17679
|
-
def get_project_api_v2_projects_project_id_get_with_http_info(self, project_id, **kwargs): # noqa: E501
|
17680
|
-
"""Get Project # noqa: E501
|
17681
|
-
|
17682
|
-
This method makes a synchronous HTTP request by default. To make an
|
17683
|
-
asynchronous HTTP request, please pass async_req=True
|
17684
|
-
>>> thread = api.get_project_api_v2_projects_project_id_get_with_http_info(project_id, async_req=True)
|
17685
|
-
>>> result = thread.get()
|
17686
|
-
|
17687
|
-
:param async_req bool: execute request asynchronously
|
17688
|
-
:param str project_id: (required)
|
17689
|
-
:param _return_http_data_only: response data without head status code
|
17690
|
-
and headers
|
17691
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17692
|
-
be returned without reading/decoding response
|
17693
|
-
data. Default is True.
|
17694
|
-
:param _request_timeout: timeout setting for this request. If one
|
17695
|
-
number provided, it will be total request
|
17696
|
-
timeout. It can also be a pair (tuple) of
|
17697
|
-
(connection, read) timeouts.
|
17698
|
-
:return: tuple(ProjectResponse, status_code(int), headers(HTTPHeaderDict))
|
17699
|
-
If the method is called asynchronously,
|
17700
|
-
returns the request thread.
|
17701
|
-
"""
|
17702
|
-
|
17703
|
-
local_var_params = locals()
|
17704
|
-
|
17705
|
-
all_params = [
|
17706
|
-
'project_id'
|
17707
|
-
]
|
17708
|
-
all_params.extend(
|
17709
|
-
[
|
17710
|
-
'async_req',
|
17711
|
-
'_return_http_data_only',
|
17712
|
-
'_preload_content',
|
17713
|
-
'_request_timeout'
|
17714
|
-
]
|
17715
|
-
)
|
17716
|
-
|
17717
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
17718
|
-
if key not in all_params:
|
17719
|
-
raise ApiTypeError(
|
17720
|
-
"Got an unexpected keyword argument '%s'"
|
17721
|
-
" to method get_project_api_v2_projects_project_id_get" % key
|
17722
|
-
)
|
17723
|
-
local_var_params[key] = val
|
17724
|
-
del local_var_params['kwargs']
|
17725
|
-
# verify the required parameter 'project_id' is set
|
17726
|
-
if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
|
17727
|
-
local_var_params['project_id'] is None): # noqa: E501
|
17728
|
-
raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_api_v2_projects_project_id_get`") # noqa: E501
|
17729
|
-
|
17730
|
-
collection_formats = {}
|
17731
|
-
|
17732
|
-
path_params = {}
|
17733
|
-
if 'project_id' in local_var_params:
|
17734
|
-
path_params['project_id'] = local_var_params['project_id'] # noqa: E501
|
17735
|
-
|
17736
|
-
query_params = []
|
17737
|
-
|
17738
|
-
header_params = {}
|
17739
|
-
|
17740
|
-
form_params = []
|
17741
|
-
local_var_files = {}
|
17742
|
-
|
17743
|
-
body_params = None
|
17744
|
-
# HTTP header `Accept`
|
17745
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
17746
|
-
['application/json']) # noqa: E501
|
17747
|
-
|
17748
|
-
# Authentication setting
|
17749
|
-
auth_settings = [] # noqa: E501
|
17750
|
-
|
17751
|
-
return self.api_client.call_api(
|
17752
|
-
'/api/v2/projects/{project_id}', 'GET',
|
17753
|
-
path_params,
|
17754
|
-
query_params,
|
17755
|
-
header_params,
|
17756
|
-
body=body_params,
|
17757
|
-
post_params=form_params,
|
17758
|
-
files=local_var_files,
|
17759
|
-
response_type='ProjectResponse', # noqa: E501
|
17311
|
+
response_type='OrganizationusagealertListResponse', # noqa: E501
|
17760
17312
|
auth_settings=auth_settings,
|
17761
17313
|
async_req=local_var_params.get('async_req'),
|
17762
17314
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -17764,12 +17316,12 @@ class DefaultApi(object):
|
|
17764
17316
|
_request_timeout=local_var_params.get('_request_timeout'),
|
17765
17317
|
collection_formats=collection_formats)
|
17766
17318
|
|
17767
|
-
def
|
17768
|
-
"""Get Project
|
17319
|
+
def get_project_api_v2_projects_project_id_get(self, project_id, **kwargs): # noqa: E501
|
17320
|
+
"""Get Project # noqa: E501
|
17769
17321
|
|
17770
17322
|
This method makes a synchronous HTTP request by default. To make an
|
17771
17323
|
asynchronous HTTP request, please pass async_req=True
|
17772
|
-
>>> thread = api.
|
17324
|
+
>>> thread = api.get_project_api_v2_projects_project_id_get(project_id, async_req=True)
|
17773
17325
|
>>> result = thread.get()
|
17774
17326
|
|
17775
17327
|
:param async_req bool: execute request asynchronously
|
@@ -17781,19 +17333,19 @@ class DefaultApi(object):
|
|
17781
17333
|
number provided, it will be total request
|
17782
17334
|
timeout. It can also be a pair (tuple) of
|
17783
17335
|
(connection, read) timeouts.
|
17784
|
-
:return:
|
17336
|
+
:return: ProjectResponse
|
17785
17337
|
If the method is called asynchronously,
|
17786
17338
|
returns the request thread.
|
17787
17339
|
"""
|
17788
17340
|
kwargs['_return_http_data_only'] = True
|
17789
|
-
return self.
|
17341
|
+
return self.get_project_api_v2_projects_project_id_get_with_http_info(project_id, **kwargs) # noqa: E501
|
17790
17342
|
|
17791
|
-
def
|
17792
|
-
"""Get Project
|
17343
|
+
def get_project_api_v2_projects_project_id_get_with_http_info(self, project_id, **kwargs): # noqa: E501
|
17344
|
+
"""Get Project # noqa: E501
|
17793
17345
|
|
17794
17346
|
This method makes a synchronous HTTP request by default. To make an
|
17795
17347
|
asynchronous HTTP request, please pass async_req=True
|
17796
|
-
>>> thread = api.
|
17348
|
+
>>> thread = api.get_project_api_v2_projects_project_id_get_with_http_info(project_id, async_req=True)
|
17797
17349
|
>>> result = thread.get()
|
17798
17350
|
|
17799
17351
|
:param async_req bool: execute request asynchronously
|
@@ -17807,7 +17359,7 @@ class DefaultApi(object):
|
|
17807
17359
|
number provided, it will be total request
|
17808
17360
|
timeout. It can also be a pair (tuple) of
|
17809
17361
|
(connection, read) timeouts.
|
17810
|
-
:return: tuple(
|
17362
|
+
:return: tuple(ProjectResponse, status_code(int), headers(HTTPHeaderDict))
|
17811
17363
|
If the method is called asynchronously,
|
17812
17364
|
returns the request thread.
|
17813
17365
|
"""
|
@@ -17830,14 +17382,14 @@ class DefaultApi(object):
|
|
17830
17382
|
if key not in all_params:
|
17831
17383
|
raise ApiTypeError(
|
17832
17384
|
"Got an unexpected keyword argument '%s'"
|
17833
|
-
" to method
|
17385
|
+
" to method get_project_api_v2_projects_project_id_get" % key
|
17834
17386
|
)
|
17835
17387
|
local_var_params[key] = val
|
17836
17388
|
del local_var_params['kwargs']
|
17837
17389
|
# verify the required parameter 'project_id' is set
|
17838
17390
|
if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
|
17839
17391
|
local_var_params['project_id'] is None): # noqa: E501
|
17840
|
-
raise ApiValueError("Missing the required parameter `project_id` when calling `
|
17392
|
+
raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_api_v2_projects_project_id_get`") # noqa: E501
|
17841
17393
|
|
17842
17394
|
collection_formats = {}
|
17843
17395
|
|
@@ -17861,14 +17413,14 @@ class DefaultApi(object):
|
|
17861
17413
|
auth_settings = [] # noqa: E501
|
17862
17414
|
|
17863
17415
|
return self.api_client.call_api(
|
17864
|
-
'/api/v2/projects/{project_id}
|
17416
|
+
'/api/v2/projects/{project_id}', 'GET',
|
17865
17417
|
path_params,
|
17866
17418
|
query_params,
|
17867
17419
|
header_params,
|
17868
17420
|
body=body_params,
|
17869
17421
|
post_params=form_params,
|
17870
17422
|
files=local_var_files,
|
17871
|
-
response_type='
|
17423
|
+
response_type='ProjectResponse', # noqa: E501
|
17872
17424
|
auth_settings=auth_settings,
|
17873
17425
|
async_req=local_var_params.get('async_req'),
|
17874
17426
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -17876,16 +17428,16 @@ class DefaultApi(object):
|
|
17876
17428
|
_request_timeout=local_var_params.get('_request_timeout'),
|
17877
17429
|
collection_formats=collection_formats)
|
17878
17430
|
|
17879
|
-
def
|
17880
|
-
"""Get
|
17431
|
+
def get_project_default_session_name_api_v2_projects_project_id_default_session_name_get(self, project_id, **kwargs): # noqa: E501
|
17432
|
+
"""Get Project Default Session Name # noqa: E501
|
17881
17433
|
|
17882
17434
|
This method makes a synchronous HTTP request by default. To make an
|
17883
17435
|
asynchronous HTTP request, please pass async_req=True
|
17884
|
-
>>> thread = api.
|
17436
|
+
>>> thread = api.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get(project_id, async_req=True)
|
17885
17437
|
>>> result = thread.get()
|
17886
17438
|
|
17887
17439
|
:param async_req bool: execute request asynchronously
|
17888
|
-
:param str
|
17440
|
+
:param str project_id: (required)
|
17889
17441
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17890
17442
|
be returned without reading/decoding response
|
17891
17443
|
data. Default is True.
|
@@ -17893,23 +17445,23 @@ class DefaultApi(object):
|
|
17893
17445
|
number provided, it will be total request
|
17894
17446
|
timeout. It can also be a pair (tuple) of
|
17895
17447
|
(connection, read) timeouts.
|
17896
|
-
:return:
|
17448
|
+
:return: ProjectdefaultsessionnameResponse
|
17897
17449
|
If the method is called asynchronously,
|
17898
17450
|
returns the request thread.
|
17899
17451
|
"""
|
17900
17452
|
kwargs['_return_http_data_only'] = True
|
17901
|
-
return self.
|
17453
|
+
return self.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(project_id, **kwargs) # noqa: E501
|
17902
17454
|
|
17903
|
-
def
|
17904
|
-
"""Get
|
17455
|
+
def get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(self, project_id, **kwargs): # noqa: E501
|
17456
|
+
"""Get Project Default Session Name # noqa: E501
|
17905
17457
|
|
17906
17458
|
This method makes a synchronous HTTP request by default. To make an
|
17907
17459
|
asynchronous HTTP request, please pass async_req=True
|
17908
|
-
>>> thread = api.
|
17460
|
+
>>> thread = api.get_project_default_session_name_api_v2_projects_project_id_default_session_name_get_with_http_info(project_id, async_req=True)
|
17909
17461
|
>>> result = thread.get()
|
17910
17462
|
|
17911
17463
|
:param async_req bool: execute request asynchronously
|
17912
|
-
:param str
|
17464
|
+
:param str project_id: (required)
|
17913
17465
|
:param _return_http_data_only: response data without head status code
|
17914
17466
|
and headers
|
17915
17467
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -17919,7 +17471,7 @@ class DefaultApi(object):
|
|
17919
17471
|
number provided, it will be total request
|
17920
17472
|
timeout. It can also be a pair (tuple) of
|
17921
17473
|
(connection, read) timeouts.
|
17922
|
-
:return: tuple(
|
17474
|
+
:return: tuple(ProjectdefaultsessionnameResponse, status_code(int), headers(HTTPHeaderDict))
|
17923
17475
|
If the method is called asynchronously,
|
17924
17476
|
returns the request thread.
|
17925
17477
|
"""
|
@@ -17927,7 +17479,7 @@ class DefaultApi(object):
|
|
17927
17479
|
local_var_params = locals()
|
17928
17480
|
|
17929
17481
|
all_params = [
|
17930
|
-
'
|
17482
|
+
'project_id'
|
17931
17483
|
]
|
17932
17484
|
all_params.extend(
|
17933
17485
|
[
|
@@ -17942,22 +17494,22 @@ class DefaultApi(object):
|
|
17942
17494
|
if key not in all_params:
|
17943
17495
|
raise ApiTypeError(
|
17944
17496
|
"Got an unexpected keyword argument '%s'"
|
17945
|
-
" to method
|
17497
|
+
" to method get_project_default_session_name_api_v2_projects_project_id_default_session_name_get" % key
|
17946
17498
|
)
|
17947
17499
|
local_var_params[key] = val
|
17948
17500
|
del local_var_params['kwargs']
|
17949
|
-
# verify the required parameter '
|
17950
|
-
if self.api_client.client_side_validation and ('
|
17951
|
-
local_var_params['
|
17952
|
-
raise ApiValueError("Missing the required parameter `
|
17501
|
+
# verify the required parameter 'project_id' is set
|
17502
|
+
if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
|
17503
|
+
local_var_params['project_id'] is None): # noqa: E501
|
17504
|
+
raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_default_session_name_api_v2_projects_project_id_default_session_name_get`") # noqa: E501
|
17953
17505
|
|
17954
17506
|
collection_formats = {}
|
17955
17507
|
|
17956
17508
|
path_params = {}
|
17509
|
+
if 'project_id' in local_var_params:
|
17510
|
+
path_params['project_id'] = local_var_params['project_id'] # noqa: E501
|
17957
17511
|
|
17958
17512
|
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
17513
|
|
17962
17514
|
header_params = {}
|
17963
17515
|
|
@@ -17973,14 +17525,14 @@ class DefaultApi(object):
|
|
17973
17525
|
auth_settings = [] # noqa: E501
|
17974
17526
|
|
17975
17527
|
return self.api_client.call_api(
|
17976
|
-
'/api/v2/
|
17528
|
+
'/api/v2/projects/{project_id}/default_session_name', 'GET',
|
17977
17529
|
path_params,
|
17978
17530
|
query_params,
|
17979
17531
|
header_params,
|
17980
17532
|
body=body_params,
|
17981
17533
|
post_params=form_params,
|
17982
17534
|
files=local_var_files,
|
17983
|
-
response_type='
|
17535
|
+
response_type='ProjectdefaultsessionnameResponse', # noqa: E501
|
17984
17536
|
auth_settings=auth_settings,
|
17985
17537
|
async_req=local_var_params.get('async_req'),
|
17986
17538
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -18864,118 +18416,6 @@ class DefaultApi(object):
|
|
18864
18416
|
_request_timeout=local_var_params.get('_request_timeout'),
|
18865
18417
|
collection_formats=collection_formats)
|
18866
18418
|
|
18867
|
-
def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(self, session_id, **kwargs): # noqa: E501
|
18868
|
-
"""Get Runtime Env Logs Download # noqa: E501
|
18869
|
-
|
18870
|
-
This method makes a synchronous HTTP request by default. To make an
|
18871
|
-
asynchronous HTTP request, please pass async_req=True
|
18872
|
-
>>> thread = api.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get(session_id, async_req=True)
|
18873
|
-
>>> result = thread.get()
|
18874
|
-
|
18875
|
-
:param async_req bool: execute request asynchronously
|
18876
|
-
:param str session_id: (required)
|
18877
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18878
|
-
be returned without reading/decoding response
|
18879
|
-
data. Default is True.
|
18880
|
-
:param _request_timeout: timeout setting for this request. If one
|
18881
|
-
number provided, it will be total request
|
18882
|
-
timeout. It can also be a pair (tuple) of
|
18883
|
-
(connection, read) timeouts.
|
18884
|
-
:return: LogdownloadresultResponse
|
18885
|
-
If the method is called asynchronously,
|
18886
|
-
returns the request thread.
|
18887
|
-
"""
|
18888
|
-
kwargs['_return_http_data_only'] = True
|
18889
|
-
return self.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(session_id, **kwargs) # noqa: E501
|
18890
|
-
|
18891
|
-
def get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(self, session_id, **kwargs): # noqa: E501
|
18892
|
-
"""Get Runtime Env Logs Download # noqa: E501
|
18893
|
-
|
18894
|
-
This method makes a synchronous HTTP request by default. To make an
|
18895
|
-
asynchronous HTTP request, please pass async_req=True
|
18896
|
-
>>> thread = api.get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get_with_http_info(session_id, async_req=True)
|
18897
|
-
>>> result = thread.get()
|
18898
|
-
|
18899
|
-
:param async_req bool: execute request asynchronously
|
18900
|
-
:param str session_id: (required)
|
18901
|
-
:param _return_http_data_only: response data without head status code
|
18902
|
-
and headers
|
18903
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18904
|
-
be returned without reading/decoding response
|
18905
|
-
data. Default is True.
|
18906
|
-
:param _request_timeout: timeout setting for this request. If one
|
18907
|
-
number provided, it will be total request
|
18908
|
-
timeout. It can also be a pair (tuple) of
|
18909
|
-
(connection, read) timeouts.
|
18910
|
-
:return: tuple(LogdownloadresultResponse, status_code(int), headers(HTTPHeaderDict))
|
18911
|
-
If the method is called asynchronously,
|
18912
|
-
returns the request thread.
|
18913
|
-
"""
|
18914
|
-
|
18915
|
-
local_var_params = locals()
|
18916
|
-
|
18917
|
-
all_params = [
|
18918
|
-
'session_id'
|
18919
|
-
]
|
18920
|
-
all_params.extend(
|
18921
|
-
[
|
18922
|
-
'async_req',
|
18923
|
-
'_return_http_data_only',
|
18924
|
-
'_preload_content',
|
18925
|
-
'_request_timeout'
|
18926
|
-
]
|
18927
|
-
)
|
18928
|
-
|
18929
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
18930
|
-
if key not in all_params:
|
18931
|
-
raise ApiTypeError(
|
18932
|
-
"Got an unexpected keyword argument '%s'"
|
18933
|
-
" to method get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get" % key
|
18934
|
-
)
|
18935
|
-
local_var_params[key] = val
|
18936
|
-
del local_var_params['kwargs']
|
18937
|
-
# verify the required parameter 'session_id' is set
|
18938
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
18939
|
-
local_var_params['session_id'] is None): # noqa: E501
|
18940
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get`") # noqa: E501
|
18941
|
-
|
18942
|
-
collection_formats = {}
|
18943
|
-
|
18944
|
-
path_params = {}
|
18945
|
-
if 'session_id' in local_var_params:
|
18946
|
-
path_params['session_id'] = local_var_params['session_id'] # noqa: E501
|
18947
|
-
|
18948
|
-
query_params = []
|
18949
|
-
|
18950
|
-
header_params = {}
|
18951
|
-
|
18952
|
-
form_params = []
|
18953
|
-
local_var_files = {}
|
18954
|
-
|
18955
|
-
body_params = None
|
18956
|
-
# HTTP header `Accept`
|
18957
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
18958
|
-
['application/json']) # noqa: E501
|
18959
|
-
|
18960
|
-
# Authentication setting
|
18961
|
-
auth_settings = [] # noqa: E501
|
18962
|
-
|
18963
|
-
return self.api_client.call_api(
|
18964
|
-
'/api/v2/logs/runtime_env_logs_download/{session_id}', 'GET',
|
18965
|
-
path_params,
|
18966
|
-
query_params,
|
18967
|
-
header_params,
|
18968
|
-
body=body_params,
|
18969
|
-
post_params=form_params,
|
18970
|
-
files=local_var_files,
|
18971
|
-
response_type='LogdownloadresultResponse', # noqa: E501
|
18972
|
-
auth_settings=auth_settings,
|
18973
|
-
async_req=local_var_params.get('async_req'),
|
18974
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18975
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
18976
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
18977
|
-
collection_formats=collection_formats)
|
18978
|
-
|
18979
18419
|
def get_serve_logs_download_api_v2_logs_serve_logs_download_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501
|
18980
18420
|
"""Get Serve Logs Download # noqa: E501
|
18981
18421
|
|
@@ -33884,131 +33324,6 @@ class DefaultApi(object):
|
|
33884
33324
|
_request_timeout=local_var_params.get('_request_timeout'),
|
33885
33325
|
collection_formats=collection_formats)
|
33886
33326
|
|
33887
|
-
def update_cloud_config_api_v2_clouds_cloud_id_config_put(self, cloud_id, cloud_config, **kwargs): # noqa: E501
|
33888
|
-
"""Update Cloud Config # noqa: E501
|
33889
|
-
|
33890
|
-
This method makes a synchronous HTTP request by default. To make an
|
33891
|
-
asynchronous HTTP request, please pass async_req=True
|
33892
|
-
>>> thread = api.update_cloud_config_api_v2_clouds_cloud_id_config_put(cloud_id, cloud_config, async_req=True)
|
33893
|
-
>>> result = thread.get()
|
33894
|
-
|
33895
|
-
:param async_req bool: execute request asynchronously
|
33896
|
-
:param str cloud_id: (required)
|
33897
|
-
:param CloudConfig cloud_config: (required)
|
33898
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33899
|
-
be returned without reading/decoding response
|
33900
|
-
data. Default is True.
|
33901
|
-
:param _request_timeout: timeout setting for this request. If one
|
33902
|
-
number provided, it will be total request
|
33903
|
-
timeout. It can also be a pair (tuple) of
|
33904
|
-
(connection, read) timeouts.
|
33905
|
-
:return: object
|
33906
|
-
If the method is called asynchronously,
|
33907
|
-
returns the request thread.
|
33908
|
-
"""
|
33909
|
-
kwargs['_return_http_data_only'] = True
|
33910
|
-
return self.update_cloud_config_api_v2_clouds_cloud_id_config_put_with_http_info(cloud_id, cloud_config, **kwargs) # noqa: E501
|
33911
|
-
|
33912
|
-
def update_cloud_config_api_v2_clouds_cloud_id_config_put_with_http_info(self, cloud_id, cloud_config, **kwargs): # noqa: E501
|
33913
|
-
"""Update Cloud Config # noqa: E501
|
33914
|
-
|
33915
|
-
This method makes a synchronous HTTP request by default. To make an
|
33916
|
-
asynchronous HTTP request, please pass async_req=True
|
33917
|
-
>>> thread = api.update_cloud_config_api_v2_clouds_cloud_id_config_put_with_http_info(cloud_id, cloud_config, async_req=True)
|
33918
|
-
>>> result = thread.get()
|
33919
|
-
|
33920
|
-
:param async_req bool: execute request asynchronously
|
33921
|
-
:param str cloud_id: (required)
|
33922
|
-
:param CloudConfig cloud_config: (required)
|
33923
|
-
:param _return_http_data_only: response data without head status code
|
33924
|
-
and headers
|
33925
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33926
|
-
be returned without reading/decoding response
|
33927
|
-
data. Default is True.
|
33928
|
-
:param _request_timeout: timeout setting for this request. If one
|
33929
|
-
number provided, it will be total request
|
33930
|
-
timeout. It can also be a pair (tuple) of
|
33931
|
-
(connection, read) timeouts.
|
33932
|
-
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
33933
|
-
If the method is called asynchronously,
|
33934
|
-
returns the request thread.
|
33935
|
-
"""
|
33936
|
-
|
33937
|
-
local_var_params = locals()
|
33938
|
-
|
33939
|
-
all_params = [
|
33940
|
-
'cloud_id',
|
33941
|
-
'cloud_config'
|
33942
|
-
]
|
33943
|
-
all_params.extend(
|
33944
|
-
[
|
33945
|
-
'async_req',
|
33946
|
-
'_return_http_data_only',
|
33947
|
-
'_preload_content',
|
33948
|
-
'_request_timeout'
|
33949
|
-
]
|
33950
|
-
)
|
33951
|
-
|
33952
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
33953
|
-
if key not in all_params:
|
33954
|
-
raise ApiTypeError(
|
33955
|
-
"Got an unexpected keyword argument '%s'"
|
33956
|
-
" to method update_cloud_config_api_v2_clouds_cloud_id_config_put" % key
|
33957
|
-
)
|
33958
|
-
local_var_params[key] = val
|
33959
|
-
del local_var_params['kwargs']
|
33960
|
-
# verify the required parameter 'cloud_id' is set
|
33961
|
-
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
33962
|
-
local_var_params['cloud_id'] is None): # noqa: E501
|
33963
|
-
raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_config_api_v2_clouds_cloud_id_config_put`") # noqa: E501
|
33964
|
-
# verify the required parameter 'cloud_config' is set
|
33965
|
-
if self.api_client.client_side_validation and ('cloud_config' not in local_var_params or # noqa: E501
|
33966
|
-
local_var_params['cloud_config'] is None): # noqa: E501
|
33967
|
-
raise ApiValueError("Missing the required parameter `cloud_config` when calling `update_cloud_config_api_v2_clouds_cloud_id_config_put`") # noqa: E501
|
33968
|
-
|
33969
|
-
collection_formats = {}
|
33970
|
-
|
33971
|
-
path_params = {}
|
33972
|
-
if 'cloud_id' in local_var_params:
|
33973
|
-
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
33974
|
-
|
33975
|
-
query_params = []
|
33976
|
-
|
33977
|
-
header_params = {}
|
33978
|
-
|
33979
|
-
form_params = []
|
33980
|
-
local_var_files = {}
|
33981
|
-
|
33982
|
-
body_params = None
|
33983
|
-
if 'cloud_config' in local_var_params:
|
33984
|
-
body_params = local_var_params['cloud_config']
|
33985
|
-
# HTTP header `Accept`
|
33986
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
33987
|
-
['application/json']) # noqa: E501
|
33988
|
-
|
33989
|
-
# HTTP header `Content-Type`
|
33990
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
33991
|
-
['application/json']) # noqa: E501
|
33992
|
-
|
33993
|
-
# Authentication setting
|
33994
|
-
auth_settings = [] # noqa: E501
|
33995
|
-
|
33996
|
-
return self.api_client.call_api(
|
33997
|
-
'/api/v2/clouds/{cloud_id}/config', 'PUT',
|
33998
|
-
path_params,
|
33999
|
-
query_params,
|
34000
|
-
header_params,
|
34001
|
-
body=body_params,
|
34002
|
-
post_params=form_params,
|
34003
|
-
files=local_var_files,
|
34004
|
-
response_type='object', # noqa: E501
|
34005
|
-
auth_settings=auth_settings,
|
34006
|
-
async_req=local_var_params.get('async_req'),
|
34007
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
34008
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
34009
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
34010
|
-
collection_formats=collection_formats)
|
34011
|
-
|
34012
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
|
34013
33328
|
"""Update Cloud Deployment Config # noqa: E501
|
34014
33329
|
|