anyscale 0.26.57__py3-none-any.whl → 0.26.59__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.
Files changed (74) hide show
  1. anyscale/_private/anyscale_client/common.py +1 -1
  2. anyscale/client/README.md +60 -0
  3. anyscale/client/openapi_client/__init__.py +42 -0
  4. anyscale/client/openapi_client/api/default_api.py +2541 -303
  5. anyscale/client/openapi_client/models/__init__.py +42 -0
  6. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  7. anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
  8. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  9. anyscale/client/openapi_client/models/create_internal_production_job.py +31 -3
  10. anyscale/client/openapi_client/models/create_job_queue_requests.py +31 -3
  11. anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
  12. anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
  13. anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
  14. anyscale/client/openapi_client/models/deleted_count.py +121 -0
  15. anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
  16. anyscale/client/openapi_client/models/email_verification_request.py +175 -0
  17. anyscale/client/openapi_client/models/email_verification_response.py +120 -0
  18. anyscale/client/openapi_client/models/emailverificationresponse_response.py +121 -0
  19. anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
  20. anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
  21. anyscale/client/openapi_client/models/job_queues_query.py +31 -3
  22. anyscale/client/openapi_client/models/operator_event.py +256 -0
  23. anyscale/client/openapi_client/models/operator_event_response.py +148 -0
  24. anyscale/client/openapi_client/models/operator_event_type.py +101 -0
  25. anyscale/client/openapi_client/models/published_filter.py +101 -0
  26. anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
  27. anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
  28. anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
  29. anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
  30. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
  31. anyscale/client/openapi_client/models/tag_key.py +121 -0
  32. anyscale/client/openapi_client/models/tag_key_value.py +148 -0
  33. anyscale/client/openapi_client/models/tag_search_in.py +101 -0
  34. anyscale/client/openapi_client/models/tag_value.py +121 -0
  35. anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
  36. anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
  37. anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
  38. anyscale/client/openapi_client/models/task_attempts.py +101 -0
  39. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  40. anyscale/client/openapi_client/models/update_job_queue_request.py +31 -3
  41. anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
  42. anyscale/client/openapi_client/models/use_work_os_response.py +121 -0
  43. anyscale/client/openapi_client/models/useworkosresponse_response.py +121 -0
  44. anyscale/client/openapi_client/models/work_os_authorize_url_response.py +120 -0
  45. anyscale/client/openapi_client/models/workosauthorizeurlresponse_response.py +121 -0
  46. anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
  47. anyscale/client/openapi_client/models/workspace_template.py +343 -204
  48. anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
  49. anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
  50. anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
  51. anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
  52. anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
  53. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
  54. anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
  55. anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
  56. anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
  57. anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
  58. anyscale/commands/cloud_commands.py +15 -3
  59. anyscale/commands/command_examples.py +2 -2
  60. anyscale/controllers/cloud_controller.py +7 -3
  61. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  62. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  63. anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
  64. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
  65. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  66. anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
  67. anyscale/version.py +1 -1
  68. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/METADATA +1 -1
  69. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/RECORD +74 -32
  70. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/WHEEL +0 -0
  71. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/entry_points.txt +0 -0
  72. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/LICENSE +0 -0
  73. {anyscale-0.26.57.dist-info → anyscale-0.26.59.dist-info}/licenses/NOTICE +0 -0
  74. {anyscale-0.26.57.dist-info → anyscale-0.26.59.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 delete_service_api_v2_services_v2_service_id_delete(self, service_id, **kwargs): # noqa: E501
7813
- """Delete Service # noqa: E501
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.delete_service_api_v2_services_v2_service_id_delete(service_id, async_req=True)
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 str service_id: (required)
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: None
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.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, **kwargs) # noqa: E501
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 delete_service_api_v2_services_v2_service_id_delete_with_http_info(self, service_id, **kwargs): # noqa: E501
7838
- """Delete Service # noqa: E501
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.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, async_req=True)
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 str service_id: (required)
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: None
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
- 'service_id'
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 delete_service_api_v2_services_v2_service_id_delete" % key
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 'service_id' is set
7885
- if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
7886
- local_var_params['service_id'] is None): # noqa: E501
7887
- raise ApiValueError("Missing the required parameter `service_id` when calling `delete_service_api_v2_services_v2_service_id_delete`") # noqa: E501
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/services-v2/{service_id}', 'DELETE',
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=None, # noqa: E501
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 delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
7927
- """Delete Workspace # noqa: E501
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 Workspace. # noqa: E501
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.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(workspace_id, async_req=True)
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 workspace_id: ID of the Workspace to delete. (required)
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.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, **kwargs) # noqa: E501
8196
+ return self.delete_service_api_v2_services_v2_service_id_delete_with_http_info(service_id, **kwargs) # noqa: E501
7950
8197
 
7951
- def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(self, workspace_id, **kwargs): # noqa: E501
7952
- """Delete Workspace # noqa: E501
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 Workspace. # noqa: E501
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.delete_workspace_api_v2_experimental_workspaces_workspace_id_delete_with_http_info(workspace_id, async_req=True)
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 workspace_id: ID of the Workspace to delete. (required)
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
- 'workspace_id'
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 delete_workspace_api_v2_experimental_workspaces_workspace_id_delete" % key
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 'workspace_id' is set
7999
- if self.api_client.client_side_validation and ('workspace_id' not in local_var_params or # noqa: E501
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
 
@@ -17289,6 +17650,145 @@ class DefaultApi(object):
17289
17650
  _request_timeout=local_var_params.get('_request_timeout'),
17290
17651
  collection_formats=collection_formats)
17291
17652
 
17653
+ def get_operator_events_api_v2_dataset_runs_operator_events_get(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
17654
+ """Get Operator Events # noqa: E501
17655
+
17656
+ This method makes a synchronous HTTP request by default. To make an
17657
+ asynchronous HTTP request, please pass async_req=True
17658
+ >>> thread = api.get_operator_events_api_v2_dataset_runs_operator_events_get(cluster_id, session_name, dataset_id, operator_id, async_req=True)
17659
+ >>> result = thread.get()
17660
+
17661
+ :param async_req bool: execute request asynchronously
17662
+ :param str cluster_id: (required)
17663
+ :param str session_name: (required)
17664
+ :param str dataset_id: (required)
17665
+ :param str operator_id: (required)
17666
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
17667
+ be returned without reading/decoding response
17668
+ data. Default is True.
17669
+ :param _request_timeout: timeout setting for this request. If one
17670
+ number provided, it will be total request
17671
+ timeout. It can also be a pair (tuple) of
17672
+ (connection, read) timeouts.
17673
+ :return: OperatorEventResponse
17674
+ If the method is called asynchronously,
17675
+ returns the request thread.
17676
+ """
17677
+ kwargs['_return_http_data_only'] = True
17678
+ return self.get_operator_events_api_v2_dataset_runs_operator_events_get_with_http_info(cluster_id, session_name, dataset_id, operator_id, **kwargs) # noqa: E501
17679
+
17680
+ def get_operator_events_api_v2_dataset_runs_operator_events_get_with_http_info(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
17681
+ """Get Operator Events # noqa: E501
17682
+
17683
+ This method makes a synchronous HTTP request by default. To make an
17684
+ asynchronous HTTP request, please pass async_req=True
17685
+ >>> thread = api.get_operator_events_api_v2_dataset_runs_operator_events_get_with_http_info(cluster_id, session_name, dataset_id, operator_id, async_req=True)
17686
+ >>> result = thread.get()
17687
+
17688
+ :param async_req bool: execute request asynchronously
17689
+ :param str cluster_id: (required)
17690
+ :param str session_name: (required)
17691
+ :param str dataset_id: (required)
17692
+ :param str operator_id: (required)
17693
+ :param _return_http_data_only: response data without head status code
17694
+ and headers
17695
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
17696
+ be returned without reading/decoding response
17697
+ data. Default is True.
17698
+ :param _request_timeout: timeout setting for this request. If one
17699
+ number provided, it will be total request
17700
+ timeout. It can also be a pair (tuple) of
17701
+ (connection, read) timeouts.
17702
+ :return: tuple(OperatorEventResponse, status_code(int), headers(HTTPHeaderDict))
17703
+ If the method is called asynchronously,
17704
+ returns the request thread.
17705
+ """
17706
+
17707
+ local_var_params = locals()
17708
+
17709
+ all_params = [
17710
+ 'cluster_id',
17711
+ 'session_name',
17712
+ 'dataset_id',
17713
+ 'operator_id'
17714
+ ]
17715
+ all_params.extend(
17716
+ [
17717
+ 'async_req',
17718
+ '_return_http_data_only',
17719
+ '_preload_content',
17720
+ '_request_timeout'
17721
+ ]
17722
+ )
17723
+
17724
+ for key, val in six.iteritems(local_var_params['kwargs']):
17725
+ if key not in all_params:
17726
+ raise ApiTypeError(
17727
+ "Got an unexpected keyword argument '%s'"
17728
+ " to method get_operator_events_api_v2_dataset_runs_operator_events_get" % key
17729
+ )
17730
+ local_var_params[key] = val
17731
+ del local_var_params['kwargs']
17732
+ # verify the required parameter 'cluster_id' is set
17733
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
17734
+ local_var_params['cluster_id'] is None): # noqa: E501
17735
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
17736
+ # verify the required parameter 'session_name' is set
17737
+ if self.api_client.client_side_validation and ('session_name' not in local_var_params or # noqa: E501
17738
+ local_var_params['session_name'] is None): # noqa: E501
17739
+ raise ApiValueError("Missing the required parameter `session_name` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
17740
+ # verify the required parameter 'dataset_id' is set
17741
+ if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
17742
+ local_var_params['dataset_id'] is None): # noqa: E501
17743
+ raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
17744
+ # verify the required parameter 'operator_id' is set
17745
+ if self.api_client.client_side_validation and ('operator_id' not in local_var_params or # noqa: E501
17746
+ local_var_params['operator_id'] is None): # noqa: E501
17747
+ raise ApiValueError("Missing the required parameter `operator_id` when calling `get_operator_events_api_v2_dataset_runs_operator_events_get`") # noqa: E501
17748
+
17749
+ collection_formats = {}
17750
+
17751
+ path_params = {}
17752
+
17753
+ query_params = []
17754
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
17755
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
17756
+ if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
17757
+ query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
17758
+ if 'dataset_id' in local_var_params and local_var_params['dataset_id'] is not None: # noqa: E501
17759
+ query_params.append(('dataset_id', local_var_params['dataset_id'])) # noqa: E501
17760
+ if 'operator_id' in local_var_params and local_var_params['operator_id'] is not None: # noqa: E501
17761
+ query_params.append(('operator_id', local_var_params['operator_id'])) # noqa: E501
17762
+
17763
+ header_params = {}
17764
+
17765
+ form_params = []
17766
+ local_var_files = {}
17767
+
17768
+ body_params = None
17769
+ # HTTP header `Accept`
17770
+ header_params['Accept'] = self.api_client.select_header_accept(
17771
+ ['application/json']) # noqa: E501
17772
+
17773
+ # Authentication setting
17774
+ auth_settings = [] # noqa: E501
17775
+
17776
+ return self.api_client.call_api(
17777
+ '/api/v2/dataset_runs/operator_events', 'GET',
17778
+ path_params,
17779
+ query_params,
17780
+ header_params,
17781
+ body=body_params,
17782
+ post_params=form_params,
17783
+ files=local_var_files,
17784
+ response_type='OperatorEventResponse', # noqa: E501
17785
+ auth_settings=auth_settings,
17786
+ async_req=local_var_params.get('async_req'),
17787
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
17788
+ _preload_content=local_var_params.get('_preload_content', True),
17789
+ _request_timeout=local_var_params.get('_request_timeout'),
17790
+ collection_formats=collection_formats)
17791
+
17292
17792
  def get_operator_metrics_api_v2_dataset_runs_operator_get(self, cluster_id, session_name, dataset_id, operator_id, dataset_start_time, dataset_end_time, **kwargs): # noqa: E501
17293
17793
  """Get Operator Metrics # noqa: E501
17294
17794
 
@@ -20272,16 +20772,17 @@ class DefaultApi(object):
20272
20772
  _request_timeout=local_var_params.get('_request_timeout'),
20273
20773
  collection_formats=collection_formats)
20274
20774
 
20275
- def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(self, cluster_id, **kwargs): # noqa: E501
20276
- """Get Task Exception Aggregates # noqa: E501
20775
+ def get_tags_for_resource_api_v2_tags_resource_get(self, resource_type, resource_id, **kwargs): # noqa: E501
20776
+ """Get Tags For Resource # noqa: E501
20277
20777
 
20278
20778
  This method makes a synchronous HTTP request by default. To make an
20279
20779
  asynchronous HTTP request, please pass async_req=True
20280
- >>> thread = api.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(cluster_id, async_req=True)
20780
+ >>> thread = api.get_tags_for_resource_api_v2_tags_resource_get(resource_type, resource_id, async_req=True)
20281
20781
  >>> result = thread.get()
20282
20782
 
20283
20783
  :param async_req bool: execute request asynchronously
20284
- :param str cluster_id: (required)
20784
+ :param ResourceTagResourceType resource_type: (required)
20785
+ :param str resource_id: (required)
20285
20786
  :param _preload_content: if False, the urllib3.HTTPResponse object will
20286
20787
  be returned without reading/decoding response
20287
20788
  data. Default is True.
@@ -20289,23 +20790,24 @@ class DefaultApi(object):
20289
20790
  number provided, it will be total request
20290
20791
  timeout. It can also be a pair (tuple) of
20291
20792
  (connection, read) timeouts.
20292
- :return: TaskExceptionGroupAggregateResponse
20793
+ :return: ResourcetagslistResponse
20293
20794
  If the method is called asynchronously,
20294
20795
  returns the request thread.
20295
20796
  """
20296
20797
  kwargs['_return_http_data_only'] = True
20297
- return self.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(cluster_id, **kwargs) # noqa: E501
20798
+ return self.get_tags_for_resource_api_v2_tags_resource_get_with_http_info(resource_type, resource_id, **kwargs) # noqa: E501
20298
20799
 
20299
- def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
20300
- """Get Task Exception Aggregates # noqa: E501
20800
+ def get_tags_for_resource_api_v2_tags_resource_get_with_http_info(self, resource_type, resource_id, **kwargs): # noqa: E501
20801
+ """Get Tags For Resource # noqa: E501
20301
20802
 
20302
20803
  This method makes a synchronous HTTP request by default. To make an
20303
20804
  asynchronous HTTP request, please pass async_req=True
20304
- >>> thread = api.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(cluster_id, async_req=True)
20805
+ >>> thread = api.get_tags_for_resource_api_v2_tags_resource_get_with_http_info(resource_type, resource_id, async_req=True)
20305
20806
  >>> result = thread.get()
20306
20807
 
20307
20808
  :param async_req bool: execute request asynchronously
20308
- :param str cluster_id: (required)
20809
+ :param ResourceTagResourceType resource_type: (required)
20810
+ :param str resource_id: (required)
20309
20811
  :param _return_http_data_only: response data without head status code
20310
20812
  and headers
20311
20813
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -20315,7 +20817,7 @@ class DefaultApi(object):
20315
20817
  number provided, it will be total request
20316
20818
  timeout. It can also be a pair (tuple) of
20317
20819
  (connection, read) timeouts.
20318
- :return: tuple(TaskExceptionGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
20820
+ :return: tuple(ResourcetagslistResponse, status_code(int), headers(HTTPHeaderDict))
20319
20821
  If the method is called asynchronously,
20320
20822
  returns the request thread.
20321
20823
  """
@@ -20323,7 +20825,8 @@ class DefaultApi(object):
20323
20825
  local_var_params = locals()
20324
20826
 
20325
20827
  all_params = [
20326
- 'cluster_id'
20828
+ 'resource_type',
20829
+ 'resource_id'
20327
20830
  ]
20328
20831
  all_params.extend(
20329
20832
  [
@@ -20338,21 +20841,139 @@ class DefaultApi(object):
20338
20841
  if key not in all_params:
20339
20842
  raise ApiTypeError(
20340
20843
  "Got an unexpected keyword argument '%s'"
20341
- " to method get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get" % key
20844
+ " to method get_tags_for_resource_api_v2_tags_resource_get" % key
20342
20845
  )
20343
20846
  local_var_params[key] = val
20344
20847
  del local_var_params['kwargs']
20345
- # verify the required parameter 'cluster_id' is set
20346
- if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
20347
- local_var_params['cluster_id'] is None): # noqa: E501
20348
- raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get`") # noqa: E501
20848
+ # verify the required parameter 'resource_type' is set
20849
+ if self.api_client.client_side_validation and ('resource_type' not in local_var_params or # noqa: E501
20850
+ local_var_params['resource_type'] is None): # noqa: E501
20851
+ raise ApiValueError("Missing the required parameter `resource_type` when calling `get_tags_for_resource_api_v2_tags_resource_get`") # noqa: E501
20852
+ # verify the required parameter 'resource_id' is set
20853
+ if self.api_client.client_side_validation and ('resource_id' not in local_var_params or # noqa: E501
20854
+ local_var_params['resource_id'] is None): # noqa: E501
20855
+ raise ApiValueError("Missing the required parameter `resource_id` when calling `get_tags_for_resource_api_v2_tags_resource_get`") # noqa: E501
20349
20856
 
20350
20857
  collection_formats = {}
20351
20858
 
20352
20859
  path_params = {}
20353
20860
 
20354
20861
  query_params = []
20355
- if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
20862
+ if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
20863
+ query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
20864
+ if 'resource_id' in local_var_params and local_var_params['resource_id'] is not None: # noqa: E501
20865
+ query_params.append(('resource_id', local_var_params['resource_id'])) # noqa: E501
20866
+
20867
+ header_params = {}
20868
+
20869
+ form_params = []
20870
+ local_var_files = {}
20871
+
20872
+ body_params = None
20873
+ # HTTP header `Accept`
20874
+ header_params['Accept'] = self.api_client.select_header_accept(
20875
+ ['application/json']) # noqa: E501
20876
+
20877
+ # Authentication setting
20878
+ auth_settings = [] # noqa: E501
20879
+
20880
+ return self.api_client.call_api(
20881
+ '/api/v2/tags/resource', 'GET',
20882
+ path_params,
20883
+ query_params,
20884
+ header_params,
20885
+ body=body_params,
20886
+ post_params=form_params,
20887
+ files=local_var_files,
20888
+ response_type='ResourcetagslistResponse', # noqa: E501
20889
+ auth_settings=auth_settings,
20890
+ async_req=local_var_params.get('async_req'),
20891
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
20892
+ _preload_content=local_var_params.get('_preload_content', True),
20893
+ _request_timeout=local_var_params.get('_request_timeout'),
20894
+ collection_formats=collection_formats)
20895
+
20896
+ def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(self, cluster_id, **kwargs): # noqa: E501
20897
+ """Get Task Exception Aggregates # noqa: E501
20898
+
20899
+ This method makes a synchronous HTTP request by default. To make an
20900
+ asynchronous HTTP request, please pass async_req=True
20901
+ >>> thread = api.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get(cluster_id, async_req=True)
20902
+ >>> result = thread.get()
20903
+
20904
+ :param async_req bool: execute request asynchronously
20905
+ :param str cluster_id: (required)
20906
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
20907
+ be returned without reading/decoding response
20908
+ data. Default is True.
20909
+ :param _request_timeout: timeout setting for this request. If one
20910
+ number provided, it will be total request
20911
+ timeout. It can also be a pair (tuple) of
20912
+ (connection, read) timeouts.
20913
+ :return: TaskExceptionGroupAggregateResponse
20914
+ If the method is called asynchronously,
20915
+ returns the request thread.
20916
+ """
20917
+ kwargs['_return_http_data_only'] = True
20918
+ return self.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(cluster_id, **kwargs) # noqa: E501
20919
+
20920
+ def get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501
20921
+ """Get Task Exception Aggregates # noqa: E501
20922
+
20923
+ This method makes a synchronous HTTP request by default. To make an
20924
+ asynchronous HTTP request, please pass async_req=True
20925
+ >>> thread = api.get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get_with_http_info(cluster_id, async_req=True)
20926
+ >>> result = thread.get()
20927
+
20928
+ :param async_req bool: execute request asynchronously
20929
+ :param str cluster_id: (required)
20930
+ :param _return_http_data_only: response data without head status code
20931
+ and headers
20932
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
20933
+ be returned without reading/decoding response
20934
+ data. Default is True.
20935
+ :param _request_timeout: timeout setting for this request. If one
20936
+ number provided, it will be total request
20937
+ timeout. It can also be a pair (tuple) of
20938
+ (connection, read) timeouts.
20939
+ :return: tuple(TaskExceptionGroupAggregateResponse, status_code(int), headers(HTTPHeaderDict))
20940
+ If the method is called asynchronously,
20941
+ returns the request thread.
20942
+ """
20943
+
20944
+ local_var_params = locals()
20945
+
20946
+ all_params = [
20947
+ 'cluster_id'
20948
+ ]
20949
+ all_params.extend(
20950
+ [
20951
+ 'async_req',
20952
+ '_return_http_data_only',
20953
+ '_preload_content',
20954
+ '_request_timeout'
20955
+ ]
20956
+ )
20957
+
20958
+ for key, val in six.iteritems(local_var_params['kwargs']):
20959
+ if key not in all_params:
20960
+ raise ApiTypeError(
20961
+ "Got an unexpected keyword argument '%s'"
20962
+ " to method get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get" % key
20963
+ )
20964
+ local_var_params[key] = val
20965
+ del local_var_params['kwargs']
20966
+ # verify the required parameter 'cluster_id' is set
20967
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
20968
+ local_var_params['cluster_id'] is None): # noqa: E501
20969
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_task_exception_aggregates_api_v2_tasks_dashboard_aggregate_by_exception_get`") # noqa: E501
20970
+
20971
+ collection_formats = {}
20972
+
20973
+ path_params = {}
20974
+
20975
+ query_params = []
20976
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
20356
20977
  query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
20357
20978
 
20358
20979
  header_params = {}
@@ -20847,6 +21468,120 @@ class DefaultApi(object):
20847
21468
  _request_timeout=local_var_params.get('_request_timeout'),
20848
21469
  collection_formats=collection_formats)
20849
21470
 
21471
+ def get_template_api_v2_workspace_templates_template_id_get(self, template_id, **kwargs): # noqa: E501
21472
+ """Get Template # noqa: E501
21473
+
21474
+ Get workspace template details # noqa: E501
21475
+ This method makes a synchronous HTTP request by default. To make an
21476
+ asynchronous HTTP request, please pass async_req=True
21477
+ >>> thread = api.get_template_api_v2_workspace_templates_template_id_get(template_id, async_req=True)
21478
+ >>> result = thread.get()
21479
+
21480
+ :param async_req bool: execute request asynchronously
21481
+ :param str template_id: ID of the template to retrieve (required)
21482
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21483
+ be returned without reading/decoding response
21484
+ data. Default is True.
21485
+ :param _request_timeout: timeout setting for this request. If one
21486
+ number provided, it will be total request
21487
+ timeout. It can also be a pair (tuple) of
21488
+ (connection, read) timeouts.
21489
+ :return: WorkspacetemplateResponse
21490
+ If the method is called asynchronously,
21491
+ returns the request thread.
21492
+ """
21493
+ kwargs['_return_http_data_only'] = True
21494
+ return self.get_template_api_v2_workspace_templates_template_id_get_with_http_info(template_id, **kwargs) # noqa: E501
21495
+
21496
+ def get_template_api_v2_workspace_templates_template_id_get_with_http_info(self, template_id, **kwargs): # noqa: E501
21497
+ """Get Template # noqa: E501
21498
+
21499
+ Get workspace template details # noqa: E501
21500
+ This method makes a synchronous HTTP request by default. To make an
21501
+ asynchronous HTTP request, please pass async_req=True
21502
+ >>> thread = api.get_template_api_v2_workspace_templates_template_id_get_with_http_info(template_id, async_req=True)
21503
+ >>> result = thread.get()
21504
+
21505
+ :param async_req bool: execute request asynchronously
21506
+ :param str template_id: ID of the template to retrieve (required)
21507
+ :param _return_http_data_only: response data without head status code
21508
+ and headers
21509
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
21510
+ be returned without reading/decoding response
21511
+ data. Default is True.
21512
+ :param _request_timeout: timeout setting for this request. If one
21513
+ number provided, it will be total request
21514
+ timeout. It can also be a pair (tuple) of
21515
+ (connection, read) timeouts.
21516
+ :return: tuple(WorkspacetemplateResponse, status_code(int), headers(HTTPHeaderDict))
21517
+ If the method is called asynchronously,
21518
+ returns the request thread.
21519
+ """
21520
+
21521
+ local_var_params = locals()
21522
+
21523
+ all_params = [
21524
+ 'template_id'
21525
+ ]
21526
+ all_params.extend(
21527
+ [
21528
+ 'async_req',
21529
+ '_return_http_data_only',
21530
+ '_preload_content',
21531
+ '_request_timeout'
21532
+ ]
21533
+ )
21534
+
21535
+ for key, val in six.iteritems(local_var_params['kwargs']):
21536
+ if key not in all_params:
21537
+ raise ApiTypeError(
21538
+ "Got an unexpected keyword argument '%s'"
21539
+ " to method get_template_api_v2_workspace_templates_template_id_get" % key
21540
+ )
21541
+ local_var_params[key] = val
21542
+ del local_var_params['kwargs']
21543
+ # verify the required parameter 'template_id' is set
21544
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
21545
+ local_var_params['template_id'] is None): # noqa: E501
21546
+ raise ApiValueError("Missing the required parameter `template_id` when calling `get_template_api_v2_workspace_templates_template_id_get`") # noqa: E501
21547
+
21548
+ collection_formats = {}
21549
+
21550
+ path_params = {}
21551
+ if 'template_id' in local_var_params:
21552
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
21553
+
21554
+ query_params = []
21555
+
21556
+ header_params = {}
21557
+
21558
+ form_params = []
21559
+ local_var_files = {}
21560
+
21561
+ body_params = None
21562
+ # HTTP header `Accept`
21563
+ header_params['Accept'] = self.api_client.select_header_accept(
21564
+ ['application/json']) # noqa: E501
21565
+
21566
+ # Authentication setting
21567
+ auth_settings = [] # noqa: E501
21568
+
21569
+ return self.api_client.call_api(
21570
+ '/api/v2/workspace_templates/{template_id}', 'GET',
21571
+ path_params,
21572
+ query_params,
21573
+ header_params,
21574
+ body=body_params,
21575
+ post_params=form_params,
21576
+ files=local_var_files,
21577
+ response_type='WorkspacetemplateResponse', # noqa: E501
21578
+ auth_settings=auth_settings,
21579
+ async_req=local_var_params.get('async_req'),
21580
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
21581
+ _preload_content=local_var_params.get('_preload_content', True),
21582
+ _request_timeout=local_var_params.get('_request_timeout'),
21583
+ collection_formats=collection_formats)
21584
+
20850
21585
  def get_template_readme_api_v2_experimental_workspaces_template_readme_template_id_get(self, template_id, **kwargs): # noqa: E501
20851
21586
  """Get Template Readme # noqa: E501
20852
21587
 
@@ -21442,17 +22177,18 @@ class DefaultApi(object):
21442
22177
  _request_timeout=local_var_params.get('_request_timeout'),
21443
22178
  collection_formats=collection_formats)
21444
22179
 
21445
- def get_workspace_api_v2_experimental_workspaces_workspace_id_get(self, workspace_id, **kwargs): # noqa: E501
21446
- """Get Workspace # noqa: E501
22180
+ def get_version_api_v2_workspace_templates_template_id_versions_version_id_get(self, template_id, version_id, **kwargs): # noqa: E501
22181
+ """Get Version # noqa: E501
21447
22182
 
21448
- Retrieves a Workspace. # noqa: E501
22183
+ Get a specific version of a workspace template # noqa: E501
21449
22184
  This method makes a synchronous HTTP request by default. To make an
21450
22185
  asynchronous HTTP request, please pass async_req=True
21451
- >>> thread = api.get_workspace_api_v2_experimental_workspaces_workspace_id_get(workspace_id, async_req=True)
22186
+ >>> thread = api.get_version_api_v2_workspace_templates_template_id_versions_version_id_get(template_id, version_id, async_req=True)
21452
22187
  >>> result = thread.get()
21453
22188
 
21454
22189
  :param async_req bool: execute request asynchronously
21455
- :param str workspace_id: ID of the Workspace to retreive. (required)
22190
+ :param str template_id: (required)
22191
+ :param str version_id: (required)
21456
22192
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21457
22193
  be returned without reading/decoding response
21458
22194
  data. Default is True.
@@ -21460,24 +22196,25 @@ class DefaultApi(object):
21460
22196
  number provided, it will be total request
21461
22197
  timeout. It can also be a pair (tuple) of
21462
22198
  (connection, read) timeouts.
21463
- :return: ExperimentalworkspaceResponse
22199
+ :return: WorkspacetemplateversionResponse
21464
22200
  If the method is called asynchronously,
21465
22201
  returns the request thread.
21466
22202
  """
21467
22203
  kwargs['_return_http_data_only'] = True
21468
- return self.get_workspace_api_v2_experimental_workspaces_workspace_id_get_with_http_info(workspace_id, **kwargs) # noqa: E501
22204
+ return self.get_version_api_v2_workspace_templates_template_id_versions_version_id_get_with_http_info(template_id, version_id, **kwargs) # noqa: E501
21469
22205
 
21470
- def get_workspace_api_v2_experimental_workspaces_workspace_id_get_with_http_info(self, workspace_id, **kwargs): # noqa: E501
21471
- """Get Workspace # noqa: E501
22206
+ def get_version_api_v2_workspace_templates_template_id_versions_version_id_get_with_http_info(self, template_id, version_id, **kwargs): # noqa: E501
22207
+ """Get Version # noqa: E501
21472
22208
 
21473
- Retrieves a Workspace. # noqa: E501
22209
+ Get a specific version of a workspace template # noqa: E501
21474
22210
  This method makes a synchronous HTTP request by default. To make an
21475
22211
  asynchronous HTTP request, please pass async_req=True
21476
- >>> thread = api.get_workspace_api_v2_experimental_workspaces_workspace_id_get_with_http_info(workspace_id, async_req=True)
22212
+ >>> thread = api.get_version_api_v2_workspace_templates_template_id_versions_version_id_get_with_http_info(template_id, version_id, async_req=True)
21477
22213
  >>> result = thread.get()
21478
22214
 
21479
22215
  :param async_req bool: execute request asynchronously
21480
- :param str workspace_id: ID of the Workspace to retreive. (required)
22216
+ :param str template_id: (required)
22217
+ :param str version_id: (required)
21481
22218
  :param _return_http_data_only: response data without head status code
21482
22219
  and headers
21483
22220
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21487,7 +22224,7 @@ class DefaultApi(object):
21487
22224
  number provided, it will be total request
21488
22225
  timeout. It can also be a pair (tuple) of
21489
22226
  (connection, read) timeouts.
21490
- :return: tuple(ExperimentalworkspaceResponse, status_code(int), headers(HTTPHeaderDict))
22227
+ :return: tuple(WorkspacetemplateversionResponse, status_code(int), headers(HTTPHeaderDict))
21491
22228
  If the method is called asynchronously,
21492
22229
  returns the request thread.
21493
22230
  """
@@ -21495,7 +22232,8 @@ class DefaultApi(object):
21495
22232
  local_var_params = locals()
21496
22233
 
21497
22234
  all_params = [
21498
- 'workspace_id'
22235
+ 'template_id',
22236
+ 'version_id'
21499
22237
  ]
21500
22238
  all_params.extend(
21501
22239
  [
@@ -21510,20 +22248,26 @@ class DefaultApi(object):
21510
22248
  if key not in all_params:
21511
22249
  raise ApiTypeError(
21512
22250
  "Got an unexpected keyword argument '%s'"
21513
- " to method get_workspace_api_v2_experimental_workspaces_workspace_id_get" % key
22251
+ " to method get_version_api_v2_workspace_templates_template_id_versions_version_id_get" % key
21514
22252
  )
21515
22253
  local_var_params[key] = val
21516
22254
  del local_var_params['kwargs']
21517
- # verify the required parameter 'workspace_id' is set
21518
- if self.api_client.client_side_validation and ('workspace_id' not in local_var_params or # noqa: E501
21519
- local_var_params['workspace_id'] is None): # noqa: E501
21520
- raise ApiValueError("Missing the required parameter `workspace_id` when calling `get_workspace_api_v2_experimental_workspaces_workspace_id_get`") # noqa: E501
22255
+ # verify the required parameter 'template_id' is set
22256
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
22257
+ local_var_params['template_id'] is None): # noqa: E501
22258
+ raise ApiValueError("Missing the required parameter `template_id` when calling `get_version_api_v2_workspace_templates_template_id_versions_version_id_get`") # noqa: E501
22259
+ # verify the required parameter 'version_id' is set
22260
+ if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501
22261
+ local_var_params['version_id'] is None): # noqa: E501
22262
+ raise ApiValueError("Missing the required parameter `version_id` when calling `get_version_api_v2_workspace_templates_template_id_versions_version_id_get`") # noqa: E501
21521
22263
 
21522
22264
  collection_formats = {}
21523
22265
 
21524
22266
  path_params = {}
21525
- if 'workspace_id' in local_var_params:
21526
- path_params['workspace_id'] = local_var_params['workspace_id'] # noqa: E501
22267
+ if 'template_id' in local_var_params:
22268
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
22269
+ if 'version_id' in local_var_params:
22270
+ path_params['version_id'] = local_var_params['version_id'] # noqa: E501
21527
22271
 
21528
22272
  query_params = []
21529
22273
 
@@ -21541,14 +22285,14 @@ class DefaultApi(object):
21541
22285
  auth_settings = [] # noqa: E501
21542
22286
 
21543
22287
  return self.api_client.call_api(
21544
- '/api/v2/experimental_workspaces/{workspace_id}', 'GET',
22288
+ '/api/v2/workspace_templates/{template_id}/versions/{version_id}', 'GET',
21545
22289
  path_params,
21546
22290
  query_params,
21547
22291
  header_params,
21548
22292
  body=body_params,
21549
22293
  post_params=form_params,
21550
22294
  files=local_var_files,
21551
- response_type='ExperimentalworkspaceResponse', # noqa: E501
22295
+ response_type='WorkspacetemplateversionResponse', # noqa: E501
21552
22296
  auth_settings=auth_settings,
21553
22297
  async_req=local_var_params.get('async_req'),
21554
22298
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -21556,18 +22300,17 @@ class DefaultApi(object):
21556
22300
  _request_timeout=local_var_params.get('_request_timeout'),
21557
22301
  collection_formats=collection_formats)
21558
22302
 
21559
- def get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get(self, workspace_id, **kwargs): # noqa: E501
21560
- """Get Workspace Dataplane Artifacts # noqa: E501
22303
+ def get_workos_authorize_url_api_v2_workos_authorize_get(self, **kwargs): # noqa: E501
22304
+ """Get Workos Authorize Url # noqa: E501
21561
22305
 
21562
- Retrieve workspace dataplane artifacts. # noqa: E501
21563
22306
  This method makes a synchronous HTTP request by default. To make an
21564
22307
  asynchronous HTTP request, please pass async_req=True
21565
- >>> thread = api.get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get(workspace_id, async_req=True)
22308
+ >>> thread = api.get_workos_authorize_url_api_v2_workos_authorize_get(async_req=True)
21566
22309
  >>> result = thread.get()
21567
22310
 
21568
22311
  :param async_req bool: execute request asynchronously
21569
- :param str workspace_id: ID of the Workspace to retrieve. (required)
21570
- :param CloudDataBucketAccessMode access_mode: Access mode for the workspace artifacts.
22312
+ :param str email_address:
22313
+ :param str provider:
21571
22314
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21572
22315
  be returned without reading/decoding response
21573
22316
  data. Default is True.
@@ -21575,25 +22318,24 @@ class DefaultApi(object):
21575
22318
  number provided, it will be total request
21576
22319
  timeout. It can also be a pair (tuple) of
21577
22320
  (connection, read) timeouts.
21578
- :return: WorkspacedataplaneartifactsResponse
22321
+ :return: WorkosauthorizeurlresponseResponse
21579
22322
  If the method is called asynchronously,
21580
22323
  returns the request thread.
21581
22324
  """
21582
22325
  kwargs['_return_http_data_only'] = True
21583
- return self.get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get_with_http_info(workspace_id, **kwargs) # noqa: E501
22326
+ return self.get_workos_authorize_url_api_v2_workos_authorize_get_with_http_info(**kwargs) # noqa: E501
21584
22327
 
21585
- def get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get_with_http_info(self, workspace_id, **kwargs): # noqa: E501
21586
- """Get Workspace Dataplane Artifacts # noqa: E501
22328
+ def get_workos_authorize_url_api_v2_workos_authorize_get_with_http_info(self, **kwargs): # noqa: E501
22329
+ """Get Workos Authorize Url # noqa: E501
21587
22330
 
21588
- Retrieve workspace dataplane artifacts. # noqa: E501
21589
22331
  This method makes a synchronous HTTP request by default. To make an
21590
22332
  asynchronous HTTP request, please pass async_req=True
21591
- >>> thread = api.get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get_with_http_info(workspace_id, async_req=True)
22333
+ >>> thread = api.get_workos_authorize_url_api_v2_workos_authorize_get_with_http_info(async_req=True)
21592
22334
  >>> result = thread.get()
21593
22335
 
21594
22336
  :param async_req bool: execute request asynchronously
21595
- :param str workspace_id: ID of the Workspace to retrieve. (required)
21596
- :param CloudDataBucketAccessMode access_mode: Access mode for the workspace artifacts.
22337
+ :param str email_address:
22338
+ :param str provider:
21597
22339
  :param _return_http_data_only: response data without head status code
21598
22340
  and headers
21599
22341
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21603,7 +22345,7 @@ class DefaultApi(object):
21603
22345
  number provided, it will be total request
21604
22346
  timeout. It can also be a pair (tuple) of
21605
22347
  (connection, read) timeouts.
21606
- :return: tuple(WorkspacedataplaneartifactsResponse, status_code(int), headers(HTTPHeaderDict))
22348
+ :return: tuple(WorkosauthorizeurlresponseResponse, status_code(int), headers(HTTPHeaderDict))
21607
22349
  If the method is called asynchronously,
21608
22350
  returns the request thread.
21609
22351
  """
@@ -21611,8 +22353,8 @@ class DefaultApi(object):
21611
22353
  local_var_params = locals()
21612
22354
 
21613
22355
  all_params = [
21614
- 'workspace_id',
21615
- 'access_mode'
22356
+ 'email_address',
22357
+ 'provider'
21616
22358
  ]
21617
22359
  all_params.extend(
21618
22360
  [
@@ -21627,7 +22369,236 @@ class DefaultApi(object):
21627
22369
  if key not in all_params:
21628
22370
  raise ApiTypeError(
21629
22371
  "Got an unexpected keyword argument '%s'"
21630
- " to method get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get" % key
22372
+ " to method get_workos_authorize_url_api_v2_workos_authorize_get" % key
22373
+ )
22374
+ local_var_params[key] = val
22375
+ del local_var_params['kwargs']
22376
+
22377
+ collection_formats = {}
22378
+
22379
+ path_params = {}
22380
+
22381
+ query_params = []
22382
+ if 'email_address' in local_var_params and local_var_params['email_address'] is not None: # noqa: E501
22383
+ query_params.append(('email_address', local_var_params['email_address'])) # noqa: E501
22384
+ if 'provider' in local_var_params and local_var_params['provider'] is not None: # noqa: E501
22385
+ query_params.append(('provider', local_var_params['provider'])) # noqa: E501
22386
+
22387
+ header_params = {}
22388
+
22389
+ form_params = []
22390
+ local_var_files = {}
22391
+
22392
+ body_params = None
22393
+ # HTTP header `Accept`
22394
+ header_params['Accept'] = self.api_client.select_header_accept(
22395
+ ['application/json']) # noqa: E501
22396
+
22397
+ # Authentication setting
22398
+ auth_settings = [] # noqa: E501
22399
+
22400
+ return self.api_client.call_api(
22401
+ '/api/v2/workos/authorize', 'GET',
22402
+ path_params,
22403
+ query_params,
22404
+ header_params,
22405
+ body=body_params,
22406
+ post_params=form_params,
22407
+ files=local_var_files,
22408
+ response_type='WorkosauthorizeurlresponseResponse', # noqa: E501
22409
+ auth_settings=auth_settings,
22410
+ async_req=local_var_params.get('async_req'),
22411
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22412
+ _preload_content=local_var_params.get('_preload_content', True),
22413
+ _request_timeout=local_var_params.get('_request_timeout'),
22414
+ collection_formats=collection_formats)
22415
+
22416
+ def get_workspace_api_v2_experimental_workspaces_workspace_id_get(self, workspace_id, **kwargs): # noqa: E501
22417
+ """Get Workspace # noqa: E501
22418
+
22419
+ Retrieves a Workspace. # noqa: E501
22420
+ This method makes a synchronous HTTP request by default. To make an
22421
+ asynchronous HTTP request, please pass async_req=True
22422
+ >>> thread = api.get_workspace_api_v2_experimental_workspaces_workspace_id_get(workspace_id, async_req=True)
22423
+ >>> result = thread.get()
22424
+
22425
+ :param async_req bool: execute request asynchronously
22426
+ :param str workspace_id: ID of the Workspace to retreive. (required)
22427
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22428
+ be returned without reading/decoding response
22429
+ data. Default is True.
22430
+ :param _request_timeout: timeout setting for this request. If one
22431
+ number provided, it will be total request
22432
+ timeout. It can also be a pair (tuple) of
22433
+ (connection, read) timeouts.
22434
+ :return: ExperimentalworkspaceResponse
22435
+ If the method is called asynchronously,
22436
+ returns the request thread.
22437
+ """
22438
+ kwargs['_return_http_data_only'] = True
22439
+ return self.get_workspace_api_v2_experimental_workspaces_workspace_id_get_with_http_info(workspace_id, **kwargs) # noqa: E501
22440
+
22441
+ def get_workspace_api_v2_experimental_workspaces_workspace_id_get_with_http_info(self, workspace_id, **kwargs): # noqa: E501
22442
+ """Get Workspace # noqa: E501
22443
+
22444
+ Retrieves a Workspace. # noqa: E501
22445
+ This method makes a synchronous HTTP request by default. To make an
22446
+ asynchronous HTTP request, please pass async_req=True
22447
+ >>> thread = api.get_workspace_api_v2_experimental_workspaces_workspace_id_get_with_http_info(workspace_id, async_req=True)
22448
+ >>> result = thread.get()
22449
+
22450
+ :param async_req bool: execute request asynchronously
22451
+ :param str workspace_id: ID of the Workspace to retreive. (required)
22452
+ :param _return_http_data_only: response data without head status code
22453
+ and headers
22454
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22455
+ be returned without reading/decoding response
22456
+ data. Default is True.
22457
+ :param _request_timeout: timeout setting for this request. If one
22458
+ number provided, it will be total request
22459
+ timeout. It can also be a pair (tuple) of
22460
+ (connection, read) timeouts.
22461
+ :return: tuple(ExperimentalworkspaceResponse, status_code(int), headers(HTTPHeaderDict))
22462
+ If the method is called asynchronously,
22463
+ returns the request thread.
22464
+ """
22465
+
22466
+ local_var_params = locals()
22467
+
22468
+ all_params = [
22469
+ 'workspace_id'
22470
+ ]
22471
+ all_params.extend(
22472
+ [
22473
+ 'async_req',
22474
+ '_return_http_data_only',
22475
+ '_preload_content',
22476
+ '_request_timeout'
22477
+ ]
22478
+ )
22479
+
22480
+ for key, val in six.iteritems(local_var_params['kwargs']):
22481
+ if key not in all_params:
22482
+ raise ApiTypeError(
22483
+ "Got an unexpected keyword argument '%s'"
22484
+ " to method get_workspace_api_v2_experimental_workspaces_workspace_id_get" % key
22485
+ )
22486
+ local_var_params[key] = val
22487
+ del local_var_params['kwargs']
22488
+ # verify the required parameter 'workspace_id' is set
22489
+ if self.api_client.client_side_validation and ('workspace_id' not in local_var_params or # noqa: E501
22490
+ local_var_params['workspace_id'] is None): # noqa: E501
22491
+ raise ApiValueError("Missing the required parameter `workspace_id` when calling `get_workspace_api_v2_experimental_workspaces_workspace_id_get`") # noqa: E501
22492
+
22493
+ collection_formats = {}
22494
+
22495
+ path_params = {}
22496
+ if 'workspace_id' in local_var_params:
22497
+ path_params['workspace_id'] = local_var_params['workspace_id'] # noqa: E501
22498
+
22499
+ query_params = []
22500
+
22501
+ header_params = {}
22502
+
22503
+ form_params = []
22504
+ local_var_files = {}
22505
+
22506
+ body_params = None
22507
+ # HTTP header `Accept`
22508
+ header_params['Accept'] = self.api_client.select_header_accept(
22509
+ ['application/json']) # noqa: E501
22510
+
22511
+ # Authentication setting
22512
+ auth_settings = [] # noqa: E501
22513
+
22514
+ return self.api_client.call_api(
22515
+ '/api/v2/experimental_workspaces/{workspace_id}', 'GET',
22516
+ path_params,
22517
+ query_params,
22518
+ header_params,
22519
+ body=body_params,
22520
+ post_params=form_params,
22521
+ files=local_var_files,
22522
+ response_type='ExperimentalworkspaceResponse', # noqa: E501
22523
+ auth_settings=auth_settings,
22524
+ async_req=local_var_params.get('async_req'),
22525
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22526
+ _preload_content=local_var_params.get('_preload_content', True),
22527
+ _request_timeout=local_var_params.get('_request_timeout'),
22528
+ collection_formats=collection_formats)
22529
+
22530
+ def get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get(self, workspace_id, **kwargs): # noqa: E501
22531
+ """Get Workspace Dataplane Artifacts # noqa: E501
22532
+
22533
+ Retrieve workspace dataplane artifacts. # noqa: E501
22534
+ This method makes a synchronous HTTP request by default. To make an
22535
+ asynchronous HTTP request, please pass async_req=True
22536
+ >>> thread = api.get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get(workspace_id, async_req=True)
22537
+ >>> result = thread.get()
22538
+
22539
+ :param async_req bool: execute request asynchronously
22540
+ :param str workspace_id: ID of the Workspace to retrieve. (required)
22541
+ :param CloudDataBucketAccessMode access_mode: Access mode for the workspace artifacts.
22542
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22543
+ be returned without reading/decoding response
22544
+ data. Default is True.
22545
+ :param _request_timeout: timeout setting for this request. If one
22546
+ number provided, it will be total request
22547
+ timeout. It can also be a pair (tuple) of
22548
+ (connection, read) timeouts.
22549
+ :return: WorkspacedataplaneartifactsResponse
22550
+ If the method is called asynchronously,
22551
+ returns the request thread.
22552
+ """
22553
+ kwargs['_return_http_data_only'] = True
22554
+ return self.get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get_with_http_info(workspace_id, **kwargs) # noqa: E501
22555
+
22556
+ def get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get_with_http_info(self, workspace_id, **kwargs): # noqa: E501
22557
+ """Get Workspace Dataplane Artifacts # noqa: E501
22558
+
22559
+ Retrieve workspace dataplane artifacts. # noqa: E501
22560
+ This method makes a synchronous HTTP request by default. To make an
22561
+ asynchronous HTTP request, please pass async_req=True
22562
+ >>> thread = api.get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get_with_http_info(workspace_id, async_req=True)
22563
+ >>> result = thread.get()
22564
+
22565
+ :param async_req bool: execute request asynchronously
22566
+ :param str workspace_id: ID of the Workspace to retrieve. (required)
22567
+ :param CloudDataBucketAccessMode access_mode: Access mode for the workspace artifacts.
22568
+ :param _return_http_data_only: response data without head status code
22569
+ and headers
22570
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22571
+ be returned without reading/decoding response
22572
+ data. Default is True.
22573
+ :param _request_timeout: timeout setting for this request. If one
22574
+ number provided, it will be total request
22575
+ timeout. It can also be a pair (tuple) of
22576
+ (connection, read) timeouts.
22577
+ :return: tuple(WorkspacedataplaneartifactsResponse, status_code(int), headers(HTTPHeaderDict))
22578
+ If the method is called asynchronously,
22579
+ returns the request thread.
22580
+ """
22581
+
22582
+ local_var_params = locals()
22583
+
22584
+ all_params = [
22585
+ 'workspace_id',
22586
+ 'access_mode'
22587
+ ]
22588
+ all_params.extend(
22589
+ [
22590
+ 'async_req',
22591
+ '_return_http_data_only',
22592
+ '_preload_content',
22593
+ '_request_timeout'
22594
+ ]
22595
+ )
22596
+
22597
+ for key, val in six.iteritems(local_var_params['kwargs']):
22598
+ if key not in all_params:
22599
+ raise ApiTypeError(
22600
+ "Got an unexpected keyword argument '%s'"
22601
+ " to method get_workspace_dataplane_artifacts_api_v2_experimental_workspaces_workspace_id_dataplane_artifacts_get" % key
21631
22602
  )
21632
22603
  local_var_params[key] = val
21633
22604
  del local_var_params['kwargs']
@@ -24250,6 +25221,7 @@ class DefaultApi(object):
24250
25221
  :param str source_cron_job_id: filter by cron_job_id id
24251
25222
  :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
24252
25223
  :param str cloud_id: cloud_id to filter by
25224
+ :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.
24253
25225
  :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
24254
25226
  :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
24255
25227
  :param str paging_token:
@@ -24286,6 +25258,7 @@ class DefaultApi(object):
24286
25258
  :param str source_cron_job_id: filter by cron_job_id id
24287
25259
  :param ArchiveStatus archive_status: The archive status to filter by. Defaults to unarchived.
24288
25260
  :param str cloud_id: cloud_id to filter by
25261
+ :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.
24289
25262
  :param HaJobsSortField sort_field: If absent, the sort order will be determined according to the type_filter.
24290
25263
  :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
24291
25264
  :param str paging_token:
@@ -24316,6 +25289,7 @@ class DefaultApi(object):
24316
25289
  'source_cron_job_id',
24317
25290
  'archive_status',
24318
25291
  'cloud_id',
25292
+ 'tag_filter',
24319
25293
  'sort_field',
24320
25294
  'sort_order',
24321
25295
  'paging_token',
@@ -24367,6 +25341,9 @@ class DefaultApi(object):
24367
25341
  query_params.append(('archive_status', local_var_params['archive_status'])) # noqa: E501
24368
25342
  if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
24369
25343
  query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
25344
+ if 'tag_filter' in local_var_params and local_var_params['tag_filter'] is not None: # noqa: E501
25345
+ query_params.append(('tag_filter', local_var_params['tag_filter'])) # noqa: E501
25346
+ collection_formats['tag_filter'] = 'multi' # noqa: E501
24370
25347
  if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
24371
25348
  query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
24372
25349
  if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
@@ -25336,21 +26313,18 @@ class DefaultApi(object):
25336
26313
  _request_timeout=local_var_params.get('_request_timeout'),
25337
26314
  collection_formats=collection_formats)
25338
26315
 
25339
- def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(self, **kwargs): # noqa: E501
25340
- """List Long Running Workloads # noqa: E501
26316
+ def list_keys_api_v2_tags_keys_get(self, **kwargs): # noqa: E501
26317
+ """List Keys # noqa: E501
25341
26318
 
25342
- Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
25343
26319
  This method makes a synchronous HTTP request by default. To make an
25344
26320
  asynchronous HTTP request, please pass async_req=True
25345
- >>> thread = api.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(async_req=True)
26321
+ >>> thread = api.list_keys_api_v2_tags_keys_get(async_req=True)
25346
26322
  >>> result = thread.get()
25347
26323
 
25348
26324
  :param async_req bool: execute request asynchronously
25349
- :param str cloud_id: The cloud ID to filter by.
25350
- :param str project_id: The project ID to filter by.
25351
- :param bool jobs_only: Whether to only include jobs.
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.
26325
+ :param ResourceTagResourceType resource_type:
26326
+ :param str paging_token:
26327
+ :param int count:
25354
26328
  :param _preload_content: if False, the urllib3.HTTPResponse object will
25355
26329
  be returned without reading/decoding response
25356
26330
  data. Default is True.
@@ -25358,28 +26332,25 @@ class DefaultApi(object):
25358
26332
  number provided, it will be total request
25359
26333
  timeout. It can also be a pair (tuple) of
25360
26334
  (connection, read) timeouts.
25361
- :return: LongrunningworkloadListResponse
26335
+ :return: TagkeyListResponse
25362
26336
  If the method is called asynchronously,
25363
26337
  returns the request thread.
25364
26338
  """
25365
26339
  kwargs['_return_http_data_only'] = True
25366
- return self.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(**kwargs) # noqa: E501
26340
+ return self.list_keys_api_v2_tags_keys_get_with_http_info(**kwargs) # noqa: E501
25367
26341
 
25368
- def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(self, **kwargs): # noqa: E501
25369
- """List Long Running Workloads # noqa: E501
26342
+ def list_keys_api_v2_tags_keys_get_with_http_info(self, **kwargs): # noqa: E501
26343
+ """List Keys # noqa: E501
25370
26344
 
25371
- Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
25372
26345
  This method makes a synchronous HTTP request by default. To make an
25373
26346
  asynchronous HTTP request, please pass async_req=True
25374
- >>> thread = api.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(async_req=True)
26347
+ >>> thread = api.list_keys_api_v2_tags_keys_get_with_http_info(async_req=True)
25375
26348
  >>> result = thread.get()
25376
26349
 
25377
26350
  :param async_req bool: execute request asynchronously
25378
- :param str cloud_id: The cloud ID to filter by.
25379
- :param str project_id: The project ID to filter by.
25380
- :param bool jobs_only: Whether to only include jobs.
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.
26351
+ :param ResourceTagResourceType resource_type:
26352
+ :param str paging_token:
26353
+ :param int count:
25383
26354
  :param _return_http_data_only: response data without head status code
25384
26355
  and headers
25385
26356
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -25389,7 +26360,7 @@ class DefaultApi(object):
25389
26360
  number provided, it will be total request
25390
26361
  timeout. It can also be a pair (tuple) of
25391
26362
  (connection, read) timeouts.
25392
- :return: tuple(LongrunningworkloadListResponse, status_code(int), headers(HTTPHeaderDict))
26363
+ :return: tuple(TagkeyListResponse, status_code(int), headers(HTTPHeaderDict))
25393
26364
  If the method is called asynchronously,
25394
26365
  returns the request thread.
25395
26366
  """
@@ -25397,12 +26368,140 @@ class DefaultApi(object):
25397
26368
  local_var_params = locals()
25398
26369
 
25399
26370
  all_params = [
25400
- 'cloud_id',
25401
- 'project_id',
25402
- 'jobs_only',
25403
- 'workspaces_only',
25404
- 'duration_s'
25405
- ]
26371
+ 'resource_type',
26372
+ 'paging_token',
26373
+ 'count'
26374
+ ]
26375
+ all_params.extend(
26376
+ [
26377
+ 'async_req',
26378
+ '_return_http_data_only',
26379
+ '_preload_content',
26380
+ '_request_timeout'
26381
+ ]
26382
+ )
26383
+
26384
+ for key, val in six.iteritems(local_var_params['kwargs']):
26385
+ if key not in all_params:
26386
+ raise ApiTypeError(
26387
+ "Got an unexpected keyword argument '%s'"
26388
+ " to method list_keys_api_v2_tags_keys_get" % key
26389
+ )
26390
+ local_var_params[key] = val
26391
+ del local_var_params['kwargs']
26392
+
26393
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
26394
+ 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
26395
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
26396
+ 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
26397
+ collection_formats = {}
26398
+
26399
+ path_params = {}
26400
+
26401
+ query_params = []
26402
+ if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
26403
+ query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
26404
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
26405
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
26406
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
26407
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
26408
+
26409
+ header_params = {}
26410
+
26411
+ form_params = []
26412
+ local_var_files = {}
26413
+
26414
+ body_params = None
26415
+ # HTTP header `Accept`
26416
+ header_params['Accept'] = self.api_client.select_header_accept(
26417
+ ['application/json']) # noqa: E501
26418
+
26419
+ # Authentication setting
26420
+ auth_settings = [] # noqa: E501
26421
+
26422
+ return self.api_client.call_api(
26423
+ '/api/v2/tags/keys', 'GET',
26424
+ path_params,
26425
+ query_params,
26426
+ header_params,
26427
+ body=body_params,
26428
+ post_params=form_params,
26429
+ files=local_var_files,
26430
+ response_type='TagkeyListResponse', # noqa: E501
26431
+ auth_settings=auth_settings,
26432
+ async_req=local_var_params.get('async_req'),
26433
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
26434
+ _preload_content=local_var_params.get('_preload_content', True),
26435
+ _request_timeout=local_var_params.get('_request_timeout'),
26436
+ collection_formats=collection_formats)
26437
+
26438
+ def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(self, **kwargs): # noqa: E501
26439
+ """List Long Running Workloads # noqa: E501
26440
+
26441
+ Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
26442
+ This method makes a synchronous HTTP request by default. To make an
26443
+ asynchronous HTTP request, please pass async_req=True
26444
+ >>> thread = api.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get(async_req=True)
26445
+ >>> result = thread.get()
26446
+
26447
+ :param async_req bool: execute request asynchronously
26448
+ :param str cloud_id: The cloud ID to filter by.
26449
+ :param str project_id: The project ID to filter by.
26450
+ :param bool jobs_only: Whether to only include jobs.
26451
+ :param bool workspaces_only: Whether to only include workspaces.
26452
+ :param int duration_s: The duration in seconds to filter by. Defaults to 24 hours.
26453
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
26454
+ be returned without reading/decoding response
26455
+ data. Default is True.
26456
+ :param _request_timeout: timeout setting for this request. If one
26457
+ number provided, it will be total request
26458
+ timeout. It can also be a pair (tuple) of
26459
+ (connection, read) timeouts.
26460
+ :return: LongrunningworkloadListResponse
26461
+ If the method is called asynchronously,
26462
+ returns the request thread.
26463
+ """
26464
+ kwargs['_return_http_data_only'] = True
26465
+ return self.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(**kwargs) # noqa: E501
26466
+
26467
+ def list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(self, **kwargs): # noqa: E501
26468
+ """List Long Running Workloads # noqa: E501
26469
+
26470
+ Lists long running workloads within a cloud or organization, sorted by duration. # noqa: E501
26471
+ This method makes a synchronous HTTP request by default. To make an
26472
+ asynchronous HTTP request, please pass async_req=True
26473
+ >>> thread = api.list_long_running_workloads_api_v2_decorated_sessions_long_running_workloads_get_with_http_info(async_req=True)
26474
+ >>> result = thread.get()
26475
+
26476
+ :param async_req bool: execute request asynchronously
26477
+ :param str cloud_id: The cloud ID to filter by.
26478
+ :param str project_id: The project ID to filter by.
26479
+ :param bool jobs_only: Whether to only include jobs.
26480
+ :param bool workspaces_only: Whether to only include workspaces.
26481
+ :param int duration_s: The duration in seconds to filter by. Defaults to 24 hours.
26482
+ :param _return_http_data_only: response data without head status code
26483
+ and headers
26484
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
26485
+ be returned without reading/decoding response
26486
+ data. Default is True.
26487
+ :param _request_timeout: timeout setting for this request. If one
26488
+ number provided, it will be total request
26489
+ timeout. It can also be a pair (tuple) of
26490
+ (connection, read) timeouts.
26491
+ :return: tuple(LongrunningworkloadListResponse, status_code(int), headers(HTTPHeaderDict))
26492
+ If the method is called asynchronously,
26493
+ returns the request thread.
26494
+ """
26495
+
26496
+ local_var_params = locals()
26497
+
26498
+ all_params = [
26499
+ 'cloud_id',
26500
+ 'project_id',
26501
+ 'jobs_only',
26502
+ 'workspaces_only',
26503
+ 'duration_s'
26504
+ ]
25406
26505
  all_params.extend(
25407
26506
  [
25408
26507
  'async_req',
@@ -26479,7 +27578,7 @@ class DefaultApi(object):
26479
27578
  number provided, it will be total request
26480
27579
  timeout. It can also be a pair (tuple) of
26481
27580
  (connection, read) timeouts.
26482
- :return: WorkspacetemplateListResponse
27581
+ :return: GlobalworkspacetemplateListResponse
26483
27582
  If the method is called asynchronously,
26484
27583
  returns the request thread.
26485
27584
  """
@@ -26508,7 +27607,7 @@ class DefaultApi(object):
26508
27607
  number provided, it will be total request
26509
27608
  timeout. It can also be a pair (tuple) of
26510
27609
  (connection, read) timeouts.
26511
- :return: tuple(WorkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
27610
+ :return: tuple(GlobalworkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
26512
27611
  If the method is called asynchronously,
26513
27612
  returns the request thread.
26514
27613
  """
@@ -26572,7 +27671,7 @@ class DefaultApi(object):
26572
27671
  body=body_params,
26573
27672
  post_params=form_params,
26574
27673
  files=local_var_files,
26575
- response_type='WorkspacetemplateListResponse', # noqa: E501
27674
+ response_type='GlobalworkspacetemplateListResponse', # noqa: E501
26576
27675
  auth_settings=auth_settings,
26577
27676
  async_req=local_var_params.get('async_req'),
26578
27677
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -26596,6 +27695,7 @@ class DefaultApi(object):
26596
27695
  :param str creator_id: creator_id to filter by
26597
27696
  :param str cloud_id: cloud_id to filter by
26598
27697
  :param list[ApplicationType] application_type: Application type to filter by
27698
+ :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
27699
  :param ServiceSortField sort_field: If absent, the default sorting order is 1. status (active first).2. Last updated at (desc). 3. Name (asc).
26600
27700
  :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
26601
27701
  :param str paging_token:
@@ -26630,6 +27730,7 @@ class DefaultApi(object):
26630
27730
  :param str creator_id: creator_id to filter by
26631
27731
  :param str cloud_id: cloud_id to filter by
26632
27732
  :param list[ApplicationType] application_type: Application type to filter by
27733
+ :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
27734
  :param ServiceSortField sort_field: If absent, the default sorting order is 1. status (active first).2. Last updated at (desc). 3. Name (asc).
26634
27735
  :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
26635
27736
  :param str paging_token:
@@ -26658,6 +27759,7 @@ class DefaultApi(object):
26658
27759
  'creator_id',
26659
27760
  'cloud_id',
26660
27761
  'application_type',
27762
+ 'tag_filter',
26661
27763
  'sort_field',
26662
27764
  'sort_order',
26663
27765
  'paging_token',
@@ -26706,6 +27808,9 @@ class DefaultApi(object):
26706
27808
  if 'application_type' in local_var_params and local_var_params['application_type'] is not None: # noqa: E501
26707
27809
  query_params.append(('application_type', local_var_params['application_type'])) # noqa: E501
26708
27810
  collection_formats['application_type'] = 'multi' # noqa: E501
27811
+ if 'tag_filter' in local_var_params and local_var_params['tag_filter'] is not None: # noqa: E501
27812
+ query_params.append(('tag_filter', local_var_params['tag_filter'])) # noqa: E501
27813
+ collection_formats['tag_filter'] = 'multi' # noqa: E501
26709
27814
  if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
26710
27815
  query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
26711
27816
  if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
@@ -26893,21 +27998,17 @@ class DefaultApi(object):
26893
27998
  _request_timeout=local_var_params.get('_request_timeout'),
26894
27999
  collection_formats=collection_formats)
26895
28000
 
26896
- def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
26897
- """List Workspace Templates # noqa: E501
28001
+ def list_template_versions_api_v2_workspace_templates_template_id_versions_get(self, template_id, **kwargs): # noqa: E501
28002
+ """List Template Versions # noqa: E501
26898
28003
 
26899
- Lists all workspace templates # noqa: E501
28004
+ List versions for a workspace template # noqa: E501
26900
28005
  This method makes a synchronous HTTP request by default. To make an
26901
28006
  asynchronous HTTP request, please pass async_req=True
26902
- >>> thread = api.list_workspace_templates_api_v2_experimental_workspaces_templates_get(async_req=True)
28007
+ >>> thread = api.list_template_versions_api_v2_workspace_templates_template_id_versions_get(template_id, async_req=True)
26903
28008
  >>> result = thread.get()
26904
28009
 
26905
28010
  :param async_req bool: execute request asynchronously
26906
- :param list[str] oa_group_names: Search for workspaces that belong to the provided group name
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
28011
+ :param str template_id: (required)
26911
28012
  :param _preload_content: if False, the urllib3.HTTPResponse object will
26912
28013
  be returned without reading/decoding response
26913
28014
  data. Default is True.
@@ -26915,28 +28016,24 @@ class DefaultApi(object):
26915
28016
  number provided, it will be total request
26916
28017
  timeout. It can also be a pair (tuple) of
26917
28018
  (connection, read) timeouts.
26918
- :return: WorkspacetemplateListResponse
28019
+ :return: WorkspacetemplateversionListResponse
26919
28020
  If the method is called asynchronously,
26920
28021
  returns the request thread.
26921
28022
  """
26922
28023
  kwargs['_return_http_data_only'] = True
26923
- return self.list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(**kwargs) # noqa: E501
28024
+ return self.list_template_versions_api_v2_workspace_templates_template_id_versions_get_with_http_info(template_id, **kwargs) # noqa: E501
26924
28025
 
26925
- def list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(self, **kwargs): # noqa: E501
26926
- """List Workspace Templates # noqa: E501
28026
+ def list_template_versions_api_v2_workspace_templates_template_id_versions_get_with_http_info(self, template_id, **kwargs): # noqa: E501
28027
+ """List Template Versions # noqa: E501
26927
28028
 
26928
- Lists all workspace templates # noqa: E501
28029
+ List versions for a workspace template # noqa: E501
26929
28030
  This method makes a synchronous HTTP request by default. To make an
26930
28031
  asynchronous HTTP request, please pass async_req=True
26931
- >>> thread = api.list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(async_req=True)
28032
+ >>> thread = api.list_template_versions_api_v2_workspace_templates_template_id_versions_get_with_http_info(template_id, async_req=True)
26932
28033
  >>> result = thread.get()
26933
28034
 
26934
28035
  :param async_req bool: execute request asynchronously
26935
- :param list[str] oa_group_names: Search for workspaces that belong to the provided group name
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
28036
+ :param str template_id: (required)
26940
28037
  :param _return_http_data_only: response data without head status code
26941
28038
  and headers
26942
28039
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -26946,7 +28043,7 @@ class DefaultApi(object):
26946
28043
  number provided, it will be total request
26947
28044
  timeout. It can also be a pair (tuple) of
26948
28045
  (connection, read) timeouts.
26949
- :return: tuple(WorkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
28046
+ :return: tuple(WorkspacetemplateversionListResponse, status_code(int), headers(HTTPHeaderDict))
26950
28047
  If the method is called asynchronously,
26951
28048
  returns the request thread.
26952
28049
  """
@@ -26954,11 +28051,7 @@ class DefaultApi(object):
26954
28051
  local_var_params = locals()
26955
28052
 
26956
28053
  all_params = [
26957
- 'oa_group_names',
26958
- 'for_private_endpoints_homepage',
26959
- 'for_fine_tuning',
26960
- 'for_ai_apps_section',
26961
- 'for_gallery'
28054
+ 'template_id'
26962
28055
  ]
26963
28056
  all_params.extend(
26964
28057
  [
@@ -26973,27 +28066,22 @@ class DefaultApi(object):
26973
28066
  if key not in all_params:
26974
28067
  raise ApiTypeError(
26975
28068
  "Got an unexpected keyword argument '%s'"
26976
- " to method list_workspace_templates_api_v2_experimental_workspaces_templates_get" % key
28069
+ " to method list_template_versions_api_v2_workspace_templates_template_id_versions_get" % key
26977
28070
  )
26978
28071
  local_var_params[key] = val
26979
28072
  del local_var_params['kwargs']
28073
+ # verify the required parameter 'template_id' is set
28074
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
28075
+ local_var_params['template_id'] is None): # noqa: E501
28076
+ raise ApiValueError("Missing the required parameter `template_id` when calling `list_template_versions_api_v2_workspace_templates_template_id_versions_get`") # noqa: E501
26980
28077
 
26981
28078
  collection_formats = {}
26982
28079
 
26983
28080
  path_params = {}
28081
+ if 'template_id' in local_var_params:
28082
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
26984
28083
 
26985
28084
  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
28085
 
26998
28086
  header_params = {}
26999
28087
 
@@ -27009,14 +28097,14 @@ class DefaultApi(object):
27009
28097
  auth_settings = [] # noqa: E501
27010
28098
 
27011
28099
  return self.api_client.call_api(
27012
- '/api/v2/experimental_workspaces/templates', 'GET',
28100
+ '/api/v2/workspace_templates/{template_id}/versions', 'GET',
27013
28101
  path_params,
27014
28102
  query_params,
27015
28103
  header_params,
27016
28104
  body=body_params,
27017
28105
  post_params=form_params,
27018
28106
  files=local_var_files,
27019
- response_type='WorkspacetemplateListResponse', # noqa: E501
28107
+ response_type='WorkspacetemplateversionListResponse', # noqa: E501
27020
28108
  auth_settings=auth_settings,
27021
28109
  async_req=local_var_params.get('async_req'),
27022
28110
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -27024,26 +28112,29 @@ class DefaultApi(object):
27024
28112
  _request_timeout=local_var_params.get('_request_timeout'),
27025
28113
  collection_formats=collection_formats)
27026
28114
 
27027
- def list_workspaces_api_v2_experimental_workspaces_get(self, **kwargs): # noqa: E501
27028
- """List Workspaces # noqa: E501
28115
+ def list_templates_api_v2_workspace_templates_get(self, **kwargs): # noqa: E501
28116
+ """List Templates # noqa: E501
27029
28117
 
27030
- Lists all Workspace the user has access to # noqa: E501
28118
+ List user's workspace templates with pagination, filtering, and search # noqa: E501
27031
28119
  This method makes a synchronous HTTP request by default. To make an
27032
28120
  asynchronous HTTP request, please pass async_req=True
27033
- >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get(async_req=True)
28121
+ >>> thread = api.list_templates_api_v2_workspace_templates_get(async_req=True)
27034
28122
  >>> result = thread.get()
27035
28123
 
27036
28124
  :param async_req bool: execute request asynchronously
27037
- :param str name: Search for workspace with a name that equals the provided value
27038
- :param str name_contains: Search for workspace with a name that contains the provided value
27039
- :param str creator_id: List workspaces created by a given user
27040
- :param str project_id: Search for workspace with project_id
27041
- :param str cloud_id: Search for workspace with cloud_id
27042
- :param list[SessionState] state_filter: A list of session states to filter by
27043
- :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
27044
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28125
+ :param str name: Filter by template name (partial match)
28126
+ :param str text_contains: Filter by template name, description, or labels (partial match)
28127
+ :param WorkspaceTemplateComplexity complexity: Filter by complexity level
28128
+ :param WorkspaceTemplateCategory category: Filter by category
28129
+ :param str labels: Comma-separated list of labels to filter by
28130
+ :param str cloud_id: Filter by cloud ID
28131
+ :param bool is_global: Filter by global templates
28132
+ :param str creator_id: Filter by creator user ID
28133
+ :param PublishedFilter published: Filter by published templates
27045
28134
  :param str paging_token:
27046
28135
  :param int count:
28136
+ :param WorkspaceTemplatesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28137
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
27047
28138
  :param _preload_content: if False, the urllib3.HTTPResponse object will
27048
28139
  be returned without reading/decoding response
27049
28140
  data. Default is True.
@@ -27051,33 +28142,36 @@ class DefaultApi(object):
27051
28142
  number provided, it will be total request
27052
28143
  timeout. It can also be a pair (tuple) of
27053
28144
  (connection, read) timeouts.
27054
- :return: ExperimentalworkspaceListResponse
28145
+ :return: WorkspacetemplateListResponse
27055
28146
  If the method is called asynchronously,
27056
28147
  returns the request thread.
27057
28148
  """
27058
28149
  kwargs['_return_http_data_only'] = True
27059
- return self.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(**kwargs) # noqa: E501
28150
+ return self.list_templates_api_v2_workspace_templates_get_with_http_info(**kwargs) # noqa: E501
27060
28151
 
27061
- def list_workspaces_api_v2_experimental_workspaces_get_with_http_info(self, **kwargs): # noqa: E501
27062
- """List Workspaces # noqa: E501
28152
+ def list_templates_api_v2_workspace_templates_get_with_http_info(self, **kwargs): # noqa: E501
28153
+ """List Templates # noqa: E501
27063
28154
 
27064
- Lists all Workspace the user has access to # noqa: E501
28155
+ List user's workspace templates with pagination, filtering, and search # noqa: E501
27065
28156
  This method makes a synchronous HTTP request by default. To make an
27066
28157
  asynchronous HTTP request, please pass async_req=True
27067
- >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(async_req=True)
28158
+ >>> thread = api.list_templates_api_v2_workspace_templates_get_with_http_info(async_req=True)
27068
28159
  >>> result = thread.get()
27069
28160
 
27070
28161
  :param async_req bool: execute request asynchronously
27071
- :param str name: Search for workspace with a name that equals the provided value
27072
- :param str name_contains: Search for workspace with a name that contains the provided value
27073
- :param str creator_id: List workspaces created by a given user
27074
- :param str project_id: Search for workspace with project_id
27075
- :param str cloud_id: Search for workspace with cloud_id
27076
- :param list[SessionState] state_filter: A list of session states to filter by
27077
- :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
27078
- :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28162
+ :param str name: Filter by template name (partial match)
28163
+ :param str text_contains: Filter by template name, description, or labels (partial match)
28164
+ :param WorkspaceTemplateComplexity complexity: Filter by complexity level
28165
+ :param WorkspaceTemplateCategory category: Filter by category
28166
+ :param str labels: Comma-separated list of labels to filter by
28167
+ :param str cloud_id: Filter by cloud ID
28168
+ :param bool is_global: Filter by global templates
28169
+ :param str creator_id: Filter by creator user ID
28170
+ :param PublishedFilter published: Filter by published templates
27079
28171
  :param str paging_token:
27080
28172
  :param int count:
28173
+ :param WorkspaceTemplatesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28174
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
27081
28175
  :param _return_http_data_only: response data without head status code
27082
28176
  and headers
27083
28177
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -27087,7 +28181,7 @@ class DefaultApi(object):
27087
28181
  number provided, it will be total request
27088
28182
  timeout. It can also be a pair (tuple) of
27089
28183
  (connection, read) timeouts.
27090
- :return: tuple(ExperimentalworkspaceListResponse, status_code(int), headers(HTTPHeaderDict))
28184
+ :return: tuple(WorkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
27091
28185
  If the method is called asynchronously,
27092
28186
  returns the request thread.
27093
28187
  """
@@ -27096,15 +28190,18 @@ class DefaultApi(object):
27096
28190
 
27097
28191
  all_params = [
27098
28192
  'name',
27099
- 'name_contains',
27100
- 'creator_id',
27101
- 'project_id',
28193
+ 'text_contains',
28194
+ 'complexity',
28195
+ 'category',
28196
+ 'labels',
27102
28197
  'cloud_id',
27103
- 'state_filter',
27104
- 'sort_field',
27105
- 'sort_order',
28198
+ 'is_global',
28199
+ 'creator_id',
28200
+ 'published',
27106
28201
  'paging_token',
27107
- 'count'
28202
+ 'count',
28203
+ 'sort_field',
28204
+ 'sort_order'
27108
28205
  ]
27109
28206
  all_params.extend(
27110
28207
  [
@@ -27119,15 +28216,15 @@ class DefaultApi(object):
27119
28216
  if key not in all_params:
27120
28217
  raise ApiTypeError(
27121
28218
  "Got an unexpected keyword argument '%s'"
27122
- " to method list_workspaces_api_v2_experimental_workspaces_get" % key
28219
+ " to method list_templates_api_v2_workspace_templates_get" % key
27123
28220
  )
27124
28221
  local_var_params[key] = val
27125
28222
  del local_var_params['kwargs']
27126
28223
 
27127
- 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 `list_workspaces_api_v2_experimental_workspaces_get`, must be a value less than or equal to `50`") # noqa: E501
28224
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
28225
+ 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 `1000`") # noqa: E501
27129
28226
  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 `list_workspaces_api_v2_experimental_workspaces_get`, must be a value greater than or equal to `0`") # noqa: E501
28227
+ 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
28228
  collection_formats = {}
27132
28229
 
27133
28230
  path_params = {}
@@ -27135,25 +28232,30 @@ class DefaultApi(object):
27135
28232
  query_params = []
27136
28233
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
27137
28234
  query_params.append(('name', local_var_params['name'])) # noqa: E501
27138
- if 'name_contains' in local_var_params and local_var_params['name_contains'] is not None: # noqa: E501
27139
- query_params.append(('name_contains', local_var_params['name_contains'])) # noqa: E501
27140
- if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
27141
- query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
27142
- if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
27143
- query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28235
+ if 'text_contains' in local_var_params and local_var_params['text_contains'] is not None: # noqa: E501
28236
+ query_params.append(('text_contains', local_var_params['text_contains'])) # noqa: E501
28237
+ if 'complexity' in local_var_params and local_var_params['complexity'] is not None: # noqa: E501
28238
+ query_params.append(('complexity', local_var_params['complexity'])) # noqa: E501
28239
+ if 'category' in local_var_params and local_var_params['category'] is not None: # noqa: E501
28240
+ query_params.append(('category', local_var_params['category'])) # noqa: E501
28241
+ if 'labels' in local_var_params and local_var_params['labels'] is not None: # noqa: E501
28242
+ query_params.append(('labels', local_var_params['labels'])) # noqa: E501
27144
28243
  if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
27145
28244
  query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
27146
- if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
27147
- query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
27148
- collection_formats['state_filter'] = 'multi' # noqa: E501
27149
- if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
27150
- query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
27151
- if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
27152
- query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
28245
+ if 'is_global' in local_var_params and local_var_params['is_global'] is not None: # noqa: E501
28246
+ query_params.append(('is_global', local_var_params['is_global'])) # noqa: E501
28247
+ if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28248
+ query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28249
+ if 'published' in local_var_params and local_var_params['published'] is not None: # noqa: E501
28250
+ query_params.append(('published', local_var_params['published'])) # noqa: E501
27153
28251
  if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
27154
28252
  query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
27155
28253
  if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
27156
28254
  query_params.append(('count', local_var_params['count'])) # noqa: E501
28255
+ if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28256
+ query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28257
+ if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
28258
+ query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
27157
28259
 
27158
28260
  header_params = {}
27159
28261
 
@@ -27169,14 +28271,14 @@ class DefaultApi(object):
27169
28271
  auth_settings = [] # noqa: E501
27170
28272
 
27171
28273
  return self.api_client.call_api(
27172
- '/api/v2/experimental_workspaces/', 'GET',
28274
+ '/api/v2/workspace_templates/', 'GET',
27173
28275
  path_params,
27174
28276
  query_params,
27175
28277
  header_params,
27176
28278
  body=body_params,
27177
28279
  post_params=form_params,
27178
28280
  files=local_var_files,
27179
- response_type='ExperimentalworkspaceListResponse', # noqa: E501
28281
+ response_type='WorkspacetemplateListResponse', # noqa: E501
27180
28282
  auth_settings=auth_settings,
27181
28283
  async_req=local_var_params.get('async_req'),
27182
28284
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -27184,16 +28286,19 @@ class DefaultApi(object):
27184
28286
  _request_timeout=local_var_params.get('_request_timeout'),
27185
28287
  collection_formats=collection_formats)
27186
28288
 
27187
- def login_user_api_v2_users_login_post(self, login_user_params, **kwargs): # noqa: E501
27188
- """Login User # noqa: E501
28289
+ def list_values_api_v2_tags_values_get(self, key, **kwargs): # noqa: E501
28290
+ """List Values # noqa: E501
27189
28291
 
27190
28292
  This method makes a synchronous HTTP request by default. To make an
27191
28293
  asynchronous HTTP request, please pass async_req=True
27192
- >>> thread = api.login_user_api_v2_users_login_post(login_user_params, async_req=True)
28294
+ >>> thread = api.list_values_api_v2_tags_values_get(key, async_req=True)
27193
28295
  >>> result = thread.get()
27194
28296
 
27195
28297
  :param async_req bool: execute request asynchronously
27196
- :param LoginUserParams login_user_params: (required)
28298
+ :param str key: (required)
28299
+ :param ResourceTagResourceType resource_type:
28300
+ :param str paging_token:
28301
+ :param int count:
27197
28302
  :param _preload_content: if False, the urllib3.HTTPResponse object will
27198
28303
  be returned without reading/decoding response
27199
28304
  data. Default is True.
@@ -27201,19 +28306,444 @@ class DefaultApi(object):
27201
28306
  number provided, it will be total request
27202
28307
  timeout. It can also be a pair (tuple) of
27203
28308
  (connection, read) timeouts.
27204
- :return: None
28309
+ :return: TagvalueListResponse
27205
28310
  If the method is called asynchronously,
27206
28311
  returns the request thread.
27207
28312
  """
27208
28313
  kwargs['_return_http_data_only'] = True
27209
- return self.login_user_api_v2_users_login_post_with_http_info(login_user_params, **kwargs) # noqa: E501
28314
+ return self.list_values_api_v2_tags_values_get_with_http_info(key, **kwargs) # noqa: E501
27210
28315
 
27211
- def login_user_api_v2_users_login_post_with_http_info(self, login_user_params, **kwargs): # noqa: E501
27212
- """Login User # noqa: E501
28316
+ def list_values_api_v2_tags_values_get_with_http_info(self, key, **kwargs): # noqa: E501
28317
+ """List Values # noqa: E501
27213
28318
 
27214
28319
  This method makes a synchronous HTTP request by default. To make an
27215
28320
  asynchronous HTTP request, please pass async_req=True
27216
- >>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
28321
+ >>> thread = api.list_values_api_v2_tags_values_get_with_http_info(key, async_req=True)
28322
+ >>> result = thread.get()
28323
+
28324
+ :param async_req bool: execute request asynchronously
28325
+ :param str key: (required)
28326
+ :param ResourceTagResourceType resource_type:
28327
+ :param str paging_token:
28328
+ :param int count:
28329
+ :param _return_http_data_only: response data without head status code
28330
+ and headers
28331
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28332
+ be returned without reading/decoding response
28333
+ data. Default is True.
28334
+ :param _request_timeout: timeout setting for this request. If one
28335
+ number provided, it will be total request
28336
+ timeout. It can also be a pair (tuple) of
28337
+ (connection, read) timeouts.
28338
+ :return: tuple(TagvalueListResponse, status_code(int), headers(HTTPHeaderDict))
28339
+ If the method is called asynchronously,
28340
+ returns the request thread.
28341
+ """
28342
+
28343
+ local_var_params = locals()
28344
+
28345
+ all_params = [
28346
+ 'key',
28347
+ 'resource_type',
28348
+ 'paging_token',
28349
+ 'count'
28350
+ ]
28351
+ all_params.extend(
28352
+ [
28353
+ 'async_req',
28354
+ '_return_http_data_only',
28355
+ '_preload_content',
28356
+ '_request_timeout'
28357
+ ]
28358
+ )
28359
+
28360
+ for key, val in six.iteritems(local_var_params['kwargs']):
28361
+ if key not in all_params:
28362
+ raise ApiTypeError(
28363
+ "Got an unexpected keyword argument '%s'"
28364
+ " to method list_values_api_v2_tags_values_get" % key
28365
+ )
28366
+ local_var_params[key] = val
28367
+ del local_var_params['kwargs']
28368
+ # verify the required parameter 'key' is set
28369
+ if self.api_client.client_side_validation and ('key' not in local_var_params or # noqa: E501
28370
+ local_var_params['key'] is None): # noqa: E501
28371
+ raise ApiValueError("Missing the required parameter `key` when calling `list_values_api_v2_tags_values_get`") # noqa: E501
28372
+
28373
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28374
+ 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
28375
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28376
+ 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
28377
+ collection_formats = {}
28378
+
28379
+ path_params = {}
28380
+
28381
+ query_params = []
28382
+ if 'key' in local_var_params and local_var_params['key'] is not None: # noqa: E501
28383
+ query_params.append(('key', local_var_params['key'])) # noqa: E501
28384
+ if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
28385
+ query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
28386
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28387
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28388
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
28389
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
28390
+
28391
+ header_params = {}
28392
+
28393
+ form_params = []
28394
+ local_var_files = {}
28395
+
28396
+ body_params = None
28397
+ # HTTP header `Accept`
28398
+ header_params['Accept'] = self.api_client.select_header_accept(
28399
+ ['application/json']) # noqa: E501
28400
+
28401
+ # Authentication setting
28402
+ auth_settings = [] # noqa: E501
28403
+
28404
+ return self.api_client.call_api(
28405
+ '/api/v2/tags/values', 'GET',
28406
+ path_params,
28407
+ query_params,
28408
+ header_params,
28409
+ body=body_params,
28410
+ post_params=form_params,
28411
+ files=local_var_files,
28412
+ response_type='TagvalueListResponse', # noqa: E501
28413
+ auth_settings=auth_settings,
28414
+ async_req=local_var_params.get('async_req'),
28415
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28416
+ _preload_content=local_var_params.get('_preload_content', True),
28417
+ _request_timeout=local_var_params.get('_request_timeout'),
28418
+ collection_formats=collection_formats)
28419
+
28420
+ def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
28421
+ """List Workspace Templates # noqa: E501
28422
+
28423
+ Lists all workspace templates # noqa: E501
28424
+ This method makes a synchronous HTTP request by default. To make an
28425
+ asynchronous HTTP request, please pass async_req=True
28426
+ >>> thread = api.list_workspace_templates_api_v2_experimental_workspaces_templates_get(async_req=True)
28427
+ >>> result = thread.get()
28428
+
28429
+ :param async_req bool: execute request asynchronously
28430
+ :param list[str] oa_group_names: Search for workspaces that belong to the provided group name
28431
+ :param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
28432
+ :param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
28433
+ :param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
28434
+ :param bool for_gallery: Filters the list to show the ones expected for gallery section
28435
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28436
+ be returned without reading/decoding response
28437
+ data. Default is True.
28438
+ :param _request_timeout: timeout setting for this request. If one
28439
+ number provided, it will be total request
28440
+ timeout. It can also be a pair (tuple) of
28441
+ (connection, read) timeouts.
28442
+ :return: GlobalworkspacetemplateListResponse
28443
+ If the method is called asynchronously,
28444
+ returns the request thread.
28445
+ """
28446
+ kwargs['_return_http_data_only'] = True
28447
+ return self.list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(**kwargs) # noqa: E501
28448
+
28449
+ def list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(self, **kwargs): # noqa: E501
28450
+ """List Workspace Templates # noqa: E501
28451
+
28452
+ Lists all workspace templates # noqa: E501
28453
+ This method makes a synchronous HTTP request by default. To make an
28454
+ asynchronous HTTP request, please pass async_req=True
28455
+ >>> thread = api.list_workspace_templates_api_v2_experimental_workspaces_templates_get_with_http_info(async_req=True)
28456
+ >>> result = thread.get()
28457
+
28458
+ :param async_req bool: execute request asynchronously
28459
+ :param list[str] oa_group_names: Search for workspaces that belong to the provided group name
28460
+ :param bool for_private_endpoints_homepage: Filters the list to be ones expected for private endpoints home page
28461
+ :param bool for_fine_tuning: Filters the list to be ones expected for fine tuning tutorial section
28462
+ :param bool for_ai_apps_section: Filters the list to show the ones expected for ai apps section
28463
+ :param bool for_gallery: Filters the list to show the ones expected for gallery section
28464
+ :param _return_http_data_only: response data without head status code
28465
+ and headers
28466
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28467
+ be returned without reading/decoding response
28468
+ data. Default is True.
28469
+ :param _request_timeout: timeout setting for this request. If one
28470
+ number provided, it will be total request
28471
+ timeout. It can also be a pair (tuple) of
28472
+ (connection, read) timeouts.
28473
+ :return: tuple(GlobalworkspacetemplateListResponse, status_code(int), headers(HTTPHeaderDict))
28474
+ If the method is called asynchronously,
28475
+ returns the request thread.
28476
+ """
28477
+
28478
+ local_var_params = locals()
28479
+
28480
+ all_params = [
28481
+ 'oa_group_names',
28482
+ 'for_private_endpoints_homepage',
28483
+ 'for_fine_tuning',
28484
+ 'for_ai_apps_section',
28485
+ 'for_gallery'
28486
+ ]
28487
+ all_params.extend(
28488
+ [
28489
+ 'async_req',
28490
+ '_return_http_data_only',
28491
+ '_preload_content',
28492
+ '_request_timeout'
28493
+ ]
28494
+ )
28495
+
28496
+ for key, val in six.iteritems(local_var_params['kwargs']):
28497
+ if key not in all_params:
28498
+ raise ApiTypeError(
28499
+ "Got an unexpected keyword argument '%s'"
28500
+ " to method list_workspace_templates_api_v2_experimental_workspaces_templates_get" % key
28501
+ )
28502
+ local_var_params[key] = val
28503
+ del local_var_params['kwargs']
28504
+
28505
+ collection_formats = {}
28506
+
28507
+ path_params = {}
28508
+
28509
+ query_params = []
28510
+ if 'oa_group_names' in local_var_params and local_var_params['oa_group_names'] is not None: # noqa: E501
28511
+ query_params.append(('oa_group_names', local_var_params['oa_group_names'])) # noqa: E501
28512
+ collection_formats['oa_group_names'] = 'multi' # noqa: E501
28513
+ if 'for_private_endpoints_homepage' in local_var_params and local_var_params['for_private_endpoints_homepage'] is not None: # noqa: E501
28514
+ query_params.append(('for_private_endpoints_homepage', local_var_params['for_private_endpoints_homepage'])) # noqa: E501
28515
+ if 'for_fine_tuning' in local_var_params and local_var_params['for_fine_tuning'] is not None: # noqa: E501
28516
+ query_params.append(('for_fine_tuning', local_var_params['for_fine_tuning'])) # noqa: E501
28517
+ if 'for_ai_apps_section' in local_var_params and local_var_params['for_ai_apps_section'] is not None: # noqa: E501
28518
+ query_params.append(('for_ai_apps_section', local_var_params['for_ai_apps_section'])) # noqa: E501
28519
+ if 'for_gallery' in local_var_params and local_var_params['for_gallery'] is not None: # noqa: E501
28520
+ query_params.append(('for_gallery', local_var_params['for_gallery'])) # noqa: E501
28521
+
28522
+ header_params = {}
28523
+
28524
+ form_params = []
28525
+ local_var_files = {}
28526
+
28527
+ body_params = None
28528
+ # HTTP header `Accept`
28529
+ header_params['Accept'] = self.api_client.select_header_accept(
28530
+ ['application/json']) # noqa: E501
28531
+
28532
+ # Authentication setting
28533
+ auth_settings = [] # noqa: E501
28534
+
28535
+ return self.api_client.call_api(
28536
+ '/api/v2/experimental_workspaces/templates', 'GET',
28537
+ path_params,
28538
+ query_params,
28539
+ header_params,
28540
+ body=body_params,
28541
+ post_params=form_params,
28542
+ files=local_var_files,
28543
+ response_type='GlobalworkspacetemplateListResponse', # noqa: E501
28544
+ auth_settings=auth_settings,
28545
+ async_req=local_var_params.get('async_req'),
28546
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28547
+ _preload_content=local_var_params.get('_preload_content', True),
28548
+ _request_timeout=local_var_params.get('_request_timeout'),
28549
+ collection_formats=collection_formats)
28550
+
28551
+ def list_workspaces_api_v2_experimental_workspaces_get(self, **kwargs): # noqa: E501
28552
+ """List Workspaces # noqa: E501
28553
+
28554
+ Lists all Workspace the user has access to # noqa: E501
28555
+ This method makes a synchronous HTTP request by default. To make an
28556
+ asynchronous HTTP request, please pass async_req=True
28557
+ >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get(async_req=True)
28558
+ >>> result = thread.get()
28559
+
28560
+ :param async_req bool: execute request asynchronously
28561
+ :param str name: Search for workspace with a name that equals the provided value
28562
+ :param str name_contains: Search for workspace with a name that contains the provided value
28563
+ :param str creator_id: List workspaces created by a given user
28564
+ :param str project_id: Search for workspace with project_id
28565
+ :param str cloud_id: Search for workspace with cloud_id
28566
+ :param list[SessionState] state_filter: A list of session states to filter by
28567
+ :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.
28568
+ :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28569
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28570
+ :param str paging_token:
28571
+ :param int count:
28572
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28573
+ be returned without reading/decoding response
28574
+ data. Default is True.
28575
+ :param _request_timeout: timeout setting for this request. If one
28576
+ number provided, it will be total request
28577
+ timeout. It can also be a pair (tuple) of
28578
+ (connection, read) timeouts.
28579
+ :return: ExperimentalworkspaceListResponse
28580
+ If the method is called asynchronously,
28581
+ returns the request thread.
28582
+ """
28583
+ kwargs['_return_http_data_only'] = True
28584
+ return self.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(**kwargs) # noqa: E501
28585
+
28586
+ def list_workspaces_api_v2_experimental_workspaces_get_with_http_info(self, **kwargs): # noqa: E501
28587
+ """List Workspaces # noqa: E501
28588
+
28589
+ Lists all Workspace the user has access to # noqa: E501
28590
+ This method makes a synchronous HTTP request by default. To make an
28591
+ asynchronous HTTP request, please pass async_req=True
28592
+ >>> thread = api.list_workspaces_api_v2_experimental_workspaces_get_with_http_info(async_req=True)
28593
+ >>> result = thread.get()
28594
+
28595
+ :param async_req bool: execute request asynchronously
28596
+ :param str name: Search for workspace with a name that equals the provided value
28597
+ :param str name_contains: Search for workspace with a name that contains the provided value
28598
+ :param str creator_id: List workspaces created by a given user
28599
+ :param str project_id: Search for workspace with project_id
28600
+ :param str cloud_id: Search for workspace with cloud_id
28601
+ :param list[SessionState] state_filter: A list of session states to filter by
28602
+ :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.
28603
+ :param ExperimentalWorkspacesSortField sort_field: If absent, the sort order will be determined according to the type_filter.
28604
+ :param SortOrder sort_order: If sort_field is absent, this field is ignored.If absent, this field defaults to ascending.
28605
+ :param str paging_token:
28606
+ :param int count:
28607
+ :param _return_http_data_only: response data without head status code
28608
+ and headers
28609
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28610
+ be returned without reading/decoding response
28611
+ data. Default is True.
28612
+ :param _request_timeout: timeout setting for this request. If one
28613
+ number provided, it will be total request
28614
+ timeout. It can also be a pair (tuple) of
28615
+ (connection, read) timeouts.
28616
+ :return: tuple(ExperimentalworkspaceListResponse, status_code(int), headers(HTTPHeaderDict))
28617
+ If the method is called asynchronously,
28618
+ returns the request thread.
28619
+ """
28620
+
28621
+ local_var_params = locals()
28622
+
28623
+ all_params = [
28624
+ 'name',
28625
+ 'name_contains',
28626
+ 'creator_id',
28627
+ 'project_id',
28628
+ 'cloud_id',
28629
+ 'state_filter',
28630
+ 'tag_filter',
28631
+ 'sort_field',
28632
+ 'sort_order',
28633
+ 'paging_token',
28634
+ 'count'
28635
+ ]
28636
+ all_params.extend(
28637
+ [
28638
+ 'async_req',
28639
+ '_return_http_data_only',
28640
+ '_preload_content',
28641
+ '_request_timeout'
28642
+ ]
28643
+ )
28644
+
28645
+ for key, val in six.iteritems(local_var_params['kwargs']):
28646
+ if key not in all_params:
28647
+ raise ApiTypeError(
28648
+ "Got an unexpected keyword argument '%s'"
28649
+ " to method list_workspaces_api_v2_experimental_workspaces_get" % key
28650
+ )
28651
+ local_var_params[key] = val
28652
+ del local_var_params['kwargs']
28653
+
28654
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
28655
+ 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
28656
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
28657
+ 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
28658
+ collection_formats = {}
28659
+
28660
+ path_params = {}
28661
+
28662
+ query_params = []
28663
+ if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
28664
+ query_params.append(('name', local_var_params['name'])) # noqa: E501
28665
+ if 'name_contains' in local_var_params and local_var_params['name_contains'] is not None: # noqa: E501
28666
+ query_params.append(('name_contains', local_var_params['name_contains'])) # noqa: E501
28667
+ if 'creator_id' in local_var_params and local_var_params['creator_id'] is not None: # noqa: E501
28668
+ query_params.append(('creator_id', local_var_params['creator_id'])) # noqa: E501
28669
+ if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28670
+ query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28671
+ if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
28672
+ query_params.append(('cloud_id', local_var_params['cloud_id'])) # noqa: E501
28673
+ if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
28674
+ query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
28675
+ collection_formats['state_filter'] = 'multi' # noqa: E501
28676
+ if 'tag_filter' in local_var_params and local_var_params['tag_filter'] is not None: # noqa: E501
28677
+ query_params.append(('tag_filter', local_var_params['tag_filter'])) # noqa: E501
28678
+ collection_formats['tag_filter'] = 'multi' # noqa: E501
28679
+ if 'sort_field' in local_var_params and local_var_params['sort_field'] is not None: # noqa: E501
28680
+ query_params.append(('sort_field', local_var_params['sort_field'])) # noqa: E501
28681
+ if 'sort_order' in local_var_params and local_var_params['sort_order'] is not None: # noqa: E501
28682
+ query_params.append(('sort_order', local_var_params['sort_order'])) # noqa: E501
28683
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
28684
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
28685
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
28686
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
28687
+
28688
+ header_params = {}
28689
+
28690
+ form_params = []
28691
+ local_var_files = {}
28692
+
28693
+ body_params = None
28694
+ # HTTP header `Accept`
28695
+ header_params['Accept'] = self.api_client.select_header_accept(
28696
+ ['application/json']) # noqa: E501
28697
+
28698
+ # Authentication setting
28699
+ auth_settings = [] # noqa: E501
28700
+
28701
+ return self.api_client.call_api(
28702
+ '/api/v2/experimental_workspaces/', 'GET',
28703
+ path_params,
28704
+ query_params,
28705
+ header_params,
28706
+ body=body_params,
28707
+ post_params=form_params,
28708
+ files=local_var_files,
28709
+ response_type='ExperimentalworkspaceListResponse', # noqa: E501
28710
+ auth_settings=auth_settings,
28711
+ async_req=local_var_params.get('async_req'),
28712
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
28713
+ _preload_content=local_var_params.get('_preload_content', True),
28714
+ _request_timeout=local_var_params.get('_request_timeout'),
28715
+ collection_formats=collection_formats)
28716
+
28717
+ def login_user_api_v2_users_login_post(self, login_user_params, **kwargs): # noqa: E501
28718
+ """Login User # noqa: E501
28719
+
28720
+ This method makes a synchronous HTTP request by default. To make an
28721
+ asynchronous HTTP request, please pass async_req=True
28722
+ >>> thread = api.login_user_api_v2_users_login_post(login_user_params, async_req=True)
28723
+ >>> result = thread.get()
28724
+
28725
+ :param async_req bool: execute request asynchronously
28726
+ :param LoginUserParams login_user_params: (required)
28727
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
28728
+ be returned without reading/decoding response
28729
+ data. Default is True.
28730
+ :param _request_timeout: timeout setting for this request. If one
28731
+ number provided, it will be total request
28732
+ timeout. It can also be a pair (tuple) of
28733
+ (connection, read) timeouts.
28734
+ :return: None
28735
+ If the method is called asynchronously,
28736
+ returns the request thread.
28737
+ """
28738
+ kwargs['_return_http_data_only'] = True
28739
+ return self.login_user_api_v2_users_login_post_with_http_info(login_user_params, **kwargs) # noqa: E501
28740
+
28741
+ def login_user_api_v2_users_login_post_with_http_info(self, login_user_params, **kwargs): # noqa: E501
28742
+ """Login User # noqa: E501
28743
+
28744
+ This method makes a synchronous HTTP request by default. To make an
28745
+ asynchronous HTTP request, please pass async_req=True
28746
+ >>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
27217
28747
  >>> result = thread.get()
27218
28748
 
27219
28749
  :param async_req bool: execute request asynchronously
@@ -27891,6 +29421,129 @@ class DefaultApi(object):
27891
29421
  _request_timeout=local_var_params.get('_request_timeout'),
27892
29422
  collection_formats=collection_formats)
27893
29423
 
29424
+ def publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post(self, template_id, version_id, **kwargs): # noqa: E501
29425
+ """Publish Version # noqa: E501
29426
+
29427
+ Publish a version as the active version for a template # noqa: E501
29428
+ This method makes a synchronous HTTP request by default. To make an
29429
+ asynchronous HTTP request, please pass async_req=True
29430
+ >>> thread = api.publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post(template_id, version_id, async_req=True)
29431
+ >>> result = thread.get()
29432
+
29433
+ :param async_req bool: execute request asynchronously
29434
+ :param str template_id: (required)
29435
+ :param str version_id: (required)
29436
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
29437
+ be returned without reading/decoding response
29438
+ data. Default is True.
29439
+ :param _request_timeout: timeout setting for this request. If one
29440
+ number provided, it will be total request
29441
+ timeout. It can also be a pair (tuple) of
29442
+ (connection, read) timeouts.
29443
+ :return: object
29444
+ If the method is called asynchronously,
29445
+ returns the request thread.
29446
+ """
29447
+ kwargs['_return_http_data_only'] = True
29448
+ 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
29449
+
29450
+ 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
29451
+ """Publish Version # noqa: E501
29452
+
29453
+ Publish a version as the active version for a template # noqa: E501
29454
+ This method makes a synchronous HTTP request by default. To make an
29455
+ asynchronous HTTP request, please pass async_req=True
29456
+ >>> 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)
29457
+ >>> result = thread.get()
29458
+
29459
+ :param async_req bool: execute request asynchronously
29460
+ :param str template_id: (required)
29461
+ :param str version_id: (required)
29462
+ :param _return_http_data_only: response data without head status code
29463
+ and headers
29464
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
29465
+ be returned without reading/decoding response
29466
+ data. Default is True.
29467
+ :param _request_timeout: timeout setting for this request. If one
29468
+ number provided, it will be total request
29469
+ timeout. It can also be a pair (tuple) of
29470
+ (connection, read) timeouts.
29471
+ :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
29472
+ If the method is called asynchronously,
29473
+ returns the request thread.
29474
+ """
29475
+
29476
+ local_var_params = locals()
29477
+
29478
+ all_params = [
29479
+ 'template_id',
29480
+ 'version_id'
29481
+ ]
29482
+ all_params.extend(
29483
+ [
29484
+ 'async_req',
29485
+ '_return_http_data_only',
29486
+ '_preload_content',
29487
+ '_request_timeout'
29488
+ ]
29489
+ )
29490
+
29491
+ for key, val in six.iteritems(local_var_params['kwargs']):
29492
+ if key not in all_params:
29493
+ raise ApiTypeError(
29494
+ "Got an unexpected keyword argument '%s'"
29495
+ " to method publish_version_api_v2_workspace_templates_template_id_versions_version_id_publish_post" % key
29496
+ )
29497
+ local_var_params[key] = val
29498
+ del local_var_params['kwargs']
29499
+ # verify the required parameter 'template_id' is set
29500
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
29501
+ local_var_params['template_id'] is None): # noqa: E501
29502
+ 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
29503
+ # verify the required parameter 'version_id' is set
29504
+ if self.api_client.client_side_validation and ('version_id' not in local_var_params or # noqa: E501
29505
+ local_var_params['version_id'] is None): # noqa: E501
29506
+ 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
29507
+
29508
+ collection_formats = {}
29509
+
29510
+ path_params = {}
29511
+ if 'template_id' in local_var_params:
29512
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
29513
+ if 'version_id' in local_var_params:
29514
+ path_params['version_id'] = local_var_params['version_id'] # noqa: E501
29515
+
29516
+ query_params = []
29517
+
29518
+ header_params = {}
29519
+
29520
+ form_params = []
29521
+ local_var_files = {}
29522
+
29523
+ body_params = None
29524
+ # HTTP header `Accept`
29525
+ header_params['Accept'] = self.api_client.select_header_accept(
29526
+ ['application/json']) # noqa: E501
29527
+
29528
+ # Authentication setting
29529
+ auth_settings = [] # noqa: E501
29530
+
29531
+ return self.api_client.call_api(
29532
+ '/api/v2/workspace_templates/{template_id}/versions/{version_id}/publish', 'POST',
29533
+ path_params,
29534
+ query_params,
29535
+ header_params,
29536
+ body=body_params,
29537
+ post_params=form_params,
29538
+ files=local_var_files,
29539
+ response_type='object', # noqa: E501
29540
+ auth_settings=auth_settings,
29541
+ async_req=local_var_params.get('async_req'),
29542
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
29543
+ _preload_content=local_var_params.get('_preload_content', True),
29544
+ _request_timeout=local_var_params.get('_request_timeout'),
29545
+ collection_formats=collection_formats)
29546
+
27894
29547
  def push_cloud_overview_dashboard_api_v2_clouds_cloud_id_push_cloud_overview_dashboard_post(self, cloud_id, **kwargs): # noqa: E501
27895
29548
  """Push Cloud Overview Dashboard # noqa: E501
27896
29549
 
@@ -32006,17 +33659,138 @@ class DefaultApi(object):
32006
33659
  _request_timeout=local_var_params.get('_request_timeout'),
32007
33660
  collection_formats=collection_formats)
32008
33661
 
32009
- def search_support_requests_api_v2_support_requests_search_post(self, support_requests_query, **kwargs): # noqa: E501
32010
- """Search Support Requests # noqa: E501
33662
+ def search_support_requests_api_v2_support_requests_search_post(self, support_requests_query, **kwargs): # noqa: E501
33663
+ """Search Support Requests # noqa: E501
33664
+
33665
+ List all decorated support requests matching the search parameters. # noqa: E501
33666
+ This method makes a synchronous HTTP request by default. To make an
33667
+ asynchronous HTTP request, please pass async_req=True
33668
+ >>> thread = api.search_support_requests_api_v2_support_requests_search_post(support_requests_query, async_req=True)
33669
+ >>> result = thread.get()
33670
+
33671
+ :param async_req bool: execute request asynchronously
33672
+ :param SupportRequestsQuery support_requests_query: (required)
33673
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
33674
+ be returned without reading/decoding response
33675
+ data. Default is True.
33676
+ :param _request_timeout: timeout setting for this request. If one
33677
+ number provided, it will be total request
33678
+ timeout. It can also be a pair (tuple) of
33679
+ (connection, read) timeouts.
33680
+ :return: DecoratedsupportrequestListResponse
33681
+ If the method is called asynchronously,
33682
+ returns the request thread.
33683
+ """
33684
+ kwargs['_return_http_data_only'] = True
33685
+ return self.search_support_requests_api_v2_support_requests_search_post_with_http_info(support_requests_query, **kwargs) # noqa: E501
33686
+
33687
+ def search_support_requests_api_v2_support_requests_search_post_with_http_info(self, support_requests_query, **kwargs): # noqa: E501
33688
+ """Search Support Requests # noqa: E501
33689
+
33690
+ List all decorated support requests matching the search parameters. # noqa: E501
33691
+ This method makes a synchronous HTTP request by default. To make an
33692
+ asynchronous HTTP request, please pass async_req=True
33693
+ >>> thread = api.search_support_requests_api_v2_support_requests_search_post_with_http_info(support_requests_query, async_req=True)
33694
+ >>> result = thread.get()
33695
+
33696
+ :param async_req bool: execute request asynchronously
33697
+ :param SupportRequestsQuery support_requests_query: (required)
33698
+ :param _return_http_data_only: response data without head status code
33699
+ and headers
33700
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
33701
+ be returned without reading/decoding response
33702
+ data. Default is True.
33703
+ :param _request_timeout: timeout setting for this request. If one
33704
+ number provided, it will be total request
33705
+ timeout. It can also be a pair (tuple) of
33706
+ (connection, read) timeouts.
33707
+ :return: tuple(DecoratedsupportrequestListResponse, status_code(int), headers(HTTPHeaderDict))
33708
+ If the method is called asynchronously,
33709
+ returns the request thread.
33710
+ """
33711
+
33712
+ local_var_params = locals()
33713
+
33714
+ all_params = [
33715
+ 'support_requests_query'
33716
+ ]
33717
+ all_params.extend(
33718
+ [
33719
+ 'async_req',
33720
+ '_return_http_data_only',
33721
+ '_preload_content',
33722
+ '_request_timeout'
33723
+ ]
33724
+ )
33725
+
33726
+ for key, val in six.iteritems(local_var_params['kwargs']):
33727
+ if key not in all_params:
33728
+ raise ApiTypeError(
33729
+ "Got an unexpected keyword argument '%s'"
33730
+ " to method search_support_requests_api_v2_support_requests_search_post" % key
33731
+ )
33732
+ local_var_params[key] = val
33733
+ del local_var_params['kwargs']
33734
+ # verify the required parameter 'support_requests_query' is set
33735
+ if self.api_client.client_side_validation and ('support_requests_query' not in local_var_params or # noqa: E501
33736
+ local_var_params['support_requests_query'] is None): # noqa: E501
33737
+ raise ApiValueError("Missing the required parameter `support_requests_query` when calling `search_support_requests_api_v2_support_requests_search_post`") # noqa: E501
33738
+
33739
+ collection_formats = {}
33740
+
33741
+ path_params = {}
33742
+
33743
+ query_params = []
33744
+
33745
+ header_params = {}
33746
+
33747
+ form_params = []
33748
+ local_var_files = {}
33749
+
33750
+ body_params = None
33751
+ if 'support_requests_query' in local_var_params:
33752
+ body_params = local_var_params['support_requests_query']
33753
+ # HTTP header `Accept`
33754
+ header_params['Accept'] = self.api_client.select_header_accept(
33755
+ ['application/json']) # noqa: E501
33756
+
33757
+ # HTTP header `Content-Type`
33758
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
33759
+ ['application/json']) # noqa: E501
33760
+
33761
+ # Authentication setting
33762
+ auth_settings = [] # noqa: E501
33763
+
33764
+ return self.api_client.call_api(
33765
+ '/api/v2/support_requests/search', 'POST',
33766
+ path_params,
33767
+ query_params,
33768
+ header_params,
33769
+ body=body_params,
33770
+ post_params=form_params,
33771
+ files=local_var_files,
33772
+ response_type='DecoratedsupportrequestListResponse', # noqa: E501
33773
+ auth_settings=auth_settings,
33774
+ async_req=local_var_params.get('async_req'),
33775
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
33776
+ _preload_content=local_var_params.get('_preload_content', True),
33777
+ _request_timeout=local_var_params.get('_request_timeout'),
33778
+ collection_formats=collection_formats)
33779
+
33780
+ def search_tags_api_v2_tags_get(self, **kwargs): # noqa: E501
33781
+ """Search Tags # noqa: E501
32011
33782
 
32012
- List all decorated support requests matching the search parameters. # noqa: E501
32013
33783
  This method makes a synchronous HTTP request by default. To make an
32014
33784
  asynchronous HTTP request, please pass async_req=True
32015
- >>> thread = api.search_support_requests_api_v2_support_requests_search_post(support_requests_query, async_req=True)
33785
+ >>> thread = api.search_tags_api_v2_tags_get(async_req=True)
32016
33786
  >>> result = thread.get()
32017
33787
 
32018
33788
  :param async_req bool: execute request asynchronously
32019
- :param SupportRequestsQuery support_requests_query: (required)
33789
+ :param str substring:
33790
+ :param TagSearchIn search_in:
33791
+ :param ResourceTagResourceType resource_type:
33792
+ :param str paging_token:
33793
+ :param int count:
32020
33794
  :param _preload_content: if False, the urllib3.HTTPResponse object will
32021
33795
  be returned without reading/decoding response
32022
33796
  data. Default is True.
@@ -32024,24 +33798,27 @@ class DefaultApi(object):
32024
33798
  number provided, it will be total request
32025
33799
  timeout. It can also be a pair (tuple) of
32026
33800
  (connection, read) timeouts.
32027
- :return: DecoratedsupportrequestListResponse
33801
+ :return: TagkeyvalueListResponse
32028
33802
  If the method is called asynchronously,
32029
33803
  returns the request thread.
32030
33804
  """
32031
33805
  kwargs['_return_http_data_only'] = True
32032
- return self.search_support_requests_api_v2_support_requests_search_post_with_http_info(support_requests_query, **kwargs) # noqa: E501
33806
+ return self.search_tags_api_v2_tags_get_with_http_info(**kwargs) # noqa: E501
32033
33807
 
32034
- def search_support_requests_api_v2_support_requests_search_post_with_http_info(self, support_requests_query, **kwargs): # noqa: E501
32035
- """Search Support Requests # noqa: E501
33808
+ def search_tags_api_v2_tags_get_with_http_info(self, **kwargs): # noqa: E501
33809
+ """Search Tags # noqa: E501
32036
33810
 
32037
- List all decorated support requests matching the search parameters. # noqa: E501
32038
33811
  This method makes a synchronous HTTP request by default. To make an
32039
33812
  asynchronous HTTP request, please pass async_req=True
32040
- >>> thread = api.search_support_requests_api_v2_support_requests_search_post_with_http_info(support_requests_query, async_req=True)
33813
+ >>> thread = api.search_tags_api_v2_tags_get_with_http_info(async_req=True)
32041
33814
  >>> result = thread.get()
32042
33815
 
32043
33816
  :param async_req bool: execute request asynchronously
32044
- :param SupportRequestsQuery support_requests_query: (required)
33817
+ :param str substring:
33818
+ :param TagSearchIn search_in:
33819
+ :param ResourceTagResourceType resource_type:
33820
+ :param str paging_token:
33821
+ :param int count:
32045
33822
  :param _return_http_data_only: response data without head status code
32046
33823
  and headers
32047
33824
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -32051,7 +33828,7 @@ class DefaultApi(object):
32051
33828
  number provided, it will be total request
32052
33829
  timeout. It can also be a pair (tuple) of
32053
33830
  (connection, read) timeouts.
32054
- :return: tuple(DecoratedsupportrequestListResponse, status_code(int), headers(HTTPHeaderDict))
33831
+ :return: tuple(TagkeyvalueListResponse, status_code(int), headers(HTTPHeaderDict))
32055
33832
  If the method is called asynchronously,
32056
33833
  returns the request thread.
32057
33834
  """
@@ -32059,7 +33836,11 @@ class DefaultApi(object):
32059
33836
  local_var_params = locals()
32060
33837
 
32061
33838
  all_params = [
32062
- 'support_requests_query'
33839
+ 'substring',
33840
+ 'search_in',
33841
+ 'resource_type',
33842
+ 'paging_token',
33843
+ 'count'
32063
33844
  ]
32064
33845
  all_params.extend(
32065
33846
  [
@@ -32074,20 +33855,30 @@ class DefaultApi(object):
32074
33855
  if key not in all_params:
32075
33856
  raise ApiTypeError(
32076
33857
  "Got an unexpected keyword argument '%s'"
32077
- " to method search_support_requests_api_v2_support_requests_search_post" % key
33858
+ " to method search_tags_api_v2_tags_get" % key
32078
33859
  )
32079
33860
  local_var_params[key] = val
32080
33861
  del local_var_params['kwargs']
32081
- # verify the required parameter 'support_requests_query' is set
32082
- if self.api_client.client_side_validation and ('support_requests_query' not in local_var_params or # noqa: E501
32083
- local_var_params['support_requests_query'] is None): # noqa: E501
32084
- raise ApiValueError("Missing the required parameter `support_requests_query` when calling `search_support_requests_api_v2_support_requests_search_post`") # noqa: E501
32085
33862
 
33863
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
33864
+ 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
33865
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
33866
+ 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
32086
33867
  collection_formats = {}
32087
33868
 
32088
33869
  path_params = {}
32089
33870
 
32090
33871
  query_params = []
33872
+ if 'substring' in local_var_params and local_var_params['substring'] is not None: # noqa: E501
33873
+ query_params.append(('substring', local_var_params['substring'])) # noqa: E501
33874
+ if 'search_in' in local_var_params and local_var_params['search_in'] is not None: # noqa: E501
33875
+ query_params.append(('search_in', local_var_params['search_in'])) # noqa: E501
33876
+ if 'resource_type' in local_var_params and local_var_params['resource_type'] is not None: # noqa: E501
33877
+ query_params.append(('resource_type', local_var_params['resource_type'])) # noqa: E501
33878
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
33879
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
33880
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
33881
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
32091
33882
 
32092
33883
  header_params = {}
32093
33884
 
@@ -32095,28 +33886,22 @@ class DefaultApi(object):
32095
33886
  local_var_files = {}
32096
33887
 
32097
33888
  body_params = None
32098
- if 'support_requests_query' in local_var_params:
32099
- body_params = local_var_params['support_requests_query']
32100
33889
  # HTTP header `Accept`
32101
33890
  header_params['Accept'] = self.api_client.select_header_accept(
32102
33891
  ['application/json']) # noqa: E501
32103
33892
 
32104
- # HTTP header `Content-Type`
32105
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
32106
- ['application/json']) # noqa: E501
32107
-
32108
33893
  # Authentication setting
32109
33894
  auth_settings = [] # noqa: E501
32110
33895
 
32111
33896
  return self.api_client.call_api(
32112
- '/api/v2/support_requests/search', 'POST',
33897
+ '/api/v2/tags/', 'GET',
32113
33898
  path_params,
32114
33899
  query_params,
32115
33900
  header_params,
32116
33901
  body=body_params,
32117
33902
  post_params=form_params,
32118
33903
  files=local_var_files,
32119
- response_type='DecoratedsupportrequestListResponse', # noqa: E501
33904
+ response_type='TagkeyvalueListResponse', # noqa: E501
32120
33905
  auth_settings=auth_settings,
32121
33906
  async_req=local_var_params.get('async_req'),
32122
33907
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -36395,14 +38180,248 @@ class DefaultApi(object):
36395
38180
  auth_settings = [] # noqa: E501
36396
38181
 
36397
38182
  return self.api_client.call_api(
36398
- '/api/v2/session_commands/{session_command_id}/upload_logs', 'POST',
38183
+ '/api/v2/session_commands/{session_command_id}/upload_logs', 'POST',
38184
+ path_params,
38185
+ query_params,
38186
+ header_params,
38187
+ body=body_params,
38188
+ post_params=form_params,
38189
+ files=local_var_files,
38190
+ response_type='UploadsessioncommandlogslocationsResponse', # noqa: E501
38191
+ auth_settings=auth_settings,
38192
+ async_req=local_var_params.get('async_req'),
38193
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
38194
+ _preload_content=local_var_params.get('_preload_content', True),
38195
+ _request_timeout=local_var_params.get('_request_timeout'),
38196
+ collection_formats=collection_formats)
38197
+
38198
+ def upsert_billing_version_api_v2_organization_billing_billing_versions_put(self, create_billing_version, **kwargs): # noqa: E501
38199
+ """Upsert Billing Version # noqa: E501
38200
+
38201
+ Upsert a billing version record for the organization. # noqa: E501
38202
+ This method makes a synchronous HTTP request by default. To make an
38203
+ asynchronous HTTP request, please pass async_req=True
38204
+ >>> thread = api.upsert_billing_version_api_v2_organization_billing_billing_versions_put(create_billing_version, async_req=True)
38205
+ >>> result = thread.get()
38206
+
38207
+ :param async_req bool: execute request asynchronously
38208
+ :param CreateBillingVersion create_billing_version: (required)
38209
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
38210
+ be returned without reading/decoding response
38211
+ data. Default is True.
38212
+ :param _request_timeout: timeout setting for this request. If one
38213
+ number provided, it will be total request
38214
+ timeout. It can also be a pair (tuple) of
38215
+ (connection, read) timeouts.
38216
+ :return: object
38217
+ If the method is called asynchronously,
38218
+ returns the request thread.
38219
+ """
38220
+ kwargs['_return_http_data_only'] = True
38221
+ return self.upsert_billing_version_api_v2_organization_billing_billing_versions_put_with_http_info(create_billing_version, **kwargs) # noqa: E501
38222
+
38223
+ def upsert_billing_version_api_v2_organization_billing_billing_versions_put_with_http_info(self, create_billing_version, **kwargs): # noqa: E501
38224
+ """Upsert Billing Version # noqa: E501
38225
+
38226
+ Upsert a billing version record for the organization. # noqa: E501
38227
+ This method makes a synchronous HTTP request by default. To make an
38228
+ asynchronous HTTP request, please pass async_req=True
38229
+ >>> thread = api.upsert_billing_version_api_v2_organization_billing_billing_versions_put_with_http_info(create_billing_version, async_req=True)
38230
+ >>> result = thread.get()
38231
+
38232
+ :param async_req bool: execute request asynchronously
38233
+ :param CreateBillingVersion create_billing_version: (required)
38234
+ :param _return_http_data_only: response data without head status code
38235
+ and headers
38236
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
38237
+ be returned without reading/decoding response
38238
+ data. Default is True.
38239
+ :param _request_timeout: timeout setting for this request. If one
38240
+ number provided, it will be total request
38241
+ timeout. It can also be a pair (tuple) of
38242
+ (connection, read) timeouts.
38243
+ :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
38244
+ If the method is called asynchronously,
38245
+ returns the request thread.
38246
+ """
38247
+
38248
+ local_var_params = locals()
38249
+
38250
+ all_params = [
38251
+ 'create_billing_version'
38252
+ ]
38253
+ all_params.extend(
38254
+ [
38255
+ 'async_req',
38256
+ '_return_http_data_only',
38257
+ '_preload_content',
38258
+ '_request_timeout'
38259
+ ]
38260
+ )
38261
+
38262
+ for key, val in six.iteritems(local_var_params['kwargs']):
38263
+ if key not in all_params:
38264
+ raise ApiTypeError(
38265
+ "Got an unexpected keyword argument '%s'"
38266
+ " to method upsert_billing_version_api_v2_organization_billing_billing_versions_put" % key
38267
+ )
38268
+ local_var_params[key] = val
38269
+ del local_var_params['kwargs']
38270
+ # verify the required parameter 'create_billing_version' is set
38271
+ if self.api_client.client_side_validation and ('create_billing_version' not in local_var_params or # noqa: E501
38272
+ local_var_params['create_billing_version'] is None): # noqa: E501
38273
+ raise ApiValueError("Missing the required parameter `create_billing_version` when calling `upsert_billing_version_api_v2_organization_billing_billing_versions_put`") # noqa: E501
38274
+
38275
+ collection_formats = {}
38276
+
38277
+ path_params = {}
38278
+
38279
+ query_params = []
38280
+
38281
+ header_params = {}
38282
+
38283
+ form_params = []
38284
+ local_var_files = {}
38285
+
38286
+ body_params = None
38287
+ if 'create_billing_version' in local_var_params:
38288
+ body_params = local_var_params['create_billing_version']
38289
+ # HTTP header `Accept`
38290
+ header_params['Accept'] = self.api_client.select_header_accept(
38291
+ ['application/json']) # noqa: E501
38292
+
38293
+ # HTTP header `Content-Type`
38294
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
38295
+ ['application/json']) # noqa: E501
38296
+
38297
+ # Authentication setting
38298
+ auth_settings = [] # noqa: E501
38299
+
38300
+ return self.api_client.call_api(
38301
+ '/api/v2/organization_billing/billing_versions', 'PUT',
38302
+ path_params,
38303
+ query_params,
38304
+ header_params,
38305
+ body=body_params,
38306
+ post_params=form_params,
38307
+ files=local_var_files,
38308
+ response_type='object', # noqa: E501
38309
+ auth_settings=auth_settings,
38310
+ async_req=local_var_params.get('async_req'),
38311
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
38312
+ _preload_content=local_var_params.get('_preload_content', True),
38313
+ _request_timeout=local_var_params.get('_request_timeout'),
38314
+ collection_formats=collection_formats)
38315
+
38316
+ def upsert_resource_tags_api_v2_tags_resource_put(self, upsert_resource_tags_request, **kwargs): # noqa: E501
38317
+ """Upsert Resource Tags # noqa: E501
38318
+
38319
+ This method makes a synchronous HTTP request by default. To make an
38320
+ asynchronous HTTP request, please pass async_req=True
38321
+ >>> thread = api.upsert_resource_tags_api_v2_tags_resource_put(upsert_resource_tags_request, async_req=True)
38322
+ >>> result = thread.get()
38323
+
38324
+ :param async_req bool: execute request asynchronously
38325
+ :param UpsertResourceTagsRequest upsert_resource_tags_request: (required)
38326
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
38327
+ be returned without reading/decoding response
38328
+ data. Default is True.
38329
+ :param _request_timeout: timeout setting for this request. If one
38330
+ number provided, it will be total request
38331
+ timeout. It can also be a pair (tuple) of
38332
+ (connection, read) timeouts.
38333
+ :return: object
38334
+ If the method is called asynchronously,
38335
+ returns the request thread.
38336
+ """
38337
+ kwargs['_return_http_data_only'] = True
38338
+ return self.upsert_resource_tags_api_v2_tags_resource_put_with_http_info(upsert_resource_tags_request, **kwargs) # noqa: E501
38339
+
38340
+ def upsert_resource_tags_api_v2_tags_resource_put_with_http_info(self, upsert_resource_tags_request, **kwargs): # noqa: E501
38341
+ """Upsert Resource Tags # noqa: E501
38342
+
38343
+ This method makes a synchronous HTTP request by default. To make an
38344
+ asynchronous HTTP request, please pass async_req=True
38345
+ >>> thread = api.upsert_resource_tags_api_v2_tags_resource_put_with_http_info(upsert_resource_tags_request, async_req=True)
38346
+ >>> result = thread.get()
38347
+
38348
+ :param async_req bool: execute request asynchronously
38349
+ :param UpsertResourceTagsRequest upsert_resource_tags_request: (required)
38350
+ :param _return_http_data_only: response data without head status code
38351
+ and headers
38352
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
38353
+ be returned without reading/decoding response
38354
+ data. Default is True.
38355
+ :param _request_timeout: timeout setting for this request. If one
38356
+ number provided, it will be total request
38357
+ timeout. It can also be a pair (tuple) of
38358
+ (connection, read) timeouts.
38359
+ :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
38360
+ If the method is called asynchronously,
38361
+ returns the request thread.
38362
+ """
38363
+
38364
+ local_var_params = locals()
38365
+
38366
+ all_params = [
38367
+ 'upsert_resource_tags_request'
38368
+ ]
38369
+ all_params.extend(
38370
+ [
38371
+ 'async_req',
38372
+ '_return_http_data_only',
38373
+ '_preload_content',
38374
+ '_request_timeout'
38375
+ ]
38376
+ )
38377
+
38378
+ for key, val in six.iteritems(local_var_params['kwargs']):
38379
+ if key not in all_params:
38380
+ raise ApiTypeError(
38381
+ "Got an unexpected keyword argument '%s'"
38382
+ " to method upsert_resource_tags_api_v2_tags_resource_put" % key
38383
+ )
38384
+ local_var_params[key] = val
38385
+ del local_var_params['kwargs']
38386
+ # verify the required parameter 'upsert_resource_tags_request' is set
38387
+ if self.api_client.client_side_validation and ('upsert_resource_tags_request' not in local_var_params or # noqa: E501
38388
+ local_var_params['upsert_resource_tags_request'] is None): # noqa: E501
38389
+ raise ApiValueError("Missing the required parameter `upsert_resource_tags_request` when calling `upsert_resource_tags_api_v2_tags_resource_put`") # noqa: E501
38390
+
38391
+ collection_formats = {}
38392
+
38393
+ path_params = {}
38394
+
38395
+ query_params = []
38396
+
38397
+ header_params = {}
38398
+
38399
+ form_params = []
38400
+ local_var_files = {}
38401
+
38402
+ body_params = None
38403
+ if 'upsert_resource_tags_request' in local_var_params:
38404
+ body_params = local_var_params['upsert_resource_tags_request']
38405
+ # HTTP header `Accept`
38406
+ header_params['Accept'] = self.api_client.select_header_accept(
38407
+ ['application/json']) # noqa: E501
38408
+
38409
+ # HTTP header `Content-Type`
38410
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
38411
+ ['application/json']) # noqa: E501
38412
+
38413
+ # Authentication setting
38414
+ auth_settings = [] # noqa: E501
38415
+
38416
+ return self.api_client.call_api(
38417
+ '/api/v2/tags/resource', 'PUT',
36399
38418
  path_params,
36400
38419
  query_params,
36401
38420
  header_params,
36402
38421
  body=body_params,
36403
38422
  post_params=form_params,
36404
38423
  files=local_var_files,
36405
- response_type='UploadsessioncommandlogslocationsResponse', # noqa: E501
38424
+ response_type='object', # noqa: E501
36406
38425
  auth_settings=auth_settings,
36407
38426
  async_req=local_var_params.get('async_req'),
36408
38427
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -36410,17 +38429,16 @@ class DefaultApi(object):
36410
38429
  _request_timeout=local_var_params.get('_request_timeout'),
36411
38430
  collection_formats=collection_formats)
36412
38431
 
36413
- def upsert_billing_version_api_v2_organization_billing_billing_versions_put(self, create_billing_version, **kwargs): # noqa: E501
36414
- """Upsert Billing Version # noqa: E501
38432
+ def upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put(self, write_support_request, **kwargs): # noqa: E501
38433
+ """Upsert Support Request For User Organization # noqa: E501
36415
38434
 
36416
- Upsert a billing version record for the organization. # noqa: E501
36417
38435
  This method makes a synchronous HTTP request by default. To make an
36418
38436
  asynchronous HTTP request, please pass async_req=True
36419
- >>> thread = api.upsert_billing_version_api_v2_organization_billing_billing_versions_put(create_billing_version, async_req=True)
38437
+ >>> thread = api.upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put(write_support_request, async_req=True)
36420
38438
  >>> result = thread.get()
36421
38439
 
36422
38440
  :param async_req bool: execute request asynchronously
36423
- :param CreateBillingVersion create_billing_version: (required)
38441
+ :param WriteSupportRequest write_support_request: (required)
36424
38442
  :param _preload_content: if False, the urllib3.HTTPResponse object will
36425
38443
  be returned without reading/decoding response
36426
38444
  data. Default is True.
@@ -36433,19 +38451,18 @@ class DefaultApi(object):
36433
38451
  returns the request thread.
36434
38452
  """
36435
38453
  kwargs['_return_http_data_only'] = True
36436
- return self.upsert_billing_version_api_v2_organization_billing_billing_versions_put_with_http_info(create_billing_version, **kwargs) # noqa: E501
38454
+ return self.upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put_with_http_info(write_support_request, **kwargs) # noqa: E501
36437
38455
 
36438
- def upsert_billing_version_api_v2_organization_billing_billing_versions_put_with_http_info(self, create_billing_version, **kwargs): # noqa: E501
36439
- """Upsert Billing Version # noqa: E501
38456
+ def upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put_with_http_info(self, write_support_request, **kwargs): # noqa: E501
38457
+ """Upsert Support Request For User Organization # noqa: E501
36440
38458
 
36441
- Upsert a billing version record for the organization. # noqa: E501
36442
38459
  This method makes a synchronous HTTP request by default. To make an
36443
38460
  asynchronous HTTP request, please pass async_req=True
36444
- >>> thread = api.upsert_billing_version_api_v2_organization_billing_billing_versions_put_with_http_info(create_billing_version, async_req=True)
38461
+ >>> thread = api.upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put_with_http_info(write_support_request, async_req=True)
36445
38462
  >>> result = thread.get()
36446
38463
 
36447
38464
  :param async_req bool: execute request asynchronously
36448
- :param CreateBillingVersion create_billing_version: (required)
38465
+ :param WriteSupportRequest write_support_request: (required)
36449
38466
  :param _return_http_data_only: response data without head status code
36450
38467
  and headers
36451
38468
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -36463,7 +38480,7 @@ class DefaultApi(object):
36463
38480
  local_var_params = locals()
36464
38481
 
36465
38482
  all_params = [
36466
- 'create_billing_version'
38483
+ 'write_support_request'
36467
38484
  ]
36468
38485
  all_params.extend(
36469
38486
  [
@@ -36478,14 +38495,14 @@ class DefaultApi(object):
36478
38495
  if key not in all_params:
36479
38496
  raise ApiTypeError(
36480
38497
  "Got an unexpected keyword argument '%s'"
36481
- " to method upsert_billing_version_api_v2_organization_billing_billing_versions_put" % key
38498
+ " to method upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put" % key
36482
38499
  )
36483
38500
  local_var_params[key] = val
36484
38501
  del local_var_params['kwargs']
36485
- # verify the required parameter 'create_billing_version' is set
36486
- if self.api_client.client_side_validation and ('create_billing_version' not in local_var_params or # noqa: E501
36487
- local_var_params['create_billing_version'] is None): # noqa: E501
36488
- raise ApiValueError("Missing the required parameter `create_billing_version` when calling `upsert_billing_version_api_v2_organization_billing_billing_versions_put`") # noqa: E501
38502
+ # verify the required parameter 'write_support_request' is set
38503
+ if self.api_client.client_side_validation and ('write_support_request' not in local_var_params or # noqa: E501
38504
+ local_var_params['write_support_request'] is None): # noqa: E501
38505
+ raise ApiValueError("Missing the required parameter `write_support_request` when calling `upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put`") # noqa: E501
36489
38506
 
36490
38507
  collection_formats = {}
36491
38508
 
@@ -36499,8 +38516,8 @@ class DefaultApi(object):
36499
38516
  local_var_files = {}
36500
38517
 
36501
38518
  body_params = None
36502
- if 'create_billing_version' in local_var_params:
36503
- body_params = local_var_params['create_billing_version']
38519
+ if 'write_support_request' in local_var_params:
38520
+ body_params = local_var_params['write_support_request']
36504
38521
  # HTTP header `Accept`
36505
38522
  header_params['Accept'] = self.api_client.select_header_accept(
36506
38523
  ['application/json']) # noqa: E501
@@ -36513,7 +38530,7 @@ class DefaultApi(object):
36513
38530
  auth_settings = [] # noqa: E501
36514
38531
 
36515
38532
  return self.api_client.call_api(
36516
- '/api/v2/organization_billing/billing_versions', 'PUT',
38533
+ '/api/v2/support_requests/support_request', 'PUT',
36517
38534
  path_params,
36518
38535
  query_params,
36519
38536
  header_params,
@@ -36528,16 +38545,16 @@ class DefaultApi(object):
36528
38545
  _request_timeout=local_var_params.get('_request_timeout'),
36529
38546
  collection_formats=collection_formats)
36530
38547
 
36531
- def upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put(self, write_support_request, **kwargs): # noqa: E501
36532
- """Upsert Support Request For User Organization # noqa: E501
38548
+ def use_workos_api_v2_workos_use_workos_get(self, **kwargs): # noqa: E501
38549
+ """Use Workos # noqa: E501
36533
38550
 
38551
+ Determine whether to use WorkOS based on the user's IP address. This endpoint evaluates the WorkOS feature flag server-side using the client's IP address for targeting. This allows for IP-based rollouts and geographic targeting of the WorkOS authentication flow. Returns: UseWorkOSResponse: Contains boolean indicating whether WorkOS should be enabled # noqa: E501
36534
38552
  This method makes a synchronous HTTP request by default. To make an
36535
38553
  asynchronous HTTP request, please pass async_req=True
36536
- >>> thread = api.upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put(write_support_request, async_req=True)
38554
+ >>> thread = api.use_workos_api_v2_workos_use_workos_get(async_req=True)
36537
38555
  >>> result = thread.get()
36538
38556
 
36539
38557
  :param async_req bool: execute request asynchronously
36540
- :param WriteSupportRequest write_support_request: (required)
36541
38558
  :param _preload_content: if False, the urllib3.HTTPResponse object will
36542
38559
  be returned without reading/decoding response
36543
38560
  data. Default is True.
@@ -36545,23 +38562,23 @@ class DefaultApi(object):
36545
38562
  number provided, it will be total request
36546
38563
  timeout. It can also be a pair (tuple) of
36547
38564
  (connection, read) timeouts.
36548
- :return: object
38565
+ :return: UseworkosresponseResponse
36549
38566
  If the method is called asynchronously,
36550
38567
  returns the request thread.
36551
38568
  """
36552
38569
  kwargs['_return_http_data_only'] = True
36553
- return self.upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put_with_http_info(write_support_request, **kwargs) # noqa: E501
38570
+ return self.use_workos_api_v2_workos_use_workos_get_with_http_info(**kwargs) # noqa: E501
36554
38571
 
36555
- def upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put_with_http_info(self, write_support_request, **kwargs): # noqa: E501
36556
- """Upsert Support Request For User Organization # noqa: E501
38572
+ def use_workos_api_v2_workos_use_workos_get_with_http_info(self, **kwargs): # noqa: E501
38573
+ """Use Workos # noqa: E501
36557
38574
 
38575
+ Determine whether to use WorkOS based on the user's IP address. This endpoint evaluates the WorkOS feature flag server-side using the client's IP address for targeting. This allows for IP-based rollouts and geographic targeting of the WorkOS authentication flow. Returns: UseWorkOSResponse: Contains boolean indicating whether WorkOS should be enabled # noqa: E501
36558
38576
  This method makes a synchronous HTTP request by default. To make an
36559
38577
  asynchronous HTTP request, please pass async_req=True
36560
- >>> thread = api.upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put_with_http_info(write_support_request, async_req=True)
38578
+ >>> thread = api.use_workos_api_v2_workos_use_workos_get_with_http_info(async_req=True)
36561
38579
  >>> result = thread.get()
36562
38580
 
36563
38581
  :param async_req bool: execute request asynchronously
36564
- :param WriteSupportRequest write_support_request: (required)
36565
38582
  :param _return_http_data_only: response data without head status code
36566
38583
  and headers
36567
38584
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -36571,7 +38588,7 @@ class DefaultApi(object):
36571
38588
  number provided, it will be total request
36572
38589
  timeout. It can also be a pair (tuple) of
36573
38590
  (connection, read) timeouts.
36574
- :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
38591
+ :return: tuple(UseworkosresponseResponse, status_code(int), headers(HTTPHeaderDict))
36575
38592
  If the method is called asynchronously,
36576
38593
  returns the request thread.
36577
38594
  """
@@ -36579,7 +38596,6 @@ class DefaultApi(object):
36579
38596
  local_var_params = locals()
36580
38597
 
36581
38598
  all_params = [
36582
- 'write_support_request'
36583
38599
  ]
36584
38600
  all_params.extend(
36585
38601
  [
@@ -36594,14 +38610,10 @@ class DefaultApi(object):
36594
38610
  if key not in all_params:
36595
38611
  raise ApiTypeError(
36596
38612
  "Got an unexpected keyword argument '%s'"
36597
- " to method upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put" % key
38613
+ " to method use_workos_api_v2_workos_use_workos_get" % key
36598
38614
  )
36599
38615
  local_var_params[key] = val
36600
38616
  del local_var_params['kwargs']
36601
- # verify the required parameter 'write_support_request' is set
36602
- if self.api_client.client_side_validation and ('write_support_request' not in local_var_params or # noqa: E501
36603
- local_var_params['write_support_request'] is None): # noqa: E501
36604
- raise ApiValueError("Missing the required parameter `write_support_request` when calling `upsert_support_request_for_user_organization_api_v2_support_requests_support_request_put`") # noqa: E501
36605
38617
 
36606
38618
  collection_formats = {}
36607
38619
 
@@ -36615,28 +38627,22 @@ class DefaultApi(object):
36615
38627
  local_var_files = {}
36616
38628
 
36617
38629
  body_params = None
36618
- if 'write_support_request' in local_var_params:
36619
- body_params = local_var_params['write_support_request']
36620
38630
  # HTTP header `Accept`
36621
38631
  header_params['Accept'] = self.api_client.select_header_accept(
36622
38632
  ['application/json']) # noqa: E501
36623
38633
 
36624
- # HTTP header `Content-Type`
36625
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
36626
- ['application/json']) # noqa: E501
36627
-
36628
38634
  # Authentication setting
36629
38635
  auth_settings = [] # noqa: E501
36630
38636
 
36631
38637
  return self.api_client.call_api(
36632
- '/api/v2/support_requests/support_request', 'PUT',
38638
+ '/api/v2/workos/use_workos', 'GET',
36633
38639
  path_params,
36634
38640
  query_params,
36635
38641
  header_params,
36636
38642
  body=body_params,
36637
38643
  post_params=form_params,
36638
38644
  files=local_var_files,
36639
- response_type='object', # noqa: E501
38645
+ response_type='UseworkosresponseResponse', # noqa: E501
36640
38646
  auth_settings=auth_settings,
36641
38647
  async_req=local_var_params.get('async_req'),
36642
38648
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -37445,3 +39451,235 @@ class DefaultApi(object):
37445
39451
  _preload_content=local_var_params.get('_preload_content', True),
37446
39452
  _request_timeout=local_var_params.get('_request_timeout'),
37447
39453
  collection_formats=collection_formats)
39454
+
39455
+ def workos_callback_api_v2_workos_callback_get(self, code, **kwargs): # noqa: E501
39456
+ """Workos Callback # noqa: E501
39457
+
39458
+ Callback for WorkOS authentication. WorkOS will call this endpoint with a code after the user authenticates with WorkOS. We use the code to get the user's information from WorkOS and then authenticate the user with Anyscale. # noqa: E501
39459
+ This method makes a synchronous HTTP request by default. To make an
39460
+ asynchronous HTTP request, please pass async_req=True
39461
+ >>> thread = api.workos_callback_api_v2_workos_callback_get(code, async_req=True)
39462
+ >>> result = thread.get()
39463
+
39464
+ :param async_req bool: execute request asynchronously
39465
+ :param str code: (required)
39466
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
39467
+ be returned without reading/decoding response
39468
+ data. Default is True.
39469
+ :param _request_timeout: timeout setting for this request. If one
39470
+ number provided, it will be total request
39471
+ timeout. It can also be a pair (tuple) of
39472
+ (connection, read) timeouts.
39473
+ :return: object
39474
+ If the method is called asynchronously,
39475
+ returns the request thread.
39476
+ """
39477
+ kwargs['_return_http_data_only'] = True
39478
+ return self.workos_callback_api_v2_workos_callback_get_with_http_info(code, **kwargs) # noqa: E501
39479
+
39480
+ def workos_callback_api_v2_workos_callback_get_with_http_info(self, code, **kwargs): # noqa: E501
39481
+ """Workos Callback # noqa: E501
39482
+
39483
+ Callback for WorkOS authentication. WorkOS will call this endpoint with a code after the user authenticates with WorkOS. We use the code to get the user's information from WorkOS and then authenticate the user with Anyscale. # noqa: E501
39484
+ This method makes a synchronous HTTP request by default. To make an
39485
+ asynchronous HTTP request, please pass async_req=True
39486
+ >>> thread = api.workos_callback_api_v2_workos_callback_get_with_http_info(code, async_req=True)
39487
+ >>> result = thread.get()
39488
+
39489
+ :param async_req bool: execute request asynchronously
39490
+ :param str code: (required)
39491
+ :param _return_http_data_only: response data without head status code
39492
+ and headers
39493
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
39494
+ be returned without reading/decoding response
39495
+ data. Default is True.
39496
+ :param _request_timeout: timeout setting for this request. If one
39497
+ number provided, it will be total request
39498
+ timeout. It can also be a pair (tuple) of
39499
+ (connection, read) timeouts.
39500
+ :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
39501
+ If the method is called asynchronously,
39502
+ returns the request thread.
39503
+ """
39504
+
39505
+ local_var_params = locals()
39506
+
39507
+ all_params = [
39508
+ 'code'
39509
+ ]
39510
+ all_params.extend(
39511
+ [
39512
+ 'async_req',
39513
+ '_return_http_data_only',
39514
+ '_preload_content',
39515
+ '_request_timeout'
39516
+ ]
39517
+ )
39518
+
39519
+ for key, val in six.iteritems(local_var_params['kwargs']):
39520
+ if key not in all_params:
39521
+ raise ApiTypeError(
39522
+ "Got an unexpected keyword argument '%s'"
39523
+ " to method workos_callback_api_v2_workos_callback_get" % key
39524
+ )
39525
+ local_var_params[key] = val
39526
+ del local_var_params['kwargs']
39527
+ # verify the required parameter 'code' is set
39528
+ if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
39529
+ local_var_params['code'] is None): # noqa: E501
39530
+ raise ApiValueError("Missing the required parameter `code` when calling `workos_callback_api_v2_workos_callback_get`") # noqa: E501
39531
+
39532
+ collection_formats = {}
39533
+
39534
+ path_params = {}
39535
+
39536
+ query_params = []
39537
+ if 'code' in local_var_params and local_var_params['code'] is not None: # noqa: E501
39538
+ query_params.append(('code', local_var_params['code'])) # noqa: E501
39539
+
39540
+ header_params = {}
39541
+
39542
+ form_params = []
39543
+ local_var_files = {}
39544
+
39545
+ body_params = None
39546
+ # HTTP header `Accept`
39547
+ header_params['Accept'] = self.api_client.select_header_accept(
39548
+ ['application/json']) # noqa: E501
39549
+
39550
+ # Authentication setting
39551
+ auth_settings = [] # noqa: E501
39552
+
39553
+ return self.api_client.call_api(
39554
+ '/api/v2/workos/callback', 'GET',
39555
+ path_params,
39556
+ query_params,
39557
+ header_params,
39558
+ body=body_params,
39559
+ post_params=form_params,
39560
+ files=local_var_files,
39561
+ response_type='object', # noqa: E501
39562
+ auth_settings=auth_settings,
39563
+ async_req=local_var_params.get('async_req'),
39564
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
39565
+ _preload_content=local_var_params.get('_preload_content', True),
39566
+ _request_timeout=local_var_params.get('_request_timeout'),
39567
+ collection_formats=collection_formats)
39568
+
39569
+ def workos_verify_email_code_api_v2_workos_email_verification_verify_post(self, email_verification_request, **kwargs): # noqa: E501
39570
+ """Workos Verify Email Code # noqa: E501
39571
+
39572
+ Verify email with a 6-digit code sent by WorkOS. # noqa: E501
39573
+ This method makes a synchronous HTTP request by default. To make an
39574
+ asynchronous HTTP request, please pass async_req=True
39575
+ >>> thread = api.workos_verify_email_code_api_v2_workos_email_verification_verify_post(email_verification_request, async_req=True)
39576
+ >>> result = thread.get()
39577
+
39578
+ :param async_req bool: execute request asynchronously
39579
+ :param EmailVerificationRequest email_verification_request: (required)
39580
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
39581
+ be returned without reading/decoding response
39582
+ data. Default is True.
39583
+ :param _request_timeout: timeout setting for this request. If one
39584
+ number provided, it will be total request
39585
+ timeout. It can also be a pair (tuple) of
39586
+ (connection, read) timeouts.
39587
+ :return: EmailverificationresponseResponse
39588
+ If the method is called asynchronously,
39589
+ returns the request thread.
39590
+ """
39591
+ kwargs['_return_http_data_only'] = True
39592
+ return self.workos_verify_email_code_api_v2_workos_email_verification_verify_post_with_http_info(email_verification_request, **kwargs) # noqa: E501
39593
+
39594
+ def workos_verify_email_code_api_v2_workos_email_verification_verify_post_with_http_info(self, email_verification_request, **kwargs): # noqa: E501
39595
+ """Workos Verify Email Code # noqa: E501
39596
+
39597
+ Verify email with a 6-digit code sent by WorkOS. # noqa: E501
39598
+ This method makes a synchronous HTTP request by default. To make an
39599
+ asynchronous HTTP request, please pass async_req=True
39600
+ >>> thread = api.workos_verify_email_code_api_v2_workos_email_verification_verify_post_with_http_info(email_verification_request, async_req=True)
39601
+ >>> result = thread.get()
39602
+
39603
+ :param async_req bool: execute request asynchronously
39604
+ :param EmailVerificationRequest email_verification_request: (required)
39605
+ :param _return_http_data_only: response data without head status code
39606
+ and headers
39607
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
39608
+ be returned without reading/decoding response
39609
+ data. Default is True.
39610
+ :param _request_timeout: timeout setting for this request. If one
39611
+ number provided, it will be total request
39612
+ timeout. It can also be a pair (tuple) of
39613
+ (connection, read) timeouts.
39614
+ :return: tuple(EmailverificationresponseResponse, status_code(int), headers(HTTPHeaderDict))
39615
+ If the method is called asynchronously,
39616
+ returns the request thread.
39617
+ """
39618
+
39619
+ local_var_params = locals()
39620
+
39621
+ all_params = [
39622
+ 'email_verification_request'
39623
+ ]
39624
+ all_params.extend(
39625
+ [
39626
+ 'async_req',
39627
+ '_return_http_data_only',
39628
+ '_preload_content',
39629
+ '_request_timeout'
39630
+ ]
39631
+ )
39632
+
39633
+ for key, val in six.iteritems(local_var_params['kwargs']):
39634
+ if key not in all_params:
39635
+ raise ApiTypeError(
39636
+ "Got an unexpected keyword argument '%s'"
39637
+ " to method workos_verify_email_code_api_v2_workos_email_verification_verify_post" % key
39638
+ )
39639
+ local_var_params[key] = val
39640
+ del local_var_params['kwargs']
39641
+ # verify the required parameter 'email_verification_request' is set
39642
+ if self.api_client.client_side_validation and ('email_verification_request' not in local_var_params or # noqa: E501
39643
+ local_var_params['email_verification_request'] is None): # noqa: E501
39644
+ raise ApiValueError("Missing the required parameter `email_verification_request` when calling `workos_verify_email_code_api_v2_workos_email_verification_verify_post`") # noqa: E501
39645
+
39646
+ collection_formats = {}
39647
+
39648
+ path_params = {}
39649
+
39650
+ query_params = []
39651
+
39652
+ header_params = {}
39653
+
39654
+ form_params = []
39655
+ local_var_files = {}
39656
+
39657
+ body_params = None
39658
+ if 'email_verification_request' in local_var_params:
39659
+ body_params = local_var_params['email_verification_request']
39660
+ # HTTP header `Accept`
39661
+ header_params['Accept'] = self.api_client.select_header_accept(
39662
+ ['application/json']) # noqa: E501
39663
+
39664
+ # HTTP header `Content-Type`
39665
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
39666
+ ['application/json']) # noqa: E501
39667
+
39668
+ # Authentication setting
39669
+ auth_settings = [] # noqa: E501
39670
+
39671
+ return self.api_client.call_api(
39672
+ '/api/v2/workos/email_verification/verify', 'POST',
39673
+ path_params,
39674
+ query_params,
39675
+ header_params,
39676
+ body=body_params,
39677
+ post_params=form_params,
39678
+ files=local_var_files,
39679
+ response_type='EmailverificationresponseResponse', # noqa: E501
39680
+ auth_settings=auth_settings,
39681
+ async_req=local_var_params.get('async_req'),
39682
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
39683
+ _preload_content=local_var_params.get('_preload_content', True),
39684
+ _request_timeout=local_var_params.get('_request_timeout'),
39685
+ collection_formats=collection_formats)