anyscale 0.26.60__py3-none-any.whl → 0.26.62__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/docgen/models.md +2 -0
- anyscale/client/README.md +20 -3
- anyscale/client/openapi_client/__init__.py +12 -3
- anyscale/client/openapi_client/api/default_api.py +999 -50
- anyscale/client/openapi_client/models/__init__.py +12 -3
- anyscale/client/openapi_client/models/api_key_info.py +280 -0
- anyscale/client/openapi_client/models/api_key_parameters.py +29 -3
- anyscale/client/openapi_client/models/apikeyinfo_list_response.py +147 -0
- anyscale/client/openapi_client/models/cluster_dashboard_node.py +361 -0
- anyscale/client/openapi_client/models/{aggregatedinstanceusagecsv_list_response.py → clusterdashboardnode_list_response.py} +15 -15
- anyscale/client/openapi_client/models/compute_node_type.py +29 -1
- anyscale/client/openapi_client/models/gpu_usage.py +236 -0
- anyscale/client/openapi_client/models/node_metrics.py +404 -0
- anyscale/client/openapi_client/models/node_metrics_response.py +123 -0
- anyscale/client/openapi_client/models/{cloud_hosting_type.py → node_status.py} +8 -7
- anyscale/client/openapi_client/models/nodemetricsresponse_response.py +121 -0
- anyscale/client/openapi_client/models/revoke_api_keys_request.py +123 -0
- anyscale/client/openapi_client/models/revoke_api_keys_response.py +202 -0
- anyscale/client/openapi_client/models/revokeapikeysresponse_response.py +121 -0
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/client/openapi_client/models/workspace_template.py +17 -17
- anyscale/compute_config/_private/compute_config_sdk.py +4 -0
- anyscale/compute_config/models.py +24 -0
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/version.py +1 -1
- anyscale/workspace/commands.py +23 -114
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/METADATA +1 -1
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/RECORD +34 -25
- anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +0 -811
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/WHEEL +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.60.dist-info → anyscale-0.26.62.dist-info}/top_level.txt +0 -0
@@ -9315,7 +9315,7 @@ class DefaultApi(object):
|
|
9315
9315
|
number provided, it will be total request
|
9316
9316
|
timeout. It can also be a pair (tuple) of
|
9317
9317
|
(connection, read) timeouts.
|
9318
|
-
:return:
|
9318
|
+
:return: None
|
9319
9319
|
If the method is called asynchronously,
|
9320
9320
|
returns the request thread.
|
9321
9321
|
"""
|
@@ -9345,7 +9345,7 @@ class DefaultApi(object):
|
|
9345
9345
|
number provided, it will be total request
|
9346
9346
|
timeout. It can also be a pair (tuple) of
|
9347
9347
|
(connection, read) timeouts.
|
9348
|
-
:return:
|
9348
|
+
:return: None
|
9349
9349
|
If the method is called asynchronously,
|
9350
9350
|
returns the request thread.
|
9351
9351
|
"""
|
@@ -9426,7 +9426,7 @@ class DefaultApi(object):
|
|
9426
9426
|
body=body_params,
|
9427
9427
|
post_params=form_params,
|
9428
9428
|
files=local_var_files,
|
9429
|
-
response_type=
|
9429
|
+
response_type=None, # noqa: E501
|
9430
9430
|
auth_settings=auth_settings,
|
9431
9431
|
async_req=local_var_params.get('async_req'),
|
9432
9432
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -17073,6 +17073,128 @@ class DefaultApi(object):
|
|
17073
17073
|
_request_timeout=local_var_params.get('_request_timeout'),
|
17074
17074
|
collection_formats=collection_formats)
|
17075
17075
|
|
17076
|
+
def get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get(self, cluster_id, node_ids, **kwargs): # noqa: E501
|
17077
|
+
"""Get Metrics For Nodes # noqa: E501
|
17078
|
+
|
17079
|
+
This method makes a synchronous HTTP request by default. To make an
|
17080
|
+
asynchronous HTTP request, please pass async_req=True
|
17081
|
+
>>> thread = api.get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get(cluster_id, node_ids, async_req=True)
|
17082
|
+
>>> result = thread.get()
|
17083
|
+
|
17084
|
+
:param async_req bool: execute request asynchronously
|
17085
|
+
:param str cluster_id: The ID of the cluster to fetch metrics for. (required)
|
17086
|
+
:param list[str] node_ids: The IDs of the nodes to fetch metrics for. (required)
|
17087
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17088
|
+
be returned without reading/decoding response
|
17089
|
+
data. Default is True.
|
17090
|
+
:param _request_timeout: timeout setting for this request. If one
|
17091
|
+
number provided, it will be total request
|
17092
|
+
timeout. It can also be a pair (tuple) of
|
17093
|
+
(connection, read) timeouts.
|
17094
|
+
:return: NodemetricsresponseResponse
|
17095
|
+
If the method is called asynchronously,
|
17096
|
+
returns the request thread.
|
17097
|
+
"""
|
17098
|
+
kwargs['_return_http_data_only'] = True
|
17099
|
+
return self.get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get_with_http_info(cluster_id, node_ids, **kwargs) # noqa: E501
|
17100
|
+
|
17101
|
+
def get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get_with_http_info(self, cluster_id, node_ids, **kwargs): # noqa: E501
|
17102
|
+
"""Get Metrics For Nodes # noqa: E501
|
17103
|
+
|
17104
|
+
This method makes a synchronous HTTP request by default. To make an
|
17105
|
+
asynchronous HTTP request, please pass async_req=True
|
17106
|
+
>>> thread = api.get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get_with_http_info(cluster_id, node_ids, async_req=True)
|
17107
|
+
>>> result = thread.get()
|
17108
|
+
|
17109
|
+
:param async_req bool: execute request asynchronously
|
17110
|
+
:param str cluster_id: The ID of the cluster to fetch metrics for. (required)
|
17111
|
+
:param list[str] node_ids: The IDs of the nodes to fetch metrics for. (required)
|
17112
|
+
:param _return_http_data_only: response data without head status code
|
17113
|
+
and headers
|
17114
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17115
|
+
be returned without reading/decoding response
|
17116
|
+
data. Default is True.
|
17117
|
+
:param _request_timeout: timeout setting for this request. If one
|
17118
|
+
number provided, it will be total request
|
17119
|
+
timeout. It can also be a pair (tuple) of
|
17120
|
+
(connection, read) timeouts.
|
17121
|
+
:return: tuple(NodemetricsresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
17122
|
+
If the method is called asynchronously,
|
17123
|
+
returns the request thread.
|
17124
|
+
"""
|
17125
|
+
|
17126
|
+
local_var_params = locals()
|
17127
|
+
|
17128
|
+
all_params = [
|
17129
|
+
'cluster_id',
|
17130
|
+
'node_ids'
|
17131
|
+
]
|
17132
|
+
all_params.extend(
|
17133
|
+
[
|
17134
|
+
'async_req',
|
17135
|
+
'_return_http_data_only',
|
17136
|
+
'_preload_content',
|
17137
|
+
'_request_timeout'
|
17138
|
+
]
|
17139
|
+
)
|
17140
|
+
|
17141
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
17142
|
+
if key not in all_params:
|
17143
|
+
raise ApiTypeError(
|
17144
|
+
"Got an unexpected keyword argument '%s'"
|
17145
|
+
" to method get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get" % key
|
17146
|
+
)
|
17147
|
+
local_var_params[key] = val
|
17148
|
+
del local_var_params['kwargs']
|
17149
|
+
# verify the required parameter 'cluster_id' is set
|
17150
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
17151
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
17152
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get`") # noqa: E501
|
17153
|
+
# verify the required parameter 'node_ids' is set
|
17154
|
+
if self.api_client.client_side_validation and ('node_ids' not in local_var_params or # noqa: E501
|
17155
|
+
local_var_params['node_ids'] is None): # noqa: E501
|
17156
|
+
raise ApiValueError("Missing the required parameter `node_ids` when calling `get_metrics_for_nodes_api_v2_cluster_dashboard_metrics_get`") # noqa: E501
|
17157
|
+
|
17158
|
+
collection_formats = {}
|
17159
|
+
|
17160
|
+
path_params = {}
|
17161
|
+
|
17162
|
+
query_params = []
|
17163
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
17164
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
17165
|
+
if 'node_ids' in local_var_params and local_var_params['node_ids'] is not None: # noqa: E501
|
17166
|
+
query_params.append(('node_ids', local_var_params['node_ids'])) # noqa: E501
|
17167
|
+
collection_formats['node_ids'] = 'multi' # noqa: E501
|
17168
|
+
|
17169
|
+
header_params = {}
|
17170
|
+
|
17171
|
+
form_params = []
|
17172
|
+
local_var_files = {}
|
17173
|
+
|
17174
|
+
body_params = None
|
17175
|
+
# HTTP header `Accept`
|
17176
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
17177
|
+
['application/json']) # noqa: E501
|
17178
|
+
|
17179
|
+
# Authentication setting
|
17180
|
+
auth_settings = [] # noqa: E501
|
17181
|
+
|
17182
|
+
return self.api_client.call_api(
|
17183
|
+
'/api/v2/cluster_dashboard/metrics', 'GET',
|
17184
|
+
path_params,
|
17185
|
+
query_params,
|
17186
|
+
header_params,
|
17187
|
+
body=body_params,
|
17188
|
+
post_params=form_params,
|
17189
|
+
files=local_var_files,
|
17190
|
+
response_type='NodemetricsresponseResponse', # noqa: E501
|
17191
|
+
auth_settings=auth_settings,
|
17192
|
+
async_req=local_var_params.get('async_req'),
|
17193
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
17194
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
17195
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
17196
|
+
collection_formats=collection_formats)
|
17197
|
+
|
17076
17198
|
def get_metronome_customer_info_api_v2_metronome_customer_info_organization_id_get(self, organization_id, **kwargs): # noqa: E501
|
17077
17199
|
"""Get Metronome Customer Info # noqa: E501
|
17078
17200
|
|
@@ -17650,6 +17772,139 @@ class DefaultApi(object):
|
|
17650
17772
|
_request_timeout=local_var_params.get('_request_timeout'),
|
17651
17773
|
collection_formats=collection_formats)
|
17652
17774
|
|
17775
|
+
def get_nodes_api_v2_cluster_dashboard_get(self, cluster_id, **kwargs): # noqa: E501
|
17776
|
+
"""Get Nodes # noqa: E501
|
17777
|
+
|
17778
|
+
This method makes a synchronous HTTP request by default. To make an
|
17779
|
+
asynchronous HTTP request, please pass async_req=True
|
17780
|
+
>>> thread = api.get_nodes_api_v2_cluster_dashboard_get(cluster_id, async_req=True)
|
17781
|
+
>>> result = thread.get()
|
17782
|
+
|
17783
|
+
:param async_req bool: execute request asynchronously
|
17784
|
+
:param str cluster_id: (required)
|
17785
|
+
:param str session_name: The name of the session to fetch nodes for.
|
17786
|
+
:param list[NodeStatus] states_filter: The states to filter the nodes by.
|
17787
|
+
:param int page: The page number to fetch.
|
17788
|
+
:param int page_size: The number of nodes to fetch per page.
|
17789
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17790
|
+
be returned without reading/decoding response
|
17791
|
+
data. Default is True.
|
17792
|
+
:param _request_timeout: timeout setting for this request. If one
|
17793
|
+
number provided, it will be total request
|
17794
|
+
timeout. It can also be a pair (tuple) of
|
17795
|
+
(connection, read) timeouts.
|
17796
|
+
:return: ClusterdashboardnodeListResponse
|
17797
|
+
If the method is called asynchronously,
|
17798
|
+
returns the request thread.
|
17799
|
+
"""
|
17800
|
+
kwargs['_return_http_data_only'] = True
|
17801
|
+
return self.get_nodes_api_v2_cluster_dashboard_get_with_http_info(cluster_id, **kwargs) # noqa: E501
|
17802
|
+
|
17803
|
+
def get_nodes_api_v2_cluster_dashboard_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
|
17804
|
+
"""Get Nodes # noqa: E501
|
17805
|
+
|
17806
|
+
This method makes a synchronous HTTP request by default. To make an
|
17807
|
+
asynchronous HTTP request, please pass async_req=True
|
17808
|
+
>>> thread = api.get_nodes_api_v2_cluster_dashboard_get_with_http_info(cluster_id, async_req=True)
|
17809
|
+
>>> result = thread.get()
|
17810
|
+
|
17811
|
+
:param async_req bool: execute request asynchronously
|
17812
|
+
:param str cluster_id: (required)
|
17813
|
+
:param str session_name: The name of the session to fetch nodes for.
|
17814
|
+
:param list[NodeStatus] states_filter: The states to filter the nodes by.
|
17815
|
+
:param int page: The page number to fetch.
|
17816
|
+
:param int page_size: The number of nodes to fetch per page.
|
17817
|
+
:param _return_http_data_only: response data without head status code
|
17818
|
+
and headers
|
17819
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
17820
|
+
be returned without reading/decoding response
|
17821
|
+
data. Default is True.
|
17822
|
+
:param _request_timeout: timeout setting for this request. If one
|
17823
|
+
number provided, it will be total request
|
17824
|
+
timeout. It can also be a pair (tuple) of
|
17825
|
+
(connection, read) timeouts.
|
17826
|
+
:return: tuple(ClusterdashboardnodeListResponse, status_code(int), headers(HTTPHeaderDict))
|
17827
|
+
If the method is called asynchronously,
|
17828
|
+
returns the request thread.
|
17829
|
+
"""
|
17830
|
+
|
17831
|
+
local_var_params = locals()
|
17832
|
+
|
17833
|
+
all_params = [
|
17834
|
+
'cluster_id',
|
17835
|
+
'session_name',
|
17836
|
+
'states_filter',
|
17837
|
+
'page',
|
17838
|
+
'page_size'
|
17839
|
+
]
|
17840
|
+
all_params.extend(
|
17841
|
+
[
|
17842
|
+
'async_req',
|
17843
|
+
'_return_http_data_only',
|
17844
|
+
'_preload_content',
|
17845
|
+
'_request_timeout'
|
17846
|
+
]
|
17847
|
+
)
|
17848
|
+
|
17849
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
17850
|
+
if key not in all_params:
|
17851
|
+
raise ApiTypeError(
|
17852
|
+
"Got an unexpected keyword argument '%s'"
|
17853
|
+
" to method get_nodes_api_v2_cluster_dashboard_get" % key
|
17854
|
+
)
|
17855
|
+
local_var_params[key] = val
|
17856
|
+
del local_var_params['kwargs']
|
17857
|
+
# verify the required parameter 'cluster_id' is set
|
17858
|
+
if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
|
17859
|
+
local_var_params['cluster_id'] is None): # noqa: E501
|
17860
|
+
raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_nodes_api_v2_cluster_dashboard_get`") # noqa: E501
|
17861
|
+
|
17862
|
+
collection_formats = {}
|
17863
|
+
|
17864
|
+
path_params = {}
|
17865
|
+
|
17866
|
+
query_params = []
|
17867
|
+
if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
|
17868
|
+
query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
|
17869
|
+
if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
|
17870
|
+
query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
|
17871
|
+
if 'states_filter' in local_var_params and local_var_params['states_filter'] is not None: # noqa: E501
|
17872
|
+
query_params.append(('states_filter', local_var_params['states_filter'])) # noqa: E501
|
17873
|
+
collection_formats['states_filter'] = 'multi' # noqa: E501
|
17874
|
+
if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
|
17875
|
+
query_params.append(('page', local_var_params['page'])) # noqa: E501
|
17876
|
+
if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501
|
17877
|
+
query_params.append(('page_size', local_var_params['page_size'])) # noqa: E501
|
17878
|
+
|
17879
|
+
header_params = {}
|
17880
|
+
|
17881
|
+
form_params = []
|
17882
|
+
local_var_files = {}
|
17883
|
+
|
17884
|
+
body_params = None
|
17885
|
+
# HTTP header `Accept`
|
17886
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
17887
|
+
['application/json']) # noqa: E501
|
17888
|
+
|
17889
|
+
# Authentication setting
|
17890
|
+
auth_settings = [] # noqa: E501
|
17891
|
+
|
17892
|
+
return self.api_client.call_api(
|
17893
|
+
'/api/v2/cluster_dashboard/', 'GET',
|
17894
|
+
path_params,
|
17895
|
+
query_params,
|
17896
|
+
header_params,
|
17897
|
+
body=body_params,
|
17898
|
+
post_params=form_params,
|
17899
|
+
files=local_var_files,
|
17900
|
+
response_type='ClusterdashboardnodeListResponse', # noqa: E501
|
17901
|
+
auth_settings=auth_settings,
|
17902
|
+
async_req=local_var_params.get('async_req'),
|
17903
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
17904
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
17905
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
17906
|
+
collection_formats=collection_formats)
|
17907
|
+
|
17653
17908
|
def get_operator_events_api_v2_dataset_runs_operator_events_get(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
|
17654
17909
|
"""Get Operator Events # noqa: E501
|
17655
17910
|
|
@@ -23957,24 +24212,17 @@ class DefaultApi(object):
|
|
23957
24212
|
_request_timeout=local_var_params.get('_request_timeout'),
|
23958
24213
|
collection_formats=collection_formats)
|
23959
24214
|
|
23960
|
-
def
|
23961
|
-
"""List
|
24215
|
+
def list_api_keys_api_v2_users_api_keys_get(self, **kwargs): # noqa: E501
|
24216
|
+
"""List Api Keys # noqa: E501
|
23962
24217
|
|
23963
|
-
|
24218
|
+
List current user's own API keys. # noqa: E501
|
23964
24219
|
This method makes a synchronous HTTP request by default. To make an
|
23965
24220
|
asynchronous HTTP request, please pass async_req=True
|
23966
|
-
>>> thread = api.
|
24221
|
+
>>> thread = api.list_api_keys_api_v2_users_api_keys_get(async_req=True)
|
23967
24222
|
>>> result = thread.get()
|
23968
24223
|
|
23969
24224
|
:param async_req bool: execute request asynchronously
|
23970
|
-
:param str
|
23971
|
-
:param str creator_id:
|
23972
|
-
:param str name_contains:
|
23973
|
-
:param str image_name_contains:
|
23974
|
-
:param bool include_archived: Whether to include archived cluster environments in the response.
|
23975
|
-
:param bool defaults_first: If True, we always return default cluster envs before user created cluster envs. If False, we always return default cluster envs after user created cluster envs. If absent, default to True. Note that we never intersperse default cluster envs with user created cluster envs.
|
23976
|
-
:param str paging_token:
|
23977
|
-
:param int count:
|
24225
|
+
:param str name:
|
23978
24226
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
23979
24227
|
be returned without reading/decoding response
|
23980
24228
|
data. Default is True.
|
@@ -23982,31 +24230,24 @@ class DefaultApi(object):
|
|
23982
24230
|
number provided, it will be total request
|
23983
24231
|
timeout. It can also be a pair (tuple) of
|
23984
24232
|
(connection, read) timeouts.
|
23985
|
-
:return:
|
24233
|
+
:return: ApikeyinfoListResponse
|
23986
24234
|
If the method is called asynchronously,
|
23987
24235
|
returns the request thread.
|
23988
24236
|
"""
|
23989
24237
|
kwargs['_return_http_data_only'] = True
|
23990
|
-
return self.
|
24238
|
+
return self.list_api_keys_api_v2_users_api_keys_get_with_http_info(**kwargs) # noqa: E501
|
23991
24239
|
|
23992
|
-
def
|
23993
|
-
"""List
|
24240
|
+
def list_api_keys_api_v2_users_api_keys_get_with_http_info(self, **kwargs): # noqa: E501
|
24241
|
+
"""List Api Keys # noqa: E501
|
23994
24242
|
|
23995
|
-
|
24243
|
+
List current user's own API keys. # noqa: E501
|
23996
24244
|
This method makes a synchronous HTTP request by default. To make an
|
23997
24245
|
asynchronous HTTP request, please pass async_req=True
|
23998
|
-
>>> thread = api.
|
24246
|
+
>>> thread = api.list_api_keys_api_v2_users_api_keys_get_with_http_info(async_req=True)
|
23999
24247
|
>>> result = thread.get()
|
24000
24248
|
|
24001
24249
|
:param async_req bool: execute request asynchronously
|
24002
|
-
:param str
|
24003
|
-
:param str creator_id:
|
24004
|
-
:param str name_contains:
|
24005
|
-
:param str image_name_contains:
|
24006
|
-
:param bool include_archived: Whether to include archived cluster environments in the response.
|
24007
|
-
:param bool defaults_first: If True, we always return default cluster envs before user created cluster envs. If False, we always return default cluster envs after user created cluster envs. If absent, default to True. Note that we never intersperse default cluster envs with user created cluster envs.
|
24008
|
-
:param str paging_token:
|
24009
|
-
:param int count:
|
24250
|
+
:param str name:
|
24010
24251
|
:param _return_http_data_only: response data without head status code
|
24011
24252
|
and headers
|
24012
24253
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -24016,7 +24257,7 @@ class DefaultApi(object):
|
|
24016
24257
|
number provided, it will be total request
|
24017
24258
|
timeout. It can also be a pair (tuple) of
|
24018
24259
|
(connection, read) timeouts.
|
24019
|
-
:return: tuple(
|
24260
|
+
:return: tuple(ApikeyinfoListResponse, status_code(int), headers(HTTPHeaderDict))
|
24020
24261
|
If the method is called asynchronously,
|
24021
24262
|
returns the request thread.
|
24022
24263
|
"""
|
@@ -24024,14 +24265,7 @@ class DefaultApi(object):
|
|
24024
24265
|
local_var_params = locals()
|
24025
24266
|
|
24026
24267
|
all_params = [
|
24027
|
-
'
|
24028
|
-
'creator_id',
|
24029
|
-
'name_contains',
|
24030
|
-
'image_name_contains',
|
24031
|
-
'include_archived',
|
24032
|
-
'defaults_first',
|
24033
|
-
'paging_token',
|
24034
|
-
'count'
|
24268
|
+
'name'
|
24035
24269
|
]
|
24036
24270
|
all_params.extend(
|
24037
24271
|
[
|
@@ -24046,27 +24280,278 @@ class DefaultApi(object):
|
|
24046
24280
|
if key not in all_params:
|
24047
24281
|
raise ApiTypeError(
|
24048
24282
|
"Got an unexpected keyword argument '%s'"
|
24049
|
-
" to method
|
24283
|
+
" to method list_api_keys_api_v2_users_api_keys_get" % key
|
24050
24284
|
)
|
24051
24285
|
local_var_params[key] = val
|
24052
24286
|
del local_var_params['kwargs']
|
24053
24287
|
|
24054
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
24055
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `list_application_templates_api_v2_application_templates_get`, must be a value less than or equal to `1000`") # noqa: E501
|
24056
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
24057
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `list_application_templates_api_v2_application_templates_get`, must be a value greater than or equal to `0`") # noqa: E501
|
24058
24288
|
collection_formats = {}
|
24059
24289
|
|
24060
24290
|
path_params = {}
|
24061
24291
|
|
24062
24292
|
query_params = []
|
24063
|
-
if '
|
24064
|
-
query_params.append(('
|
24065
|
-
|
24066
|
-
|
24067
|
-
|
24068
|
-
|
24069
|
-
|
24293
|
+
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
24294
|
+
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
24295
|
+
|
24296
|
+
header_params = {}
|
24297
|
+
|
24298
|
+
form_params = []
|
24299
|
+
local_var_files = {}
|
24300
|
+
|
24301
|
+
body_params = None
|
24302
|
+
# HTTP header `Accept`
|
24303
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
24304
|
+
['application/json']) # noqa: E501
|
24305
|
+
|
24306
|
+
# Authentication setting
|
24307
|
+
auth_settings = [] # noqa: E501
|
24308
|
+
|
24309
|
+
return self.api_client.call_api(
|
24310
|
+
'/api/v2/users/api_keys', 'GET',
|
24311
|
+
path_params,
|
24312
|
+
query_params,
|
24313
|
+
header_params,
|
24314
|
+
body=body_params,
|
24315
|
+
post_params=form_params,
|
24316
|
+
files=local_var_files,
|
24317
|
+
response_type='ApikeyinfoListResponse', # noqa: E501
|
24318
|
+
auth_settings=auth_settings,
|
24319
|
+
async_req=local_var_params.get('async_req'),
|
24320
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
24321
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
24322
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
24323
|
+
collection_formats=collection_formats)
|
24324
|
+
|
24325
|
+
def list_api_keys_for_admin_api_v2_users_admin_api_keys_get(self, **kwargs): # noqa: E501
|
24326
|
+
"""List Api Keys For Admin # noqa: E501
|
24327
|
+
|
24328
|
+
Retrieve all API keys within the organization, only used by the admin. # noqa: E501
|
24329
|
+
This method makes a synchronous HTTP request by default. To make an
|
24330
|
+
asynchronous HTTP request, please pass async_req=True
|
24331
|
+
>>> thread = api.list_api_keys_for_admin_api_v2_users_admin_api_keys_get(async_req=True)
|
24332
|
+
>>> result = thread.get()
|
24333
|
+
|
24334
|
+
:param async_req bool: execute request asynchronously
|
24335
|
+
:param str name:
|
24336
|
+
:param str created_by:
|
24337
|
+
:param str user_id:
|
24338
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24339
|
+
be returned without reading/decoding response
|
24340
|
+
data. Default is True.
|
24341
|
+
:param _request_timeout: timeout setting for this request. If one
|
24342
|
+
number provided, it will be total request
|
24343
|
+
timeout. It can also be a pair (tuple) of
|
24344
|
+
(connection, read) timeouts.
|
24345
|
+
:return: ApikeyinfoListResponse
|
24346
|
+
If the method is called asynchronously,
|
24347
|
+
returns the request thread.
|
24348
|
+
"""
|
24349
|
+
kwargs['_return_http_data_only'] = True
|
24350
|
+
return self.list_api_keys_for_admin_api_v2_users_admin_api_keys_get_with_http_info(**kwargs) # noqa: E501
|
24351
|
+
|
24352
|
+
def list_api_keys_for_admin_api_v2_users_admin_api_keys_get_with_http_info(self, **kwargs): # noqa: E501
|
24353
|
+
"""List Api Keys For Admin # noqa: E501
|
24354
|
+
|
24355
|
+
Retrieve all API keys within the organization, only used by the admin. # noqa: E501
|
24356
|
+
This method makes a synchronous HTTP request by default. To make an
|
24357
|
+
asynchronous HTTP request, please pass async_req=True
|
24358
|
+
>>> thread = api.list_api_keys_for_admin_api_v2_users_admin_api_keys_get_with_http_info(async_req=True)
|
24359
|
+
>>> result = thread.get()
|
24360
|
+
|
24361
|
+
:param async_req bool: execute request asynchronously
|
24362
|
+
:param str name:
|
24363
|
+
:param str created_by:
|
24364
|
+
:param str user_id:
|
24365
|
+
:param _return_http_data_only: response data without head status code
|
24366
|
+
and headers
|
24367
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24368
|
+
be returned without reading/decoding response
|
24369
|
+
data. Default is True.
|
24370
|
+
:param _request_timeout: timeout setting for this request. If one
|
24371
|
+
number provided, it will be total request
|
24372
|
+
timeout. It can also be a pair (tuple) of
|
24373
|
+
(connection, read) timeouts.
|
24374
|
+
:return: tuple(ApikeyinfoListResponse, status_code(int), headers(HTTPHeaderDict))
|
24375
|
+
If the method is called asynchronously,
|
24376
|
+
returns the request thread.
|
24377
|
+
"""
|
24378
|
+
|
24379
|
+
local_var_params = locals()
|
24380
|
+
|
24381
|
+
all_params = [
|
24382
|
+
'name',
|
24383
|
+
'created_by',
|
24384
|
+
'user_id'
|
24385
|
+
]
|
24386
|
+
all_params.extend(
|
24387
|
+
[
|
24388
|
+
'async_req',
|
24389
|
+
'_return_http_data_only',
|
24390
|
+
'_preload_content',
|
24391
|
+
'_request_timeout'
|
24392
|
+
]
|
24393
|
+
)
|
24394
|
+
|
24395
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
24396
|
+
if key not in all_params:
|
24397
|
+
raise ApiTypeError(
|
24398
|
+
"Got an unexpected keyword argument '%s'"
|
24399
|
+
" to method list_api_keys_for_admin_api_v2_users_admin_api_keys_get" % key
|
24400
|
+
)
|
24401
|
+
local_var_params[key] = val
|
24402
|
+
del local_var_params['kwargs']
|
24403
|
+
|
24404
|
+
collection_formats = {}
|
24405
|
+
|
24406
|
+
path_params = {}
|
24407
|
+
|
24408
|
+
query_params = []
|
24409
|
+
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
24410
|
+
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
24411
|
+
if 'created_by' in local_var_params and local_var_params['created_by'] is not None: # noqa: E501
|
24412
|
+
query_params.append(('created_by', local_var_params['created_by'])) # noqa: E501
|
24413
|
+
if 'user_id' in local_var_params and local_var_params['user_id'] is not None: # noqa: E501
|
24414
|
+
query_params.append(('user_id', local_var_params['user_id'])) # noqa: E501
|
24415
|
+
|
24416
|
+
header_params = {}
|
24417
|
+
|
24418
|
+
form_params = []
|
24419
|
+
local_var_files = {}
|
24420
|
+
|
24421
|
+
body_params = None
|
24422
|
+
# HTTP header `Accept`
|
24423
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
24424
|
+
['application/json']) # noqa: E501
|
24425
|
+
|
24426
|
+
# Authentication setting
|
24427
|
+
auth_settings = [] # noqa: E501
|
24428
|
+
|
24429
|
+
return self.api_client.call_api(
|
24430
|
+
'/api/v2/users/admin/api_keys', 'GET',
|
24431
|
+
path_params,
|
24432
|
+
query_params,
|
24433
|
+
header_params,
|
24434
|
+
body=body_params,
|
24435
|
+
post_params=form_params,
|
24436
|
+
files=local_var_files,
|
24437
|
+
response_type='ApikeyinfoListResponse', # noqa: E501
|
24438
|
+
auth_settings=auth_settings,
|
24439
|
+
async_req=local_var_params.get('async_req'),
|
24440
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
24441
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
24442
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
24443
|
+
collection_formats=collection_formats)
|
24444
|
+
|
24445
|
+
def list_application_templates_api_v2_application_templates_get(self, **kwargs): # noqa: E501
|
24446
|
+
"""List Application Templates # noqa: E501
|
24447
|
+
|
24448
|
+
Lists all Cluster Environments belonging to a Project. Note: cluster_environment is called app_config on the backend api. # noqa: E501
|
24449
|
+
This method makes a synchronous HTTP request by default. To make an
|
24450
|
+
asynchronous HTTP request, please pass async_req=True
|
24451
|
+
>>> thread = api.list_application_templates_api_v2_application_templates_get(async_req=True)
|
24452
|
+
>>> result = thread.get()
|
24453
|
+
|
24454
|
+
:param async_req bool: execute request asynchronously
|
24455
|
+
:param str project_id:
|
24456
|
+
:param str creator_id:
|
24457
|
+
:param str name_contains:
|
24458
|
+
:param str image_name_contains:
|
24459
|
+
:param bool include_archived: Whether to include archived cluster environments in the response.
|
24460
|
+
:param bool defaults_first: If True, we always return default cluster envs before user created cluster envs. If False, we always return default cluster envs after user created cluster envs. If absent, default to True. Note that we never intersperse default cluster envs with user created cluster envs.
|
24461
|
+
:param str paging_token:
|
24462
|
+
:param int count:
|
24463
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24464
|
+
be returned without reading/decoding response
|
24465
|
+
data. Default is True.
|
24466
|
+
:param _request_timeout: timeout setting for this request. If one
|
24467
|
+
number provided, it will be total request
|
24468
|
+
timeout. It can also be a pair (tuple) of
|
24469
|
+
(connection, read) timeouts.
|
24470
|
+
:return: DecoratedapplicationtemplateListResponse
|
24471
|
+
If the method is called asynchronously,
|
24472
|
+
returns the request thread.
|
24473
|
+
"""
|
24474
|
+
kwargs['_return_http_data_only'] = True
|
24475
|
+
return self.list_application_templates_api_v2_application_templates_get_with_http_info(**kwargs) # noqa: E501
|
24476
|
+
|
24477
|
+
def list_application_templates_api_v2_application_templates_get_with_http_info(self, **kwargs): # noqa: E501
|
24478
|
+
"""List Application Templates # noqa: E501
|
24479
|
+
|
24480
|
+
Lists all Cluster Environments belonging to a Project. Note: cluster_environment is called app_config on the backend api. # noqa: E501
|
24481
|
+
This method makes a synchronous HTTP request by default. To make an
|
24482
|
+
asynchronous HTTP request, please pass async_req=True
|
24483
|
+
>>> thread = api.list_application_templates_api_v2_application_templates_get_with_http_info(async_req=True)
|
24484
|
+
>>> result = thread.get()
|
24485
|
+
|
24486
|
+
:param async_req bool: execute request asynchronously
|
24487
|
+
:param str project_id:
|
24488
|
+
:param str creator_id:
|
24489
|
+
:param str name_contains:
|
24490
|
+
:param str image_name_contains:
|
24491
|
+
:param bool include_archived: Whether to include archived cluster environments in the response.
|
24492
|
+
:param bool defaults_first: If True, we always return default cluster envs before user created cluster envs. If False, we always return default cluster envs after user created cluster envs. If absent, default to True. Note that we never intersperse default cluster envs with user created cluster envs.
|
24493
|
+
:param str paging_token:
|
24494
|
+
:param int count:
|
24495
|
+
:param _return_http_data_only: response data without head status code
|
24496
|
+
and headers
|
24497
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
24498
|
+
be returned without reading/decoding response
|
24499
|
+
data. Default is True.
|
24500
|
+
:param _request_timeout: timeout setting for this request. If one
|
24501
|
+
number provided, it will be total request
|
24502
|
+
timeout. It can also be a pair (tuple) of
|
24503
|
+
(connection, read) timeouts.
|
24504
|
+
:return: tuple(DecoratedapplicationtemplateListResponse, status_code(int), headers(HTTPHeaderDict))
|
24505
|
+
If the method is called asynchronously,
|
24506
|
+
returns the request thread.
|
24507
|
+
"""
|
24508
|
+
|
24509
|
+
local_var_params = locals()
|
24510
|
+
|
24511
|
+
all_params = [
|
24512
|
+
'project_id',
|
24513
|
+
'creator_id',
|
24514
|
+
'name_contains',
|
24515
|
+
'image_name_contains',
|
24516
|
+
'include_archived',
|
24517
|
+
'defaults_first',
|
24518
|
+
'paging_token',
|
24519
|
+
'count'
|
24520
|
+
]
|
24521
|
+
all_params.extend(
|
24522
|
+
[
|
24523
|
+
'async_req',
|
24524
|
+
'_return_http_data_only',
|
24525
|
+
'_preload_content',
|
24526
|
+
'_request_timeout'
|
24527
|
+
]
|
24528
|
+
)
|
24529
|
+
|
24530
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
24531
|
+
if key not in all_params:
|
24532
|
+
raise ApiTypeError(
|
24533
|
+
"Got an unexpected keyword argument '%s'"
|
24534
|
+
" to method list_application_templates_api_v2_application_templates_get" % key
|
24535
|
+
)
|
24536
|
+
local_var_params[key] = val
|
24537
|
+
del local_var_params['kwargs']
|
24538
|
+
|
24539
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
|
24540
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_application_templates_api_v2_application_templates_get`, must be a value less than or equal to `1000`") # noqa: E501
|
24541
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
24542
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_application_templates_api_v2_application_templates_get`, must be a value greater than or equal to `0`") # noqa: E501
|
24543
|
+
collection_formats = {}
|
24544
|
+
|
24545
|
+
path_params = {}
|
24546
|
+
|
24547
|
+
query_params = []
|
24548
|
+
if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
|
24549
|
+
query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
|
24550
|
+
if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
|
24551
|
+
query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
|
24552
|
+
if 'name_contains' in local_var_params and local_var_params['name_contains'] is not None: # noqa: E501
|
24553
|
+
query_params.append(('name_contains', local_var_params['name_contains'])) # noqa: E501
|
24554
|
+
if 'image_name_contains' in local_var_params and local_var_params['image_name_contains'] is not None: # noqa: E501
|
24070
24555
|
query_params.append(('image_name_contains', local_var_params['image_name_contains'])) # noqa: E501
|
24071
24556
|
if 'include_archived' in local_var_params and local_var_params['include_archived'] is not None: # noqa: E501
|
24072
24557
|
query_params.append(('include_archived', local_var_params['include_archived'])) # noqa: E501
|
@@ -32456,6 +32941,470 @@ class DefaultApi(object):
|
|
32456
32941
|
_request_timeout=local_var_params.get('_request_timeout'),
|
32457
32942
|
collection_formats=collection_formats)
|
32458
32943
|
|
32944
|
+
def revoke_api_key_api_v2_users_api_keys_api_key_id_delete(self, api_key_id, **kwargs): # noqa: E501
|
32945
|
+
"""Revoke Api Key # noqa: E501
|
32946
|
+
|
32947
|
+
Revoke current user's own API key. # noqa: E501
|
32948
|
+
This method makes a synchronous HTTP request by default. To make an
|
32949
|
+
asynchronous HTTP request, please pass async_req=True
|
32950
|
+
>>> thread = api.revoke_api_key_api_v2_users_api_keys_api_key_id_delete(api_key_id, async_req=True)
|
32951
|
+
>>> result = thread.get()
|
32952
|
+
|
32953
|
+
:param async_req bool: execute request asynchronously
|
32954
|
+
:param str api_key_id: ID of the API key to revoke (required)
|
32955
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
32956
|
+
be returned without reading/decoding response
|
32957
|
+
data. Default is True.
|
32958
|
+
:param _request_timeout: timeout setting for this request. If one
|
32959
|
+
number provided, it will be total request
|
32960
|
+
timeout. It can also be a pair (tuple) of
|
32961
|
+
(connection, read) timeouts.
|
32962
|
+
:return: None
|
32963
|
+
If the method is called asynchronously,
|
32964
|
+
returns the request thread.
|
32965
|
+
"""
|
32966
|
+
kwargs['_return_http_data_only'] = True
|
32967
|
+
return self.revoke_api_key_api_v2_users_api_keys_api_key_id_delete_with_http_info(api_key_id, **kwargs) # noqa: E501
|
32968
|
+
|
32969
|
+
def revoke_api_key_api_v2_users_api_keys_api_key_id_delete_with_http_info(self, api_key_id, **kwargs): # noqa: E501
|
32970
|
+
"""Revoke Api Key # noqa: E501
|
32971
|
+
|
32972
|
+
Revoke current user's own API key. # noqa: E501
|
32973
|
+
This method makes a synchronous HTTP request by default. To make an
|
32974
|
+
asynchronous HTTP request, please pass async_req=True
|
32975
|
+
>>> thread = api.revoke_api_key_api_v2_users_api_keys_api_key_id_delete_with_http_info(api_key_id, async_req=True)
|
32976
|
+
>>> result = thread.get()
|
32977
|
+
|
32978
|
+
:param async_req bool: execute request asynchronously
|
32979
|
+
:param str api_key_id: ID of the API key to revoke (required)
|
32980
|
+
:param _return_http_data_only: response data without head status code
|
32981
|
+
and headers
|
32982
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
32983
|
+
be returned without reading/decoding response
|
32984
|
+
data. Default is True.
|
32985
|
+
:param _request_timeout: timeout setting for this request. If one
|
32986
|
+
number provided, it will be total request
|
32987
|
+
timeout. It can also be a pair (tuple) of
|
32988
|
+
(connection, read) timeouts.
|
32989
|
+
:return: None
|
32990
|
+
If the method is called asynchronously,
|
32991
|
+
returns the request thread.
|
32992
|
+
"""
|
32993
|
+
|
32994
|
+
local_var_params = locals()
|
32995
|
+
|
32996
|
+
all_params = [
|
32997
|
+
'api_key_id'
|
32998
|
+
]
|
32999
|
+
all_params.extend(
|
33000
|
+
[
|
33001
|
+
'async_req',
|
33002
|
+
'_return_http_data_only',
|
33003
|
+
'_preload_content',
|
33004
|
+
'_request_timeout'
|
33005
|
+
]
|
33006
|
+
)
|
33007
|
+
|
33008
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
33009
|
+
if key not in all_params:
|
33010
|
+
raise ApiTypeError(
|
33011
|
+
"Got an unexpected keyword argument '%s'"
|
33012
|
+
" to method revoke_api_key_api_v2_users_api_keys_api_key_id_delete" % key
|
33013
|
+
)
|
33014
|
+
local_var_params[key] = val
|
33015
|
+
del local_var_params['kwargs']
|
33016
|
+
# verify the required parameter 'api_key_id' is set
|
33017
|
+
if self.api_client.client_side_validation and ('api_key_id' not in local_var_params or # noqa: E501
|
33018
|
+
local_var_params['api_key_id'] is None): # noqa: E501
|
33019
|
+
raise ApiValueError("Missing the required parameter `api_key_id` when calling `revoke_api_key_api_v2_users_api_keys_api_key_id_delete`") # noqa: E501
|
33020
|
+
|
33021
|
+
collection_formats = {}
|
33022
|
+
|
33023
|
+
path_params = {}
|
33024
|
+
if 'api_key_id' in local_var_params:
|
33025
|
+
path_params['api_key_id'] = local_var_params['api_key_id'] # noqa: E501
|
33026
|
+
|
33027
|
+
query_params = []
|
33028
|
+
|
33029
|
+
header_params = {}
|
33030
|
+
|
33031
|
+
form_params = []
|
33032
|
+
local_var_files = {}
|
33033
|
+
|
33034
|
+
body_params = None
|
33035
|
+
# HTTP header `Accept`
|
33036
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
33037
|
+
['application/json']) # noqa: E501
|
33038
|
+
|
33039
|
+
# Authentication setting
|
33040
|
+
auth_settings = [] # noqa: E501
|
33041
|
+
|
33042
|
+
return self.api_client.call_api(
|
33043
|
+
'/api/v2/users/api_keys/{api_key_id}', 'DELETE',
|
33044
|
+
path_params,
|
33045
|
+
query_params,
|
33046
|
+
header_params,
|
33047
|
+
body=body_params,
|
33048
|
+
post_params=form_params,
|
33049
|
+
files=local_var_files,
|
33050
|
+
response_type=None, # noqa: E501
|
33051
|
+
auth_settings=auth_settings,
|
33052
|
+
async_req=local_var_params.get('async_req'),
|
33053
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
33054
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
33055
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
33056
|
+
collection_formats=collection_formats)
|
33057
|
+
|
33058
|
+
def revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete(self, api_key_id, **kwargs): # noqa: E501
|
33059
|
+
"""Revoke Api Key For Admin # noqa: E501
|
33060
|
+
|
33061
|
+
Revoke any API key within the organization, only used by the admin. # noqa: E501
|
33062
|
+
This method makes a synchronous HTTP request by default. To make an
|
33063
|
+
asynchronous HTTP request, please pass async_req=True
|
33064
|
+
>>> thread = api.revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete(api_key_id, async_req=True)
|
33065
|
+
>>> result = thread.get()
|
33066
|
+
|
33067
|
+
:param async_req bool: execute request asynchronously
|
33068
|
+
:param str api_key_id: ID of the API key to revoke (required)
|
33069
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33070
|
+
be returned without reading/decoding response
|
33071
|
+
data. Default is True.
|
33072
|
+
:param _request_timeout: timeout setting for this request. If one
|
33073
|
+
number provided, it will be total request
|
33074
|
+
timeout. It can also be a pair (tuple) of
|
33075
|
+
(connection, read) timeouts.
|
33076
|
+
:return: None
|
33077
|
+
If the method is called asynchronously,
|
33078
|
+
returns the request thread.
|
33079
|
+
"""
|
33080
|
+
kwargs['_return_http_data_only'] = True
|
33081
|
+
return self.revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete_with_http_info(api_key_id, **kwargs) # noqa: E501
|
33082
|
+
|
33083
|
+
def revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete_with_http_info(self, api_key_id, **kwargs): # noqa: E501
|
33084
|
+
"""Revoke Api Key For Admin # noqa: E501
|
33085
|
+
|
33086
|
+
Revoke any API key within the organization, only used by the admin. # noqa: E501
|
33087
|
+
This method makes a synchronous HTTP request by default. To make an
|
33088
|
+
asynchronous HTTP request, please pass async_req=True
|
33089
|
+
>>> thread = api.revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete_with_http_info(api_key_id, async_req=True)
|
33090
|
+
>>> result = thread.get()
|
33091
|
+
|
33092
|
+
:param async_req bool: execute request asynchronously
|
33093
|
+
:param str api_key_id: ID of the API key to revoke (required)
|
33094
|
+
:param _return_http_data_only: response data without head status code
|
33095
|
+
and headers
|
33096
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33097
|
+
be returned without reading/decoding response
|
33098
|
+
data. Default is True.
|
33099
|
+
:param _request_timeout: timeout setting for this request. If one
|
33100
|
+
number provided, it will be total request
|
33101
|
+
timeout. It can also be a pair (tuple) of
|
33102
|
+
(connection, read) timeouts.
|
33103
|
+
:return: None
|
33104
|
+
If the method is called asynchronously,
|
33105
|
+
returns the request thread.
|
33106
|
+
"""
|
33107
|
+
|
33108
|
+
local_var_params = locals()
|
33109
|
+
|
33110
|
+
all_params = [
|
33111
|
+
'api_key_id'
|
33112
|
+
]
|
33113
|
+
all_params.extend(
|
33114
|
+
[
|
33115
|
+
'async_req',
|
33116
|
+
'_return_http_data_only',
|
33117
|
+
'_preload_content',
|
33118
|
+
'_request_timeout'
|
33119
|
+
]
|
33120
|
+
)
|
33121
|
+
|
33122
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
33123
|
+
if key not in all_params:
|
33124
|
+
raise ApiTypeError(
|
33125
|
+
"Got an unexpected keyword argument '%s'"
|
33126
|
+
" to method revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete" % key
|
33127
|
+
)
|
33128
|
+
local_var_params[key] = val
|
33129
|
+
del local_var_params['kwargs']
|
33130
|
+
# verify the required parameter 'api_key_id' is set
|
33131
|
+
if self.api_client.client_side_validation and ('api_key_id' not in local_var_params or # noqa: E501
|
33132
|
+
local_var_params['api_key_id'] is None): # noqa: E501
|
33133
|
+
raise ApiValueError("Missing the required parameter `api_key_id` when calling `revoke_api_key_for_admin_api_v2_users_admin_api_keys_api_key_id_delete`") # noqa: E501
|
33134
|
+
|
33135
|
+
collection_formats = {}
|
33136
|
+
|
33137
|
+
path_params = {}
|
33138
|
+
if 'api_key_id' in local_var_params:
|
33139
|
+
path_params['api_key_id'] = local_var_params['api_key_id'] # noqa: E501
|
33140
|
+
|
33141
|
+
query_params = []
|
33142
|
+
|
33143
|
+
header_params = {}
|
33144
|
+
|
33145
|
+
form_params = []
|
33146
|
+
local_var_files = {}
|
33147
|
+
|
33148
|
+
body_params = None
|
33149
|
+
# HTTP header `Accept`
|
33150
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
33151
|
+
['application/json']) # noqa: E501
|
33152
|
+
|
33153
|
+
# Authentication setting
|
33154
|
+
auth_settings = [] # noqa: E501
|
33155
|
+
|
33156
|
+
return self.api_client.call_api(
|
33157
|
+
'/api/v2/users/admin/api_keys/{api_key_id}', 'DELETE',
|
33158
|
+
path_params,
|
33159
|
+
query_params,
|
33160
|
+
header_params,
|
33161
|
+
body=body_params,
|
33162
|
+
post_params=form_params,
|
33163
|
+
files=local_var_files,
|
33164
|
+
response_type=None, # noqa: E501
|
33165
|
+
auth_settings=auth_settings,
|
33166
|
+
async_req=local_var_params.get('async_req'),
|
33167
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
33168
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
33169
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
33170
|
+
collection_formats=collection_formats)
|
33171
|
+
|
33172
|
+
def revoke_api_keys_api_v2_users_api_keys_revoke_post(self, revoke_api_keys_request, **kwargs): # noqa: E501
|
33173
|
+
"""Revoke Api Keys # noqa: E501
|
33174
|
+
|
33175
|
+
Revoke multiple API keys belonging to the current user. # noqa: E501
|
33176
|
+
This method makes a synchronous HTTP request by default. To make an
|
33177
|
+
asynchronous HTTP request, please pass async_req=True
|
33178
|
+
>>> thread = api.revoke_api_keys_api_v2_users_api_keys_revoke_post(revoke_api_keys_request, async_req=True)
|
33179
|
+
>>> result = thread.get()
|
33180
|
+
|
33181
|
+
:param async_req bool: execute request asynchronously
|
33182
|
+
:param RevokeApiKeysRequest revoke_api_keys_request: (required)
|
33183
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33184
|
+
be returned without reading/decoding response
|
33185
|
+
data. Default is True.
|
33186
|
+
:param _request_timeout: timeout setting for this request. If one
|
33187
|
+
number provided, it will be total request
|
33188
|
+
timeout. It can also be a pair (tuple) of
|
33189
|
+
(connection, read) timeouts.
|
33190
|
+
:return: RevokeapikeysresponseResponse
|
33191
|
+
If the method is called asynchronously,
|
33192
|
+
returns the request thread.
|
33193
|
+
"""
|
33194
|
+
kwargs['_return_http_data_only'] = True
|
33195
|
+
return self.revoke_api_keys_api_v2_users_api_keys_revoke_post_with_http_info(revoke_api_keys_request, **kwargs) # noqa: E501
|
33196
|
+
|
33197
|
+
def revoke_api_keys_api_v2_users_api_keys_revoke_post_with_http_info(self, revoke_api_keys_request, **kwargs): # noqa: E501
|
33198
|
+
"""Revoke Api Keys # noqa: E501
|
33199
|
+
|
33200
|
+
Revoke multiple API keys belonging to the current user. # noqa: E501
|
33201
|
+
This method makes a synchronous HTTP request by default. To make an
|
33202
|
+
asynchronous HTTP request, please pass async_req=True
|
33203
|
+
>>> thread = api.revoke_api_keys_api_v2_users_api_keys_revoke_post_with_http_info(revoke_api_keys_request, async_req=True)
|
33204
|
+
>>> result = thread.get()
|
33205
|
+
|
33206
|
+
:param async_req bool: execute request asynchronously
|
33207
|
+
:param RevokeApiKeysRequest revoke_api_keys_request: (required)
|
33208
|
+
:param _return_http_data_only: response data without head status code
|
33209
|
+
and headers
|
33210
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33211
|
+
be returned without reading/decoding response
|
33212
|
+
data. Default is True.
|
33213
|
+
:param _request_timeout: timeout setting for this request. If one
|
33214
|
+
number provided, it will be total request
|
33215
|
+
timeout. It can also be a pair (tuple) of
|
33216
|
+
(connection, read) timeouts.
|
33217
|
+
:return: tuple(RevokeapikeysresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
33218
|
+
If the method is called asynchronously,
|
33219
|
+
returns the request thread.
|
33220
|
+
"""
|
33221
|
+
|
33222
|
+
local_var_params = locals()
|
33223
|
+
|
33224
|
+
all_params = [
|
33225
|
+
'revoke_api_keys_request'
|
33226
|
+
]
|
33227
|
+
all_params.extend(
|
33228
|
+
[
|
33229
|
+
'async_req',
|
33230
|
+
'_return_http_data_only',
|
33231
|
+
'_preload_content',
|
33232
|
+
'_request_timeout'
|
33233
|
+
]
|
33234
|
+
)
|
33235
|
+
|
33236
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
33237
|
+
if key not in all_params:
|
33238
|
+
raise ApiTypeError(
|
33239
|
+
"Got an unexpected keyword argument '%s'"
|
33240
|
+
" to method revoke_api_keys_api_v2_users_api_keys_revoke_post" % key
|
33241
|
+
)
|
33242
|
+
local_var_params[key] = val
|
33243
|
+
del local_var_params['kwargs']
|
33244
|
+
# verify the required parameter 'revoke_api_keys_request' is set
|
33245
|
+
if self.api_client.client_side_validation and ('revoke_api_keys_request' not in local_var_params or # noqa: E501
|
33246
|
+
local_var_params['revoke_api_keys_request'] is None): # noqa: E501
|
33247
|
+
raise ApiValueError("Missing the required parameter `revoke_api_keys_request` when calling `revoke_api_keys_api_v2_users_api_keys_revoke_post`") # noqa: E501
|
33248
|
+
|
33249
|
+
collection_formats = {}
|
33250
|
+
|
33251
|
+
path_params = {}
|
33252
|
+
|
33253
|
+
query_params = []
|
33254
|
+
|
33255
|
+
header_params = {}
|
33256
|
+
|
33257
|
+
form_params = []
|
33258
|
+
local_var_files = {}
|
33259
|
+
|
33260
|
+
body_params = None
|
33261
|
+
if 'revoke_api_keys_request' in local_var_params:
|
33262
|
+
body_params = local_var_params['revoke_api_keys_request']
|
33263
|
+
# HTTP header `Accept`
|
33264
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
33265
|
+
['application/json']) # noqa: E501
|
33266
|
+
|
33267
|
+
# HTTP header `Content-Type`
|
33268
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
33269
|
+
['application/json']) # noqa: E501
|
33270
|
+
|
33271
|
+
# Authentication setting
|
33272
|
+
auth_settings = [] # noqa: E501
|
33273
|
+
|
33274
|
+
return self.api_client.call_api(
|
33275
|
+
'/api/v2/users/api_keys/revoke', 'POST',
|
33276
|
+
path_params,
|
33277
|
+
query_params,
|
33278
|
+
header_params,
|
33279
|
+
body=body_params,
|
33280
|
+
post_params=form_params,
|
33281
|
+
files=local_var_files,
|
33282
|
+
response_type='RevokeapikeysresponseResponse', # noqa: E501
|
33283
|
+
auth_settings=auth_settings,
|
33284
|
+
async_req=local_var_params.get('async_req'),
|
33285
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
33286
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
33287
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
33288
|
+
collection_formats=collection_formats)
|
33289
|
+
|
33290
|
+
def revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post(self, revoke_api_keys_request, **kwargs): # noqa: E501
|
33291
|
+
"""Revoke Api Keys For Admin # noqa: E501
|
33292
|
+
|
33293
|
+
Revoke multiple API keys within the organization, only used by the admin. Security: - Requires organization admin permissions (checked by router dependencies) - Can revoke any API key within the organization - All validation and organization checks handled by service layer # noqa: E501
|
33294
|
+
This method makes a synchronous HTTP request by default. To make an
|
33295
|
+
asynchronous HTTP request, please pass async_req=True
|
33296
|
+
>>> thread = api.revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post(revoke_api_keys_request, async_req=True)
|
33297
|
+
>>> result = thread.get()
|
33298
|
+
|
33299
|
+
:param async_req bool: execute request asynchronously
|
33300
|
+
:param RevokeApiKeysRequest revoke_api_keys_request: (required)
|
33301
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33302
|
+
be returned without reading/decoding response
|
33303
|
+
data. Default is True.
|
33304
|
+
:param _request_timeout: timeout setting for this request. If one
|
33305
|
+
number provided, it will be total request
|
33306
|
+
timeout. It can also be a pair (tuple) of
|
33307
|
+
(connection, read) timeouts.
|
33308
|
+
:return: RevokeapikeysresponseResponse
|
33309
|
+
If the method is called asynchronously,
|
33310
|
+
returns the request thread.
|
33311
|
+
"""
|
33312
|
+
kwargs['_return_http_data_only'] = True
|
33313
|
+
return self.revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post_with_http_info(revoke_api_keys_request, **kwargs) # noqa: E501
|
33314
|
+
|
33315
|
+
def revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post_with_http_info(self, revoke_api_keys_request, **kwargs): # noqa: E501
|
33316
|
+
"""Revoke Api Keys For Admin # noqa: E501
|
33317
|
+
|
33318
|
+
Revoke multiple API keys within the organization, only used by the admin. Security: - Requires organization admin permissions (checked by router dependencies) - Can revoke any API key within the organization - All validation and organization checks handled by service layer # noqa: E501
|
33319
|
+
This method makes a synchronous HTTP request by default. To make an
|
33320
|
+
asynchronous HTTP request, please pass async_req=True
|
33321
|
+
>>> thread = api.revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post_with_http_info(revoke_api_keys_request, async_req=True)
|
33322
|
+
>>> result = thread.get()
|
33323
|
+
|
33324
|
+
:param async_req bool: execute request asynchronously
|
33325
|
+
:param RevokeApiKeysRequest revoke_api_keys_request: (required)
|
33326
|
+
:param _return_http_data_only: response data without head status code
|
33327
|
+
and headers
|
33328
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33329
|
+
be returned without reading/decoding response
|
33330
|
+
data. Default is True.
|
33331
|
+
:param _request_timeout: timeout setting for this request. If one
|
33332
|
+
number provided, it will be total request
|
33333
|
+
timeout. It can also be a pair (tuple) of
|
33334
|
+
(connection, read) timeouts.
|
33335
|
+
:return: tuple(RevokeapikeysresponseResponse, status_code(int), headers(HTTPHeaderDict))
|
33336
|
+
If the method is called asynchronously,
|
33337
|
+
returns the request thread.
|
33338
|
+
"""
|
33339
|
+
|
33340
|
+
local_var_params = locals()
|
33341
|
+
|
33342
|
+
all_params = [
|
33343
|
+
'revoke_api_keys_request'
|
33344
|
+
]
|
33345
|
+
all_params.extend(
|
33346
|
+
[
|
33347
|
+
'async_req',
|
33348
|
+
'_return_http_data_only',
|
33349
|
+
'_preload_content',
|
33350
|
+
'_request_timeout'
|
33351
|
+
]
|
33352
|
+
)
|
33353
|
+
|
33354
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
33355
|
+
if key not in all_params:
|
33356
|
+
raise ApiTypeError(
|
33357
|
+
"Got an unexpected keyword argument '%s'"
|
33358
|
+
" to method revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post" % key
|
33359
|
+
)
|
33360
|
+
local_var_params[key] = val
|
33361
|
+
del local_var_params['kwargs']
|
33362
|
+
# verify the required parameter 'revoke_api_keys_request' is set
|
33363
|
+
if self.api_client.client_side_validation and ('revoke_api_keys_request' not in local_var_params or # noqa: E501
|
33364
|
+
local_var_params['revoke_api_keys_request'] is None): # noqa: E501
|
33365
|
+
raise ApiValueError("Missing the required parameter `revoke_api_keys_request` when calling `revoke_api_keys_for_admin_api_v2_users_admin_api_keys_revoke_post`") # noqa: E501
|
33366
|
+
|
33367
|
+
collection_formats = {}
|
33368
|
+
|
33369
|
+
path_params = {}
|
33370
|
+
|
33371
|
+
query_params = []
|
33372
|
+
|
33373
|
+
header_params = {}
|
33374
|
+
|
33375
|
+
form_params = []
|
33376
|
+
local_var_files = {}
|
33377
|
+
|
33378
|
+
body_params = None
|
33379
|
+
if 'revoke_api_keys_request' in local_var_params:
|
33380
|
+
body_params = local_var_params['revoke_api_keys_request']
|
33381
|
+
# HTTP header `Accept`
|
33382
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
33383
|
+
['application/json']) # noqa: E501
|
33384
|
+
|
33385
|
+
# HTTP header `Content-Type`
|
33386
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
33387
|
+
['application/json']) # noqa: E501
|
33388
|
+
|
33389
|
+
# Authentication setting
|
33390
|
+
auth_settings = [] # noqa: E501
|
33391
|
+
|
33392
|
+
return self.api_client.call_api(
|
33393
|
+
'/api/v2/users/admin/api_keys/revoke', 'POST',
|
33394
|
+
path_params,
|
33395
|
+
query_params,
|
33396
|
+
header_params,
|
33397
|
+
body=body_params,
|
33398
|
+
post_params=form_params,
|
33399
|
+
files=local_var_files,
|
33400
|
+
response_type='RevokeapikeysresponseResponse', # noqa: E501
|
33401
|
+
auth_settings=auth_settings,
|
33402
|
+
async_req=local_var_params.get('async_req'),
|
33403
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
33404
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
33405
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
33406
|
+
collection_formats=collection_formats)
|
33407
|
+
|
32459
33408
|
def rollback_service_api_v2_services_v2_service_id_rollback_post(self, service_id, **kwargs): # noqa: E501
|
32460
33409
|
"""Rollback Service # noqa: E501
|
32461
33410
|
|