anyscale 0.26.20__py3-none-any.whl → 0.26.22__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/anyscale_client/anyscale_client.py +103 -43
- anyscale/_private/anyscale_client/common.py +37 -7
- anyscale/_private/anyscale_client/fake_anyscale_client.py +98 -27
- anyscale/_private/models/model_base.py +95 -0
- anyscale/_private/workload/workload_sdk.py +3 -1
- anyscale/aggregated_instance_usage/models.py +4 -4
- anyscale/client/README.md +1 -9
- anyscale/client/openapi_client/__init__.py +0 -3
- anyscale/client/openapi_client/api/default_api.py +151 -715
- anyscale/client/openapi_client/models/__init__.py +0 -3
- anyscale/commands/cloud_commands.py +15 -4
- anyscale/commands/command_examples.py +4 -0
- anyscale/commands/list_util.py +107 -0
- anyscale/commands/service_commands.py +267 -31
- anyscale/commands/util.py +5 -4
- anyscale/controllers/cloud_controller.py +358 -49
- anyscale/controllers/service_controller.py +7 -86
- anyscale/service/__init__.py +53 -3
- anyscale/service/_private/service_sdk.py +177 -41
- anyscale/service/commands.py +78 -1
- anyscale/service/models.py +65 -0
- anyscale/util.py +35 -1
- anyscale/utils/gcp_utils.py +20 -4
- anyscale/version.py +1 -1
- {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/METADATA +1 -1
- {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/RECORD +31 -33
- 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.22.dist-info}/LICENSE +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/NOTICE +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/WHEEL +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.20.dist-info → anyscale-0.26.22.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
|
|
@@ -18710,130 +18262,18 @@ class DefaultApi(object):
|
|
18710
18262
|
)
|
18711
18263
|
local_var_params[key] = val
|
18712
18264
|
del local_var_params['kwargs']
|
18713
|
-
# verify the required parameter 'resource_quota_id' is set
|
18714
|
-
if self.api_client.client_side_validation and ('resource_quota_id' not in local_var_params or # noqa: E501
|
18715
|
-
local_var_params['resource_quota_id'] is None): # noqa: E501
|
18716
|
-
raise ApiValueError("Missing the required parameter `resource_quota_id` when calling `get_resource_quota_api_v2_resource_quotas_resource_quota_id_get`") # noqa: E501
|
18717
|
-
|
18718
|
-
collection_formats = {}
|
18719
|
-
|
18720
|
-
path_params = {}
|
18721
|
-
if 'resource_quota_id' in local_var_params:
|
18722
|
-
path_params['resource_quota_id'] = local_var_params['resource_quota_id'] # noqa: E501
|
18723
|
-
|
18724
|
-
query_params = []
|
18725
|
-
|
18726
|
-
header_params = {}
|
18727
|
-
|
18728
|
-
form_params = []
|
18729
|
-
local_var_files = {}
|
18730
|
-
|
18731
|
-
body_params = None
|
18732
|
-
# HTTP header `Accept`
|
18733
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
18734
|
-
['application/json']) # noqa: E501
|
18735
|
-
|
18736
|
-
# Authentication setting
|
18737
|
-
auth_settings = [] # noqa: E501
|
18738
|
-
|
18739
|
-
return self.api_client.call_api(
|
18740
|
-
'/api/v2/resource_quotas/{resource_quota_id}', 'GET',
|
18741
|
-
path_params,
|
18742
|
-
query_params,
|
18743
|
-
header_params,
|
18744
|
-
body=body_params,
|
18745
|
-
post_params=form_params,
|
18746
|
-
files=local_var_files,
|
18747
|
-
response_type='ResourcequotaResponse', # noqa: E501
|
18748
|
-
auth_settings=auth_settings,
|
18749
|
-
async_req=local_var_params.get('async_req'),
|
18750
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
18751
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
18752
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
18753
|
-
collection_formats=collection_formats)
|
18754
|
-
|
18755
|
-
def get_root_cause_for_job_api_v2_iknow_get(self, ha_job_id, **kwargs): # noqa: E501
|
18756
|
-
"""Get Root Cause For Job # noqa: E501
|
18757
|
-
|
18758
|
-
This method makes a synchronous HTTP request by default. To make an
|
18759
|
-
asynchronous HTTP request, please pass async_req=True
|
18760
|
-
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get(ha_job_id, async_req=True)
|
18761
|
-
>>> result = thread.get()
|
18762
|
-
|
18763
|
-
:param async_req bool: execute request asynchronously
|
18764
|
-
:param str ha_job_id: (required)
|
18765
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18766
|
-
be returned without reading/decoding response
|
18767
|
-
data. Default is True.
|
18768
|
-
:param _request_timeout: timeout setting for this request. If one
|
18769
|
-
number provided, it will be total request
|
18770
|
-
timeout. It can also be a pair (tuple) of
|
18771
|
-
(connection, read) timeouts.
|
18772
|
-
:return: IKnowResponse
|
18773
|
-
If the method is called asynchronously,
|
18774
|
-
returns the request thread.
|
18775
|
-
"""
|
18776
|
-
kwargs['_return_http_data_only'] = True
|
18777
|
-
return self.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, **kwargs) # noqa: E501
|
18778
|
-
|
18779
|
-
def get_root_cause_for_job_api_v2_iknow_get_with_http_info(self, ha_job_id, **kwargs): # noqa: E501
|
18780
|
-
"""Get Root Cause For Job # noqa: E501
|
18781
|
-
|
18782
|
-
This method makes a synchronous HTTP request by default. To make an
|
18783
|
-
asynchronous HTTP request, please pass async_req=True
|
18784
|
-
>>> thread = api.get_root_cause_for_job_api_v2_iknow_get_with_http_info(ha_job_id, async_req=True)
|
18785
|
-
>>> result = thread.get()
|
18786
|
-
|
18787
|
-
:param async_req bool: execute request asynchronously
|
18788
|
-
:param str ha_job_id: (required)
|
18789
|
-
:param _return_http_data_only: response data without head status code
|
18790
|
-
and headers
|
18791
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
18792
|
-
be returned without reading/decoding response
|
18793
|
-
data. Default is True.
|
18794
|
-
:param _request_timeout: timeout setting for this request. If one
|
18795
|
-
number provided, it will be total request
|
18796
|
-
timeout. It can also be a pair (tuple) of
|
18797
|
-
(connection, read) timeouts.
|
18798
|
-
:return: tuple(IKnowResponse, status_code(int), headers(HTTPHeaderDict))
|
18799
|
-
If the method is called asynchronously,
|
18800
|
-
returns the request thread.
|
18801
|
-
"""
|
18802
|
-
|
18803
|
-
local_var_params = locals()
|
18804
|
-
|
18805
|
-
all_params = [
|
18806
|
-
'ha_job_id'
|
18807
|
-
]
|
18808
|
-
all_params.extend(
|
18809
|
-
[
|
18810
|
-
'async_req',
|
18811
|
-
'_return_http_data_only',
|
18812
|
-
'_preload_content',
|
18813
|
-
'_request_timeout'
|
18814
|
-
]
|
18815
|
-
)
|
18816
|
-
|
18817
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
18818
|
-
if key not in all_params:
|
18819
|
-
raise ApiTypeError(
|
18820
|
-
"Got an unexpected keyword argument '%s'"
|
18821
|
-
" to method get_root_cause_for_job_api_v2_iknow_get" % key
|
18822
|
-
)
|
18823
|
-
local_var_params[key] = val
|
18824
|
-
del local_var_params['kwargs']
|
18825
|
-
# verify the required parameter 'ha_job_id' is set
|
18826
|
-
if self.api_client.client_side_validation and ('ha_job_id' not in local_var_params or # noqa: E501
|
18827
|
-
local_var_params['ha_job_id'] is None): # noqa: E501
|
18828
|
-
raise ApiValueError("Missing the required parameter `ha_job_id` when calling `get_root_cause_for_job_api_v2_iknow_get`") # noqa: E501
|
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 'ha_job_id' in local_var_params and local_var_params['ha_job_id'] is not None: # noqa: E501
|
18836
|
-
query_params.append(('ha_job_id', local_var_params['ha_job_id'])) # noqa: E501
|
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
|
@@ -21540,6 +20980,7 @@ class DefaultApi(object):
|
|
21540
20980
|
|
21541
20981
|
:param async_req bool: execute request asynchronously
|
21542
20982
|
:param str cluster_id: (required)
|
20983
|
+
:param bool skip_job_details: Skip decorating job details, which can be an expensive operation.
|
21543
20984
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21544
20985
|
be returned without reading/decoding response
|
21545
20986
|
data. Default is True.
|
@@ -21564,6 +21005,7 @@ class DefaultApi(object):
|
|
21564
21005
|
|
21565
21006
|
:param async_req bool: execute request asynchronously
|
21566
21007
|
:param str cluster_id: (required)
|
21008
|
+
:param bool skip_job_details: Skip decorating job details, which can be an expensive operation.
|
21567
21009
|
:param _return_http_data_only: response data without head status code
|
21568
21010
|
and headers
|
21569
21011
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -21581,7 +21023,8 @@ class DefaultApi(object):
|
|
21581
21023
|
local_var_params = locals()
|
21582
21024
|
|
21583
21025
|
all_params = [
|
21584
|
-
'cluster_id'
|
21026
|
+
'cluster_id',
|
21027
|
+
'skip_job_details'
|
21585
21028
|
]
|
21586
21029
|
all_params.extend(
|
21587
21030
|
[
|
@@ -21612,6 +21055,8 @@ class DefaultApi(object):
|
|
21612
21055
|
query_params = []
|
21613
21056
|
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
21614
21057
|
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
21058
|
+
if 'skip_job_details' in local_var_params and local_var_params['skip_job_details'] is not None: # noqa: E501
|
21059
|
+
query_params.append(('skip_job_details', local_var_params['skip_job_details'])) # noqa: E501
|
21615
21060
|
|
21616
21061
|
header_params = {}
|
21617
21062
|
|
@@ -26880,6 +26325,122 @@ class DefaultApi(object):
|
|
26880
26325
|
_request_timeout=local_var_params.get('_request_timeout'),
|
26881
26326
|
collection_formats=collection_formats)
|
26882
26327
|
|
26328
|
+
def list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get(self, **kwargs): # noqa: E501
|
26329
|
+
"""List Recommended Workspace Templates # noqa: E501
|
26330
|
+
|
26331
|
+
Lists all workspace templates ranked by user's organization marketing questions # noqa: E501
|
26332
|
+
This method makes a synchronous HTTP request by default. To make an
|
26333
|
+
asynchronous HTTP request, please pass async_req=True
|
26334
|
+
>>> thread = api.list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get(async_req=True)
|
26335
|
+
>>> result = thread.get()
|
26336
|
+
|
26337
|
+
:param async_req bool: execute request asynchronously
|
26338
|
+
:param int count: Maximum number of templates to return
|
26339
|
+
:param list[str] oa_group_names: Search for templates that belong to the provided group name
|
26340
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26341
|
+
be returned without reading/decoding response
|
26342
|
+
data. Default is True.
|
26343
|
+
:param _request_timeout: timeout setting for this request. If one
|
26344
|
+
number provided, it will be total request
|
26345
|
+
timeout. It can also be a pair (tuple) of
|
26346
|
+
(connection, read) timeouts.
|
26347
|
+
:return: WorkspacetemplateListResponse
|
26348
|
+
If the method is called asynchronously,
|
26349
|
+
returns the request thread.
|
26350
|
+
"""
|
26351
|
+
kwargs['_return_http_data_only'] = True
|
26352
|
+
return self.list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get_with_http_info(**kwargs) # noqa: E501
|
26353
|
+
|
26354
|
+
def list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get_with_http_info(self, **kwargs): # noqa: E501
|
26355
|
+
"""List Recommended Workspace Templates # noqa: E501
|
26356
|
+
|
26357
|
+
Lists all workspace templates ranked by user's organization marketing questions # noqa: E501
|
26358
|
+
This method makes a synchronous HTTP request by default. To make an
|
26359
|
+
asynchronous HTTP request, please pass async_req=True
|
26360
|
+
>>> thread = api.list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get_with_http_info(async_req=True)
|
26361
|
+
>>> result = thread.get()
|
26362
|
+
|
26363
|
+
:param async_req bool: execute request asynchronously
|
26364
|
+
:param int count: Maximum number of templates to return
|
26365
|
+
:param list[str] oa_group_names: Search for templates that belong to the provided group name
|
26366
|
+
:param _return_http_data_only: response data without head status code
|
26367
|
+
and headers
|
26368
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26369
|
+
be returned without reading/decoding response
|
26370
|
+
data. Default is True.
|
26371
|
+
:param _request_timeout: timeout setting for this request. If one
|
26372
|
+
number provided, it will be total request
|
26373
|
+
timeout. It can also be a pair (tuple) of
|
26374
|
+
(connection, read) timeouts.
|
26375
|
+
:return: tuple(WorkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
|
26376
|
+
If the method is called asynchronously,
|
26377
|
+
returns the request thread.
|
26378
|
+
"""
|
26379
|
+
|
26380
|
+
local_var_params = locals()
|
26381
|
+
|
26382
|
+
all_params = [
|
26383
|
+
'count',
|
26384
|
+
'oa_group_names'
|
26385
|
+
]
|
26386
|
+
all_params.extend(
|
26387
|
+
[
|
26388
|
+
'async_req',
|
26389
|
+
'_return_http_data_only',
|
26390
|
+
'_preload_content',
|
26391
|
+
'_request_timeout'
|
26392
|
+
]
|
26393
|
+
)
|
26394
|
+
|
26395
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
26396
|
+
if key not in all_params:
|
26397
|
+
raise ApiTypeError(
|
26398
|
+
"Got an unexpected keyword argument '%s'"
|
26399
|
+
" to method list_recommended_workspace_templates_api_v2_experimental_workspaces_templates_recommended_get" % key
|
26400
|
+
)
|
26401
|
+
local_var_params[key] = val
|
26402
|
+
del local_var_params['kwargs']
|
26403
|
+
|
26404
|
+
collection_formats = {}
|
26405
|
+
|
26406
|
+
path_params = {}
|
26407
|
+
|
26408
|
+
query_params = []
|
26409
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
26410
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
26411
|
+
if 'oa_group_names' in local_var_params and local_var_params['oa_group_names'] is not None: # noqa: E501
|
26412
|
+
query_params.append(('oa_group_names', local_var_params['oa_group_names'])) # noqa: E501
|
26413
|
+
collection_formats['oa_group_names'] = 'multi' # noqa: E501
|
26414
|
+
|
26415
|
+
header_params = {}
|
26416
|
+
|
26417
|
+
form_params = []
|
26418
|
+
local_var_files = {}
|
26419
|
+
|
26420
|
+
body_params = None
|
26421
|
+
# HTTP header `Accept`
|
26422
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
26423
|
+
['application/json']) # noqa: E501
|
26424
|
+
|
26425
|
+
# Authentication setting
|
26426
|
+
auth_settings = [] # noqa: E501
|
26427
|
+
|
26428
|
+
return self.api_client.call_api(
|
26429
|
+
'/api/v2/experimental_workspaces/templates/recommended', 'GET',
|
26430
|
+
path_params,
|
26431
|
+
query_params,
|
26432
|
+
header_params,
|
26433
|
+
body=body_params,
|
26434
|
+
post_params=form_params,
|
26435
|
+
files=local_var_files,
|
26436
|
+
response_type='WorkspacetemplateListResponse', # noqa: E501
|
26437
|
+
auth_settings=auth_settings,
|
26438
|
+
async_req=local_var_params.get('async_req'),
|
26439
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
26440
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
26441
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
26442
|
+
collection_formats=collection_formats)
|
26443
|
+
|
26883
26444
|
def list_services_api_v2_services_v2_get(self, **kwargs): # noqa: E501
|
26884
26445
|
"""List Services # noqa: E501
|
26885
26446
|
|
@@ -33884,131 +33445,6 @@ class DefaultApi(object):
|
|
33884
33445
|
_request_timeout=local_var_params.get('_request_timeout'),
|
33885
33446
|
collection_formats=collection_formats)
|
33886
33447
|
|
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
33448
|
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
33449
|
"""Update Cloud Deployment Config # noqa: E501
|
34014
33450
|
|