anyscale 0.26.56__py3-none-any.whl → 0.26.58__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/client/README.md +45 -0
- anyscale/client/openapi_client/__init__.py +32 -0
- anyscale/client/openapi_client/api/default_api.py +1882 -244
- anyscale/client/openapi_client/models/__init__.py +32 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
- anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
- anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/deleted_count.py +121 -0
- anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
- anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
- anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
- anyscale/client/openapi_client/models/published_filter.py +101 -0
- anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
- anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
- anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
- anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
- anyscale/client/openapi_client/models/tag_key.py +121 -0
- anyscale/client/openapi_client/models/tag_key_value.py +148 -0
- anyscale/client/openapi_client/models/tag_search_in.py +101 -0
- anyscale/client/openapi_client/models/tag_value.py +121 -0
- anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/task_attempts.py +101 -0
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
- anyscale/client/openapi_client/models/workspace_template.py +343 -204
- anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
- anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
- anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
- anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
- anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
- anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
- anyscale/commands/command_examples.py +1 -1
- anyscale/connect_utils/start_interactive_session.py +0 -1
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/METADATA +1 -1
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/RECORD +53 -21
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/WHEEL +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/top_level.txt +0 -0
@@ -6303,6 +6303,251 @@ class DefaultApi(object):
|
|
6303
6303
|
_request_timeout=local_var_params.get('_request_timeout'),
|
6304
6304
|
collection_formats=collection_formats)
|
6305
6305
|
|
6306
|
+
def create_template_api_v2_workspace_templates_post(self, create_workspace_template, **kwargs): # noqa: E501
|
6307
|
+
"""Create Template # noqa: E501
|
6308
|
+
|
6309
|
+
Create a new workspace template # noqa: E501
|
6310
|
+
This method makes a synchronous HTTP request by default. To make an
|
6311
|
+
asynchronous HTTP request, please pass async_req=True
|
6312
|
+
>>> thread = api.create_template_api_v2_workspace_templates_post(create_workspace_template, async_req=True)
|
6313
|
+
>>> result = thread.get()
|
6314
|
+
|
6315
|
+
:param async_req bool: execute request asynchronously
|
6316
|
+
:param CreateWorkspaceTemplate create_workspace_template: (required)
|
6317
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6318
|
+
be returned without reading/decoding response
|
6319
|
+
data. Default is True.
|
6320
|
+
:param _request_timeout: timeout setting for this request. If one
|
6321
|
+
number provided, it will be total request
|
6322
|
+
timeout. It can also be a pair (tuple) of
|
6323
|
+
(connection, read) timeouts.
|
6324
|
+
:return: WorkspacetemplateResponse
|
6325
|
+
If the method is called asynchronously,
|
6326
|
+
returns the request thread.
|
6327
|
+
"""
|
6328
|
+
kwargs['_return_http_data_only'] = True
|
6329
|
+
return self.create_template_api_v2_workspace_templates_post_with_http_info(create_workspace_template, **kwargs) # noqa: E501
|
6330
|
+
|
6331
|
+
def create_template_api_v2_workspace_templates_post_with_http_info(self, create_workspace_template, **kwargs): # noqa: E501
|
6332
|
+
"""Create Template # noqa: E501
|
6333
|
+
|
6334
|
+
Create a new workspace template # noqa: E501
|
6335
|
+
This method makes a synchronous HTTP request by default. To make an
|
6336
|
+
asynchronous HTTP request, please pass async_req=True
|
6337
|
+
>>> thread = api.create_template_api_v2_workspace_templates_post_with_http_info(create_workspace_template, async_req=True)
|
6338
|
+
>>> result = thread.get()
|
6339
|
+
|
6340
|
+
:param async_req bool: execute request asynchronously
|
6341
|
+
:param CreateWorkspaceTemplate create_workspace_template: (required)
|
6342
|
+
:param _return_http_data_only: response data without head status code
|
6343
|
+
and headers
|
6344
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6345
|
+
be returned without reading/decoding response
|
6346
|
+
data. Default is True.
|
6347
|
+
:param _request_timeout: timeout setting for this request. If one
|
6348
|
+
number provided, it will be total request
|
6349
|
+
timeout. It can also be a pair (tuple) of
|
6350
|
+
(connection, read) timeouts.
|
6351
|
+
:return: tuple(WorkspacetemplateResponse, status_code(int), headers(HTTPHeaderDict))
|
6352
|
+
If the method is called asynchronously,
|
6353
|
+
returns the request thread.
|
6354
|
+
"""
|
6355
|
+
|
6356
|
+
local_var_params = locals()
|
6357
|
+
|
6358
|
+
all_params = [
|
6359
|
+
'create_workspace_template'
|
6360
|
+
]
|
6361
|
+
all_params.extend(
|
6362
|
+
[
|
6363
|
+
'async_req',
|
6364
|
+
'_return_http_data_only',
|
6365
|
+
'_preload_content',
|
6366
|
+
'_request_timeout'
|
6367
|
+
]
|
6368
|
+
)
|
6369
|
+
|
6370
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
6371
|
+
if key not in all_params:
|
6372
|
+
raise ApiTypeError(
|
6373
|
+
"Got an unexpected keyword argument '%s'"
|
6374
|
+
" to method create_template_api_v2_workspace_templates_post" % key
|
6375
|
+
)
|
6376
|
+
local_var_params[key] = val
|
6377
|
+
del local_var_params['kwargs']
|
6378
|
+
# verify the required parameter 'create_workspace_template' is set
|
6379
|
+
if self.api_client.client_side_validation and ('create_workspace_template' not in local_var_params or # noqa: E501
|
6380
|
+
local_var_params['create_workspace_template'] is None): # noqa: E501
|
6381
|
+
raise ApiValueError("Missing the required parameter `create_workspace_template` when calling `create_template_api_v2_workspace_templates_post`") # noqa: E501
|
6382
|
+
|
6383
|
+
collection_formats = {}
|
6384
|
+
|
6385
|
+
path_params = {}
|
6386
|
+
|
6387
|
+
query_params = []
|
6388
|
+
|
6389
|
+
header_params = {}
|
6390
|
+
|
6391
|
+
form_params = []
|
6392
|
+
local_var_files = {}
|
6393
|
+
|
6394
|
+
body_params = None
|
6395
|
+
if 'create_workspace_template' in local_var_params:
|
6396
|
+
body_params = local_var_params['create_workspace_template']
|
6397
|
+
# HTTP header `Accept`
|
6398
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
6399
|
+
['application/json']) # noqa: E501
|
6400
|
+
|
6401
|
+
# HTTP header `Content-Type`
|
6402
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
6403
|
+
['application/json']) # noqa: E501
|
6404
|
+
|
6405
|
+
# Authentication setting
|
6406
|
+
auth_settings = [] # noqa: E501
|
6407
|
+
|
6408
|
+
return self.api_client.call_api(
|
6409
|
+
'/api/v2/workspace_templates/', 'POST',
|
6410
|
+
path_params,
|
6411
|
+
query_params,
|
6412
|
+
header_params,
|
6413
|
+
body=body_params,
|
6414
|
+
post_params=form_params,
|
6415
|
+
files=local_var_files,
|
6416
|
+
response_type='WorkspacetemplateResponse', # noqa: E501
|
6417
|
+
auth_settings=auth_settings,
|
6418
|
+
async_req=local_var_params.get('async_req'),
|
6419
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
6420
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
6421
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
6422
|
+
collection_formats=collection_formats)
|
6423
|
+
|
6424
|
+
def create_version_api_v2_workspace_templates_template_id_versions_post(self, template_id, create_workspace_template_version, **kwargs): # noqa: E501
|
6425
|
+
"""Create Version # noqa: E501
|
6426
|
+
|
6427
|
+
Create a new version for a workspace template # noqa: E501
|
6428
|
+
This method makes a synchronous HTTP request by default. To make an
|
6429
|
+
asynchronous HTTP request, please pass async_req=True
|
6430
|
+
>>> thread = api.create_version_api_v2_workspace_templates_template_id_versions_post(template_id, create_workspace_template_version, async_req=True)
|
6431
|
+
>>> result = thread.get()
|
6432
|
+
|
6433
|
+
:param async_req bool: execute request asynchronously
|
6434
|
+
:param str template_id: (required)
|
6435
|
+
:param CreateWorkspaceTemplateVersion create_workspace_template_version: (required)
|
6436
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6437
|
+
be returned without reading/decoding response
|
6438
|
+
data. Default is True.
|
6439
|
+
:param _request_timeout: timeout setting for this request. If one
|
6440
|
+
number provided, it will be total request
|
6441
|
+
timeout. It can also be a pair (tuple) of
|
6442
|
+
(connection, read) timeouts.
|
6443
|
+
:return: object
|
6444
|
+
If the method is called asynchronously,
|
6445
|
+
returns the request thread.
|
6446
|
+
"""
|
6447
|
+
kwargs['_return_http_data_only'] = True
|
6448
|
+
return self.create_version_api_v2_workspace_templates_template_id_versions_post_with_http_info(template_id, create_workspace_template_version, **kwargs) # noqa: E501
|
6449
|
+
|
6450
|
+
def create_version_api_v2_workspace_templates_template_id_versions_post_with_http_info(self, template_id, create_workspace_template_version, **kwargs): # noqa: E501
|
6451
|
+
"""Create Version # noqa: E501
|
6452
|
+
|
6453
|
+
Create a new version for a workspace template # noqa: E501
|
6454
|
+
This method makes a synchronous HTTP request by default. To make an
|
6455
|
+
asynchronous HTTP request, please pass async_req=True
|
6456
|
+
>>> thread = api.create_version_api_v2_workspace_templates_template_id_versions_post_with_http_info(template_id, create_workspace_template_version, async_req=True)
|
6457
|
+
>>> result = thread.get()
|
6458
|
+
|
6459
|
+
:param async_req bool: execute request asynchronously
|
6460
|
+
:param str template_id: (required)
|
6461
|
+
:param CreateWorkspaceTemplateVersion create_workspace_template_version: (required)
|
6462
|
+
:param _return_http_data_only: response data without head status code
|
6463
|
+
and headers
|
6464
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6465
|
+
be returned without reading/decoding response
|
6466
|
+
data. Default is True.
|
6467
|
+
:param _request_timeout: timeout setting for this request. If one
|
6468
|
+
number provided, it will be total request
|
6469
|
+
timeout. It can also be a pair (tuple) of
|
6470
|
+
(connection, read) timeouts.
|
6471
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
6472
|
+
If the method is called asynchronously,
|
6473
|
+
returns the request thread.
|
6474
|
+
"""
|
6475
|
+
|
6476
|
+
local_var_params = locals()
|
6477
|
+
|
6478
|
+
all_params = [
|
6479
|
+
'template_id',
|
6480
|
+
'create_workspace_template_version'
|
6481
|
+
]
|
6482
|
+
all_params.extend(
|
6483
|
+
[
|
6484
|
+
'async_req',
|
6485
|
+
'_return_http_data_only',
|
6486
|
+
'_preload_content',
|
6487
|
+
'_request_timeout'
|
6488
|
+
]
|
6489
|
+
)
|
6490
|
+
|
6491
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
6492
|
+
if key not in all_params:
|
6493
|
+
raise ApiTypeError(
|
6494
|
+
"Got an unexpected keyword argument '%s'"
|
6495
|
+
" to method create_version_api_v2_workspace_templates_template_id_versions_post" % key
|
6496
|
+
)
|
6497
|
+
local_var_params[key] = val
|
6498
|
+
del local_var_params['kwargs']
|
6499
|
+
# verify the required parameter 'template_id' is set
|
6500
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
6501
|
+
local_var_params['template_id'] is None): # noqa: E501
|
6502
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `create_version_api_v2_workspace_templates_template_id_versions_post`") # noqa: E501
|
6503
|
+
# verify the required parameter 'create_workspace_template_version' is set
|
6504
|
+
if self.api_client.client_side_validation and ('create_workspace_template_version' not in local_var_params or # noqa: E501
|
6505
|
+
local_var_params['create_workspace_template_version'] is None): # noqa: E501
|
6506
|
+
raise ApiValueError("Missing the required parameter `create_workspace_template_version` when calling `create_version_api_v2_workspace_templates_template_id_versions_post`") # noqa: E501
|
6507
|
+
|
6508
|
+
collection_formats = {}
|
6509
|
+
|
6510
|
+
path_params = {}
|
6511
|
+
if 'template_id' in local_var_params:
|
6512
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
6513
|
+
|
6514
|
+
query_params = []
|
6515
|
+
|
6516
|
+
header_params = {}
|
6517
|
+
|
6518
|
+
form_params = []
|
6519
|
+
local_var_files = {}
|
6520
|
+
|
6521
|
+
body_params = None
|
6522
|
+
if 'create_workspace_template_version' in local_var_params:
|
6523
|
+
body_params = local_var_params['create_workspace_template_version']
|
6524
|
+
# HTTP header `Accept`
|
6525
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
6526
|
+
['application/json']) # noqa: E501
|
6527
|
+
|
6528
|
+
# HTTP header `Content-Type`
|
6529
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
6530
|
+
['application/json']) # noqa: E501
|
6531
|
+
|
6532
|
+
# Authentication setting
|
6533
|
+
auth_settings = [] # noqa: E501
|
6534
|
+
|
6535
|
+
return self.api_client.call_api(
|
6536
|
+
'/api/v2/workspace_templates/{template_id}/versions', 'POST',
|
6537
|
+
path_params,
|
6538
|
+
query_params,
|
6539
|
+
header_params,
|
6540
|
+
body=body_params,
|
6541
|
+
post_params=form_params,
|
6542
|
+
files=local_var_files,
|
6543
|
+
response_type='object', # noqa: E501
|
6544
|
+
auth_settings=auth_settings,
|
6545
|
+
async_req=local_var_params.get('async_req'),
|
6546
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
6547
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
6548
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
6549
|
+
collection_formats=collection_formats)
|
6550
|
+
|
6306
6551
|
def create_workspace_api_v2_experimental_workspaces_post(self, create_experimental_workspace, **kwargs): # noqa: E501
|
6307
6552
|
"""Create Workspace # noqa: E501
|
6308
6553
|
|
@@ -7809,17 +8054,16 @@ class DefaultApi(object):
|
|
7809
8054
|
_request_timeout=local_var_params.get('_request_timeout'),
|
7810
8055
|
collection_formats=collection_formats)
|
7811
8056
|
|
7812
|
-
def
|
7813
|
-
"""Delete
|
8057
|
+
def delete_resource_tags_api_v2_tags_resource_delete(self, delete_resource_tags_request, **kwargs): # noqa: E501
|
8058
|
+
"""Delete Resource Tags # noqa: E501
|
7814
8059
|
|
7815
|
-
Deletes a Service. # noqa: E501
|
7816
8060
|
This method makes a synchronous HTTP request by default. To make an
|
7817
8061
|
asynchronous HTTP request, please pass async_req=True
|
7818
|
-
>>> thread = api.
|
8062
|
+
>>> thread = api.delete_resource_tags_api_v2_tags_resource_delete(delete_resource_tags_request, async_req=True)
|
7819
8063
|
>>> result = thread.get()
|
7820
8064
|
|
7821
8065
|
:param async_req bool: execute request asynchronously
|
7822
|
-
:param
|
8066
|
+
:param DeleteResourceTagsRequest delete_resource_tags_request: (required)
|
7823
8067
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
7824
8068
|
be returned without reading/decoding response
|
7825
8069
|
data. Default is True.
|
@@ -7827,24 +8071,23 @@ class DefaultApi(object):
|
|
7827
8071
|
number provided, it will be total request
|
7828
8072
|
timeout. It can also be a pair (tuple) of
|
7829
8073
|
(connection, read) timeouts.
|
7830
|
-
:return:
|
8074
|
+
:return: DeletedcountResponse
|
7831
8075
|
If the method is called asynchronously,
|
7832
8076
|
returns the request thread.
|
7833
8077
|
"""
|
7834
8078
|
kwargs['_return_http_data_only'] = True
|
7835
|
-
return self.
|
8079
|
+
return self.delete_resource_tags_api_v2_tags_resource_delete_with_http_info(delete_resource_tags_request, **kwargs) # noqa: E501
|
7836
8080
|
|
7837
|
-
def
|
7838
|
-
"""Delete
|
8081
|
+
def delete_resource_tags_api_v2_tags_resource_delete_with_http_info(self, delete_resource_tags_request, **kwargs): # noqa: E501
|
8082
|
+
"""Delete Resource Tags # noqa: E501
|
7839
8083
|
|
7840
|
-
Deletes a Service. # noqa: E501
|
7841
8084
|
This method makes a synchronous HTTP request by default. To make an
|
7842
8085
|
asynchronous HTTP request, please pass async_req=True
|
7843
|
-
>>> thread = api.
|
8086
|
+
>>> thread = api.delete_resource_tags_api_v2_tags_resource_delete_with_http_info(delete_resource_tags_request, async_req=True)
|
7844
8087
|
>>> result = thread.get()
|
7845
8088
|
|
7846
8089
|
:param async_req bool: execute request asynchronously
|
7847
|
-
:param
|
8090
|
+
:param DeleteResourceTagsRequest delete_resource_tags_request: (required)
|
7848
8091
|
:param _return_http_data_only: response data without head status code
|
7849
8092
|
and headers
|
7850
8093
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -7854,7 +8097,7 @@ class DefaultApi(object):
|
|
7854
8097
|
number provided, it will be total request
|
7855
8098
|
timeout. It can also be a pair (tuple) of
|
7856
8099
|
(connection, read) timeouts.
|
7857
|
-
:return:
|
8100
|
+
:return: tuple(DeletedcountResponse, status_code(int), headers(HTTPHeaderDict))
|
7858
8101
|
If the method is called asynchronously,
|
7859
8102
|
returns the request thread.
|
7860
8103
|
"""
|
@@ -7862,7 +8105,7 @@ class DefaultApi(object):
|
|
7862
8105
|
local_var_params = locals()
|
7863
8106
|
|
7864
8107
|
all_params = [
|
7865
|
-
'
|
8108
|
+
'delete_resource_tags_request'
|
7866
8109
|
]
|
7867
8110
|
all_params.extend(
|
7868
8111
|
[
|
@@ -7877,20 +8120,18 @@ class DefaultApi(object):
|
|
7877
8120
|
if key not in all_params:
|
7878
8121
|
raise ApiTypeError(
|
7879
8122
|
"Got an unexpected keyword argument '%s'"
|
7880
|
-
" to method
|
8123
|
+
" to method delete_resource_tags_api_v2_tags_resource_delete" % key
|
7881
8124
|
)
|
7882
8125
|
local_var_params[key] = val
|
7883
8126
|
del local_var_params['kwargs']
|
7884
|
-
# verify the required parameter '
|
7885
|
-
if self.api_client.client_side_validation and ('
|
7886
|
-
local_var_params['
|
7887
|
-
raise ApiValueError("Missing the required parameter `
|
8127
|
+
# verify the required parameter 'delete_resource_tags_request' is set
|
8128
|
+
if self.api_client.client_side_validation and ('delete_resource_tags_request' not in local_var_params or # noqa: E501
|
8129
|
+
local_var_params['delete_resource_tags_request'] is None): # noqa: E501
|
8130
|
+
raise ApiValueError("Missing the required parameter `delete_resource_tags_request` when calling `delete_resource_tags_api_v2_tags_resource_delete`") # noqa: E501
|
7888
8131
|
|
7889
8132
|
collection_formats = {}
|
7890
8133
|
|
7891
8134
|
path_params = {}
|
7892
|
-
if 'service_id' in local_var_params:
|
7893
|
-
path_params['service_id'] = local_var_params['service_id'] # noqa: E501
|
7894
8135
|
|
7895
8136
|
query_params = []
|
7896
8137
|
|
@@ -7900,22 +8141,28 @@ class DefaultApi(object):
|
|
7900
8141
|
local_var_files = {}
|
7901
8142
|
|
7902
8143
|
body_params = None
|
8144
|
+
if 'delete_resource_tags_request' in local_var_params:
|
8145
|
+
body_params = local_var_params['delete_resource_tags_request']
|
7903
8146
|
# HTTP header `Accept`
|
7904
8147
|
header_params['Accept'] = self.api_client.select_header_accept(
|
7905
8148
|
['application/json']) # noqa: E501
|
7906
8149
|
|
8150
|
+
# HTTP header `Content-Type`
|
8151
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
8152
|
+
['application/json']) # noqa: E501
|
8153
|
+
|
7907
8154
|
# Authentication setting
|
7908
8155
|
auth_settings = [] # noqa: E501
|
7909
8156
|
|
7910
8157
|
return self.api_client.call_api(
|
7911
|
-
'/api/v2/
|
8158
|
+
'/api/v2/tags/resource', 'DELETE',
|
7912
8159
|
path_params,
|
7913
8160
|
query_params,
|
7914
8161
|
header_params,
|
7915
8162
|
body=body_params,
|
7916
8163
|
post_params=form_params,
|
7917
8164
|
files=local_var_files,
|
7918
|
-
response_type=
|
8165
|
+
response_type='DeletedcountResponse', # noqa: E501
|
7919
8166
|
auth_settings=auth_settings,
|
7920
8167
|
async_req=local_var_params.get('async_req'),
|
7921
8168
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -7923,17 +8170,17 @@ class DefaultApi(object):
|
|
7923
8170
|
_request_timeout=local_var_params.get('_request_timeout'),
|
7924
8171
|
collection_formats=collection_formats)
|
7925
8172
|
|
7926
|
-
def
|
7927
|
-
"""Delete
|
8173
|
+
def delete_service_api_v2_services_v2_service_id_delete(self, service_id, **kwargs): # noqa: E501
|
8174
|
+
"""Delete Service # noqa: E501
|
7928
8175
|
|
7929
|
-
Deletes a
|
8176
|
+
Deletes a Service. # noqa: E501
|
7930
8177
|
This method makes a synchronous HTTP request by default. To make an
|
7931
8178
|
asynchronous HTTP request, please pass async_req=True
|
7932
|
-
>>> thread = api.
|
8179
|
+
>>> thread = api.delete_service_api_v2_services_v2_service_id_delete(service_id, async_req=True)
|
7933
8180
|
>>> result = thread.get()
|
7934
8181
|
|
7935
8182
|
:param async_req bool: execute request asynchronously
|
7936
|
-
:param str
|
8183
|
+
:param str service_id: (required)
|
7937
8184
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
7938
8185
|
be returned without reading/decoding response
|
7939
8186
|
data. Default is True.
|
@@ -7946,19 +8193,19 @@ class DefaultApi(object):
|
|
7946
8193
|
returns the request thread.
|
7947
8194
|
"""
|
7948
8195
|
kwargs['_return_http_data_only'] = True
|
7949
|
-
return self.
|
8196
|
+
return self.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, **kwargs) # noqa: E501
|
7950
8197
|
|
7951
|
-
def
|
7952
|
-
"""Delete
|
8198
|
+
def delete_service_api_v2_services_v2_service_id_delete_with_http_info(self, service_id, **kwargs): # noqa: E501
|
8199
|
+
"""Delete Service # noqa: E501
|
7953
8200
|
|
7954
|
-
Deletes a
|
8201
|
+
Deletes a Service. # noqa: E501
|
7955
8202
|
This method makes a synchronous HTTP request by default. To make an
|
7956
8203
|
asynchronous HTTP request, please pass async_req=True
|
7957
|
-
>>> thread = api.
|
8204
|
+
>>> thread = api.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, async_req=True)
|
7958
8205
|
>>> result = thread.get()
|
7959
8206
|
|
7960
8207
|
:param async_req bool: execute request asynchronously
|
7961
|
-
:param str
|
8208
|
+
:param str service_id: (required)
|
7962
8209
|
:param _return_http_data_only: response data without head status code
|
7963
8210
|
and headers
|
7964
8211
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -7976,7 +8223,7 @@ class DefaultApi(object):
|
|
7976
8223
|
local_var_params = locals()
|
7977
8224
|
|
7978
8225
|
all_params = [
|
7979
|
-
'
|
8226
|
+
'service_id'
|
7980
8227
|
]
|
7981
8228
|
all_params.extend(
|
7982
8229
|
[
|
@@ -7991,12 +8238,126 @@ class DefaultApi(object):
|
|
7991
8238
|
if key not in all_params:
|
7992
8239
|
raise ApiTypeError(
|
7993
8240
|
"Got an unexpected keyword argument '%s'"
|
7994
|
-
" to method
|
8241
|
+
" to method delete_service_api_v2_services_v2_service_id_delete" % key
|
7995
8242
|
)
|
7996
8243
|
local_var_params[key] = val
|
7997
8244
|
del local_var_params['kwargs']
|
7998
|
-
# verify the required parameter '
|
7999
|
-
if self.api_client.client_side_validation and ('
|
8245
|
+
# verify the required parameter 'service_id' is set
|
8246
|
+
if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
|
8247
|
+
local_var_params['service_id'] is None): # noqa: E501
|
8248
|
+
raise ApiValueError("Missing the required parameter `service_id` when calling `delete_service_api_v2_services_v2_service_id_delete`") # noqa: E501
|
8249
|
+
|
8250
|
+
collection_formats = {}
|
8251
|
+
|
8252
|
+
path_params = {}
|
8253
|
+
if 'service_id' in local_var_params:
|
8254
|
+
path_params['service_id'] = local_var_params['service_id'] # noqa: E501
|
8255
|
+
|
8256
|
+
query_params = []
|
8257
|
+
|
8258
|
+
header_params = {}
|
8259
|
+
|
8260
|
+
form_params = []
|
8261
|
+
local_var_files = {}
|
8262
|
+
|
8263
|
+
body_params = None
|
8264
|
+
# HTTP header `Accept`
|
8265
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
8266
|
+
['application/json']) # noqa: E501
|
8267
|
+
|
8268
|
+
# Authentication setting
|
8269
|
+
auth_settings = [] # noqa: E501
|
8270
|
+
|
8271
|
+
return self.api_client.call_api(
|
8272
|
+
'/api/v2/services-v2/{service_id}', 'DELETE',
|
8273
|
+
path_params,
|
8274
|
+
query_params,
|
8275
|
+
header_params,
|
8276
|
+
body=body_params,
|
8277
|
+
post_params=form_params,
|
8278
|
+
files=local_var_files,
|
8279
|
+
response_type=None, # noqa: E501
|
8280
|
+
auth_settings=auth_settings,
|
8281
|
+
async_req=local_var_params.get('async_req'),
|
8282
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
8283
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
8284
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
8285
|
+
collection_formats=collection_formats)
|
8286
|
+
|
8287
|
+
def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
|
8288
|
+
"""Delete Workspace # noqa: E501
|
8289
|
+
|
8290
|
+
Deletes a Workspace. # noqa: E501
|
8291
|
+
This method makes a synchronous HTTP request by default. To make an
|
8292
|
+
asynchronous HTTP request, please pass async_req=True
|
8293
|
+
>>> thread = api.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(workspace_id, async_req=True)
|
8294
|
+
>>> result = thread.get()
|
8295
|
+
|
8296
|
+
:param async_req bool: execute request asynchronously
|
8297
|
+
:param str workspace_id: ID of the Workspace to delete. (required)
|
8298
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
8299
|
+
be returned without reading/decoding response
|
8300
|
+
data. Default is True.
|
8301
|
+
:param _request_timeout: timeout setting for this request. If one
|
8302
|
+
number provided, it will be total request
|
8303
|
+
timeout. It can also be a pair (tuple) of
|
8304
|
+
(connection, read) timeouts.
|
8305
|
+
:return: None
|
8306
|
+
If the method is called asynchronously,
|
8307
|
+
returns the request thread.
|
8308
|
+
"""
|
8309
|
+
kwargs['_return_http_data_only'] = True
|
8310
|
+
return self.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, **kwargs) # noqa: E501
|
8311
|
+
|
8312
|
+
def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(self, workspace_id, **kwargs): # noqa: E501
|
8313
|
+
"""Delete Workspace # noqa: E501
|
8314
|
+
|
8315
|
+
Deletes a Workspace. # noqa: E501
|
8316
|
+
This method makes a synchronous HTTP request by default. To make an
|
8317
|
+
asynchronous HTTP request, please pass async_req=True
|
8318
|
+
>>> thread = api.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, async_req=True)
|
8319
|
+
>>> result = thread.get()
|
8320
|
+
|
8321
|
+
:param async_req bool: execute request asynchronously
|
8322
|
+
:param str workspace_id: ID of the Workspace to delete. (required)
|
8323
|
+
:param _return_http_data_only: response data without head status code
|
8324
|
+
and headers
|
8325
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
8326
|
+
be returned without reading/decoding response
|
8327
|
+
data. Default is True.
|
8328
|
+
:param _request_timeout: timeout setting for this request. If one
|
8329
|
+
number provided, it will be total request
|
8330
|
+
timeout. It can also be a pair (tuple) of
|
8331
|
+
(connection, read) timeouts.
|
8332
|
+
:return: None
|
8333
|
+
If the method is called asynchronously,
|
8334
|
+
returns the request thread.
|
8335
|
+
"""
|
8336
|
+
|
8337
|
+
local_var_params = locals()
|
8338
|
+
|
8339
|
+
all_params = [
|
8340
|
+
'workspace_id'
|
8341
|
+
]
|
8342
|
+
all_params.extend(
|
8343
|
+
[
|
8344
|
+
'async_req',
|
8345
|
+
'_return_http_data_only',
|
8346
|
+
'_preload_content',
|
8347
|
+
'_request_timeout'
|
8348
|
+
]
|
8349
|
+
)
|
8350
|
+
|
8351
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
8352
|
+
if key not in all_params:
|
8353
|
+
raise ApiTypeError(
|
8354
|
+
"Got an unexpected keyword argument '%s'"
|
8355
|
+
" to method delete_workspace_api_v2_experimental_workspaces_workspace_id_delete" % key
|
8356
|
+
)
|
8357
|
+
local_var_params[key] = val
|
8358
|
+
del local_var_params['kwargs']
|
8359
|
+
# verify the required parameter 'workspace_id' is set
|
8360
|
+
if self.api_client.client_side_validation and ('workspace_id' not in local_var_params or # noqa: E501
|
8000
8361
|
local_var_params['workspace_id'] is None): # noqa: E501
|
8001
8362
|
raise ApiValueError("Missing the required parameter `workspace_id` when calling `delete_workspace_api_v2_experimental_workspaces_workspace_id_delete`") # noqa: E501
|
8002
8363
|
|
@@ -20272,6 +20633,127 @@ class DefaultApi(object):
|
|
20272
20633
|
_request_timeout=local_var_params.get('_request_timeout'),
|
20273
20634
|
collection_formats=collection_formats)
|
20274
20635
|
|
20636
|
+
def get_tags_for_resource_api_v2_tags_resource_get(self, resource_type, resource_id, **kwargs): # noqa: E501
|
20637
|
+
"""Get Tags For Resource # noqa: E501
|
20638
|
+
|
20639
|
+
This method makes a synchronous HTTP request by default. To make an
|
20640
|
+
asynchronous HTTP request, please pass async_req=True
|
20641
|
+
>>> thread = api.get_tags_for_resource_api_v2_tags_resource_get(resource_type, resource_id, async_req=True)
|
20642
|
+
>>> result = thread.get()
|
20643
|
+
|
20644
|
+
:param async_req bool: execute request asynchronously
|
20645
|
+
:param ResourceTagResourceType resource_type: (required)
|
20646
|
+
:param str resource_id: (required)
|
20647
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
20648
|
+
be returned without reading/decoding response
|
20649
|
+
data. Default is True.
|
20650
|
+
:param _request_timeout: timeout setting for this request. If one
|
20651
|
+
number provided, it will be total request
|
20652
|
+
timeout. It can also be a pair (tuple) of
|
20653
|
+
(connection, read) timeouts.
|
20654
|
+
:return: ResourcetagslistResponse
|
20655
|
+
If the method is called asynchronously,
|
20656
|
+
returns the request thread.
|
20657
|
+
"""
|
20658
|
+
kwargs['_return_http_data_only'] = True
|
20659
|
+
return self.get_tags_for_resource_api_v2_tags_resource_get_with_http_info(resource_type, resource_id, **kwargs) # noqa: E501
|
20660
|
+
|
20661
|
+
def get_tags_for_resource_api_v2_tags_resource_get_with_http_info(self, resource_type, resource_id, **kwargs): # noqa: E501
|
20662
|
+
"""Get Tags For Resource # noqa: E501
|
20663
|
+
|
20664
|
+
This method makes a synchronous HTTP request by default. To make an
|
20665
|
+
asynchronous HTTP request, please pass async_req=True
|
20666
|
+
>>> thread = api.get_tags_for_resource_api_v2_tags_resource_get_with_http_info(resource_type, resource_id, async_req=True)
|
20667
|
+
>>> result = thread.get()
|
20668
|
+
|
20669
|
+
:param async_req bool: execute request asynchronously
|
20670
|
+
:param ResourceTagResourceType resource_type: (required)
|
20671
|
+
:param str resource_id: (required)
|
20672
|
+
:param _return_http_data_only: response data without head status code
|
20673
|
+
and headers
|
20674
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
20675
|
+
be returned without reading/decoding response
|
20676
|
+
data. Default is True.
|
20677
|
+
:param _request_timeout: timeout setting for this request. If one
|
20678
|
+
number provided, it will be total request
|
20679
|
+
timeout. It can also be a pair (tuple) of
|
20680
|
+
(connection, read) timeouts.
|
20681
|
+
:return: tuple(ResourcetagslistResponse, status_code(int), headers(HTTPHeaderDict))
|
20682
|
+
If the method is called asynchronously,
|
20683
|
+
returns the request thread.
|
20684
|
+
"""
|
20685
|
+
|
20686
|
+
local_var_params = locals()
|
20687
|
+
|
20688
|
+
all_params = [
|
20689
|
+
'resource_type',
|
20690
|
+
'resource_id'
|
20691
|
+
]
|
20692
|
+
all_params.extend(
|
20693
|
+
[
|
20694
|
+
'async_req',
|
20695
|
+
'_return_http_data_only',
|
20696
|
+
'_preload_content',
|
20697
|
+
'_request_timeout'
|
20698
|
+
]
|
20699
|
+
)
|
20700
|
+
|
20701
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
20702
|
+
if key not in all_params:
|
20703
|
+
raise ApiTypeError(
|
20704
|
+
"Got an unexpected keyword argument '%s'"
|
20705
|
+
" to method get_tags_for_resource_api_v2_tags_resource_get" % key
|
20706
|
+
)
|
20707
|
+
local_var_params[key] = val
|
20708
|
+
del local_var_params['kwargs']
|
20709
|
+
# verify the required parameter 'resource_type' is set
|
20710
|
+
if self.api_client.client_side_validation and ('resource_type' not in local_var_params or # noqa: E501
|
20711
|
+
local_var_params['resource_type'] is None): # noqa: E501
|
20712
|
+
raise ApiValueError("Missing the required parameter `resource_type` when calling `get_tags_for_resource_api_v2_tags_resource_get`") # noqa: E501
|
20713
|
+
# verify the required parameter 'resource_id' is set
|
20714
|
+
if self.api_client.client_side_validation and ('resource_id' not in local_var_params or # noqa: E501
|
20715
|
+
local_var_params['resource_id'] is None): # noqa: E501
|
20716
|
+
raise ApiValueError("Missing the required parameter `resource_id` when calling `get_tags_for_resource_api_v2_tags_resource_get`") # noqa: E501
|
20717
|
+
|
20718
|
+
collection_formats = {}
|
20719
|
+
|
20720
|
+
path_params = {}
|
20721
|
+
|
20722
|
+
query_params = []
|
20723
|
+
if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
|
20724
|
+
query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
|
20725
|
+
if 'resource_id' in local_var_params and local_var_params['resource_id'] is not None: # noqa: E501
|
20726
|
+
query_params.append(('resource_id', local_var_params['resource_id'])) # noqa: E501
|
20727
|
+
|
20728
|
+
header_params = {}
|
20729
|
+
|
20730
|
+
form_params = []
|
20731
|
+
local_var_files = {}
|
20732
|
+
|
20733
|
+
body_params = None
|
20734
|
+
# HTTP header `Accept`
|
20735
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
20736
|
+
['application/json']) # noqa: E501
|
20737
|
+
|
20738
|
+
# Authentication setting
|
20739
|
+
auth_settings = [] # noqa: E501
|
20740
|
+
|
20741
|
+
return self.api_client.call_api(
|
20742
|
+
'/api/v2/tags/resource', 'GET',
|
20743
|
+
path_params,
|
20744
|
+
query_params,
|
20745
|
+
header_params,
|
20746
|
+
body=body_params,
|
20747
|
+
post_params=form_params,
|
20748
|
+
files=local_var_files,
|
20749
|
+
response_type='ResourcetagslistResponse', # noqa: E501
|
20750
|
+
auth_settings=auth_settings,
|
20751
|
+
async_req=local_var_params.get('async_req'),
|
20752
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
20753
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
20754
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
20755
|
+
collection_formats=collection_formats)
|
20756
|
+
|
20275
20757
|
def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(self, cluster_id, **kwargs): # noqa: E501
|
20276
20758
|
"""Get Task Exception Aggregates # noqa: E501
|
20277
20759
|
|
@@ -20847,17 +21329,17 @@ class DefaultApi(object):
|
|
20847
21329
|
_request_timeout=local_var_params.get('_request_timeout'),
|
20848
21330
|
collection_formats=collection_formats)
|
20849
21331
|
|
20850
|
-
def
|
20851
|
-
"""Get Template
|
21332
|
+
def get_template_api_v2_workspace_templates_template_id_get(self, template_id, **kwargs): # noqa: E501
|
21333
|
+
"""Get Template # noqa: E501
|
20852
21334
|
|
20853
|
-
|
21335
|
+
Get workspace template details # noqa: E501
|
20854
21336
|
This method makes a synchronous HTTP request by default. To make an
|
20855
21337
|
asynchronous HTTP request, please pass async_req=True
|
20856
|
-
>>> thread = api.
|
21338
|
+
>>> thread = api.get_template_api_v2_workspace_templates_template_id_get(template_id, async_req=True)
|
20857
21339
|
>>> result = thread.get()
|
20858
21340
|
|
20859
21341
|
:param async_req bool: execute request asynchronously
|
20860
|
-
:param str template_id: ID of the template
|
21342
|
+
:param str template_id: ID of the template to retrieve (required)
|
20861
21343
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
20862
21344
|
be returned without reading/decoding response
|
20863
21345
|
data. Default is True.
|
@@ -20865,24 +21347,24 @@ class DefaultApi(object):
|
|
20865
21347
|
number provided, it will be total request
|
20866
21348
|
timeout. It can also be a pair (tuple) of
|
20867
21349
|
(connection, read) timeouts.
|
20868
|
-
:return:
|
21350
|
+
:return: WorkspacetemplateResponse
|
20869
21351
|
If the method is called asynchronously,
|
20870
21352
|
returns the request thread.
|
20871
21353
|
"""
|
20872
21354
|
kwargs['_return_http_data_only'] = True
|
20873
|
-
return self.
|
21355
|
+
return self.get_template_api_v2_workspace_templates_template_id_get_with_http_info(template_id, **kwargs) # noqa: E501
|
20874
21356
|
|
20875
|
-
def
|
20876
|
-
"""Get Template
|
21357
|
+
def get_template_api_v2_workspace_templates_template_id_get_with_http_info(self, template_id, **kwargs): # noqa: E501
|
21358
|
+
"""Get Template # noqa: E501
|
20877
21359
|
|
20878
|
-
|
21360
|
+
Get workspace template details # noqa: E501
|
20879
21361
|
This method makes a synchronous HTTP request by default. To make an
|
20880
21362
|
asynchronous HTTP request, please pass async_req=True
|
20881
|
-
>>> thread = api.
|
21363
|
+
>>> thread = api.get_template_api_v2_workspace_templates_template_id_get_with_http_info(template_id, async_req=True)
|
20882
21364
|
>>> result = thread.get()
|
20883
21365
|
|
20884
21366
|
:param async_req bool: execute request asynchronously
|
20885
|
-
:param str template_id: ID of the template
|
21367
|
+
:param str template_id: ID of the template to retrieve (required)
|
20886
21368
|
:param _return_http_data_only: response data without head status code
|
20887
21369
|
and headers
|
20888
21370
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -20892,7 +21374,7 @@ class DefaultApi(object):
|
|
20892
21374
|
number provided, it will be total request
|
20893
21375
|
timeout. It can also be a pair (tuple) of
|
20894
21376
|
(connection, read) timeouts.
|
20895
|
-
:return: tuple(
|
21377
|
+
:return: tuple(WorkspacetemplateResponse, status_code(int), headers(HTTPHeaderDict))
|
20896
21378
|
If the method is called asynchronously,
|
20897
21379
|
returns the request thread.
|
20898
21380
|
"""
|
@@ -20915,14 +21397,14 @@ class DefaultApi(object):
|
|
20915
21397
|
if key not in all_params:
|
20916
21398
|
raise ApiTypeError(
|
20917
21399
|
"Got an unexpected keyword argument '%s'"
|
20918
|
-
" to method
|
21400
|
+
" to method get_template_api_v2_workspace_templates_template_id_get" % key
|
20919
21401
|
)
|
20920
21402
|
local_var_params[key] = val
|
20921
21403
|
del local_var_params['kwargs']
|
20922
21404
|
# verify the required parameter 'template_id' is set
|
20923
21405
|
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
20924
21406
|
local_var_params['template_id'] is None): # noqa: E501
|
20925
|
-
raise ApiValueError("Missing the required parameter `template_id` when calling `
|
21407
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `get_template_api_v2_workspace_templates_template_id_get`") # noqa: E501
|
20926
21408
|
|
20927
21409
|
collection_formats = {}
|
20928
21410
|
|
@@ -20946,14 +21428,14 @@ class DefaultApi(object):
|
|
20946
21428
|
auth_settings = [] # noqa: E501
|
20947
21429
|
|
20948
21430
|
return self.api_client.call_api(
|
20949
|
-
'/api/v2/
|
21431
|
+
'/api/v2/workspace_templates/{template_id}', 'GET',
|
20950
21432
|
path_params,
|
20951
21433
|
query_params,
|
20952
21434
|
header_params,
|
20953
21435
|
body=body_params,
|
20954
21436
|
post_params=form_params,
|
20955
21437
|
files=local_var_files,
|
20956
|
-
response_type='
|
21438
|
+
response_type='WorkspacetemplateResponse', # noqa: E501
|
20957
21439
|
auth_settings=auth_settings,
|
20958
21440
|
async_req=local_var_params.get('async_req'),
|
20959
21441
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -20961,17 +21443,17 @@ class DefaultApi(object):
|
|
20961
21443
|
_request_timeout=local_var_params.get('_request_timeout'),
|
20962
21444
|
collection_formats=collection_formats)
|
20963
21445
|
|
20964
|
-
def
|
20965
|
-
"""Get
|
21446
|
+
def get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get(self, template_id, **kwargs): # noqa: E501
|
21447
|
+
"""Get Template Readme # noqa: E501
|
20966
21448
|
|
21449
|
+
Retrieves a template's README.md file. # noqa: E501
|
20967
21450
|
This method makes a synchronous HTTP request by default. To make an
|
20968
21451
|
asynchronous HTTP request, please pass async_req=True
|
20969
|
-
>>> thread = api.
|
21452
|
+
>>> thread = api.get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get(template_id, async_req=True)
|
20970
21453
|
>>> result = thread.get()
|
20971
21454
|
|
20972
21455
|
:param async_req bool: execute request asynchronously
|
20973
|
-
:param
|
20974
|
-
:param date end_date: (required)
|
21456
|
+
:param str template_id: ID of the template. (required)
|
20975
21457
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
20976
21458
|
be returned without reading/decoding response
|
20977
21459
|
data. Default is True.
|
@@ -20979,24 +21461,24 @@ class DefaultApi(object):
|
|
20979
21461
|
number provided, it will be total request
|
20980
21462
|
timeout. It can also be a pair (tuple) of
|
20981
21463
|
(connection, read) timeouts.
|
20982
|
-
:return:
|
21464
|
+
:return: WorkspacetemplatereadmeResponse
|
20983
21465
|
If the method is called asynchronously,
|
20984
21466
|
returns the request thread.
|
20985
21467
|
"""
|
20986
21468
|
kwargs['_return_http_data_only'] = True
|
20987
|
-
return self.
|
21469
|
+
return self.get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get_with_http_info(template_id, **kwargs) # noqa: E501
|
20988
21470
|
|
20989
|
-
def
|
20990
|
-
"""Get
|
21471
|
+
def get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get_with_http_info(self, template_id, **kwargs): # noqa: E501
|
21472
|
+
"""Get Template Readme # noqa: E501
|
20991
21473
|
|
21474
|
+
Retrieves a template's README.md file. # noqa: E501
|
20992
21475
|
This method makes a synchronous HTTP request by default. To make an
|
20993
21476
|
asynchronous HTTP request, please pass async_req=True
|
20994
|
-
>>> thread = api.
|
21477
|
+
>>> thread = api.get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get_with_http_info(template_id, async_req=True)
|
20995
21478
|
>>> result = thread.get()
|
20996
21479
|
|
20997
21480
|
:param async_req bool: execute request asynchronously
|
20998
|
-
:param
|
20999
|
-
:param date end_date: (required)
|
21481
|
+
:param str template_id: ID of the template. (required)
|
21000
21482
|
:param _return_http_data_only: response data without head status code
|
21001
21483
|
and headers
|
21002
21484
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -21006,7 +21488,7 @@ class DefaultApi(object):
|
|
21006
21488
|
number provided, it will be total request
|
21007
21489
|
timeout. It can also be a pair (tuple) of
|
21008
21490
|
(connection, read) timeouts.
|
21009
|
-
:return: tuple(
|
21491
|
+
:return: tuple(WorkspacetemplatereadmeResponse, status_code(int), headers(HTTPHeaderDict))
|
21010
21492
|
If the method is called asynchronously,
|
21011
21493
|
returns the request thread.
|
21012
21494
|
"""
|
@@ -21014,8 +21496,7 @@ class DefaultApi(object):
|
|
21014
21496
|
local_var_params = locals()
|
21015
21497
|
|
21016
21498
|
all_params = [
|
21017
|
-
'
|
21018
|
-
'end_date'
|
21499
|
+
'template_id'
|
21019
21500
|
]
|
21020
21501
|
all_params.extend(
|
21021
21502
|
[
|
@@ -21030,11 +21511,126 @@ class DefaultApi(object):
|
|
21030
21511
|
if key not in all_params:
|
21031
21512
|
raise ApiTypeError(
|
21032
21513
|
"Got an unexpected keyword argument '%s'"
|
21033
|
-
" to method
|
21514
|
+
" to method get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get" % key
|
21034
21515
|
)
|
21035
21516
|
local_var_params[key] = val
|
21036
21517
|
del local_var_params['kwargs']
|
21037
|
-
# verify the required parameter '
|
21518
|
+
# verify the required parameter 'template_id' is set
|
21519
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
21520
|
+
local_var_params['template_id'] is None): # noqa: E501
|
21521
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get`") # noqa: E501
|
21522
|
+
|
21523
|
+
collection_formats = {}
|
21524
|
+
|
21525
|
+
path_params = {}
|
21526
|
+
if 'template_id' in local_var_params:
|
21527
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
21528
|
+
|
21529
|
+
query_params = []
|
21530
|
+
|
21531
|
+
header_params = {}
|
21532
|
+
|
21533
|
+
form_params = []
|
21534
|
+
local_var_files = {}
|
21535
|
+
|
21536
|
+
body_params = None
|
21537
|
+
# HTTP header `Accept`
|
21538
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
21539
|
+
['application/json']) # noqa: E501
|
21540
|
+
|
21541
|
+
# Authentication setting
|
21542
|
+
auth_settings = [] # noqa: E501
|
21543
|
+
|
21544
|
+
return self.api_client.call_api(
|
21545
|
+
'/api/v2/experimental_workspaces/template/readme/{template_id}', 'GET',
|
21546
|
+
path_params,
|
21547
|
+
query_params,
|
21548
|
+
header_params,
|
21549
|
+
body=body_params,
|
21550
|
+
post_params=form_params,
|
21551
|
+
files=local_var_files,
|
21552
|
+
response_type='WorkspacetemplatereadmeResponse', # noqa: E501
|
21553
|
+
auth_settings=auth_settings,
|
21554
|
+
async_req=local_var_params.get('async_req'),
|
21555
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
21556
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
21557
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
21558
|
+
collection_formats=collection_formats)
|
21559
|
+
|
21560
|
+
def get_total_usage_api_v2_aggregated_instance_usage_get(self, start_date, end_date, **kwargs): # noqa: E501
|
21561
|
+
"""Get Total Usage # noqa: E501
|
21562
|
+
|
21563
|
+
This method makes a synchronous HTTP request by default. To make an
|
21564
|
+
asynchronous HTTP request, please pass async_req=True
|
21565
|
+
>>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get(start_date, end_date, async_req=True)
|
21566
|
+
>>> result = thread.get()
|
21567
|
+
|
21568
|
+
:param async_req bool: execute request asynchronously
|
21569
|
+
:param date start_date: (required)
|
21570
|
+
:param date end_date: (required)
|
21571
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21572
|
+
be returned without reading/decoding response
|
21573
|
+
data. Default is True.
|
21574
|
+
:param _request_timeout: timeout setting for this request. If one
|
21575
|
+
number provided, it will be total request
|
21576
|
+
timeout. It can also be a pair (tuple) of
|
21577
|
+
(connection, read) timeouts.
|
21578
|
+
:return: AggregatedusageResponse
|
21579
|
+
If the method is called asynchronously,
|
21580
|
+
returns the request thread.
|
21581
|
+
"""
|
21582
|
+
kwargs['_return_http_data_only'] = True
|
21583
|
+
return self.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, **kwargs) # noqa: E501
|
21584
|
+
|
21585
|
+
def get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(self, start_date, end_date, **kwargs): # noqa: E501
|
21586
|
+
"""Get Total Usage # noqa: E501
|
21587
|
+
|
21588
|
+
This method makes a synchronous HTTP request by default. To make an
|
21589
|
+
asynchronous HTTP request, please pass async_req=True
|
21590
|
+
>>> thread = api.get_total_usage_api_v2_aggregated_instance_usage_get_with_http_info(start_date, end_date, async_req=True)
|
21591
|
+
>>> result = thread.get()
|
21592
|
+
|
21593
|
+
:param async_req bool: execute request asynchronously
|
21594
|
+
:param date start_date: (required)
|
21595
|
+
:param date end_date: (required)
|
21596
|
+
:param _return_http_data_only: response data without head status code
|
21597
|
+
and headers
|
21598
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
21599
|
+
be returned without reading/decoding response
|
21600
|
+
data. Default is True.
|
21601
|
+
:param _request_timeout: timeout setting for this request. If one
|
21602
|
+
number provided, it will be total request
|
21603
|
+
timeout. It can also be a pair (tuple) of
|
21604
|
+
(connection, read) timeouts.
|
21605
|
+
:return: tuple(AggregatedusageResponse, status_code(int), headers(HTTPHeaderDict))
|
21606
|
+
If the method is called asynchronously,
|
21607
|
+
returns the request thread.
|
21608
|
+
"""
|
21609
|
+
|
21610
|
+
local_var_params = locals()
|
21611
|
+
|
21612
|
+
all_params = [
|
21613
|
+
'start_date',
|
21614
|
+
'end_date'
|
21615
|
+
]
|
21616
|
+
all_params.extend(
|
21617
|
+
[
|
21618
|
+
'async_req',
|
21619
|
+
'_return_http_data_only',
|
21620
|
+
'_preload_content',
|
21621
|
+
'_request_timeout'
|
21622
|
+
]
|
21623
|
+
)
|
21624
|
+
|
21625
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
21626
|
+
if key not in all_params:
|
21627
|
+
raise ApiTypeError(
|
21628
|
+
"Got an unexpected keyword argument '%s'"
|
21629
|
+
" to method get_total_usage_api_v2_aggregated_instance_usage_get" % key
|
21630
|
+
)
|
21631
|
+
local_var_params[key] = val
|
21632
|
+
del local_var_params['kwargs']
|
21633
|
+
# verify the required parameter 'start_date' is set
|
21038
21634
|
if self.api_client.client_side_validation and ('start_date' not in local_var_params or # noqa: E501
|
21039
21635
|
local_var_params['start_date'] is None): # noqa: E501
|
21040
21636
|
raise ApiValueError("Missing the required parameter `start_date` when calling `get_total_usage_api_v2_aggregated_instance_usage_get`") # noqa: E501
|
@@ -21442,6 +22038,129 @@ class DefaultApi(object):
|
|
21442
22038
|
_request_timeout=local_var_params.get('_request_timeout'),
|
21443
22039
|
collection_formats=collection_formats)
|
21444
22040
|
|
22041
|
+
def get_version_api_v2_workspace_templates_template_id_versions_version_id_get(self, template_id, version_id, **kwargs): # noqa: E501
|
22042
|
+
"""Get Version # noqa: E501
|
22043
|
+
|
22044
|
+
Get a specific version of a workspace template # noqa: E501
|
22045
|
+
This method makes a synchronous HTTP request by default. To make an
|
22046
|
+
asynchronous HTTP request, please pass async_req=True
|
22047
|
+
>>> thread = api.get_version_api_v2_workspace_templates_template_id_versions_version_id_get(template_id, version_id, async_req=True)
|
22048
|
+
>>> result = thread.get()
|
22049
|
+
|
22050
|
+
:param async_req bool: execute request asynchronously
|
22051
|
+
:param str template_id: (required)
|
22052
|
+
:param str version_id: (required)
|
22053
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
22054
|
+
be returned without reading/decoding response
|
22055
|
+
data. Default is True.
|
22056
|
+
:param _request_timeout: timeout setting for this request. If one
|
22057
|
+
number provided, it will be total request
|
22058
|
+
timeout. It can also be a pair (tuple) of
|
22059
|
+
(connection, read) timeouts.
|
22060
|
+
:return: WorkspacetemplateversionResponse
|
22061
|
+
If the method is called asynchronously,
|
22062
|
+
returns the request thread.
|
22063
|
+
"""
|
22064
|
+
kwargs['_return_http_data_only'] = True
|
22065
|
+
return self.get_version_api_v2_workspace_templates_template_id_versions_version_id_get_with_http_info(template_id, version_id, **kwargs) # noqa: E501
|
22066
|
+
|
22067
|
+
def get_version_api_v2_workspace_templates_template_id_versions_version_id_get_with_http_info(self, template_id, version_id, **kwargs): # noqa: E501
|
22068
|
+
"""Get Version # noqa: E501
|
22069
|
+
|
22070
|
+
Get a specific version of a workspace template # noqa: E501
|
22071
|
+
This method makes a synchronous HTTP request by default. To make an
|
22072
|
+
asynchronous HTTP request, please pass async_req=True
|
22073
|
+
>>> thread = api.get_version_api_v2_workspace_templates_template_id_versions_version_id_get_with_http_info(template_id, version_id, async_req=True)
|
22074
|
+
>>> result = thread.get()
|
22075
|
+
|
22076
|
+
:param async_req bool: execute request asynchronously
|
22077
|
+
:param str template_id: (required)
|
22078
|
+
:param str version_id: (required)
|
22079
|
+
:param _return_http_data_only: response data without head status code
|
22080
|
+
and headers
|
22081
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
22082
|
+
be returned without reading/decoding response
|
22083
|
+
data. Default is True.
|
22084
|
+
:param _request_timeout: timeout setting for this request. If one
|
22085
|
+
number provided, it will be total request
|
22086
|
+
timeout. It can also be a pair (tuple) of
|
22087
|
+
(connection, read) timeouts.
|
22088
|
+
:return: tuple(WorkspacetemplateversionResponse, status_code(int), headers(HTTPHeaderDict))
|
22089
|
+
If the method is called asynchronously,
|
22090
|
+
returns the request thread.
|
22091
|
+
"""
|
22092
|
+
|
22093
|
+
local_var_params = locals()
|
22094
|
+
|
22095
|
+
all_params = [
|
22096
|
+
'template_id',
|
22097
|
+
'version_id'
|
22098
|
+
]
|
22099
|
+
all_params.extend(
|
22100
|
+
[
|
22101
|
+
'async_req',
|
22102
|
+
'_return_http_data_only',
|
22103
|
+
'_preload_content',
|
22104
|
+
'_request_timeout'
|
22105
|
+
]
|
22106
|
+
)
|
22107
|
+
|
22108
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
22109
|
+
if key not in all_params:
|
22110
|
+
raise ApiTypeError(
|
22111
|
+
"Got an unexpected keyword argument '%s'"
|
22112
|
+
" to method get_version_api_v2_workspace_templates_template_id_versions_version_id_get" % key
|
22113
|
+
)
|
22114
|
+
local_var_params[key] = val
|
22115
|
+
del local_var_params['kwargs']
|
22116
|
+
# verify the required parameter 'template_id' is set
|
22117
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
22118
|
+
local_var_params['template_id'] is None): # noqa: E501
|
22119
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `get_version_api_v2_workspace_templates_template_id_versions_version_id_get`") # noqa: E501
|
22120
|
+
# verify the required parameter 'version_id' is set
|
22121
|
+
if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501
|
22122
|
+
local_var_params['version_id'] is None): # noqa: E501
|
22123
|
+
raise ApiValueError("Missing the required parameter `version_id` when calling `get_version_api_v2_workspace_templates_template_id_versions_version_id_get`") # noqa: E501
|
22124
|
+
|
22125
|
+
collection_formats = {}
|
22126
|
+
|
22127
|
+
path_params = {}
|
22128
|
+
if 'template_id' in local_var_params:
|
22129
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
22130
|
+
if 'version_id' in local_var_params:
|
22131
|
+
path_params['version_id'] = local_var_params['version_id'] # noqa: E501
|
22132
|
+
|
22133
|
+
query_params = []
|
22134
|
+
|
22135
|
+
header_params = {}
|
22136
|
+
|
22137
|
+
form_params = []
|
22138
|
+
local_var_files = {}
|
22139
|
+
|
22140
|
+
body_params = None
|
22141
|
+
# HTTP header `Accept`
|
22142
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
22143
|
+
['application/json']) # noqa: E501
|
22144
|
+
|
22145
|
+
# Authentication setting
|
22146
|
+
auth_settings = [] # noqa: E501
|
22147
|
+
|
22148
|
+
return self.api_client.call_api(
|
22149
|
+
'/api/v2/workspace_templates/{template_id}/versions/{version_id}', 'GET',
|
22150
|
+
path_params,
|
22151
|
+
query_params,
|
22152
|
+
header_params,
|
22153
|
+
body=body_params,
|
22154
|
+
post_params=form_params,
|
22155
|
+
files=local_var_files,
|
22156
|
+
response_type='WorkspacetemplateversionResponse', # noqa: E501
|
22157
|
+
auth_settings=auth_settings,
|
22158
|
+
async_req=local_var_params.get('async_req'),
|
22159
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
22160
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
22161
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
22162
|
+
collection_formats=collection_formats)
|
22163
|
+
|
21445
22164
|
def get_workspace_api_v2_experimental_workspaces_workspace_id_get(self, workspace_id, **kwargs): # noqa: E501
|
21446
22165
|
"""Get Workspace # noqa: E501
|
21447
22166
|
|
@@ -25336,21 +26055,18 @@ class DefaultApi(object):
|
|
25336
26055
|
_request_timeout=local_var_params.get('_request_timeout'),
|
25337
26056
|
collection_formats=collection_formats)
|
25338
26057
|
|
25339
|
-
def
|
25340
|
-
"""List
|
26058
|
+
def list_keys_api_v2_tags_keys_get(self, **kwargs): # noqa: E501
|
26059
|
+
"""List Keys # noqa: E501
|
25341
26060
|
|
25342
|
-
Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
|
25343
26061
|
This method makes a synchronous HTTP request by default. To make an
|
25344
26062
|
asynchronous HTTP request, please pass async_req=True
|
25345
|
-
>>> thread = api.
|
26063
|
+
>>> thread = api.list_keys_api_v2_tags_keys_get(async_req=True)
|
25346
26064
|
>>> result = thread.get()
|
25347
26065
|
|
25348
26066
|
:param async_req bool: execute request asynchronously
|
25349
|
-
:param
|
25350
|
-
:param str
|
25351
|
-
:param
|
25352
|
-
:param bool workspaces_only: Whether to only include workspaces.
|
25353
|
-
:param int duration_s: The duration in seconds to filter by. Defaults to 24 hours.
|
26067
|
+
:param ResourceTagResourceType resource_type:
|
26068
|
+
:param str paging_token:
|
26069
|
+
:param int count:
|
25354
26070
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
25355
26071
|
be returned without reading/decoding response
|
25356
26072
|
data. Default is True.
|
@@ -25358,28 +26074,25 @@ class DefaultApi(object):
|
|
25358
26074
|
number provided, it will be total request
|
25359
26075
|
timeout. It can also be a pair (tuple) of
|
25360
26076
|
(connection, read) timeouts.
|
25361
|
-
:return:
|
26077
|
+
:return: TagkeyListResponse
|
25362
26078
|
If the method is called asynchronously,
|
25363
26079
|
returns the request thread.
|
25364
26080
|
"""
|
25365
26081
|
kwargs['_return_http_data_only'] = True
|
25366
|
-
return self.
|
26082
|
+
return self.list_keys_api_v2_tags_keys_get_with_http_info(**kwargs) # noqa: E501
|
25367
26083
|
|
25368
|
-
def
|
25369
|
-
"""List
|
26084
|
+
def list_keys_api_v2_tags_keys_get_with_http_info(self, **kwargs): # noqa: E501
|
26085
|
+
"""List Keys # noqa: E501
|
25370
26086
|
|
25371
|
-
Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
|
25372
26087
|
This method makes a synchronous HTTP request by default. To make an
|
25373
26088
|
asynchronous HTTP request, please pass async_req=True
|
25374
|
-
>>> thread = api.
|
26089
|
+
>>> thread = api.list_keys_api_v2_tags_keys_get_with_http_info(async_req=True)
|
25375
26090
|
>>> result = thread.get()
|
25376
26091
|
|
25377
26092
|
:param async_req bool: execute request asynchronously
|
25378
|
-
:param
|
25379
|
-
:param str
|
25380
|
-
:param
|
25381
|
-
:param bool workspaces_only: Whether to only include workspaces.
|
25382
|
-
:param int duration_s: The duration in seconds to filter by. Defaults to 24 hours.
|
26093
|
+
:param ResourceTagResourceType resource_type:
|
26094
|
+
:param str paging_token:
|
26095
|
+
:param int count:
|
25383
26096
|
:param _return_http_data_only: response data without head status code
|
25384
26097
|
and headers
|
25385
26098
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -25389,7 +26102,7 @@ class DefaultApi(object):
|
|
25389
26102
|
number provided, it will be total request
|
25390
26103
|
timeout. It can also be a pair (tuple) of
|
25391
26104
|
(connection, read) timeouts.
|
25392
|
-
:return: tuple(
|
26105
|
+
:return: tuple(TagkeyListResponse, status_code(int), headers(HTTPHeaderDict))
|
25393
26106
|
If the method is called asynchronously,
|
25394
26107
|
returns the request thread.
|
25395
26108
|
"""
|
@@ -25397,11 +26110,9 @@ class DefaultApi(object):
|
|
25397
26110
|
local_var_params = locals()
|
25398
26111
|
|
25399
26112
|
all_params = [
|
25400
|
-
'
|
25401
|
-
'
|
25402
|
-
'
|
25403
|
-
'workspaces_only',
|
25404
|
-
'duration_s'
|
26113
|
+
'resource_type',
|
26114
|
+
'paging_token',
|
26115
|
+
'count'
|
25405
26116
|
]
|
25406
26117
|
all_params.extend(
|
25407
26118
|
[
|
@@ -25416,22 +26127,152 @@ class DefaultApi(object):
|
|
25416
26127
|
if key not in all_params:
|
25417
26128
|
raise ApiTypeError(
|
25418
26129
|
"Got an unexpected keyword argument '%s'"
|
25419
|
-
" to method
|
26130
|
+
" to method list_keys_api_v2_tags_keys_get" % key
|
25420
26131
|
)
|
25421
26132
|
local_var_params[key] = val
|
25422
26133
|
del local_var_params['kwargs']
|
25423
26134
|
|
26135
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
26136
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_keys_api_v2_tags_keys_get`, must be a value less than or equal to `50`") # noqa: E501
|
26137
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
26138
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_keys_api_v2_tags_keys_get`, must be a value greater than or equal to `0`") # noqa: E501
|
25424
26139
|
collection_formats = {}
|
25425
26140
|
|
25426
26141
|
path_params = {}
|
25427
26142
|
|
25428
26143
|
query_params = []
|
25429
|
-
if '
|
25430
|
-
query_params.append(('
|
25431
|
-
if '
|
25432
|
-
query_params.append(('
|
25433
|
-
if '
|
25434
|
-
query_params.append(('
|
26144
|
+
if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
|
26145
|
+
query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
|
26146
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
26147
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
26148
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
26149
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
26150
|
+
|
26151
|
+
header_params = {}
|
26152
|
+
|
26153
|
+
form_params = []
|
26154
|
+
local_var_files = {}
|
26155
|
+
|
26156
|
+
body_params = None
|
26157
|
+
# HTTP header `Accept`
|
26158
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
26159
|
+
['application/json']) # noqa: E501
|
26160
|
+
|
26161
|
+
# Authentication setting
|
26162
|
+
auth_settings = [] # noqa: E501
|
26163
|
+
|
26164
|
+
return self.api_client.call_api(
|
26165
|
+
'/api/v2/tags/keys', 'GET',
|
26166
|
+
path_params,
|
26167
|
+
query_params,
|
26168
|
+
header_params,
|
26169
|
+
body=body_params,
|
26170
|
+
post_params=form_params,
|
26171
|
+
files=local_var_files,
|
26172
|
+
response_type='TagkeyListResponse', # noqa: E501
|
26173
|
+
auth_settings=auth_settings,
|
26174
|
+
async_req=local_var_params.get('async_req'),
|
26175
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
26176
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
26177
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
26178
|
+
collection_formats=collection_formats)
|
26179
|
+
|
26180
|
+
def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(self, **kwargs): # noqa: E501
|
26181
|
+
"""List Long Running Workloads # noqa: E501
|
26182
|
+
|
26183
|
+
Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
|
26184
|
+
This method makes a synchronous HTTP request by default. To make an
|
26185
|
+
asynchronous HTTP request, please pass async_req=True
|
26186
|
+
>>> thread = api.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(async_req=True)
|
26187
|
+
>>> result = thread.get()
|
26188
|
+
|
26189
|
+
:param async_req bool: execute request asynchronously
|
26190
|
+
:param str cloud_id: The cloud ID to filter by.
|
26191
|
+
:param str project_id: The project ID to filter by.
|
26192
|
+
:param bool jobs_only: Whether to only include jobs.
|
26193
|
+
:param bool workspaces_only: Whether to only include workspaces.
|
26194
|
+
:param int duration_s: The duration in seconds to filter by. Defaults to 24 hours.
|
26195
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26196
|
+
be returned without reading/decoding response
|
26197
|
+
data. Default is True.
|
26198
|
+
:param _request_timeout: timeout setting for this request. If one
|
26199
|
+
number provided, it will be total request
|
26200
|
+
timeout. It can also be a pair (tuple) of
|
26201
|
+
(connection, read) timeouts.
|
26202
|
+
:return: LongrunningworkloadListResponse
|
26203
|
+
If the method is called asynchronously,
|
26204
|
+
returns the request thread.
|
26205
|
+
"""
|
26206
|
+
kwargs['_return_http_data_only'] = True
|
26207
|
+
return self.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(**kwargs) # noqa: E501
|
26208
|
+
|
26209
|
+
def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(self, **kwargs): # noqa: E501
|
26210
|
+
"""List Long Running Workloads # noqa: E501
|
26211
|
+
|
26212
|
+
Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
|
26213
|
+
This method makes a synchronous HTTP request by default. To make an
|
26214
|
+
asynchronous HTTP request, please pass async_req=True
|
26215
|
+
>>> thread = api.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(async_req=True)
|
26216
|
+
>>> result = thread.get()
|
26217
|
+
|
26218
|
+
:param async_req bool: execute request asynchronously
|
26219
|
+
:param str cloud_id: The cloud ID to filter by.
|
26220
|
+
:param str project_id: The project ID to filter by.
|
26221
|
+
:param bool jobs_only: Whether to only include jobs.
|
26222
|
+
:param bool workspaces_only: Whether to only include workspaces.
|
26223
|
+
:param int duration_s: The duration in seconds to filter by. Defaults to 24 hours.
|
26224
|
+
:param _return_http_data_only: response data without head status code
|
26225
|
+
and headers
|
26226
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26227
|
+
be returned without reading/decoding response
|
26228
|
+
data. Default is True.
|
26229
|
+
:param _request_timeout: timeout setting for this request. If one
|
26230
|
+
number provided, it will be total request
|
26231
|
+
timeout. It can also be a pair (tuple) of
|
26232
|
+
(connection, read) timeouts.
|
26233
|
+
:return: tuple(LongrunningworkloadListResponse, status_code(int), headers(HTTPHeaderDict))
|
26234
|
+
If the method is called asynchronously,
|
26235
|
+
returns the request thread.
|
26236
|
+
"""
|
26237
|
+
|
26238
|
+
local_var_params = locals()
|
26239
|
+
|
26240
|
+
all_params = [
|
26241
|
+
'cloud_id',
|
26242
|
+
'project_id',
|
26243
|
+
'jobs_only',
|
26244
|
+
'workspaces_only',
|
26245
|
+
'duration_s'
|
26246
|
+
]
|
26247
|
+
all_params.extend(
|
26248
|
+
[
|
26249
|
+
'async_req',
|
26250
|
+
'_return_http_data_only',
|
26251
|
+
'_preload_content',
|
26252
|
+
'_request_timeout'
|
26253
|
+
]
|
26254
|
+
)
|
26255
|
+
|
26256
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
26257
|
+
if key not in all_params:
|
26258
|
+
raise ApiTypeError(
|
26259
|
+
"Got an unexpected keyword argument '%s'"
|
26260
|
+
" to method list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get" % key
|
26261
|
+
)
|
26262
|
+
local_var_params[key] = val
|
26263
|
+
del local_var_params['kwargs']
|
26264
|
+
|
26265
|
+
collection_formats = {}
|
26266
|
+
|
26267
|
+
path_params = {}
|
26268
|
+
|
26269
|
+
query_params = []
|
26270
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
26271
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
26272
|
+
if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
|
26273
|
+
query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
|
26274
|
+
if 'jobs_only' in local_var_params and local_var_params['jobs_only'] is not None: # noqa: E501
|
26275
|
+
query_params.append(('jobs_only', local_var_params['jobs_only'])) # noqa: E501
|
25435
26276
|
if 'workspaces_only' in local_var_params and local_var_params['workspaces_only'] is not None: # noqa: E501
|
25436
26277
|
query_params.append(('workspaces_only', local_var_params['workspaces_only'])) # noqa: E501
|
25437
26278
|
if 'duration_s' in local_var_params and local_var_params['duration_s'] is not None: # noqa: E501
|
@@ -26479,7 +27320,7 @@ class DefaultApi(object):
|
|
26479
27320
|
number provided, it will be total request
|
26480
27321
|
timeout. It can also be a pair (tuple) of
|
26481
27322
|
(connection, read) timeouts.
|
26482
|
-
:return:
|
27323
|
+
:return: GlobalworkspacetemplateListResponse
|
26483
27324
|
If the method is called asynchronously,
|
26484
27325
|
returns the request thread.
|
26485
27326
|
"""
|
@@ -26508,7 +27349,7 @@ class DefaultApi(object):
|
|
26508
27349
|
number provided, it will be total request
|
26509
27350
|
timeout. It can also be a pair (tuple) of
|
26510
27351
|
(connection, read) timeouts.
|
26511
|
-
:return: tuple(
|
27352
|
+
:return: tuple(GlobalworkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
|
26512
27353
|
If the method is called asynchronously,
|
26513
27354
|
returns the request thread.
|
26514
27355
|
"""
|
@@ -26572,7 +27413,7 @@ class DefaultApi(object):
|
|
26572
27413
|
body=body_params,
|
26573
27414
|
post_params=form_params,
|
26574
27415
|
files=local_var_files,
|
26575
|
-
response_type='
|
27416
|
+
response_type='GlobalworkspacetemplateListResponse', # noqa: E501
|
26576
27417
|
auth_settings=auth_settings,
|
26577
27418
|
async_req=local_var_params.get('async_req'),
|
26578
27419
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -26596,6 +27437,7 @@ class DefaultApi(object):
|
|
26596
27437
|
:param str creator_id: creator_id to filter by
|
26597
27438
|
:param str cloud_id: cloud_id to filter by
|
26598
27439
|
:param list[ApplicationType] application_type: Application type to filter by
|
27440
|
+
:param list[str] tag_filter: Repeatable filter of tags in the form key:value. Can be specified multiple times. Values with the same key are ORed; keys are ANDed.
|
26599
27441
|
:param ServiceSortField sort_field: If absent, the default sorting order is 1. status (active first).2. Last updated at (desc). 3. Name (asc).
|
26600
27442
|
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
26601
27443
|
:param str paging_token:
|
@@ -26630,6 +27472,7 @@ class DefaultApi(object):
|
|
26630
27472
|
:param str creator_id: creator_id to filter by
|
26631
27473
|
:param str cloud_id: cloud_id to filter by
|
26632
27474
|
:param list[ApplicationType] application_type: Application type to filter by
|
27475
|
+
:param list[str] tag_filter: Repeatable filter of tags in the form key:value. Can be specified multiple times. Values with the same key are ORed; keys are ANDed.
|
26633
27476
|
:param ServiceSortField sort_field: If absent, the default sorting order is 1. status (active first).2. Last updated at (desc). 3. Name (asc).
|
26634
27477
|
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
26635
27478
|
:param str paging_token:
|
@@ -26658,6 +27501,7 @@ class DefaultApi(object):
|
|
26658
27501
|
'creator_id',
|
26659
27502
|
'cloud_id',
|
26660
27503
|
'application_type',
|
27504
|
+
'tag_filter',
|
26661
27505
|
'sort_field',
|
26662
27506
|
'sort_order',
|
26663
27507
|
'paging_token',
|
@@ -26706,6 +27550,9 @@ class DefaultApi(object):
|
|
26706
27550
|
if 'application_type' in local_var_params and local_var_params['application_type'] is not None: # noqa: E501
|
26707
27551
|
query_params.append(('application_type', local_var_params['application_type'])) # noqa: E501
|
26708
27552
|
collection_formats['application_type'] = 'multi' # noqa: E501
|
27553
|
+
if 'tag_filter' in local_var_params and local_var_params['tag_filter'] is not None: # noqa: E501
|
27554
|
+
query_params.append(('tag_filter', local_var_params['tag_filter'])) # noqa: E501
|
27555
|
+
collection_formats['tag_filter'] = 'multi' # noqa: E501
|
26709
27556
|
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
26710
27557
|
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
26711
27558
|
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
@@ -26893,21 +27740,17 @@ class DefaultApi(object):
|
|
26893
27740
|
_request_timeout=local_var_params.get('_request_timeout'),
|
26894
27741
|
collection_formats=collection_formats)
|
26895
27742
|
|
26896
|
-
def
|
26897
|
-
"""List
|
27743
|
+
def list_template_versions_api_v2_workspace_templates_template_id_versions_get(self, template_id, **kwargs): # noqa: E501
|
27744
|
+
"""List Template Versions # noqa: E501
|
26898
27745
|
|
26899
|
-
|
27746
|
+
List versions for a workspace template # noqa: E501
|
26900
27747
|
This method makes a synchronous HTTP request by default. To make an
|
26901
27748
|
asynchronous HTTP request, please pass async_req=True
|
26902
|
-
>>> thread = api.
|
27749
|
+
>>> thread = api.list_template_versions_api_v2_workspace_templates_template_id_versions_get(template_id, async_req=True)
|
26903
27750
|
>>> result = thread.get()
|
26904
27751
|
|
26905
27752
|
:param async_req bool: execute request asynchronously
|
26906
|
-
:param
|
26907
|
-
:param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
|
26908
|
-
:param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
|
26909
|
-
:param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
|
26910
|
-
:param bool for_gallery: Filters the list to show the ones expected for gallery section
|
27753
|
+
:param str template_id: (required)
|
26911
27754
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
26912
27755
|
be returned without reading/decoding response
|
26913
27756
|
data. Default is True.
|
@@ -26915,28 +27758,24 @@ class DefaultApi(object):
|
|
26915
27758
|
number provided, it will be total request
|
26916
27759
|
timeout. It can also be a pair (tuple) of
|
26917
27760
|
(connection, read) timeouts.
|
26918
|
-
:return:
|
27761
|
+
:return: WorkspacetemplateversionListResponse
|
26919
27762
|
If the method is called asynchronously,
|
26920
27763
|
returns the request thread.
|
26921
27764
|
"""
|
26922
27765
|
kwargs['_return_http_data_only'] = True
|
26923
|
-
return self.
|
27766
|
+
return self.list_template_versions_api_v2_workspace_templates_template_id_versions_get_with_http_info(template_id, **kwargs) # noqa: E501
|
26924
27767
|
|
26925
|
-
def
|
26926
|
-
"""List
|
27768
|
+
def list_template_versions_api_v2_workspace_templates_template_id_versions_get_with_http_info(self, template_id, **kwargs): # noqa: E501
|
27769
|
+
"""List Template Versions # noqa: E501
|
26927
27770
|
|
26928
|
-
|
27771
|
+
List versions for a workspace template # noqa: E501
|
26929
27772
|
This method makes a synchronous HTTP request by default. To make an
|
26930
27773
|
asynchronous HTTP request, please pass async_req=True
|
26931
|
-
>>> thread = api.
|
27774
|
+
>>> thread = api.list_template_versions_api_v2_workspace_templates_template_id_versions_get_with_http_info(template_id, async_req=True)
|
26932
27775
|
>>> result = thread.get()
|
26933
27776
|
|
26934
27777
|
:param async_req bool: execute request asynchronously
|
26935
|
-
:param
|
26936
|
-
:param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
|
26937
|
-
:param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
|
26938
|
-
:param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
|
26939
|
-
:param bool for_gallery: Filters the list to show the ones expected for gallery section
|
27778
|
+
:param str template_id: (required)
|
26940
27779
|
:param _return_http_data_only: response data without head status code
|
26941
27780
|
and headers
|
26942
27781
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -26946,7 +27785,7 @@ class DefaultApi(object):
|
|
26946
27785
|
number provided, it will be total request
|
26947
27786
|
timeout. It can also be a pair (tuple) of
|
26948
27787
|
(connection, read) timeouts.
|
26949
|
-
:return: tuple(
|
27788
|
+
:return: tuple(WorkspacetemplateversionListResponse, status_code(int), headers(HTTPHeaderDict))
|
26950
27789
|
If the method is called asynchronously,
|
26951
27790
|
returns the request thread.
|
26952
27791
|
"""
|
@@ -26954,11 +27793,7 @@ class DefaultApi(object):
|
|
26954
27793
|
local_var_params = locals()
|
26955
27794
|
|
26956
27795
|
all_params = [
|
26957
|
-
'
|
26958
|
-
'for_private_endpoints_homepage',
|
26959
|
-
'for_fine_tuning',
|
26960
|
-
'for_ai_apps_section',
|
26961
|
-
'for_gallery'
|
27796
|
+
'template_id'
|
26962
27797
|
]
|
26963
27798
|
all_params.extend(
|
26964
27799
|
[
|
@@ -26973,27 +27808,22 @@ class DefaultApi(object):
|
|
26973
27808
|
if key not in all_params:
|
26974
27809
|
raise ApiTypeError(
|
26975
27810
|
"Got an unexpected keyword argument '%s'"
|
26976
|
-
" to method
|
27811
|
+
" to method list_template_versions_api_v2_workspace_templates_template_id_versions_get" % key
|
26977
27812
|
)
|
26978
27813
|
local_var_params[key] = val
|
26979
27814
|
del local_var_params['kwargs']
|
27815
|
+
# verify the required parameter 'template_id' is set
|
27816
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
27817
|
+
local_var_params['template_id'] is None): # noqa: E501
|
27818
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `list_template_versions_api_v2_workspace_templates_template_id_versions_get`") # noqa: E501
|
26980
27819
|
|
26981
27820
|
collection_formats = {}
|
26982
27821
|
|
26983
27822
|
path_params = {}
|
27823
|
+
if 'template_id' in local_var_params:
|
27824
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
26984
27825
|
|
26985
27826
|
query_params = []
|
26986
|
-
if 'oa_group_names' in local_var_params and local_var_params['oa_group_names'] is not None: # noqa: E501
|
26987
|
-
query_params.append(('oa_group_names', local_var_params['oa_group_names'])) # noqa: E501
|
26988
|
-
collection_formats['oa_group_names'] = 'multi' # noqa: E501
|
26989
|
-
if 'for_private_endpoints_homepage' in local_var_params and local_var_params['for_private_endpoints_homepage'] is not None: # noqa: E501
|
26990
|
-
query_params.append(('for_private_endpoints_homepage', local_var_params['for_private_endpoints_homepage'])) # noqa: E501
|
26991
|
-
if 'for_fine_tuning' in local_var_params and local_var_params['for_fine_tuning'] is not None: # noqa: E501
|
26992
|
-
query_params.append(('for_fine_tuning', local_var_params['for_fine_tuning'])) # noqa: E501
|
26993
|
-
if 'for_ai_apps_section' in local_var_params and local_var_params['for_ai_apps_section'] is not None: # noqa: E501
|
26994
|
-
query_params.append(('for_ai_apps_section', local_var_params['for_ai_apps_section'])) # noqa: E501
|
26995
|
-
if 'for_gallery' in local_var_params and local_var_params['for_gallery'] is not None: # noqa: E501
|
26996
|
-
query_params.append(('for_gallery', local_var_params['for_gallery'])) # noqa: E501
|
26997
27827
|
|
26998
27828
|
header_params = {}
|
26999
27829
|
|
@@ -27009,14 +27839,14 @@ class DefaultApi(object):
|
|
27009
27839
|
auth_settings = [] # noqa: E501
|
27010
27840
|
|
27011
27841
|
return self.api_client.call_api(
|
27012
|
-
'/api/v2/
|
27842
|
+
'/api/v2/workspace_templates/{template_id}/versions', 'GET',
|
27013
27843
|
path_params,
|
27014
27844
|
query_params,
|
27015
27845
|
header_params,
|
27016
27846
|
body=body_params,
|
27017
27847
|
post_params=form_params,
|
27018
27848
|
files=local_var_files,
|
27019
|
-
response_type='
|
27849
|
+
response_type='WorkspacetemplateversionListResponse', # noqa: E501
|
27020
27850
|
auth_settings=auth_settings,
|
27021
27851
|
async_req=local_var_params.get('async_req'),
|
27022
27852
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -27024,26 +27854,28 @@ class DefaultApi(object):
|
|
27024
27854
|
_request_timeout=local_var_params.get('_request_timeout'),
|
27025
27855
|
collection_formats=collection_formats)
|
27026
27856
|
|
27027
|
-
def
|
27028
|
-
"""List
|
27857
|
+
def list_templates_api_v2_workspace_templates_get(self, **kwargs): # noqa: E501
|
27858
|
+
"""List Templates # noqa: E501
|
27029
27859
|
|
27030
|
-
|
27860
|
+
List user's workspace templates with pagination, filtering, and search # noqa: E501
|
27031
27861
|
This method makes a synchronous HTTP request by default. To make an
|
27032
27862
|
asynchronous HTTP request, please pass async_req=True
|
27033
|
-
>>> thread = api.
|
27863
|
+
>>> thread = api.list_templates_api_v2_workspace_templates_get(async_req=True)
|
27034
27864
|
>>> result = thread.get()
|
27035
27865
|
|
27036
27866
|
:param async_req bool: execute request asynchronously
|
27037
|
-
:param str name:
|
27038
|
-
:param
|
27039
|
-
:param
|
27040
|
-
:param str
|
27041
|
-
:param str cloud_id:
|
27042
|
-
:param
|
27043
|
-
:param
|
27044
|
-
:param
|
27867
|
+
:param str name: Filter by template name (partial match)
|
27868
|
+
:param WorkspaceTemplateComplexity complexity: Filter by complexity level
|
27869
|
+
:param WorkspaceTemplateCategory category: Filter by category
|
27870
|
+
:param str labels: Comma-separated list of labels to filter by
|
27871
|
+
:param str cloud_id: Filter by cloud ID
|
27872
|
+
:param bool is_global: Filter by global templates
|
27873
|
+
:param str creator_id: Filter by creator user ID
|
27874
|
+
:param PublishedFilter published: Filter by published templates
|
27045
27875
|
:param str paging_token:
|
27046
27876
|
:param int count:
|
27877
|
+
:param WorkspaceTemplatesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
|
27878
|
+
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
27047
27879
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
27048
27880
|
be returned without reading/decoding response
|
27049
27881
|
data. Default is True.
|
@@ -27051,33 +27883,35 @@ class DefaultApi(object):
|
|
27051
27883
|
number provided, it will be total request
|
27052
27884
|
timeout. It can also be a pair (tuple) of
|
27053
27885
|
(connection, read) timeouts.
|
27054
|
-
:return:
|
27886
|
+
:return: WorkspacetemplateListResponse
|
27055
27887
|
If the method is called asynchronously,
|
27056
27888
|
returns the request thread.
|
27057
27889
|
"""
|
27058
27890
|
kwargs['_return_http_data_only'] = True
|
27059
|
-
return self.
|
27891
|
+
return self.list_templates_api_v2_workspace_templates_get_with_http_info(**kwargs) # noqa: E501
|
27060
27892
|
|
27061
|
-
def
|
27062
|
-
"""List
|
27893
|
+
def list_templates_api_v2_workspace_templates_get_with_http_info(self, **kwargs): # noqa: E501
|
27894
|
+
"""List Templates # noqa: E501
|
27063
27895
|
|
27064
|
-
|
27896
|
+
List user's workspace templates with pagination, filtering, and search # noqa: E501
|
27065
27897
|
This method makes a synchronous HTTP request by default. To make an
|
27066
27898
|
asynchronous HTTP request, please pass async_req=True
|
27067
|
-
>>> thread = api.
|
27899
|
+
>>> thread = api.list_templates_api_v2_workspace_templates_get_with_http_info(async_req=True)
|
27068
27900
|
>>> result = thread.get()
|
27069
27901
|
|
27070
27902
|
:param async_req bool: execute request asynchronously
|
27071
|
-
:param str name:
|
27072
|
-
:param
|
27073
|
-
:param
|
27074
|
-
:param str
|
27075
|
-
:param str cloud_id:
|
27076
|
-
:param
|
27077
|
-
:param
|
27078
|
-
:param
|
27903
|
+
:param str name: Filter by template name (partial match)
|
27904
|
+
:param WorkspaceTemplateComplexity complexity: Filter by complexity level
|
27905
|
+
:param WorkspaceTemplateCategory category: Filter by category
|
27906
|
+
:param str labels: Comma-separated list of labels to filter by
|
27907
|
+
:param str cloud_id: Filter by cloud ID
|
27908
|
+
:param bool is_global: Filter by global templates
|
27909
|
+
:param str creator_id: Filter by creator user ID
|
27910
|
+
:param PublishedFilter published: Filter by published templates
|
27079
27911
|
:param str paging_token:
|
27080
27912
|
:param int count:
|
27913
|
+
:param WorkspaceTemplatesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
|
27914
|
+
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
27081
27915
|
:param _return_http_data_only: response data without head status code
|
27082
27916
|
and headers
|
27083
27917
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -27087,7 +27921,7 @@ class DefaultApi(object):
|
|
27087
27921
|
number provided, it will be total request
|
27088
27922
|
timeout. It can also be a pair (tuple) of
|
27089
27923
|
(connection, read) timeouts.
|
27090
|
-
:return: tuple(
|
27924
|
+
:return: tuple(WorkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
|
27091
27925
|
If the method is called asynchronously,
|
27092
27926
|
returns the request thread.
|
27093
27927
|
"""
|
@@ -27096,15 +27930,17 @@ class DefaultApi(object):
|
|
27096
27930
|
|
27097
27931
|
all_params = [
|
27098
27932
|
'name',
|
27099
|
-
'
|
27100
|
-
'
|
27101
|
-
'
|
27933
|
+
'complexity',
|
27934
|
+
'category',
|
27935
|
+
'labels',
|
27102
27936
|
'cloud_id',
|
27103
|
-
'
|
27104
|
-
'
|
27105
|
-
'
|
27937
|
+
'is_global',
|
27938
|
+
'creator_id',
|
27939
|
+
'published',
|
27106
27940
|
'paging_token',
|
27107
|
-
'count'
|
27941
|
+
'count',
|
27942
|
+
'sort_field',
|
27943
|
+
'sort_order'
|
27108
27944
|
]
|
27109
27945
|
all_params.extend(
|
27110
27946
|
[
|
@@ -27119,15 +27955,15 @@ class DefaultApi(object):
|
|
27119
27955
|
if key not in all_params:
|
27120
27956
|
raise ApiTypeError(
|
27121
27957
|
"Got an unexpected keyword argument '%s'"
|
27122
|
-
" to method
|
27958
|
+
" to method list_templates_api_v2_workspace_templates_get" % key
|
27123
27959
|
)
|
27124
27960
|
local_var_params[key] = val
|
27125
27961
|
del local_var_params['kwargs']
|
27126
27962
|
|
27127
27963
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
27128
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `
|
27964
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_templates_api_v2_workspace_templates_get`, must be a value less than or equal to `50`") # noqa: E501
|
27129
27965
|
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
27130
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `
|
27966
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_templates_api_v2_workspace_templates_get`, must be a value greater than or equal to `0`") # noqa: E501
|
27131
27967
|
collection_formats = {}
|
27132
27968
|
|
27133
27969
|
path_params = {}
|
@@ -27135,25 +27971,28 @@ class DefaultApi(object):
|
|
27135
27971
|
query_params = []
|
27136
27972
|
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
27137
27973
|
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
27138
|
-
if '
|
27139
|
-
query_params.append(('
|
27140
|
-
if '
|
27141
|
-
query_params.append(('
|
27142
|
-
if '
|
27143
|
-
query_params.append(('
|
27974
|
+
if 'complexity' in local_var_params and local_var_params['complexity'] is not None: # noqa: E501
|
27975
|
+
query_params.append(('complexity', local_var_params['complexity'])) # noqa: E501
|
27976
|
+
if 'category' in local_var_params and local_var_params['category'] is not None: # noqa: E501
|
27977
|
+
query_params.append(('category', local_var_params['category'])) # noqa: E501
|
27978
|
+
if 'labels' in local_var_params and local_var_params['labels'] is not None: # noqa: E501
|
27979
|
+
query_params.append(('labels', local_var_params['labels'])) # noqa: E501
|
27144
27980
|
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
27145
27981
|
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
27146
|
-
if '
|
27147
|
-
query_params.append(('
|
27148
|
-
|
27149
|
-
|
27150
|
-
|
27151
|
-
|
27152
|
-
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
27982
|
+
if 'is_global' in local_var_params and local_var_params['is_global'] is not None: # noqa: E501
|
27983
|
+
query_params.append(('is_global', local_var_params['is_global'])) # noqa: E501
|
27984
|
+
if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
|
27985
|
+
query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
|
27986
|
+
if 'published' in local_var_params and local_var_params['published'] is not None: # noqa: E501
|
27987
|
+
query_params.append(('published', local_var_params['published'])) # noqa: E501
|
27153
27988
|
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
27154
27989
|
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
27155
27990
|
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
27156
27991
|
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
27992
|
+
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
27993
|
+
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
27994
|
+
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
27995
|
+
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
27157
27996
|
|
27158
27997
|
header_params = {}
|
27159
27998
|
|
@@ -27169,14 +28008,14 @@ class DefaultApi(object):
|
|
27169
28008
|
auth_settings = [] # noqa: E501
|
27170
28009
|
|
27171
28010
|
return self.api_client.call_api(
|
27172
|
-
'/api/v2/
|
28011
|
+
'/api/v2/workspace_templates/', 'GET',
|
27173
28012
|
path_params,
|
27174
28013
|
query_params,
|
27175
28014
|
header_params,
|
27176
28015
|
body=body_params,
|
27177
28016
|
post_params=form_params,
|
27178
28017
|
files=local_var_files,
|
27179
|
-
response_type='
|
28018
|
+
response_type='WorkspacetemplateListResponse', # noqa: E501
|
27180
28019
|
auth_settings=auth_settings,
|
27181
28020
|
async_req=local_var_params.get('async_req'),
|
27182
28021
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -27184,16 +28023,19 @@ class DefaultApi(object):
|
|
27184
28023
|
_request_timeout=local_var_params.get('_request_timeout'),
|
27185
28024
|
collection_formats=collection_formats)
|
27186
28025
|
|
27187
|
-
def
|
27188
|
-
"""
|
28026
|
+
def list_values_api_v2_tags_values_get(self, key, **kwargs): # noqa: E501
|
28027
|
+
"""List Values # noqa: E501
|
27189
28028
|
|
27190
28029
|
This method makes a synchronous HTTP request by default. To make an
|
27191
28030
|
asynchronous HTTP request, please pass async_req=True
|
27192
|
-
>>> thread = api.
|
28031
|
+
>>> thread = api.list_values_api_v2_tags_values_get(key, async_req=True)
|
27193
28032
|
>>> result = thread.get()
|
27194
28033
|
|
27195
28034
|
:param async_req bool: execute request asynchronously
|
27196
|
-
:param
|
28035
|
+
:param str key: (required)
|
28036
|
+
:param ResourceTagResourceType resource_type:
|
28037
|
+
:param str paging_token:
|
28038
|
+
:param int count:
|
27197
28039
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
27198
28040
|
be returned without reading/decoding response
|
27199
28041
|
data. Default is True.
|
@@ -27201,19 +28043,444 @@ class DefaultApi(object):
|
|
27201
28043
|
number provided, it will be total request
|
27202
28044
|
timeout. It can also be a pair (tuple) of
|
27203
28045
|
(connection, read) timeouts.
|
27204
|
-
:return:
|
28046
|
+
:return: TagvalueListResponse
|
27205
28047
|
If the method is called asynchronously,
|
27206
28048
|
returns the request thread.
|
27207
28049
|
"""
|
27208
28050
|
kwargs['_return_http_data_only'] = True
|
27209
|
-
return self.
|
28051
|
+
return self.list_values_api_v2_tags_values_get_with_http_info(key, **kwargs) # noqa: E501
|
27210
28052
|
|
27211
|
-
def
|
27212
|
-
"""
|
28053
|
+
def list_values_api_v2_tags_values_get_with_http_info(self, key, **kwargs): # noqa: E501
|
28054
|
+
"""List Values # noqa: E501
|
27213
28055
|
|
27214
28056
|
This method makes a synchronous HTTP request by default. To make an
|
27215
28057
|
asynchronous HTTP request, please pass async_req=True
|
27216
|
-
>>> thread = api.
|
28058
|
+
>>> thread = api.list_values_api_v2_tags_values_get_with_http_info(key, async_req=True)
|
28059
|
+
>>> result = thread.get()
|
28060
|
+
|
28061
|
+
:param async_req bool: execute request asynchronously
|
28062
|
+
:param str key: (required)
|
28063
|
+
:param ResourceTagResourceType resource_type:
|
28064
|
+
:param str paging_token:
|
28065
|
+
:param int count:
|
28066
|
+
:param _return_http_data_only: response data without head status code
|
28067
|
+
and headers
|
28068
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28069
|
+
be returned without reading/decoding response
|
28070
|
+
data. Default is True.
|
28071
|
+
:param _request_timeout: timeout setting for this request. If one
|
28072
|
+
number provided, it will be total request
|
28073
|
+
timeout. It can also be a pair (tuple) of
|
28074
|
+
(connection, read) timeouts.
|
28075
|
+
:return: tuple(TagvalueListResponse, status_code(int), headers(HTTPHeaderDict))
|
28076
|
+
If the method is called asynchronously,
|
28077
|
+
returns the request thread.
|
28078
|
+
"""
|
28079
|
+
|
28080
|
+
local_var_params = locals()
|
28081
|
+
|
28082
|
+
all_params = [
|
28083
|
+
'key',
|
28084
|
+
'resource_type',
|
28085
|
+
'paging_token',
|
28086
|
+
'count'
|
28087
|
+
]
|
28088
|
+
all_params.extend(
|
28089
|
+
[
|
28090
|
+
'async_req',
|
28091
|
+
'_return_http_data_only',
|
28092
|
+
'_preload_content',
|
28093
|
+
'_request_timeout'
|
28094
|
+
]
|
28095
|
+
)
|
28096
|
+
|
28097
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28098
|
+
if key not in all_params:
|
28099
|
+
raise ApiTypeError(
|
28100
|
+
"Got an unexpected keyword argument '%s'"
|
28101
|
+
" to method list_values_api_v2_tags_values_get" % key
|
28102
|
+
)
|
28103
|
+
local_var_params[key] = val
|
28104
|
+
del local_var_params['kwargs']
|
28105
|
+
# verify the required parameter 'key' is set
|
28106
|
+
if self.api_client.client_side_validation and ('key' not in local_var_params or # noqa: E501
|
28107
|
+
local_var_params['key'] is None): # noqa: E501
|
28108
|
+
raise ApiValueError("Missing the required parameter `key` when calling `list_values_api_v2_tags_values_get`") # noqa: E501
|
28109
|
+
|
28110
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
28111
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_values_api_v2_tags_values_get`, must be a value less than or equal to `50`") # noqa: E501
|
28112
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
28113
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_values_api_v2_tags_values_get`, must be a value greater than or equal to `0`") # noqa: E501
|
28114
|
+
collection_formats = {}
|
28115
|
+
|
28116
|
+
path_params = {}
|
28117
|
+
|
28118
|
+
query_params = []
|
28119
|
+
if 'key' in local_var_params and local_var_params['key'] is not None: # noqa: E501
|
28120
|
+
query_params.append(('key', local_var_params['key'])) # noqa: E501
|
28121
|
+
if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
|
28122
|
+
query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
|
28123
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
28124
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
28125
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
28126
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
28127
|
+
|
28128
|
+
header_params = {}
|
28129
|
+
|
28130
|
+
form_params = []
|
28131
|
+
local_var_files = {}
|
28132
|
+
|
28133
|
+
body_params = None
|
28134
|
+
# HTTP header `Accept`
|
28135
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
28136
|
+
['application/json']) # noqa: E501
|
28137
|
+
|
28138
|
+
# Authentication setting
|
28139
|
+
auth_settings = [] # noqa: E501
|
28140
|
+
|
28141
|
+
return self.api_client.call_api(
|
28142
|
+
'/api/v2/tags/values', 'GET',
|
28143
|
+
path_params,
|
28144
|
+
query_params,
|
28145
|
+
header_params,
|
28146
|
+
body=body_params,
|
28147
|
+
post_params=form_params,
|
28148
|
+
files=local_var_files,
|
28149
|
+
response_type='TagvalueListResponse', # noqa: E501
|
28150
|
+
auth_settings=auth_settings,
|
28151
|
+
async_req=local_var_params.get('async_req'),
|
28152
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28153
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
28154
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
28155
|
+
collection_formats=collection_formats)
|
28156
|
+
|
28157
|
+
def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
|
28158
|
+
"""List Workspace Templates # noqa: E501
|
28159
|
+
|
28160
|
+
Lists all workspace templates # noqa: E501
|
28161
|
+
This method makes a synchronous HTTP request by default. To make an
|
28162
|
+
asynchronous HTTP request, please pass async_req=True
|
28163
|
+
>>> thread = api.list_workspace_templates_api_v2_experimental_workspaces_templates_get(async_req=True)
|
28164
|
+
>>> result = thread.get()
|
28165
|
+
|
28166
|
+
:param async_req bool: execute request asynchronously
|
28167
|
+
:param list[str] oa_group_names: Search for workspaces that belong to the provided group name
|
28168
|
+
:param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
|
28169
|
+
:param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
|
28170
|
+
:param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
|
28171
|
+
:param bool for_gallery: Filters the list to show the ones expected for gallery section
|
28172
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28173
|
+
be returned without reading/decoding response
|
28174
|
+
data. Default is True.
|
28175
|
+
:param _request_timeout: timeout setting for this request. If one
|
28176
|
+
number provided, it will be total request
|
28177
|
+
timeout. It can also be a pair (tuple) of
|
28178
|
+
(connection, read) timeouts.
|
28179
|
+
:return: GlobalworkspacetemplateListResponse
|
28180
|
+
If the method is called asynchronously,
|
28181
|
+
returns the request thread.
|
28182
|
+
"""
|
28183
|
+
kwargs['_return_http_data_only'] = True
|
28184
|
+
return self.list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(**kwargs) # noqa: E501
|
28185
|
+
|
28186
|
+
def list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(self, **kwargs): # noqa: E501
|
28187
|
+
"""List Workspace Templates # noqa: E501
|
28188
|
+
|
28189
|
+
Lists all workspace templates # noqa: E501
|
28190
|
+
This method makes a synchronous HTTP request by default. To make an
|
28191
|
+
asynchronous HTTP request, please pass async_req=True
|
28192
|
+
>>> thread = api.list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(async_req=True)
|
28193
|
+
>>> result = thread.get()
|
28194
|
+
|
28195
|
+
:param async_req bool: execute request asynchronously
|
28196
|
+
:param list[str] oa_group_names: Search for workspaces that belong to the provided group name
|
28197
|
+
:param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
|
28198
|
+
:param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
|
28199
|
+
:param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
|
28200
|
+
:param bool for_gallery: Filters the list to show the ones expected for gallery section
|
28201
|
+
:param _return_http_data_only: response data without head status code
|
28202
|
+
and headers
|
28203
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28204
|
+
be returned without reading/decoding response
|
28205
|
+
data. Default is True.
|
28206
|
+
:param _request_timeout: timeout setting for this request. If one
|
28207
|
+
number provided, it will be total request
|
28208
|
+
timeout. It can also be a pair (tuple) of
|
28209
|
+
(connection, read) timeouts.
|
28210
|
+
:return: tuple(GlobalworkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
|
28211
|
+
If the method is called asynchronously,
|
28212
|
+
returns the request thread.
|
28213
|
+
"""
|
28214
|
+
|
28215
|
+
local_var_params = locals()
|
28216
|
+
|
28217
|
+
all_params = [
|
28218
|
+
'oa_group_names',
|
28219
|
+
'for_private_endpoints_homepage',
|
28220
|
+
'for_fine_tuning',
|
28221
|
+
'for_ai_apps_section',
|
28222
|
+
'for_gallery'
|
28223
|
+
]
|
28224
|
+
all_params.extend(
|
28225
|
+
[
|
28226
|
+
'async_req',
|
28227
|
+
'_return_http_data_only',
|
28228
|
+
'_preload_content',
|
28229
|
+
'_request_timeout'
|
28230
|
+
]
|
28231
|
+
)
|
28232
|
+
|
28233
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28234
|
+
if key not in all_params:
|
28235
|
+
raise ApiTypeError(
|
28236
|
+
"Got an unexpected keyword argument '%s'"
|
28237
|
+
" to method list_workspace_templates_api_v2_experimental_workspaces_templates_get" % key
|
28238
|
+
)
|
28239
|
+
local_var_params[key] = val
|
28240
|
+
del local_var_params['kwargs']
|
28241
|
+
|
28242
|
+
collection_formats = {}
|
28243
|
+
|
28244
|
+
path_params = {}
|
28245
|
+
|
28246
|
+
query_params = []
|
28247
|
+
if 'oa_group_names' in local_var_params and local_var_params['oa_group_names'] is not None: # noqa: E501
|
28248
|
+
query_params.append(('oa_group_names', local_var_params['oa_group_names'])) # noqa: E501
|
28249
|
+
collection_formats['oa_group_names'] = 'multi' # noqa: E501
|
28250
|
+
if 'for_private_endpoints_homepage' in local_var_params and local_var_params['for_private_endpoints_homepage'] is not None: # noqa: E501
|
28251
|
+
query_params.append(('for_private_endpoints_homepage', local_var_params['for_private_endpoints_homepage'])) # noqa: E501
|
28252
|
+
if 'for_fine_tuning' in local_var_params and local_var_params['for_fine_tuning'] is not None: # noqa: E501
|
28253
|
+
query_params.append(('for_fine_tuning', local_var_params['for_fine_tuning'])) # noqa: E501
|
28254
|
+
if 'for_ai_apps_section' in local_var_params and local_var_params['for_ai_apps_section'] is not None: # noqa: E501
|
28255
|
+
query_params.append(('for_ai_apps_section', local_var_params['for_ai_apps_section'])) # noqa: E501
|
28256
|
+
if 'for_gallery' in local_var_params and local_var_params['for_gallery'] is not None: # noqa: E501
|
28257
|
+
query_params.append(('for_gallery', local_var_params['for_gallery'])) # noqa: E501
|
28258
|
+
|
28259
|
+
header_params = {}
|
28260
|
+
|
28261
|
+
form_params = []
|
28262
|
+
local_var_files = {}
|
28263
|
+
|
28264
|
+
body_params = None
|
28265
|
+
# HTTP header `Accept`
|
28266
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
28267
|
+
['application/json']) # noqa: E501
|
28268
|
+
|
28269
|
+
# Authentication setting
|
28270
|
+
auth_settings = [] # noqa: E501
|
28271
|
+
|
28272
|
+
return self.api_client.call_api(
|
28273
|
+
'/api/v2/experimental_workspaces/templates', 'GET',
|
28274
|
+
path_params,
|
28275
|
+
query_params,
|
28276
|
+
header_params,
|
28277
|
+
body=body_params,
|
28278
|
+
post_params=form_params,
|
28279
|
+
files=local_var_files,
|
28280
|
+
response_type='GlobalworkspacetemplateListResponse', # noqa: E501
|
28281
|
+
auth_settings=auth_settings,
|
28282
|
+
async_req=local_var_params.get('async_req'),
|
28283
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28284
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
28285
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
28286
|
+
collection_formats=collection_formats)
|
28287
|
+
|
28288
|
+
def list_workspaces_api_v2_experimental_workspaces_get(self, **kwargs): # noqa: E501
|
28289
|
+
"""List Workspaces # noqa: E501
|
28290
|
+
|
28291
|
+
Lists all Workspace the user has access to # noqa: E501
|
28292
|
+
This method makes a synchronous HTTP request by default. To make an
|
28293
|
+
asynchronous HTTP request, please pass async_req=True
|
28294
|
+
>>> thread = api.list_workspaces_api_v2_experimental_workspaces_get(async_req=True)
|
28295
|
+
>>> result = thread.get()
|
28296
|
+
|
28297
|
+
:param async_req bool: execute request asynchronously
|
28298
|
+
:param str name: Search for workspace with a name that equals the provided value
|
28299
|
+
:param str name_contains: Search for workspace with a name that contains the provided value
|
28300
|
+
:param str creator_id: List workspaces created by a given user
|
28301
|
+
:param str project_id: Search for workspace with project_id
|
28302
|
+
:param str cloud_id: Search for workspace with cloud_id
|
28303
|
+
:param list[SessionState] state_filter: A list of session states to filter by
|
28304
|
+
:param list[str] tag_filter: Repeatable filter of tags in the form key:value. Can be specified multiple times. Values with the same key are ORed; keys are ANDed.
|
28305
|
+
:param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
|
28306
|
+
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
28307
|
+
:param str paging_token:
|
28308
|
+
:param int count:
|
28309
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28310
|
+
be returned without reading/decoding response
|
28311
|
+
data. Default is True.
|
28312
|
+
:param _request_timeout: timeout setting for this request. If one
|
28313
|
+
number provided, it will be total request
|
28314
|
+
timeout. It can also be a pair (tuple) of
|
28315
|
+
(connection, read) timeouts.
|
28316
|
+
:return: ExperimentalworkspaceListResponse
|
28317
|
+
If the method is called asynchronously,
|
28318
|
+
returns the request thread.
|
28319
|
+
"""
|
28320
|
+
kwargs['_return_http_data_only'] = True
|
28321
|
+
return self.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(**kwargs) # noqa: E501
|
28322
|
+
|
28323
|
+
def list_workspaces_api_v2_experimental_workspaces_get_with_http_info(self, **kwargs): # noqa: E501
|
28324
|
+
"""List Workspaces # noqa: E501
|
28325
|
+
|
28326
|
+
Lists all Workspace the user has access to # noqa: E501
|
28327
|
+
This method makes a synchronous HTTP request by default. To make an
|
28328
|
+
asynchronous HTTP request, please pass async_req=True
|
28329
|
+
>>> thread = api.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(async_req=True)
|
28330
|
+
>>> result = thread.get()
|
28331
|
+
|
28332
|
+
:param async_req bool: execute request asynchronously
|
28333
|
+
:param str name: Search for workspace with a name that equals the provided value
|
28334
|
+
:param str name_contains: Search for workspace with a name that contains the provided value
|
28335
|
+
:param str creator_id: List workspaces created by a given user
|
28336
|
+
:param str project_id: Search for workspace with project_id
|
28337
|
+
:param str cloud_id: Search for workspace with cloud_id
|
28338
|
+
:param list[SessionState] state_filter: A list of session states to filter by
|
28339
|
+
:param list[str] tag_filter: Repeatable filter of tags in the form key:value. Can be specified multiple times. Values with the same key are ORed; keys are ANDed.
|
28340
|
+
:param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
|
28341
|
+
:param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
|
28342
|
+
:param str paging_token:
|
28343
|
+
:param int count:
|
28344
|
+
:param _return_http_data_only: response data without head status code
|
28345
|
+
and headers
|
28346
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28347
|
+
be returned without reading/decoding response
|
28348
|
+
data. Default is True.
|
28349
|
+
:param _request_timeout: timeout setting for this request. If one
|
28350
|
+
number provided, it will be total request
|
28351
|
+
timeout. It can also be a pair (tuple) of
|
28352
|
+
(connection, read) timeouts.
|
28353
|
+
:return: tuple(ExperimentalworkspaceListResponse, status_code(int), headers(HTTPHeaderDict))
|
28354
|
+
If the method is called asynchronously,
|
28355
|
+
returns the request thread.
|
28356
|
+
"""
|
28357
|
+
|
28358
|
+
local_var_params = locals()
|
28359
|
+
|
28360
|
+
all_params = [
|
28361
|
+
'name',
|
28362
|
+
'name_contains',
|
28363
|
+
'creator_id',
|
28364
|
+
'project_id',
|
28365
|
+
'cloud_id',
|
28366
|
+
'state_filter',
|
28367
|
+
'tag_filter',
|
28368
|
+
'sort_field',
|
28369
|
+
'sort_order',
|
28370
|
+
'paging_token',
|
28371
|
+
'count'
|
28372
|
+
]
|
28373
|
+
all_params.extend(
|
28374
|
+
[
|
28375
|
+
'async_req',
|
28376
|
+
'_return_http_data_only',
|
28377
|
+
'_preload_content',
|
28378
|
+
'_request_timeout'
|
28379
|
+
]
|
28380
|
+
)
|
28381
|
+
|
28382
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28383
|
+
if key not in all_params:
|
28384
|
+
raise ApiTypeError(
|
28385
|
+
"Got an unexpected keyword argument '%s'"
|
28386
|
+
" to method list_workspaces_api_v2_experimental_workspaces_get" % key
|
28387
|
+
)
|
28388
|
+
local_var_params[key] = val
|
28389
|
+
del local_var_params['kwargs']
|
28390
|
+
|
28391
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
28392
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_workspaces_api_v2_experimental_workspaces_get`, must be a value less than or equal to `50`") # noqa: E501
|
28393
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
28394
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `list_workspaces_api_v2_experimental_workspaces_get`, must be a value greater than or equal to `0`") # noqa: E501
|
28395
|
+
collection_formats = {}
|
28396
|
+
|
28397
|
+
path_params = {}
|
28398
|
+
|
28399
|
+
query_params = []
|
28400
|
+
if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
|
28401
|
+
query_params.append(('name', local_var_params['name'])) # noqa: E501
|
28402
|
+
if 'name_contains' in local_var_params and local_var_params['name_contains'] is not None: # noqa: E501
|
28403
|
+
query_params.append(('name_contains', local_var_params['name_contains'])) # noqa: E501
|
28404
|
+
if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
|
28405
|
+
query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
|
28406
|
+
if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
|
28407
|
+
query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
|
28408
|
+
if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
|
28409
|
+
query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
|
28410
|
+
if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
|
28411
|
+
query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
|
28412
|
+
collection_formats['state_filter'] = 'multi' # noqa: E501
|
28413
|
+
if 'tag_filter' in local_var_params and local_var_params['tag_filter'] is not None: # noqa: E501
|
28414
|
+
query_params.append(('tag_filter', local_var_params['tag_filter'])) # noqa: E501
|
28415
|
+
collection_formats['tag_filter'] = 'multi' # noqa: E501
|
28416
|
+
if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
|
28417
|
+
query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
|
28418
|
+
if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
|
28419
|
+
query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
|
28420
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
28421
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
28422
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
28423
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
28424
|
+
|
28425
|
+
header_params = {}
|
28426
|
+
|
28427
|
+
form_params = []
|
28428
|
+
local_var_files = {}
|
28429
|
+
|
28430
|
+
body_params = None
|
28431
|
+
# HTTP header `Accept`
|
28432
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
28433
|
+
['application/json']) # noqa: E501
|
28434
|
+
|
28435
|
+
# Authentication setting
|
28436
|
+
auth_settings = [] # noqa: E501
|
28437
|
+
|
28438
|
+
return self.api_client.call_api(
|
28439
|
+
'/api/v2/experimental_workspaces/', 'GET',
|
28440
|
+
path_params,
|
28441
|
+
query_params,
|
28442
|
+
header_params,
|
28443
|
+
body=body_params,
|
28444
|
+
post_params=form_params,
|
28445
|
+
files=local_var_files,
|
28446
|
+
response_type='ExperimentalworkspaceListResponse', # noqa: E501
|
28447
|
+
auth_settings=auth_settings,
|
28448
|
+
async_req=local_var_params.get('async_req'),
|
28449
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
28450
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
28451
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
28452
|
+
collection_formats=collection_formats)
|
28453
|
+
|
28454
|
+
def login_user_api_v2_users_login_post(self, login_user_params, **kwargs): # noqa: E501
|
28455
|
+
"""Login User # noqa: E501
|
28456
|
+
|
28457
|
+
This method makes a synchronous HTTP request by default. To make an
|
28458
|
+
asynchronous HTTP request, please pass async_req=True
|
28459
|
+
>>> thread = api.login_user_api_v2_users_login_post(login_user_params, async_req=True)
|
28460
|
+
>>> result = thread.get()
|
28461
|
+
|
28462
|
+
:param async_req bool: execute request asynchronously
|
28463
|
+
:param LoginUserParams login_user_params: (required)
|
28464
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
28465
|
+
be returned without reading/decoding response
|
28466
|
+
data. Default is True.
|
28467
|
+
:param _request_timeout: timeout setting for this request. If one
|
28468
|
+
number provided, it will be total request
|
28469
|
+
timeout. It can also be a pair (tuple) of
|
28470
|
+
(connection, read) timeouts.
|
28471
|
+
:return: None
|
28472
|
+
If the method is called asynchronously,
|
28473
|
+
returns the request thread.
|
28474
|
+
"""
|
28475
|
+
kwargs['_return_http_data_only'] = True
|
28476
|
+
return self.login_user_api_v2_users_login_post_with_http_info(login_user_params, **kwargs) # noqa: E501
|
28477
|
+
|
28478
|
+
def login_user_api_v2_users_login_post_with_http_info(self, login_user_params, **kwargs): # noqa: E501
|
28479
|
+
"""Login User # noqa: E501
|
28480
|
+
|
28481
|
+
This method makes a synchronous HTTP request by default. To make an
|
28482
|
+
asynchronous HTTP request, please pass async_req=True
|
28483
|
+
>>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
|
27217
28484
|
>>> result = thread.get()
|
27218
28485
|
|
27219
28486
|
:param async_req bool: execute request asynchronously
|
@@ -27700,7 +28967,125 @@ class DefaultApi(object):
|
|
27700
28967
|
number provided, it will be total request
|
27701
28968
|
timeout. It can also be a pair (tuple) of
|
27702
28969
|
(connection, read) timeouts.
|
27703
|
-
:return: None
|
28970
|
+
:return: None
|
28971
|
+
If the method is called asynchronously,
|
28972
|
+
returns the request thread.
|
28973
|
+
"""
|
28974
|
+
|
28975
|
+
local_var_params = locals()
|
28976
|
+
|
28977
|
+
all_params = [
|
28978
|
+
'create_analytics_event'
|
28979
|
+
]
|
28980
|
+
all_params.extend(
|
28981
|
+
[
|
28982
|
+
'async_req',
|
28983
|
+
'_return_http_data_only',
|
28984
|
+
'_preload_content',
|
28985
|
+
'_request_timeout'
|
28986
|
+
]
|
28987
|
+
)
|
28988
|
+
|
28989
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
28990
|
+
if key not in all_params:
|
28991
|
+
raise ApiTypeError(
|
28992
|
+
"Got an unexpected keyword argument '%s'"
|
28993
|
+
" to method produce_analytics_event_api_v2_analytics_post" % key
|
28994
|
+
)
|
28995
|
+
local_var_params[key] = val
|
28996
|
+
del local_var_params['kwargs']
|
28997
|
+
# verify the required parameter 'create_analytics_event' is set
|
28998
|
+
if self.api_client.client_side_validation and ('create_analytics_event' not in local_var_params or # noqa: E501
|
28999
|
+
local_var_params['create_analytics_event'] is None): # noqa: E501
|
29000
|
+
raise ApiValueError("Missing the required parameter `create_analytics_event` when calling `produce_analytics_event_api_v2_analytics_post`") # noqa: E501
|
29001
|
+
|
29002
|
+
collection_formats = {}
|
29003
|
+
|
29004
|
+
path_params = {}
|
29005
|
+
|
29006
|
+
query_params = []
|
29007
|
+
|
29008
|
+
header_params = {}
|
29009
|
+
|
29010
|
+
form_params = []
|
29011
|
+
local_var_files = {}
|
29012
|
+
|
29013
|
+
body_params = None
|
29014
|
+
if 'create_analytics_event' in local_var_params:
|
29015
|
+
body_params = local_var_params['create_analytics_event']
|
29016
|
+
# HTTP header `Accept`
|
29017
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
29018
|
+
['application/json']) # noqa: E501
|
29019
|
+
|
29020
|
+
# HTTP header `Content-Type`
|
29021
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
29022
|
+
['application/json']) # noqa: E501
|
29023
|
+
|
29024
|
+
# Authentication setting
|
29025
|
+
auth_settings = [] # noqa: E501
|
29026
|
+
|
29027
|
+
return self.api_client.call_api(
|
29028
|
+
'/api/v2/analytics/', 'POST',
|
29029
|
+
path_params,
|
29030
|
+
query_params,
|
29031
|
+
header_params,
|
29032
|
+
body=body_params,
|
29033
|
+
post_params=form_params,
|
29034
|
+
files=local_var_files,
|
29035
|
+
response_type=None, # noqa: E501
|
29036
|
+
auth_settings=auth_settings,
|
29037
|
+
async_req=local_var_params.get('async_req'),
|
29038
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
29039
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
29040
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
29041
|
+
collection_formats=collection_formats)
|
29042
|
+
|
29043
|
+
def publish_api_v2_streams_publish_post(self, stream_publish_request, **kwargs): # noqa: E501
|
29044
|
+
"""Publish # noqa: E501
|
29045
|
+
|
29046
|
+
This is an internal API used by components that are not exposed to the streaming backend to publish events to a stream. In reality, this is a lightweight Kafka REST Proxy. # noqa: E501
|
29047
|
+
This method makes a synchronous HTTP request by default. To make an
|
29048
|
+
asynchronous HTTP request, please pass async_req=True
|
29049
|
+
>>> thread = api.publish_api_v2_streams_publish_post(stream_publish_request, async_req=True)
|
29050
|
+
>>> result = thread.get()
|
29051
|
+
|
29052
|
+
:param async_req bool: execute request asynchronously
|
29053
|
+
:param StreamPublishRequest stream_publish_request: (required)
|
29054
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
29055
|
+
be returned without reading/decoding response
|
29056
|
+
data. Default is True.
|
29057
|
+
:param _request_timeout: timeout setting for this request. If one
|
29058
|
+
number provided, it will be total request
|
29059
|
+
timeout. It can also be a pair (tuple) of
|
29060
|
+
(connection, read) timeouts.
|
29061
|
+
:return: object
|
29062
|
+
If the method is called asynchronously,
|
29063
|
+
returns the request thread.
|
29064
|
+
"""
|
29065
|
+
kwargs['_return_http_data_only'] = True
|
29066
|
+
return self.publish_api_v2_streams_publish_post_with_http_info(stream_publish_request, **kwargs) # noqa: E501
|
29067
|
+
|
29068
|
+
def publish_api_v2_streams_publish_post_with_http_info(self, stream_publish_request, **kwargs): # noqa: E501
|
29069
|
+
"""Publish # noqa: E501
|
29070
|
+
|
29071
|
+
This is an internal API used by components that are not exposed to the streaming backend to publish events to a stream. In reality, this is a lightweight Kafka REST Proxy. # noqa: E501
|
29072
|
+
This method makes a synchronous HTTP request by default. To make an
|
29073
|
+
asynchronous HTTP request, please pass async_req=True
|
29074
|
+
>>> thread = api.publish_api_v2_streams_publish_post_with_http_info(stream_publish_request, async_req=True)
|
29075
|
+
>>> result = thread.get()
|
29076
|
+
|
29077
|
+
:param async_req bool: execute request asynchronously
|
29078
|
+
:param StreamPublishRequest stream_publish_request: (required)
|
29079
|
+
:param _return_http_data_only: response data without head status code
|
29080
|
+
and headers
|
29081
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
29082
|
+
be returned without reading/decoding response
|
29083
|
+
data. Default is True.
|
29084
|
+
:param _request_timeout: timeout setting for this request. If one
|
29085
|
+
number provided, it will be total request
|
29086
|
+
timeout. It can also be a pair (tuple) of
|
29087
|
+
(connection, read) timeouts.
|
29088
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
27704
29089
|
If the method is called asynchronously,
|
27705
29090
|
returns the request thread.
|
27706
29091
|
"""
|
@@ -27708,7 +29093,7 @@ class DefaultApi(object):
|
|
27708
29093
|
local_var_params = locals()
|
27709
29094
|
|
27710
29095
|
all_params = [
|
27711
|
-
'
|
29096
|
+
'stream_publish_request'
|
27712
29097
|
]
|
27713
29098
|
all_params.extend(
|
27714
29099
|
[
|
@@ -27723,14 +29108,14 @@ class DefaultApi(object):
|
|
27723
29108
|
if key not in all_params:
|
27724
29109
|
raise ApiTypeError(
|
27725
29110
|
"Got an unexpected keyword argument '%s'"
|
27726
|
-
" to method
|
29111
|
+
" to method publish_api_v2_streams_publish_post" % key
|
27727
29112
|
)
|
27728
29113
|
local_var_params[key] = val
|
27729
29114
|
del local_var_params['kwargs']
|
27730
|
-
# verify the required parameter '
|
27731
|
-
if self.api_client.client_side_validation and ('
|
27732
|
-
local_var_params['
|
27733
|
-
raise ApiValueError("Missing the required parameter `
|
29115
|
+
# verify the required parameter 'stream_publish_request' is set
|
29116
|
+
if self.api_client.client_side_validation and ('stream_publish_request' not in local_var_params or # noqa: E501
|
29117
|
+
local_var_params['stream_publish_request'] is None): # noqa: E501
|
29118
|
+
raise ApiValueError("Missing the required parameter `stream_publish_request` when calling `publish_api_v2_streams_publish_post`") # noqa: E501
|
27734
29119
|
|
27735
29120
|
collection_formats = {}
|
27736
29121
|
|
@@ -27744,8 +29129,8 @@ class DefaultApi(object):
|
|
27744
29129
|
local_var_files = {}
|
27745
29130
|
|
27746
29131
|
body_params = None
|
27747
|
-
if '
|
27748
|
-
body_params = local_var_params['
|
29132
|
+
if 'stream_publish_request' in local_var_params:
|
29133
|
+
body_params = local_var_params['stream_publish_request']
|
27749
29134
|
# HTTP header `Accept`
|
27750
29135
|
header_params['Accept'] = self.api_client.select_header_accept(
|
27751
29136
|
['application/json']) # noqa: E501
|
@@ -27758,14 +29143,14 @@ class DefaultApi(object):
|
|
27758
29143
|
auth_settings = [] # noqa: E501
|
27759
29144
|
|
27760
29145
|
return self.api_client.call_api(
|
27761
|
-
'/api/v2/
|
29146
|
+
'/api/v2/streams/publish', 'POST',
|
27762
29147
|
path_params,
|
27763
29148
|
query_params,
|
27764
29149
|
header_params,
|
27765
29150
|
body=body_params,
|
27766
29151
|
post_params=form_params,
|
27767
29152
|
files=local_var_files,
|
27768
|
-
response_type=
|
29153
|
+
response_type='object', # noqa: E501
|
27769
29154
|
auth_settings=auth_settings,
|
27770
29155
|
async_req=local_var_params.get('async_req'),
|
27771
29156
|
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
@@ -27773,17 +29158,18 @@ class DefaultApi(object):
|
|
27773
29158
|
_request_timeout=local_var_params.get('_request_timeout'),
|
27774
29159
|
collection_formats=collection_formats)
|
27775
29160
|
|
27776
|
-
def
|
27777
|
-
"""Publish # noqa: E501
|
29161
|
+
def publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post(self, template_id, version_id, **kwargs): # noqa: E501
|
29162
|
+
"""Publish Version # noqa: E501
|
27778
29163
|
|
27779
|
-
|
29164
|
+
Publish a version as the active version for a template # noqa: E501
|
27780
29165
|
This method makes a synchronous HTTP request by default. To make an
|
27781
29166
|
asynchronous HTTP request, please pass async_req=True
|
27782
|
-
>>> thread = api.
|
29167
|
+
>>> thread = api.publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post(template_id, version_id, async_req=True)
|
27783
29168
|
>>> result = thread.get()
|
27784
29169
|
|
27785
29170
|
:param async_req bool: execute request asynchronously
|
27786
|
-
:param
|
29171
|
+
:param str template_id: (required)
|
29172
|
+
:param str version_id: (required)
|
27787
29173
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
27788
29174
|
be returned without reading/decoding response
|
27789
29175
|
data. Default is True.
|
@@ -27796,19 +29182,20 @@ class DefaultApi(object):
|
|
27796
29182
|
returns the request thread.
|
27797
29183
|
"""
|
27798
29184
|
kwargs['_return_http_data_only'] = True
|
27799
|
-
return self.
|
29185
|
+
return self.publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post_with_http_info(template_id, version_id, **kwargs) # noqa: E501
|
27800
29186
|
|
27801
|
-
def
|
27802
|
-
"""Publish # noqa: E501
|
29187
|
+
def publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post_with_http_info(self, template_id, version_id, **kwargs): # noqa: E501
|
29188
|
+
"""Publish Version # noqa: E501
|
27803
29189
|
|
27804
|
-
|
29190
|
+
Publish a version as the active version for a template # noqa: E501
|
27805
29191
|
This method makes a synchronous HTTP request by default. To make an
|
27806
29192
|
asynchronous HTTP request, please pass async_req=True
|
27807
|
-
>>> thread = api.
|
29193
|
+
>>> thread = api.publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post_with_http_info(template_id, version_id, async_req=True)
|
27808
29194
|
>>> result = thread.get()
|
27809
29195
|
|
27810
29196
|
:param async_req bool: execute request asynchronously
|
27811
|
-
:param
|
29197
|
+
:param str template_id: (required)
|
29198
|
+
:param str version_id: (required)
|
27812
29199
|
:param _return_http_data_only: response data without head status code
|
27813
29200
|
and headers
|
27814
29201
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
@@ -27826,7 +29213,8 @@ class DefaultApi(object):
|
|
27826
29213
|
local_var_params = locals()
|
27827
29214
|
|
27828
29215
|
all_params = [
|
27829
|
-
'
|
29216
|
+
'template_id',
|
29217
|
+
'version_id'
|
27830
29218
|
]
|
27831
29219
|
all_params.extend(
|
27832
29220
|
[
|
@@ -27841,18 +29229,26 @@ class DefaultApi(object):
|
|
27841
29229
|
if key not in all_params:
|
27842
29230
|
raise ApiTypeError(
|
27843
29231
|
"Got an unexpected keyword argument '%s'"
|
27844
|
-
" to method
|
29232
|
+
" to method publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post" % key
|
27845
29233
|
)
|
27846
29234
|
local_var_params[key] = val
|
27847
29235
|
del local_var_params['kwargs']
|
27848
|
-
# verify the required parameter '
|
27849
|
-
if self.api_client.client_side_validation and ('
|
27850
|
-
local_var_params['
|
27851
|
-
raise ApiValueError("Missing the required parameter `
|
29236
|
+
# verify the required parameter 'template_id' is set
|
29237
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
29238
|
+
local_var_params['template_id'] is None): # noqa: E501
|
29239
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post`") # noqa: E501
|
29240
|
+
# verify the required parameter 'version_id' is set
|
29241
|
+
if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501
|
29242
|
+
local_var_params['version_id'] is None): # noqa: E501
|
29243
|
+
raise ApiValueError("Missing the required parameter `version_id` when calling `publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post`") # noqa: E501
|
27852
29244
|
|
27853
29245
|
collection_formats = {}
|
27854
29246
|
|
27855
29247
|
path_params = {}
|
29248
|
+
if 'template_id' in local_var_params:
|
29249
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
29250
|
+
if 'version_id' in local_var_params:
|
29251
|
+
path_params['version_id'] = local_var_params['version_id'] # noqa: E501
|
27856
29252
|
|
27857
29253
|
query_params = []
|
27858
29254
|
|
@@ -27862,21 +29258,15 @@ class DefaultApi(object):
|
|
27862
29258
|
local_var_files = {}
|
27863
29259
|
|
27864
29260
|
body_params = None
|
27865
|
-
if 'stream_publish_request' in local_var_params:
|
27866
|
-
body_params = local_var_params['stream_publish_request']
|
27867
29261
|
# HTTP header `Accept`
|
27868
29262
|
header_params['Accept'] = self.api_client.select_header_accept(
|
27869
29263
|
['application/json']) # noqa: E501
|
27870
29264
|
|
27871
|
-
# HTTP header `Content-Type`
|
27872
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
27873
|
-
['application/json']) # noqa: E501
|
27874
|
-
|
27875
29265
|
# Authentication setting
|
27876
29266
|
auth_settings = [] # noqa: E501
|
27877
29267
|
|
27878
29268
|
return self.api_client.call_api(
|
27879
|
-
'/api/v2/
|
29269
|
+
'/api/v2/workspace_templates/{template_id}/versions/{version_id}/publish', 'POST',
|
27880
29270
|
path_params,
|
27881
29271
|
query_params,
|
27882
29272
|
header_params,
|
@@ -32124,6 +33514,138 @@ class DefaultApi(object):
|
|
32124
33514
|
_request_timeout=local_var_params.get('_request_timeout'),
|
32125
33515
|
collection_formats=collection_formats)
|
32126
33516
|
|
33517
|
+
def search_tags_api_v2_tags_get(self, **kwargs): # noqa: E501
|
33518
|
+
"""Search Tags # noqa: E501
|
33519
|
+
|
33520
|
+
This method makes a synchronous HTTP request by default. To make an
|
33521
|
+
asynchronous HTTP request, please pass async_req=True
|
33522
|
+
>>> thread = api.search_tags_api_v2_tags_get(async_req=True)
|
33523
|
+
>>> result = thread.get()
|
33524
|
+
|
33525
|
+
:param async_req bool: execute request asynchronously
|
33526
|
+
:param str substring:
|
33527
|
+
:param TagSearchIn search_in:
|
33528
|
+
:param ResourceTagResourceType resource_type:
|
33529
|
+
:param str paging_token:
|
33530
|
+
:param int count:
|
33531
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33532
|
+
be returned without reading/decoding response
|
33533
|
+
data. Default is True.
|
33534
|
+
:param _request_timeout: timeout setting for this request. If one
|
33535
|
+
number provided, it will be total request
|
33536
|
+
timeout. It can also be a pair (tuple) of
|
33537
|
+
(connection, read) timeouts.
|
33538
|
+
:return: TagkeyvalueListResponse
|
33539
|
+
If the method is called asynchronously,
|
33540
|
+
returns the request thread.
|
33541
|
+
"""
|
33542
|
+
kwargs['_return_http_data_only'] = True
|
33543
|
+
return self.search_tags_api_v2_tags_get_with_http_info(**kwargs) # noqa: E501
|
33544
|
+
|
33545
|
+
def search_tags_api_v2_tags_get_with_http_info(self, **kwargs): # noqa: E501
|
33546
|
+
"""Search Tags # noqa: E501
|
33547
|
+
|
33548
|
+
This method makes a synchronous HTTP request by default. To make an
|
33549
|
+
asynchronous HTTP request, please pass async_req=True
|
33550
|
+
>>> thread = api.search_tags_api_v2_tags_get_with_http_info(async_req=True)
|
33551
|
+
>>> result = thread.get()
|
33552
|
+
|
33553
|
+
:param async_req bool: execute request asynchronously
|
33554
|
+
:param str substring:
|
33555
|
+
:param TagSearchIn search_in:
|
33556
|
+
:param ResourceTagResourceType resource_type:
|
33557
|
+
:param str paging_token:
|
33558
|
+
:param int count:
|
33559
|
+
:param _return_http_data_only: response data without head status code
|
33560
|
+
and headers
|
33561
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
33562
|
+
be returned without reading/decoding response
|
33563
|
+
data. Default is True.
|
33564
|
+
:param _request_timeout: timeout setting for this request. If one
|
33565
|
+
number provided, it will be total request
|
33566
|
+
timeout. It can also be a pair (tuple) of
|
33567
|
+
(connection, read) timeouts.
|
33568
|
+
:return: tuple(TagkeyvalueListResponse, status_code(int), headers(HTTPHeaderDict))
|
33569
|
+
If the method is called asynchronously,
|
33570
|
+
returns the request thread.
|
33571
|
+
"""
|
33572
|
+
|
33573
|
+
local_var_params = locals()
|
33574
|
+
|
33575
|
+
all_params = [
|
33576
|
+
'substring',
|
33577
|
+
'search_in',
|
33578
|
+
'resource_type',
|
33579
|
+
'paging_token',
|
33580
|
+
'count'
|
33581
|
+
]
|
33582
|
+
all_params.extend(
|
33583
|
+
[
|
33584
|
+
'async_req',
|
33585
|
+
'_return_http_data_only',
|
33586
|
+
'_preload_content',
|
33587
|
+
'_request_timeout'
|
33588
|
+
]
|
33589
|
+
)
|
33590
|
+
|
33591
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
33592
|
+
if key not in all_params:
|
33593
|
+
raise ApiTypeError(
|
33594
|
+
"Got an unexpected keyword argument '%s'"
|
33595
|
+
" to method search_tags_api_v2_tags_get" % key
|
33596
|
+
)
|
33597
|
+
local_var_params[key] = val
|
33598
|
+
del local_var_params['kwargs']
|
33599
|
+
|
33600
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
33601
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `search_tags_api_v2_tags_get`, must be a value less than or equal to `50`") # noqa: E501
|
33602
|
+
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
33603
|
+
raise ApiValueError("Invalid value for parameter `count` when calling `search_tags_api_v2_tags_get`, must be a value greater than or equal to `0`") # noqa: E501
|
33604
|
+
collection_formats = {}
|
33605
|
+
|
33606
|
+
path_params = {}
|
33607
|
+
|
33608
|
+
query_params = []
|
33609
|
+
if 'substring' in local_var_params and local_var_params['substring'] is not None: # noqa: E501
|
33610
|
+
query_params.append(('substring', local_var_params['substring'])) # noqa: E501
|
33611
|
+
if 'search_in' in local_var_params and local_var_params['search_in'] is not None: # noqa: E501
|
33612
|
+
query_params.append(('search_in', local_var_params['search_in'])) # noqa: E501
|
33613
|
+
if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
|
33614
|
+
query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
|
33615
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
33616
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
33617
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
33618
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
33619
|
+
|
33620
|
+
header_params = {}
|
33621
|
+
|
33622
|
+
form_params = []
|
33623
|
+
local_var_files = {}
|
33624
|
+
|
33625
|
+
body_params = None
|
33626
|
+
# HTTP header `Accept`
|
33627
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
33628
|
+
['application/json']) # noqa: E501
|
33629
|
+
|
33630
|
+
# Authentication setting
|
33631
|
+
auth_settings = [] # noqa: E501
|
33632
|
+
|
33633
|
+
return self.api_client.call_api(
|
33634
|
+
'/api/v2/tags/', 'GET',
|
33635
|
+
path_params,
|
33636
|
+
query_params,
|
33637
|
+
header_params,
|
33638
|
+
body=body_params,
|
33639
|
+
post_params=form_params,
|
33640
|
+
files=local_var_files,
|
33641
|
+
response_type='TagkeyvalueListResponse', # noqa: E501
|
33642
|
+
auth_settings=auth_settings,
|
33643
|
+
async_req=local_var_params.get('async_req'),
|
33644
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
33645
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
33646
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
33647
|
+
collection_formats=collection_formats)
|
33648
|
+
|
32127
33649
|
def set_resource_quota_status_api_v2_resource_quotas_resource_quota_id_status_patch(self, resource_quota_id, resource_quota_status, **kwargs): # noqa: E501
|
32128
33650
|
"""Set Resource Quota Status # noqa: E501
|
32129
33651
|
|
@@ -36528,6 +38050,122 @@ class DefaultApi(object):
|
|
36528
38050
|
_request_timeout=local_var_params.get('_request_timeout'),
|
36529
38051
|
collection_formats=collection_formats)
|
36530
38052
|
|
38053
|
+
def upsert_resource_tags_api_v2_tags_resource_put(self, upsert_resource_tags_request, **kwargs): # noqa: E501
|
38054
|
+
"""Upsert Resource Tags # noqa: E501
|
38055
|
+
|
38056
|
+
This method makes a synchronous HTTP request by default. To make an
|
38057
|
+
asynchronous HTTP request, please pass async_req=True
|
38058
|
+
>>> thread = api.upsert_resource_tags_api_v2_tags_resource_put(upsert_resource_tags_request, async_req=True)
|
38059
|
+
>>> result = thread.get()
|
38060
|
+
|
38061
|
+
:param async_req bool: execute request asynchronously
|
38062
|
+
:param UpsertResourceTagsRequest upsert_resource_tags_request: (required)
|
38063
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
38064
|
+
be returned without reading/decoding response
|
38065
|
+
data. Default is True.
|
38066
|
+
:param _request_timeout: timeout setting for this request. If one
|
38067
|
+
number provided, it will be total request
|
38068
|
+
timeout. It can also be a pair (tuple) of
|
38069
|
+
(connection, read) timeouts.
|
38070
|
+
:return: object
|
38071
|
+
If the method is called asynchronously,
|
38072
|
+
returns the request thread.
|
38073
|
+
"""
|
38074
|
+
kwargs['_return_http_data_only'] = True
|
38075
|
+
return self.upsert_resource_tags_api_v2_tags_resource_put_with_http_info(upsert_resource_tags_request, **kwargs) # noqa: E501
|
38076
|
+
|
38077
|
+
def upsert_resource_tags_api_v2_tags_resource_put_with_http_info(self, upsert_resource_tags_request, **kwargs): # noqa: E501
|
38078
|
+
"""Upsert Resource Tags # noqa: E501
|
38079
|
+
|
38080
|
+
This method makes a synchronous HTTP request by default. To make an
|
38081
|
+
asynchronous HTTP request, please pass async_req=True
|
38082
|
+
>>> thread = api.upsert_resource_tags_api_v2_tags_resource_put_with_http_info(upsert_resource_tags_request, async_req=True)
|
38083
|
+
>>> result = thread.get()
|
38084
|
+
|
38085
|
+
:param async_req bool: execute request asynchronously
|
38086
|
+
:param UpsertResourceTagsRequest upsert_resource_tags_request: (required)
|
38087
|
+
:param _return_http_data_only: response data without head status code
|
38088
|
+
and headers
|
38089
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
38090
|
+
be returned without reading/decoding response
|
38091
|
+
data. Default is True.
|
38092
|
+
:param _request_timeout: timeout setting for this request. If one
|
38093
|
+
number provided, it will be total request
|
38094
|
+
timeout. It can also be a pair (tuple) of
|
38095
|
+
(connection, read) timeouts.
|
38096
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
38097
|
+
If the method is called asynchronously,
|
38098
|
+
returns the request thread.
|
38099
|
+
"""
|
38100
|
+
|
38101
|
+
local_var_params = locals()
|
38102
|
+
|
38103
|
+
all_params = [
|
38104
|
+
'upsert_resource_tags_request'
|
38105
|
+
]
|
38106
|
+
all_params.extend(
|
38107
|
+
[
|
38108
|
+
'async_req',
|
38109
|
+
'_return_http_data_only',
|
38110
|
+
'_preload_content',
|
38111
|
+
'_request_timeout'
|
38112
|
+
]
|
38113
|
+
)
|
38114
|
+
|
38115
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
38116
|
+
if key not in all_params:
|
38117
|
+
raise ApiTypeError(
|
38118
|
+
"Got an unexpected keyword argument '%s'"
|
38119
|
+
" to method upsert_resource_tags_api_v2_tags_resource_put" % key
|
38120
|
+
)
|
38121
|
+
local_var_params[key] = val
|
38122
|
+
del local_var_params['kwargs']
|
38123
|
+
# verify the required parameter 'upsert_resource_tags_request' is set
|
38124
|
+
if self.api_client.client_side_validation and ('upsert_resource_tags_request' not in local_var_params or # noqa: E501
|
38125
|
+
local_var_params['upsert_resource_tags_request'] is None): # noqa: E501
|
38126
|
+
raise ApiValueError("Missing the required parameter `upsert_resource_tags_request` when calling `upsert_resource_tags_api_v2_tags_resource_put`") # noqa: E501
|
38127
|
+
|
38128
|
+
collection_formats = {}
|
38129
|
+
|
38130
|
+
path_params = {}
|
38131
|
+
|
38132
|
+
query_params = []
|
38133
|
+
|
38134
|
+
header_params = {}
|
38135
|
+
|
38136
|
+
form_params = []
|
38137
|
+
local_var_files = {}
|
38138
|
+
|
38139
|
+
body_params = None
|
38140
|
+
if 'upsert_resource_tags_request' in local_var_params:
|
38141
|
+
body_params = local_var_params['upsert_resource_tags_request']
|
38142
|
+
# HTTP header `Accept`
|
38143
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
38144
|
+
['application/json']) # noqa: E501
|
38145
|
+
|
38146
|
+
# HTTP header `Content-Type`
|
38147
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
38148
|
+
['application/json']) # noqa: E501
|
38149
|
+
|
38150
|
+
# Authentication setting
|
38151
|
+
auth_settings = [] # noqa: E501
|
38152
|
+
|
38153
|
+
return self.api_client.call_api(
|
38154
|
+
'/api/v2/tags/resource', 'PUT',
|
38155
|
+
path_params,
|
38156
|
+
query_params,
|
38157
|
+
header_params,
|
38158
|
+
body=body_params,
|
38159
|
+
post_params=form_params,
|
38160
|
+
files=local_var_files,
|
38161
|
+
response_type='object', # noqa: E501
|
38162
|
+
auth_settings=auth_settings,
|
38163
|
+
async_req=local_var_params.get('async_req'),
|
38164
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
38165
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
38166
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
38167
|
+
collection_formats=collection_formats)
|
38168
|
+
|
36531
38169
|
def upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put(self, write_support_request, **kwargs): # noqa: E501
|
36532
38170
|
"""Upsert Support Request For User Organization # noqa: E501
|
36533
38171
|
|