anyscale 0.26.64__py3-none-any.whl → 0.26.66__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 (59) hide show
  1. anyscale/_private/anyscale_client/common.py +1 -1
  2. anyscale/_private/docgen/__main__.py +23 -4
  3. anyscale/_private/docgen/generator.py +127 -34
  4. anyscale/_private/docgen/generator_legacy.py +35 -12
  5. anyscale/client/README.md +37 -1
  6. anyscale/client/openapi_client/__init__.py +26 -0
  7. anyscale/client/openapi_client/api/default_api.py +1446 -245
  8. anyscale/client/openapi_client/models/__init__.py +26 -0
  9. anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
  10. anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +29 -1
  11. anyscale/client/openapi_client/models/connection_type.py +99 -0
  12. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  13. anyscale/client/openapi_client/models/data_catalog.py +281 -0
  14. anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
  15. anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
  16. anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
  17. anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
  18. anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
  19. anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
  20. anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
  21. anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
  22. anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
  23. anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
  24. anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
  25. anyscale/client/openapi_client/models/decorated_session.py +29 -1
  26. anyscale/client/openapi_client/models/domain_verification.py +181 -0
  27. anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
  28. anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
  29. anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
  30. anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
  31. anyscale/client/openapi_client/models/sso_config.py +148 -0
  32. anyscale/client/openapi_client/models/sso_connection.py +148 -0
  33. anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
  34. anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
  35. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
  36. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  37. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  38. anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
  39. anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
  40. anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
  41. anyscale/client/openapi_client/models/validation_status.py +101 -0
  42. anyscale/commands/cloud_commands.py +310 -206
  43. anyscale/controllers/cloud_controller.py +175 -241
  44. anyscale/controllers/cloud_functional_verification_controller.py +6 -3
  45. anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
  46. anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +29 -1
  47. anyscale/sdk/anyscale_client/models/session.py +31 -3
  48. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
  49. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  50. anyscale/util.py +1 -1
  51. anyscale/version.py +1 -1
  52. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/METADATA +1 -1
  53. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/RECORD +58 -33
  54. anyscale/commands/cloud_commands_util.py +0 -10
  55. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/WHEEL +0 -0
  56. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/entry_points.txt +0 -0
  57. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/licenses/LICENSE +0 -0
  58. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/licenses/NOTICE +0 -0
  59. {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/top_level.txt +0 -0
@@ -6787,7 +6787,7 @@ class DefaultApi(object):
6787
6787
  def delete_cloud_api_v2_clouds_cloud_id_delete(self, cloud_id, **kwargs): # noqa: E501
6788
6788
  """Delete Cloud # noqa: E501
6789
6789
 
6790
- Deletes a Cloud. Will delete all clusters that are using this cloud. If any of those clusters are not terminated, this call will fail. # noqa: E501
6790
+ Deletes a Cloud. Will delete all clusters that are using this cloud. If the cloud has a system cluster, it will be terminated before the cloud is deleted.If any of those clusters are not terminated, this call will fail. # noqa: E501
6791
6791
  This method makes a synchronous HTTP request by default. To make an
6792
6792
  asynchronous HTTP request, please pass async_req=True
6793
6793
  >>> thread = api.delete_cloud_api_v2_clouds_cloud_id_delete(cloud_id, async_req=True)
@@ -6812,7 +6812,7 @@ class DefaultApi(object):
6812
6812
  def delete_cloud_api_v2_clouds_cloud_id_delete_with_http_info(self, cloud_id, **kwargs): # noqa: E501
6813
6813
  """Delete Cloud # noqa: E501
6814
6814
 
6815
- Deletes a Cloud. Will delete all clusters that are using this cloud. If any of those clusters are not terminated, this call will fail. # noqa: E501
6815
+ Deletes a Cloud. Will delete all clusters that are using this cloud. If the cloud has a system cluster, it will be terminated before the cloud is deleted.If any of those clusters are not terminated, this call will fail. # noqa: E501
6816
6816
  This method makes a synchronous HTTP request by default. To make an
6817
6817
  asynchronous HTTP request, please pass async_req=True
6818
6818
  >>> thread = api.delete_cloud_api_v2_clouds_cloud_id_delete_with_http_info(cloud_id, async_req=True)
@@ -7019,6 +7019,120 @@ class DefaultApi(object):
7019
7019
  _request_timeout=local_var_params.get('_request_timeout'),
7020
7020
  collection_formats=collection_formats)
7021
7021
 
7022
+ def delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete(self, connection_id, **kwargs): # noqa: E501
7023
+ """Delete Databricks Connection # noqa: E501
7024
+
7025
+ Delete a Databricks connection by ID # noqa: E501
7026
+ This method makes a synchronous HTTP request by default. To make an
7027
+ asynchronous HTTP request, please pass async_req=True
7028
+ >>> thread = api.delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete(connection_id, async_req=True)
7029
+ >>> result = thread.get()
7030
+
7031
+ :param async_req bool: execute request asynchronously
7032
+ :param str connection_id: (required)
7033
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
7034
+ be returned without reading/decoding response
7035
+ data. Default is True.
7036
+ :param _request_timeout: timeout setting for this request. If one
7037
+ number provided, it will be total request
7038
+ timeout. It can also be a pair (tuple) of
7039
+ (connection, read) timeouts.
7040
+ :return: DatabricksconnectionresponseResponse
7041
+ If the method is called asynchronously,
7042
+ returns the request thread.
7043
+ """
7044
+ kwargs['_return_http_data_only'] = True
7045
+ return self.delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete_with_http_info(connection_id, **kwargs) # noqa: E501
7046
+
7047
+ def delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete_with_http_info(self, connection_id, **kwargs): # noqa: E501
7048
+ """Delete Databricks Connection # noqa: E501
7049
+
7050
+ Delete a Databricks connection by ID # noqa: E501
7051
+ This method makes a synchronous HTTP request by default. To make an
7052
+ asynchronous HTTP request, please pass async_req=True
7053
+ >>> thread = api.delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete_with_http_info(connection_id, async_req=True)
7054
+ >>> result = thread.get()
7055
+
7056
+ :param async_req bool: execute request asynchronously
7057
+ :param str connection_id: (required)
7058
+ :param _return_http_data_only: response data without head status code
7059
+ and headers
7060
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
7061
+ be returned without reading/decoding response
7062
+ data. Default is True.
7063
+ :param _request_timeout: timeout setting for this request. If one
7064
+ number provided, it will be total request
7065
+ timeout. It can also be a pair (tuple) of
7066
+ (connection, read) timeouts.
7067
+ :return: tuple(DatabricksconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
7068
+ If the method is called asynchronously,
7069
+ returns the request thread.
7070
+ """
7071
+
7072
+ local_var_params = locals()
7073
+
7074
+ all_params = [
7075
+ 'connection_id'
7076
+ ]
7077
+ all_params.extend(
7078
+ [
7079
+ 'async_req',
7080
+ '_return_http_data_only',
7081
+ '_preload_content',
7082
+ '_request_timeout'
7083
+ ]
7084
+ )
7085
+
7086
+ for key, val in six.iteritems(local_var_params['kwargs']):
7087
+ if key not in all_params:
7088
+ raise ApiTypeError(
7089
+ "Got an unexpected keyword argument '%s'"
7090
+ " to method delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete" % key
7091
+ )
7092
+ local_var_params[key] = val
7093
+ del local_var_params['kwargs']
7094
+ # verify the required parameter 'connection_id' is set
7095
+ if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
7096
+ local_var_params['connection_id'] is None): # noqa: E501
7097
+ raise ApiValueError("Missing the required parameter `connection_id` when calling `delete_databricks_connection_api_v2_integrations_connections_databricks_connection_id_delete`") # noqa: E501
7098
+
7099
+ collection_formats = {}
7100
+
7101
+ path_params = {}
7102
+ if 'connection_id' in local_var_params:
7103
+ path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
7104
+
7105
+ query_params = []
7106
+
7107
+ header_params = {}
7108
+
7109
+ form_params = []
7110
+ local_var_files = {}
7111
+
7112
+ body_params = None
7113
+ # HTTP header `Accept`
7114
+ header_params['Accept'] = self.api_client.select_header_accept(
7115
+ ['application/json']) # noqa: E501
7116
+
7117
+ # Authentication setting
7118
+ auth_settings = [] # noqa: E501
7119
+
7120
+ return self.api_client.call_api(
7121
+ '/api/v2/integrations/connections/databricks/{connection_id}', 'DELETE',
7122
+ path_params,
7123
+ query_params,
7124
+ header_params,
7125
+ body=body_params,
7126
+ post_params=form_params,
7127
+ files=local_var_files,
7128
+ response_type='DatabricksconnectionresponseResponse', # noqa: E501
7129
+ auth_settings=auth_settings,
7130
+ async_req=local_var_params.get('async_req'),
7131
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
7132
+ _preload_content=local_var_params.get('_preload_content', True),
7133
+ _request_timeout=local_var_params.get('_request_timeout'),
7134
+ collection_formats=collection_formats)
7135
+
7022
7136
  def delete_hosted_cloud_api_v2_clouds_hosted_cloud_id_delete(self, cloud_id, **kwargs): # noqa: E501
7023
7137
  """Delete Hosted Cloud # noqa: E501
7024
7138
 
@@ -10180,6 +10294,136 @@ class DefaultApi(object):
10180
10294
  _request_timeout=local_var_params.get('_request_timeout'),
10181
10295
  collection_formats=collection_formats)
10182
10296
 
10297
+ def fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10298
+ """Fetch Usage Group By Cluster Type # noqa: E501
10299
+
10300
+ This method makes a synchronous HTTP request by default. To make an
10301
+ asynchronous HTTP request, please pass async_req=True
10302
+ >>> thread = api.fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post(aggregated_usage_query, async_req=True)
10303
+ >>> result = thread.get()
10304
+
10305
+ :param async_req bool: execute request asynchronously
10306
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10307
+ :param str paging_token:
10308
+ :param int count:
10309
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10310
+ be returned without reading/decoding response
10311
+ data. Default is True.
10312
+ :param _request_timeout: timeout setting for this request. If one
10313
+ number provided, it will be total request
10314
+ timeout. It can also be a pair (tuple) of
10315
+ (connection, read) timeouts.
10316
+ :return: UsagebyclustertypeListResponse
10317
+ If the method is called asynchronously,
10318
+ returns the request thread.
10319
+ """
10320
+ kwargs['_return_http_data_only'] = True
10321
+ return self.fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post_with_http_info(aggregated_usage_query, **kwargs) # noqa: E501
10322
+
10323
+ def fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post_with_http_info(self, aggregated_usage_query, **kwargs): # noqa: E501
10324
+ """Fetch Usage Group By Cluster Type # noqa: E501
10325
+
10326
+ This method makes a synchronous HTTP request by default. To make an
10327
+ asynchronous HTTP request, please pass async_req=True
10328
+ >>> thread = api.fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post_with_http_info(aggregated_usage_query, async_req=True)
10329
+ >>> result = thread.get()
10330
+
10331
+ :param async_req bool: execute request asynchronously
10332
+ :param AggregatedUsageQuery aggregated_usage_query: (required)
10333
+ :param str paging_token:
10334
+ :param int count:
10335
+ :param _return_http_data_only: response data without head status code
10336
+ and headers
10337
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
10338
+ be returned without reading/decoding response
10339
+ data. Default is True.
10340
+ :param _request_timeout: timeout setting for this request. If one
10341
+ number provided, it will be total request
10342
+ timeout. It can also be a pair (tuple) of
10343
+ (connection, read) timeouts.
10344
+ :return: tuple(UsagebyclustertypeListResponse, status_code(int), headers(HTTPHeaderDict))
10345
+ If the method is called asynchronously,
10346
+ returns the request thread.
10347
+ """
10348
+
10349
+ local_var_params = locals()
10350
+
10351
+ all_params = [
10352
+ 'aggregated_usage_query',
10353
+ 'paging_token',
10354
+ 'count'
10355
+ ]
10356
+ all_params.extend(
10357
+ [
10358
+ 'async_req',
10359
+ '_return_http_data_only',
10360
+ '_preload_content',
10361
+ '_request_timeout'
10362
+ ]
10363
+ )
10364
+
10365
+ for key, val in six.iteritems(local_var_params['kwargs']):
10366
+ if key not in all_params:
10367
+ raise ApiTypeError(
10368
+ "Got an unexpected keyword argument '%s'"
10369
+ " to method fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post" % key
10370
+ )
10371
+ local_var_params[key] = val
10372
+ del local_var_params['kwargs']
10373
+ # verify the required parameter 'aggregated_usage_query' is set
10374
+ if self.api_client.client_side_validation and ('aggregated_usage_query' not in local_var_params or # noqa: E501
10375
+ local_var_params['aggregated_usage_query'] is None): # noqa: E501
10376
+ raise ApiValueError("Missing the required parameter `aggregated_usage_query` when calling `fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post`") # noqa: E501
10377
+
10378
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
10379
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post`, must be a value less than or equal to `1000`") # noqa: E501
10380
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
10381
+ raise ApiValueError("Invalid value for parameter `count` when calling `fetch_usage_group_by_cluster_type_api_v2_aggregated_instance_usage_cluster_type_post`, must be a value greater than or equal to `0`") # noqa: E501
10382
+ collection_formats = {}
10383
+
10384
+ path_params = {}
10385
+
10386
+ query_params = []
10387
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
10388
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
10389
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
10390
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
10391
+
10392
+ header_params = {}
10393
+
10394
+ form_params = []
10395
+ local_var_files = {}
10396
+
10397
+ body_params = None
10398
+ if 'aggregated_usage_query' in local_var_params:
10399
+ body_params = local_var_params['aggregated_usage_query']
10400
+ # HTTP header `Accept`
10401
+ header_params['Accept'] = self.api_client.select_header_accept(
10402
+ ['application/json']) # noqa: E501
10403
+
10404
+ # HTTP header `Content-Type`
10405
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
10406
+ ['application/json']) # noqa: E501
10407
+
10408
+ # Authentication setting
10409
+ auth_settings = [] # noqa: E501
10410
+
10411
+ return self.api_client.call_api(
10412
+ '/api/v2/aggregated_instance_usage/cluster_type', 'POST',
10413
+ path_params,
10414
+ query_params,
10415
+ header_params,
10416
+ body=body_params,
10417
+ post_params=form_params,
10418
+ files=local_var_files,
10419
+ response_type='UsagebyclustertypeListResponse', # noqa: E501
10420
+ auth_settings=auth_settings,
10421
+ async_req=local_var_params.get('async_req'),
10422
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
10423
+ _preload_content=local_var_params.get('_preload_content', True),
10424
+ _request_timeout=local_var_params.get('_request_timeout'),
10425
+ collection_formats=collection_formats)
10426
+
10183
10427
  def fetch_usage_group_by_instance_type_api_v2_aggregated_instance_usage_instance_type_post(self, aggregated_usage_query, **kwargs): # noqa: E501
10184
10428
  """Fetch Usage Group By Instance Type # noqa: E501
10185
10429
 
@@ -13969,17 +14213,17 @@ class DefaultApi(object):
13969
14213
  _request_timeout=local_var_params.get('_request_timeout'),
13970
14214
  collection_formats=collection_formats)
13971
14215
 
13972
- def get_dataset_api_v2_datasets_dataset_id_get(self, dataset_id, **kwargs): # noqa: E501
13973
- """Get Dataset # noqa: E501
14216
+ def get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get(self, connection_id, **kwargs): # noqa: E501
14217
+ """Get Databricks Connection # noqa: E501
13974
14218
 
13975
- Retrieves a Dataset object # noqa: E501
14219
+ Get a specific Databricks connection by ID # noqa: E501
13976
14220
  This method makes a synchronous HTTP request by default. To make an
13977
14221
  asynchronous HTTP request, please pass async_req=True
13978
- >>> thread = api.get_dataset_api_v2_datasets_dataset_id_get(dataset_id, async_req=True)
14222
+ >>> thread = api.get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get(connection_id, async_req=True)
13979
14223
  >>> result = thread.get()
13980
14224
 
13981
14225
  :param async_req bool: execute request asynchronously
13982
- :param str dataset_id: (required)
14226
+ :param str connection_id: (required)
13983
14227
  :param _preload_content: if False, the urllib3.HTTPResponse object will
13984
14228
  be returned without reading/decoding response
13985
14229
  data. Default is True.
@@ -13987,24 +14231,24 @@ class DefaultApi(object):
13987
14231
  number provided, it will be total request
13988
14232
  timeout. It can also be a pair (tuple) of
13989
14233
  (connection, read) timeouts.
13990
- :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
14234
+ :return: DatabricksconnectioninfoResponse
13991
14235
  If the method is called asynchronously,
13992
14236
  returns the request thread.
13993
14237
  """
13994
14238
  kwargs['_return_http_data_only'] = True
13995
- return self.get_dataset_api_v2_datasets_dataset_id_get_with_http_info(dataset_id, **kwargs) # noqa: E501
14239
+ return self.get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get_with_http_info(connection_id, **kwargs) # noqa: E501
13996
14240
 
13997
- def get_dataset_api_v2_datasets_dataset_id_get_with_http_info(self, dataset_id, **kwargs): # noqa: E501
13998
- """Get Dataset # noqa: E501
14241
+ def get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get_with_http_info(self, connection_id, **kwargs): # noqa: E501
14242
+ """Get Databricks Connection # noqa: E501
13999
14243
 
14000
- Retrieves a Dataset object # noqa: E501
14244
+ Get a specific Databricks connection by ID # noqa: E501
14001
14245
  This method makes a synchronous HTTP request by default. To make an
14002
14246
  asynchronous HTTP request, please pass async_req=True
14003
- >>> thread = api.get_dataset_api_v2_datasets_dataset_id_get_with_http_info(dataset_id, async_req=True)
14247
+ >>> thread = api.get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get_with_http_info(connection_id, async_req=True)
14004
14248
  >>> result = thread.get()
14005
14249
 
14006
14250
  :param async_req bool: execute request asynchronously
14007
- :param str dataset_id: (required)
14251
+ :param str connection_id: (required)
14008
14252
  :param _return_http_data_only: response data without head status code
14009
14253
  and headers
14010
14254
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -14014,7 +14258,7 @@ class DefaultApi(object):
14014
14258
  number provided, it will be total request
14015
14259
  timeout. It can also be a pair (tuple) of
14016
14260
  (connection, read) timeouts.
14017
- :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14261
+ :return: tuple(DatabricksconnectioninfoResponse, status_code(int), headers(HTTPHeaderDict))
14018
14262
  If the method is called asynchronously,
14019
14263
  returns the request thread.
14020
14264
  """
@@ -14022,7 +14266,7 @@ class DefaultApi(object):
14022
14266
  local_var_params = locals()
14023
14267
 
14024
14268
  all_params = [
14025
- 'dataset_id'
14269
+ 'connection_id'
14026
14270
  ]
14027
14271
  all_params.extend(
14028
14272
  [
@@ -14037,20 +14281,20 @@ class DefaultApi(object):
14037
14281
  if key not in all_params:
14038
14282
  raise ApiTypeError(
14039
14283
  "Got an unexpected keyword argument '%s'"
14040
- " to method get_dataset_api_v2_datasets_dataset_id_get" % key
14284
+ " to method get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get" % key
14041
14285
  )
14042
14286
  local_var_params[key] = val
14043
14287
  del local_var_params['kwargs']
14044
- # verify the required parameter 'dataset_id' is set
14045
- if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
14046
- local_var_params['dataset_id'] is None): # noqa: E501
14047
- raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_dataset_api_v2_datasets_dataset_id_get`") # noqa: E501
14288
+ # verify the required parameter 'connection_id' is set
14289
+ if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
14290
+ local_var_params['connection_id'] is None): # noqa: E501
14291
+ raise ApiValueError("Missing the required parameter `connection_id` when calling `get_databricks_connection_api_v2_integrations_connections_databricks_connection_id_get`") # noqa: E501
14048
14292
 
14049
14293
  collection_formats = {}
14050
14294
 
14051
14295
  path_params = {}
14052
- if 'dataset_id' in local_var_params:
14053
- path_params['dataset_id'] = local_var_params['dataset_id'] # noqa: E501
14296
+ if 'connection_id' in local_var_params:
14297
+ path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
14054
14298
 
14055
14299
  query_params = []
14056
14300
 
@@ -14068,14 +14312,14 @@ class DefaultApi(object):
14068
14312
  auth_settings = [] # noqa: E501
14069
14313
 
14070
14314
  return self.api_client.call_api(
14071
- '/api/v2/datasets/{dataset_id}', 'GET',
14315
+ '/api/v2/integrations/connections/databricks/{connection_id}', 'GET',
14072
14316
  path_params,
14073
14317
  query_params,
14074
14318
  header_params,
14075
14319
  body=body_params,
14076
14320
  post_params=form_params,
14077
14321
  files=local_var_files,
14078
- response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
14322
+ response_type='DatabricksconnectioninfoResponse', # noqa: E501
14079
14323
  auth_settings=auth_settings,
14080
14324
  async_req=local_var_params.get('async_req'),
14081
14325
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -14083,19 +14327,17 @@ class DefaultApi(object):
14083
14327
  _request_timeout=local_var_params.get('_request_timeout'),
14084
14328
  collection_formats=collection_formats)
14085
14329
 
14086
- def get_dataset_download_info_api_v2_datasets_download_info_get(self, name, **kwargs): # noqa: E501
14087
- """Get Dataset Download Info # noqa: E501
14330
+ def get_dataset_api_v2_datasets_dataset_id_get(self, dataset_id, **kwargs): # noqa: E501
14331
+ """Get Dataset # noqa: E501
14088
14332
 
14089
- Returns download info for a dataset. # noqa: E501
14333
+ Retrieves a Dataset object # noqa: E501
14090
14334
  This method makes a synchronous HTTP request by default. To make an
14091
14335
  asynchronous HTTP request, please pass async_req=True
14092
- >>> thread = api.get_dataset_download_info_api_v2_datasets_download_info_get(name, async_req=True)
14336
+ >>> thread = api.get_dataset_api_v2_datasets_dataset_id_get(dataset_id, async_req=True)
14093
14337
  >>> result = thread.get()
14094
14338
 
14095
14339
  :param async_req bool: execute request asynchronously
14096
- :param str name: Name of the dataset to download. (required)
14097
- :param int version: Version of the dataset to download. If a negative integer is provided, the dataset returned is this many versions back of the latest version. Default: Latest version
14098
- :param str project_id: ID of the Anyscale project that the dataset belongs to.
14340
+ :param str dataset_id: (required)
14099
14341
  :param _preload_content: if False, the urllib3.HTTPResponse object will
14100
14342
  be returned without reading/decoding response
14101
14343
  data. Default is True.
@@ -14103,26 +14345,142 @@ class DefaultApi(object):
14103
14345
  number provided, it will be total request
14104
14346
  timeout. It can also be a pair (tuple) of
14105
14347
  (connection, read) timeouts.
14106
- :return: ClouddatabucketpresignedurlresponseResponse
14348
+ :return: BackendServerApiProductRoutersDatasetsRouterDatasetResponse
14107
14349
  If the method is called asynchronously,
14108
14350
  returns the request thread.
14109
14351
  """
14110
14352
  kwargs['_return_http_data_only'] = True
14111
- return self.get_dataset_download_info_api_v2_datasets_download_info_get_with_http_info(name, **kwargs) # noqa: E501
14353
+ return self.get_dataset_api_v2_datasets_dataset_id_get_with_http_info(dataset_id, **kwargs) # noqa: E501
14112
14354
 
14113
- def get_dataset_download_info_api_v2_datasets_download_info_get_with_http_info(self, name, **kwargs): # noqa: E501
14114
- """Get Dataset Download Info # noqa: E501
14355
+ def get_dataset_api_v2_datasets_dataset_id_get_with_http_info(self, dataset_id, **kwargs): # noqa: E501
14356
+ """Get Dataset # noqa: E501
14115
14357
 
14116
- Returns download info for a dataset. # noqa: E501
14358
+ Retrieves a Dataset object # noqa: E501
14117
14359
  This method makes a synchronous HTTP request by default. To make an
14118
14360
  asynchronous HTTP request, please pass async_req=True
14119
- >>> thread = api.get_dataset_download_info_api_v2_datasets_download_info_get_with_http_info(name, async_req=True)
14361
+ >>> thread = api.get_dataset_api_v2_datasets_dataset_id_get_with_http_info(dataset_id, async_req=True)
14120
14362
  >>> result = thread.get()
14121
14363
 
14122
14364
  :param async_req bool: execute request asynchronously
14123
- :param str name: Name of the dataset to download. (required)
14124
- :param int version: Version of the dataset to download. If a negative integer is provided, the dataset returned is this many versions back of the latest version. Default: Latest version
14125
- :param str project_id: ID of the Anyscale project that the dataset belongs to.
14365
+ :param str dataset_id: (required)
14366
+ :param _return_http_data_only: response data without head status code
14367
+ and headers
14368
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14369
+ be returned without reading/decoding response
14370
+ data. Default is True.
14371
+ :param _request_timeout: timeout setting for this request. If one
14372
+ number provided, it will be total request
14373
+ timeout. It can also be a pair (tuple) of
14374
+ (connection, read) timeouts.
14375
+ :return: tuple(BackendServerApiProductRoutersDatasetsRouterDatasetResponse, status_code(int), headers(HTTPHeaderDict))
14376
+ If the method is called asynchronously,
14377
+ returns the request thread.
14378
+ """
14379
+
14380
+ local_var_params = locals()
14381
+
14382
+ all_params = [
14383
+ 'dataset_id'
14384
+ ]
14385
+ all_params.extend(
14386
+ [
14387
+ 'async_req',
14388
+ '_return_http_data_only',
14389
+ '_preload_content',
14390
+ '_request_timeout'
14391
+ ]
14392
+ )
14393
+
14394
+ for key, val in six.iteritems(local_var_params['kwargs']):
14395
+ if key not in all_params:
14396
+ raise ApiTypeError(
14397
+ "Got an unexpected keyword argument '%s'"
14398
+ " to method get_dataset_api_v2_datasets_dataset_id_get" % key
14399
+ )
14400
+ local_var_params[key] = val
14401
+ del local_var_params['kwargs']
14402
+ # verify the required parameter 'dataset_id' is set
14403
+ if self.api_client.client_side_validation and ('dataset_id' not in local_var_params or # noqa: E501
14404
+ local_var_params['dataset_id'] is None): # noqa: E501
14405
+ raise ApiValueError("Missing the required parameter `dataset_id` when calling `get_dataset_api_v2_datasets_dataset_id_get`") # noqa: E501
14406
+
14407
+ collection_formats = {}
14408
+
14409
+ path_params = {}
14410
+ if 'dataset_id' in local_var_params:
14411
+ path_params['dataset_id'] = local_var_params['dataset_id'] # noqa: E501
14412
+
14413
+ query_params = []
14414
+
14415
+ header_params = {}
14416
+
14417
+ form_params = []
14418
+ local_var_files = {}
14419
+
14420
+ body_params = None
14421
+ # HTTP header `Accept`
14422
+ header_params['Accept'] = self.api_client.select_header_accept(
14423
+ ['application/json']) # noqa: E501
14424
+
14425
+ # Authentication setting
14426
+ auth_settings = [] # noqa: E501
14427
+
14428
+ return self.api_client.call_api(
14429
+ '/api/v2/datasets/{dataset_id}', 'GET',
14430
+ path_params,
14431
+ query_params,
14432
+ header_params,
14433
+ body=body_params,
14434
+ post_params=form_params,
14435
+ files=local_var_files,
14436
+ response_type='BackendServerApiProductRoutersDatasetsRouterDatasetResponse', # noqa: E501
14437
+ auth_settings=auth_settings,
14438
+ async_req=local_var_params.get('async_req'),
14439
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
14440
+ _preload_content=local_var_params.get('_preload_content', True),
14441
+ _request_timeout=local_var_params.get('_request_timeout'),
14442
+ collection_formats=collection_formats)
14443
+
14444
+ def get_dataset_download_info_api_v2_datasets_download_info_get(self, name, **kwargs): # noqa: E501
14445
+ """Get Dataset Download Info # noqa: E501
14446
+
14447
+ Returns download info for a dataset. # noqa: E501
14448
+ This method makes a synchronous HTTP request by default. To make an
14449
+ asynchronous HTTP request, please pass async_req=True
14450
+ >>> thread = api.get_dataset_download_info_api_v2_datasets_download_info_get(name, async_req=True)
14451
+ >>> result = thread.get()
14452
+
14453
+ :param async_req bool: execute request asynchronously
14454
+ :param str name: Name of the dataset to download. (required)
14455
+ :param int version: Version of the dataset to download. If a negative integer is provided, the dataset returned is this many versions back of the latest version. Default: Latest version
14456
+ :param str project_id: ID of the Anyscale project that the dataset belongs to.
14457
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
14458
+ be returned without reading/decoding response
14459
+ data. Default is True.
14460
+ :param _request_timeout: timeout setting for this request. If one
14461
+ number provided, it will be total request
14462
+ timeout. It can also be a pair (tuple) of
14463
+ (connection, read) timeouts.
14464
+ :return: ClouddatabucketpresignedurlresponseResponse
14465
+ If the method is called asynchronously,
14466
+ returns the request thread.
14467
+ """
14468
+ kwargs['_return_http_data_only'] = True
14469
+ return self.get_dataset_download_info_api_v2_datasets_download_info_get_with_http_info(name, **kwargs) # noqa: E501
14470
+
14471
+ def get_dataset_download_info_api_v2_datasets_download_info_get_with_http_info(self, name, **kwargs): # noqa: E501
14472
+ """Get Dataset Download Info # noqa: E501
14473
+
14474
+ Returns download info for a dataset. # noqa: E501
14475
+ This method makes a synchronous HTTP request by default. To make an
14476
+ asynchronous HTTP request, please pass async_req=True
14477
+ >>> thread = api.get_dataset_download_info_api_v2_datasets_download_info_get_with_http_info(name, async_req=True)
14478
+ >>> result = thread.get()
14479
+
14480
+ :param async_req bool: execute request asynchronously
14481
+ :param str name: Name of the dataset to download. (required)
14482
+ :param int version: Version of the dataset to download. If a negative integer is provided, the dataset returned is this many versions back of the latest version. Default: Latest version
14483
+ :param str project_id: ID of the Anyscale project that the dataset belongs to.
14126
14484
  :param _return_http_data_only: response data without head status code
14127
14485
  and headers
14128
14486
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -17783,6 +18141,7 @@ class DefaultApi(object):
17783
18141
  :param async_req bool: execute request asynchronously
17784
18142
  :param str cluster_id: (required)
17785
18143
  :param str session_name: The name of the session to fetch nodes for.
18144
+ :param str text_filter: The text to filter the nodes by. Search for case-insensitive substring match in node id, name, node_ip, labels, or resources.
17786
18145
  :param list[NodeStatus] states_filter: The states to filter the nodes by.
17787
18146
  :param int page: The page number to fetch.
17788
18147
  :param int page_size: The number of nodes to fetch per page.
@@ -17811,6 +18170,7 @@ class DefaultApi(object):
17811
18170
  :param async_req bool: execute request asynchronously
17812
18171
  :param str cluster_id: (required)
17813
18172
  :param str session_name: The name of the session to fetch nodes for.
18173
+ :param str text_filter: The text to filter the nodes by. Search for case-insensitive substring match in node id, name, node_ip, labels, or resources.
17814
18174
  :param list[NodeStatus] states_filter: The states to filter the nodes by.
17815
18175
  :param int page: The page number to fetch.
17816
18176
  :param int page_size: The number of nodes to fetch per page.
@@ -17833,6 +18193,7 @@ class DefaultApi(object):
17833
18193
  all_params = [
17834
18194
  'cluster_id',
17835
18195
  'session_name',
18196
+ 'text_filter',
17836
18197
  'states_filter',
17837
18198
  'page',
17838
18199
  'page_size'
@@ -17868,6 +18229,8 @@ class DefaultApi(object):
17868
18229
  query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
17869
18230
  if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
17870
18231
  query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
18232
+ if 'text_filter' in local_var_params and local_var_params['text_filter'] is not None: # noqa: E501
18233
+ query_params.append(('text_filter', local_var_params['text_filter'])) # noqa: E501
17871
18234
  if 'states_filter' in local_var_params and local_var_params['states_filter'] is not None: # noqa: E501
17872
18235
  query_params.append(('states_filter', local_var_params['states_filter'])) # noqa: E501
17873
18236
  collection_formats['states_filter'] = 'multi' # noqa: E501
@@ -17905,6 +18268,125 @@ class DefaultApi(object):
17905
18268
  _request_timeout=local_var_params.get('_request_timeout'),
17906
18269
  collection_formats=collection_formats)
17907
18270
 
18271
+ def get_oauth_login_url_api_v2_integrations_oauth_login_get(self, integration_id, **kwargs): # noqa: E501
18272
+ """Get Oauth Login Url # noqa: E501
18273
+
18274
+ Generate OAuth authorization URL with PKCE for third party integration # noqa: E501
18275
+ This method makes a synchronous HTTP request by default. To make an
18276
+ asynchronous HTTP request, please pass async_req=True
18277
+ >>> thread = api.get_oauth_login_url_api_v2_integrations_oauth_login_get(integration_id, async_req=True)
18278
+ >>> result = thread.get()
18279
+
18280
+ :param async_req bool: execute request asynchronously
18281
+ :param str integration_id: ID of the registered third party integration connection (required)
18282
+ :param bool validation: Whether this is a validation flow for the connection
18283
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18284
+ be returned without reading/decoding response
18285
+ data. Default is True.
18286
+ :param _request_timeout: timeout setting for this request. If one
18287
+ number provided, it will be total request
18288
+ timeout. It can also be a pair (tuple) of
18289
+ (connection, read) timeouts.
18290
+ :return: OauthAuthUrlResponse
18291
+ If the method is called asynchronously,
18292
+ returns the request thread.
18293
+ """
18294
+ kwargs['_return_http_data_only'] = True
18295
+ return self.get_oauth_login_url_api_v2_integrations_oauth_login_get_with_http_info(integration_id, **kwargs) # noqa: E501
18296
+
18297
+ def get_oauth_login_url_api_v2_integrations_oauth_login_get_with_http_info(self, integration_id, **kwargs): # noqa: E501
18298
+ """Get Oauth Login Url # noqa: E501
18299
+
18300
+ Generate OAuth authorization URL with PKCE for third party integration # noqa: E501
18301
+ This method makes a synchronous HTTP request by default. To make an
18302
+ asynchronous HTTP request, please pass async_req=True
18303
+ >>> thread = api.get_oauth_login_url_api_v2_integrations_oauth_login_get_with_http_info(integration_id, async_req=True)
18304
+ >>> result = thread.get()
18305
+
18306
+ :param async_req bool: execute request asynchronously
18307
+ :param str integration_id: ID of the registered third party integration connection (required)
18308
+ :param bool validation: Whether this is a validation flow for the connection
18309
+ :param _return_http_data_only: response data without head status code
18310
+ and headers
18311
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18312
+ be returned without reading/decoding response
18313
+ data. Default is True.
18314
+ :param _request_timeout: timeout setting for this request. If one
18315
+ number provided, it will be total request
18316
+ timeout. It can also be a pair (tuple) of
18317
+ (connection, read) timeouts.
18318
+ :return: tuple(OauthAuthUrlResponse, status_code(int), headers(HTTPHeaderDict))
18319
+ If the method is called asynchronously,
18320
+ returns the request thread.
18321
+ """
18322
+
18323
+ local_var_params = locals()
18324
+
18325
+ all_params = [
18326
+ 'integration_id',
18327
+ 'validation'
18328
+ ]
18329
+ all_params.extend(
18330
+ [
18331
+ 'async_req',
18332
+ '_return_http_data_only',
18333
+ '_preload_content',
18334
+ '_request_timeout'
18335
+ ]
18336
+ )
18337
+
18338
+ for key, val in six.iteritems(local_var_params['kwargs']):
18339
+ if key not in all_params:
18340
+ raise ApiTypeError(
18341
+ "Got an unexpected keyword argument '%s'"
18342
+ " to method get_oauth_login_url_api_v2_integrations_oauth_login_get" % key
18343
+ )
18344
+ local_var_params[key] = val
18345
+ del local_var_params['kwargs']
18346
+ # verify the required parameter 'integration_id' is set
18347
+ if self.api_client.client_side_validation and ('integration_id' not in local_var_params or # noqa: E501
18348
+ local_var_params['integration_id'] is None): # noqa: E501
18349
+ raise ApiValueError("Missing the required parameter `integration_id` when calling `get_oauth_login_url_api_v2_integrations_oauth_login_get`") # noqa: E501
18350
+
18351
+ collection_formats = {}
18352
+
18353
+ path_params = {}
18354
+
18355
+ query_params = []
18356
+ if 'integration_id' in local_var_params and local_var_params['integration_id'] is not None: # noqa: E501
18357
+ query_params.append(('integration_id', local_var_params['integration_id'])) # noqa: E501
18358
+ if 'validation' in local_var_params and local_var_params['validation'] is not None: # noqa: E501
18359
+ query_params.append(('validation', local_var_params['validation'])) # noqa: E501
18360
+
18361
+ header_params = {}
18362
+
18363
+ form_params = []
18364
+ local_var_files = {}
18365
+
18366
+ body_params = None
18367
+ # HTTP header `Accept`
18368
+ header_params['Accept'] = self.api_client.select_header_accept(
18369
+ ['application/json']) # noqa: E501
18370
+
18371
+ # Authentication setting
18372
+ auth_settings = [] # noqa: E501
18373
+
18374
+ return self.api_client.call_api(
18375
+ '/api/v2/integrations/oauth/login', 'GET',
18376
+ path_params,
18377
+ query_params,
18378
+ header_params,
18379
+ body=body_params,
18380
+ post_params=form_params,
18381
+ files=local_var_files,
18382
+ response_type='OauthAuthUrlResponse', # noqa: E501
18383
+ auth_settings=auth_settings,
18384
+ async_req=local_var_params.get('async_req'),
18385
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
18386
+ _preload_content=local_var_params.get('_preload_content', True),
18387
+ _request_timeout=local_var_params.get('_request_timeout'),
18388
+ collection_formats=collection_formats)
18389
+
17908
18390
  def get_operator_events_api_v2_dataset_runs_operator_events_get(self, cluster_id, session_name, dataset_id, operator_id, **kwargs): # noqa: E501
17909
18391
  """Get Operator Events # noqa: E501
17910
18392
 
@@ -24236,6 +24718,8 @@ class DefaultApi(object):
24236
24718
 
24237
24719
  :param async_req bool: execute request asynchronously
24238
24720
  :param str name:
24721
+ :param str paging_token:
24722
+ :param int count:
24239
24723
  :param _preload_content: if False, the urllib3.HTTPResponse object will
24240
24724
  be returned without reading/decoding response
24241
24725
  data. Default is True.
@@ -24261,6 +24745,8 @@ class DefaultApi(object):
24261
24745
 
24262
24746
  :param async_req bool: execute request asynchronously
24263
24747
  :param str name:
24748
+ :param str paging_token:
24749
+ :param int count:
24264
24750
  :param _return_http_data_only: response data without head status code
24265
24751
  and headers
24266
24752
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -24278,7 +24764,9 @@ class DefaultApi(object):
24278
24764
  local_var_params = locals()
24279
24765
 
24280
24766
  all_params = [
24281
- 'name'
24767
+ 'name',
24768
+ 'paging_token',
24769
+ 'count'
24282
24770
  ]
24283
24771
  all_params.extend(
24284
24772
  [
@@ -24298,6 +24786,10 @@ class DefaultApi(object):
24298
24786
  local_var_params[key] = val
24299
24787
  del local_var_params['kwargs']
24300
24788
 
24789
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
24790
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_api_keys_api_v2_users_api_keys_get`, must be a value less than or equal to `50`") # noqa: E501
24791
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
24792
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_api_keys_api_v2_users_api_keys_get`, must be a value greater than or equal to `0`") # noqa: E501
24301
24793
  collection_formats = {}
24302
24794
 
24303
24795
  path_params = {}
@@ -24305,6 +24797,10 @@ class DefaultApi(object):
24305
24797
  query_params = []
24306
24798
  if 'name' in local_var_params and local_var_params['name'] is not None: # noqa: E501
24307
24799
  query_params.append(('name', local_var_params['name'])) # noqa: E501
24800
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
24801
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
24802
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
24803
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
24308
24804
 
24309
24805
  header_params = {}
24310
24806
 
@@ -24348,6 +24844,8 @@ class DefaultApi(object):
24348
24844
  :param str name:
24349
24845
  :param str created_by:
24350
24846
  :param str user_id:
24847
+ :param str paging_token:
24848
+ :param int count:
24351
24849
  :param _preload_content: if False, the urllib3.HTTPResponse object will
24352
24850
  be returned without reading/decoding response
24353
24851
  data. Default is True.
@@ -24375,6 +24873,8 @@ class DefaultApi(object):
24375
24873
  :param str name:
24376
24874
  :param str created_by:
24377
24875
  :param str user_id:
24876
+ :param str paging_token:
24877
+ :param int count:
24378
24878
  :param _return_http_data_only: response data without head status code
24379
24879
  and headers
24380
24880
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -24394,7 +24894,9 @@ class DefaultApi(object):
24394
24894
  all_params = [
24395
24895
  'name',
24396
24896
  'created_by',
24397
- 'user_id'
24897
+ 'user_id',
24898
+ 'paging_token',
24899
+ 'count'
24398
24900
  ]
24399
24901
  all_params.extend(
24400
24902
  [
@@ -24414,6 +24916,10 @@ class DefaultApi(object):
24414
24916
  local_var_params[key] = val
24415
24917
  del local_var_params['kwargs']
24416
24918
 
24919
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
24920
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_api_keys_for_admin_api_v2_users_admin_api_keys_get`, must be a value less than or equal to `50`") # noqa: E501
24921
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
24922
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_api_keys_for_admin_api_v2_users_admin_api_keys_get`, must be a value greater than or equal to `0`") # noqa: E501
24417
24923
  collection_formats = {}
24418
24924
 
24419
24925
  path_params = {}
@@ -24425,6 +24931,10 @@ class DefaultApi(object):
24425
24931
  query_params.append(('created_by', local_var_params['created_by'])) # noqa: E501
24426
24932
  if 'user_id' in local_var_params and local_var_params['user_id'] is not None: # noqa: E501
24427
24933
  query_params.append(('user_id', local_var_params['user_id'])) # noqa: E501
24934
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
24935
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
24936
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
24937
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
24428
24938
 
24429
24939
  header_params = {}
24430
24940
 
@@ -24732,17 +25242,17 @@ class DefaultApi(object):
24732
25242
  _request_timeout=local_var_params.get('_request_timeout'),
24733
25243
  collection_formats=collection_formats)
24734
25244
 
24735
- def list_clouds_api_v2_clouds_get(self, **kwargs): # noqa: E501
24736
- """List Clouds # noqa: E501
25245
+ def list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get(self, connection_id, **kwargs): # noqa: E501
25246
+ """List Catalogs In Connection # noqa: E501
24737
25247
 
25248
+ Lists all catalogs within a specific provider connection # noqa: E501
24738
25249
  This method makes a synchronous HTTP request by default. To make an
24739
25250
  asynchronous HTTP request, please pass async_req=True
24740
- >>> thread = api.list_clouds_api_v2_clouds_get(async_req=True)
25251
+ >>> thread = api.list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get(connection_id, async_req=True)
24741
25252
  >>> result = thread.get()
24742
25253
 
24743
25254
  :param async_req bool: execute request asynchronously
24744
- :param str paging_token:
24745
- :param int count:
25255
+ :param str connection_id: ID of the provider connection (required)
24746
25256
  :param _preload_content: if False, the urllib3.HTTPResponse object will
24747
25257
  be returned without reading/decoding response
24748
25258
  data. Default is True.
@@ -24750,24 +25260,24 @@ class DefaultApi(object):
24750
25260
  number provided, it will be total request
24751
25261
  timeout. It can also be a pair (tuple) of
24752
25262
  (connection, read) timeouts.
24753
- :return: CloudListResponse
25263
+ :return: DatacatalogListResponse
24754
25264
  If the method is called asynchronously,
24755
25265
  returns the request thread.
24756
25266
  """
24757
25267
  kwargs['_return_http_data_only'] = True
24758
- return self.list_clouds_api_v2_clouds_get_with_http_info(**kwargs) # noqa: E501
25268
+ return self.list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get_with_http_info(connection_id, **kwargs) # noqa: E501
24759
25269
 
24760
- def list_clouds_api_v2_clouds_get_with_http_info(self, **kwargs): # noqa: E501
24761
- """List Clouds # noqa: E501
25270
+ def list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get_with_http_info(self, connection_id, **kwargs): # noqa: E501
25271
+ """List Catalogs In Connection # noqa: E501
24762
25272
 
25273
+ Lists all catalogs within a specific provider connection # noqa: E501
24763
25274
  This method makes a synchronous HTTP request by default. To make an
24764
25275
  asynchronous HTTP request, please pass async_req=True
24765
- >>> thread = api.list_clouds_api_v2_clouds_get_with_http_info(async_req=True)
25276
+ >>> thread = api.list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get_with_http_info(connection_id, async_req=True)
24766
25277
  >>> result = thread.get()
24767
25278
 
24768
25279
  :param async_req bool: execute request asynchronously
24769
- :param str paging_token:
24770
- :param int count:
25280
+ :param str connection_id: ID of the provider connection (required)
24771
25281
  :param _return_http_data_only: response data without head status code
24772
25282
  and headers
24773
25283
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -24777,7 +25287,7 @@ class DefaultApi(object):
24777
25287
  number provided, it will be total request
24778
25288
  timeout. It can also be a pair (tuple) of
24779
25289
  (connection, read) timeouts.
24780
- :return: tuple(CloudListResponse, status_code(int), headers(HTTPHeaderDict))
25290
+ :return: tuple(DatacatalogListResponse, status_code(int), headers(HTTPHeaderDict))
24781
25291
  If the method is called asynchronously,
24782
25292
  returns the request thread.
24783
25293
  """
@@ -24785,8 +25295,7 @@ class DefaultApi(object):
24785
25295
  local_var_params = locals()
24786
25296
 
24787
25297
  all_params = [
24788
- 'paging_token',
24789
- 'count'
25298
+ 'connection_id'
24790
25299
  ]
24791
25300
  all_params.extend(
24792
25301
  [
@@ -24801,14 +25310,129 @@ class DefaultApi(object):
24801
25310
  if key not in all_params:
24802
25311
  raise ApiTypeError(
24803
25312
  "Got an unexpected keyword argument '%s'"
24804
- " to method list_clouds_api_v2_clouds_get" % key
25313
+ " to method list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get" % key
24805
25314
  )
24806
25315
  local_var_params[key] = val
24807
25316
  del local_var_params['kwargs']
25317
+ # verify the required parameter 'connection_id' is set
25318
+ if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
25319
+ local_var_params['connection_id'] is None): # noqa: E501
25320
+ raise ApiValueError("Missing the required parameter `connection_id` when calling `list_catalogs_in_connection_api_v2_data_catalogs_connections_connection_id_catalogs_get`") # noqa: E501
24808
25321
 
24809
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
24810
- raise ApiValueError("Invalid value for parameter `count` when calling `list_clouds_api_v2_clouds_get`, must be a value less than or equal to `1000`") # noqa: E501
24811
- if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
25322
+ collection_formats = {}
25323
+
25324
+ path_params = {}
25325
+ if 'connection_id' in local_var_params:
25326
+ path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
25327
+
25328
+ query_params = []
25329
+
25330
+ header_params = {}
25331
+
25332
+ form_params = []
25333
+ local_var_files = {}
25334
+
25335
+ body_params = None
25336
+ # HTTP header `Accept`
25337
+ header_params['Accept'] = self.api_client.select_header_accept(
25338
+ ['application/json']) # noqa: E501
25339
+
25340
+ # Authentication setting
25341
+ auth_settings = [] # noqa: E501
25342
+
25343
+ return self.api_client.call_api(
25344
+ '/api/v2/data_catalogs/connections/{connection_id}/catalogs', 'GET',
25345
+ path_params,
25346
+ query_params,
25347
+ header_params,
25348
+ body=body_params,
25349
+ post_params=form_params,
25350
+ files=local_var_files,
25351
+ response_type='DatacatalogListResponse', # noqa: E501
25352
+ auth_settings=auth_settings,
25353
+ async_req=local_var_params.get('async_req'),
25354
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
25355
+ _preload_content=local_var_params.get('_preload_content', True),
25356
+ _request_timeout=local_var_params.get('_request_timeout'),
25357
+ collection_formats=collection_formats)
25358
+
25359
+ def list_clouds_api_v2_clouds_get(self, **kwargs): # noqa: E501
25360
+ """List Clouds # noqa: E501
25361
+
25362
+ This method makes a synchronous HTTP request by default. To make an
25363
+ asynchronous HTTP request, please pass async_req=True
25364
+ >>> thread = api.list_clouds_api_v2_clouds_get(async_req=True)
25365
+ >>> result = thread.get()
25366
+
25367
+ :param async_req bool: execute request asynchronously
25368
+ :param str paging_token:
25369
+ :param int count:
25370
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
25371
+ be returned without reading/decoding response
25372
+ data. Default is True.
25373
+ :param _request_timeout: timeout setting for this request. If one
25374
+ number provided, it will be total request
25375
+ timeout. It can also be a pair (tuple) of
25376
+ (connection, read) timeouts.
25377
+ :return: CloudListResponse
25378
+ If the method is called asynchronously,
25379
+ returns the request thread.
25380
+ """
25381
+ kwargs['_return_http_data_only'] = True
25382
+ return self.list_clouds_api_v2_clouds_get_with_http_info(**kwargs) # noqa: E501
25383
+
25384
+ def list_clouds_api_v2_clouds_get_with_http_info(self, **kwargs): # noqa: E501
25385
+ """List Clouds # noqa: E501
25386
+
25387
+ This method makes a synchronous HTTP request by default. To make an
25388
+ asynchronous HTTP request, please pass async_req=True
25389
+ >>> thread = api.list_clouds_api_v2_clouds_get_with_http_info(async_req=True)
25390
+ >>> result = thread.get()
25391
+
25392
+ :param async_req bool: execute request asynchronously
25393
+ :param str paging_token:
25394
+ :param int count:
25395
+ :param _return_http_data_only: response data without head status code
25396
+ and headers
25397
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
25398
+ be returned without reading/decoding response
25399
+ data. Default is True.
25400
+ :param _request_timeout: timeout setting for this request. If one
25401
+ number provided, it will be total request
25402
+ timeout. It can also be a pair (tuple) of
25403
+ (connection, read) timeouts.
25404
+ :return: tuple(CloudListResponse, status_code(int), headers(HTTPHeaderDict))
25405
+ If the method is called asynchronously,
25406
+ returns the request thread.
25407
+ """
25408
+
25409
+ local_var_params = locals()
25410
+
25411
+ all_params = [
25412
+ 'paging_token',
25413
+ 'count'
25414
+ ]
25415
+ all_params.extend(
25416
+ [
25417
+ 'async_req',
25418
+ '_return_http_data_only',
25419
+ '_preload_content',
25420
+ '_request_timeout'
25421
+ ]
25422
+ )
25423
+
25424
+ for key, val in six.iteritems(local_var_params['kwargs']):
25425
+ if key not in all_params:
25426
+ raise ApiTypeError(
25427
+ "Got an unexpected keyword argument '%s'"
25428
+ " to method list_clouds_api_v2_clouds_get" % key
25429
+ )
25430
+ local_var_params[key] = val
25431
+ del local_var_params['kwargs']
25432
+
25433
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
25434
+ raise ApiValueError("Invalid value for parameter `count` when calling `list_clouds_api_v2_clouds_get`, must be a value less than or equal to `1000`") # noqa: E501
25435
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
24812
25436
  raise ApiValueError("Invalid value for parameter `count` when calling `list_clouds_api_v2_clouds_get`, must be a value greater than or equal to `0`") # noqa: E501
24813
25437
  collection_formats = {}
24814
25438
 
@@ -25093,6 +25717,226 @@ class DefaultApi(object):
25093
25717
  _request_timeout=local_var_params.get('_request_timeout'),
25094
25718
  collection_formats=collection_formats)
25095
25719
 
25720
+ def list_data_catalog_connections_api_v2_data_catalogs_connections_get(self, **kwargs): # noqa: E501
25721
+ """List Data Catalog Connections # noqa: E501
25722
+
25723
+ Lists all data catalog provider connections. # noqa: E501
25724
+ This method makes a synchronous HTTP request by default. To make an
25725
+ asynchronous HTTP request, please pass async_req=True
25726
+ >>> thread = api.list_data_catalog_connections_api_v2_data_catalogs_connections_get(async_req=True)
25727
+ >>> result = thread.get()
25728
+
25729
+ :param async_req bool: execute request asynchronously
25730
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
25731
+ be returned without reading/decoding response
25732
+ data. Default is True.
25733
+ :param _request_timeout: timeout setting for this request. If one
25734
+ number provided, it will be total request
25735
+ timeout. It can also be a pair (tuple) of
25736
+ (connection, read) timeouts.
25737
+ :return: DatacatalogconnectionListResponse
25738
+ If the method is called asynchronously,
25739
+ returns the request thread.
25740
+ """
25741
+ kwargs['_return_http_data_only'] = True
25742
+ return self.list_data_catalog_connections_api_v2_data_catalogs_connections_get_with_http_info(**kwargs) # noqa: E501
25743
+
25744
+ def list_data_catalog_connections_api_v2_data_catalogs_connections_get_with_http_info(self, **kwargs): # noqa: E501
25745
+ """List Data Catalog Connections # noqa: E501
25746
+
25747
+ Lists all data catalog provider connections. # noqa: E501
25748
+ This method makes a synchronous HTTP request by default. To make an
25749
+ asynchronous HTTP request, please pass async_req=True
25750
+ >>> thread = api.list_data_catalog_connections_api_v2_data_catalogs_connections_get_with_http_info(async_req=True)
25751
+ >>> result = thread.get()
25752
+
25753
+ :param async_req bool: execute request asynchronously
25754
+ :param _return_http_data_only: response data without head status code
25755
+ and headers
25756
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
25757
+ be returned without reading/decoding response
25758
+ data. Default is True.
25759
+ :param _request_timeout: timeout setting for this request. If one
25760
+ number provided, it will be total request
25761
+ timeout. It can also be a pair (tuple) of
25762
+ (connection, read) timeouts.
25763
+ :return: tuple(DatacatalogconnectionListResponse, status_code(int), headers(HTTPHeaderDict))
25764
+ If the method is called asynchronously,
25765
+ returns the request thread.
25766
+ """
25767
+
25768
+ local_var_params = locals()
25769
+
25770
+ all_params = [
25771
+ ]
25772
+ all_params.extend(
25773
+ [
25774
+ 'async_req',
25775
+ '_return_http_data_only',
25776
+ '_preload_content',
25777
+ '_request_timeout'
25778
+ ]
25779
+ )
25780
+
25781
+ for key, val in six.iteritems(local_var_params['kwargs']):
25782
+ if key not in all_params:
25783
+ raise ApiTypeError(
25784
+ "Got an unexpected keyword argument '%s'"
25785
+ " to method list_data_catalog_connections_api_v2_data_catalogs_connections_get" % key
25786
+ )
25787
+ local_var_params[key] = val
25788
+ del local_var_params['kwargs']
25789
+
25790
+ collection_formats = {}
25791
+
25792
+ path_params = {}
25793
+
25794
+ query_params = []
25795
+
25796
+ header_params = {}
25797
+
25798
+ form_params = []
25799
+ local_var_files = {}
25800
+
25801
+ body_params = None
25802
+ # HTTP header `Accept`
25803
+ header_params['Accept'] = self.api_client.select_header_accept(
25804
+ ['application/json']) # noqa: E501
25805
+
25806
+ # Authentication setting
25807
+ auth_settings = [] # noqa: E501
25808
+
25809
+ return self.api_client.call_api(
25810
+ '/api/v2/data_catalogs/connections', 'GET',
25811
+ path_params,
25812
+ query_params,
25813
+ header_params,
25814
+ body=body_params,
25815
+ post_params=form_params,
25816
+ files=local_var_files,
25817
+ response_type='DatacatalogconnectionListResponse', # noqa: E501
25818
+ auth_settings=auth_settings,
25819
+ async_req=local_var_params.get('async_req'),
25820
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
25821
+ _preload_content=local_var_params.get('_preload_content', True),
25822
+ _request_timeout=local_var_params.get('_request_timeout'),
25823
+ collection_formats=collection_formats)
25824
+
25825
+ def list_databricks_connections_api_v2_integrations_connections_databricks_get(self, **kwargs): # noqa: E501
25826
+ """List Databricks Connections # noqa: E501
25827
+
25828
+ List all registered Databricks connections # noqa: E501
25829
+ This method makes a synchronous HTTP request by default. To make an
25830
+ asynchronous HTTP request, please pass async_req=True
25831
+ >>> thread = api.list_databricks_connections_api_v2_integrations_connections_databricks_get(async_req=True)
25832
+ >>> result = thread.get()
25833
+
25834
+ :param async_req bool: execute request asynchronously
25835
+ :param ValidationStatus validation_status:
25836
+ :param ConnectionType connection_type:
25837
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
25838
+ be returned without reading/decoding response
25839
+ data. Default is True.
25840
+ :param _request_timeout: timeout setting for this request. If one
25841
+ number provided, it will be total request
25842
+ timeout. It can also be a pair (tuple) of
25843
+ (connection, read) timeouts.
25844
+ :return: ListDatabricksConnections
25845
+ If the method is called asynchronously,
25846
+ returns the request thread.
25847
+ """
25848
+ kwargs['_return_http_data_only'] = True
25849
+ return self.list_databricks_connections_api_v2_integrations_connections_databricks_get_with_http_info(**kwargs) # noqa: E501
25850
+
25851
+ def list_databricks_connections_api_v2_integrations_connections_databricks_get_with_http_info(self, **kwargs): # noqa: E501
25852
+ """List Databricks Connections # noqa: E501
25853
+
25854
+ List all registered Databricks connections # noqa: E501
25855
+ This method makes a synchronous HTTP request by default. To make an
25856
+ asynchronous HTTP request, please pass async_req=True
25857
+ >>> thread = api.list_databricks_connections_api_v2_integrations_connections_databricks_get_with_http_info(async_req=True)
25858
+ >>> result = thread.get()
25859
+
25860
+ :param async_req bool: execute request asynchronously
25861
+ :param ValidationStatus validation_status:
25862
+ :param ConnectionType connection_type:
25863
+ :param _return_http_data_only: response data without head status code
25864
+ and headers
25865
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
25866
+ be returned without reading/decoding response
25867
+ data. Default is True.
25868
+ :param _request_timeout: timeout setting for this request. If one
25869
+ number provided, it will be total request
25870
+ timeout. It can also be a pair (tuple) of
25871
+ (connection, read) timeouts.
25872
+ :return: tuple(ListDatabricksConnections, status_code(int), headers(HTTPHeaderDict))
25873
+ If the method is called asynchronously,
25874
+ returns the request thread.
25875
+ """
25876
+
25877
+ local_var_params = locals()
25878
+
25879
+ all_params = [
25880
+ 'validation_status',
25881
+ 'connection_type'
25882
+ ]
25883
+ all_params.extend(
25884
+ [
25885
+ 'async_req',
25886
+ '_return_http_data_only',
25887
+ '_preload_content',
25888
+ '_request_timeout'
25889
+ ]
25890
+ )
25891
+
25892
+ for key, val in six.iteritems(local_var_params['kwargs']):
25893
+ if key not in all_params:
25894
+ raise ApiTypeError(
25895
+ "Got an unexpected keyword argument '%s'"
25896
+ " to method list_databricks_connections_api_v2_integrations_connections_databricks_get" % key
25897
+ )
25898
+ local_var_params[key] = val
25899
+ del local_var_params['kwargs']
25900
+
25901
+ collection_formats = {}
25902
+
25903
+ path_params = {}
25904
+
25905
+ query_params = []
25906
+ if 'validation_status' in local_var_params and local_var_params['validation_status'] is not None: # noqa: E501
25907
+ query_params.append(('validation_status', local_var_params['validation_status'])) # noqa: E501
25908
+ if 'connection_type' in local_var_params and local_var_params['connection_type'] is not None: # noqa: E501
25909
+ query_params.append(('connection_type', local_var_params['connection_type'])) # noqa: E501
25910
+
25911
+ header_params = {}
25912
+
25913
+ form_params = []
25914
+ local_var_files = {}
25915
+
25916
+ body_params = None
25917
+ # HTTP header `Accept`
25918
+ header_params['Accept'] = self.api_client.select_header_accept(
25919
+ ['application/json']) # noqa: E501
25920
+
25921
+ # Authentication setting
25922
+ auth_settings = [] # noqa: E501
25923
+
25924
+ return self.api_client.call_api(
25925
+ '/api/v2/integrations/connections/databricks', 'GET',
25926
+ path_params,
25927
+ query_params,
25928
+ header_params,
25929
+ body=body_params,
25930
+ post_params=form_params,
25931
+ files=local_var_files,
25932
+ response_type='ListDatabricksConnections', # noqa: E501
25933
+ auth_settings=auth_settings,
25934
+ async_req=local_var_params.get('async_req'),
25935
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
25936
+ _preload_content=local_var_params.get('_preload_content', True),
25937
+ _request_timeout=local_var_params.get('_request_timeout'),
25938
+ collection_formats=collection_formats)
25939
+
25096
25940
  def list_dataset_versions_api_v2_datasets_versions_get(self, dataset_id, **kwargs): # noqa: E501
25097
25941
  """List Dataset Versions # noqa: E501
25098
25942
 
@@ -29241,11 +30085,127 @@ class DefaultApi(object):
29241
30085
 
29242
30086
  This method makes a synchronous HTTP request by default. To make an
29243
30087
  asynchronous HTTP request, please pass async_req=True
29244
- >>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
30088
+ >>> thread = api.login_user_api_v2_users_login_post_with_http_info(login_user_params, async_req=True)
30089
+ >>> result = thread.get()
30090
+
30091
+ :param async_req bool: execute request asynchronously
30092
+ :param LoginUserParams login_user_params: (required)
30093
+ :param _return_http_data_only: response data without head status code
30094
+ and headers
30095
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
30096
+ be returned without reading/decoding response
30097
+ data. Default is True.
30098
+ :param _request_timeout: timeout setting for this request. If one
30099
+ number provided, it will be total request
30100
+ timeout. It can also be a pair (tuple) of
30101
+ (connection, read) timeouts.
30102
+ :return: None
30103
+ If the method is called asynchronously,
30104
+ returns the request thread.
30105
+ """
30106
+
30107
+ local_var_params = locals()
30108
+
30109
+ all_params = [
30110
+ 'login_user_params'
30111
+ ]
30112
+ all_params.extend(
30113
+ [
30114
+ 'async_req',
30115
+ '_return_http_data_only',
30116
+ '_preload_content',
30117
+ '_request_timeout'
30118
+ ]
30119
+ )
30120
+
30121
+ for key, val in six.iteritems(local_var_params['kwargs']):
30122
+ if key not in all_params:
30123
+ raise ApiTypeError(
30124
+ "Got an unexpected keyword argument '%s'"
30125
+ " to method login_user_api_v2_users_login_post" % key
30126
+ )
30127
+ local_var_params[key] = val
30128
+ del local_var_params['kwargs']
30129
+ # verify the required parameter 'login_user_params' is set
30130
+ if self.api_client.client_side_validation and ('login_user_params' not in local_var_params or # noqa: E501
30131
+ local_var_params['login_user_params'] is None): # noqa: E501
30132
+ raise ApiValueError("Missing the required parameter `login_user_params` when calling `login_user_api_v2_users_login_post`") # noqa: E501
30133
+
30134
+ collection_formats = {}
30135
+
30136
+ path_params = {}
30137
+
30138
+ query_params = []
30139
+
30140
+ header_params = {}
30141
+
30142
+ form_params = []
30143
+ local_var_files = {}
30144
+
30145
+ body_params = None
30146
+ if 'login_user_params' in local_var_params:
30147
+ body_params = local_var_params['login_user_params']
30148
+ # HTTP header `Accept`
30149
+ header_params['Accept'] = self.api_client.select_header_accept(
30150
+ ['application/json']) # noqa: E501
30151
+
30152
+ # HTTP header `Content-Type`
30153
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
30154
+ ['application/json']) # noqa: E501
30155
+
30156
+ # Authentication setting
30157
+ auth_settings = [] # noqa: E501
30158
+
30159
+ return self.api_client.call_api(
30160
+ '/api/v2/users/login', 'POST',
30161
+ path_params,
30162
+ query_params,
30163
+ header_params,
30164
+ body=body_params,
30165
+ post_params=form_params,
30166
+ files=local_var_files,
30167
+ response_type=None, # noqa: E501
30168
+ auth_settings=auth_settings,
30169
+ async_req=local_var_params.get('async_req'),
30170
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
30171
+ _preload_content=local_var_params.get('_preload_content', True),
30172
+ _request_timeout=local_var_params.get('_request_timeout'),
30173
+ collection_formats=collection_formats)
30174
+
30175
+ def logout_user_api_v2_users_logout_post(self, **kwargs): # noqa: E501
30176
+ """Logout User # noqa: E501
30177
+
30178
+ Log a user out. # noqa: E501
30179
+ This method makes a synchronous HTTP request by default. To make an
30180
+ asynchronous HTTP request, please pass async_req=True
30181
+ >>> thread = api.logout_user_api_v2_users_logout_post(async_req=True)
30182
+ >>> result = thread.get()
30183
+
30184
+ :param async_req bool: execute request asynchronously
30185
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
30186
+ be returned without reading/decoding response
30187
+ data. Default is True.
30188
+ :param _request_timeout: timeout setting for this request. If one
30189
+ number provided, it will be total request
30190
+ timeout. It can also be a pair (tuple) of
30191
+ (connection, read) timeouts.
30192
+ :return: None
30193
+ If the method is called asynchronously,
30194
+ returns the request thread.
30195
+ """
30196
+ kwargs['_return_http_data_only'] = True
30197
+ return self.logout_user_api_v2_users_logout_post_with_http_info(**kwargs) # noqa: E501
30198
+
30199
+ def logout_user_api_v2_users_logout_post_with_http_info(self, **kwargs): # noqa: E501
30200
+ """Logout User # noqa: E501
30201
+
30202
+ Log a user out. # noqa: E501
30203
+ This method makes a synchronous HTTP request by default. To make an
30204
+ asynchronous HTTP request, please pass async_req=True
30205
+ >>> thread = api.logout_user_api_v2_users_logout_post_with_http_info(async_req=True)
29245
30206
  >>> result = thread.get()
29246
30207
 
29247
30208
  :param async_req bool: execute request asynchronously
29248
- :param LoginUserParams login_user_params: (required)
29249
30209
  :param _return_http_data_only: response data without head status code
29250
30210
  and headers
29251
30211
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -29263,7 +30223,6 @@ class DefaultApi(object):
29263
30223
  local_var_params = locals()
29264
30224
 
29265
30225
  all_params = [
29266
- 'login_user_params'
29267
30226
  ]
29268
30227
  all_params.extend(
29269
30228
  [
@@ -29278,14 +30237,10 @@ class DefaultApi(object):
29278
30237
  if key not in all_params:
29279
30238
  raise ApiTypeError(
29280
30239
  "Got an unexpected keyword argument '%s'"
29281
- " to method login_user_api_v2_users_login_post" % key
30240
+ " to method logout_user_api_v2_users_logout_post" % key
29282
30241
  )
29283
30242
  local_var_params[key] = val
29284
30243
  del local_var_params['kwargs']
29285
- # verify the required parameter 'login_user_params' is set
29286
- if self.api_client.client_side_validation and ('login_user_params' not in local_var_params or # noqa: E501
29287
- local_var_params['login_user_params'] is None): # noqa: E501
29288
- raise ApiValueError("Missing the required parameter `login_user_params` when calling `login_user_api_v2_users_login_post`") # noqa: E501
29289
30244
 
29290
30245
  collection_formats = {}
29291
30246
 
@@ -29299,21 +30254,11 @@ class DefaultApi(object):
29299
30254
  local_var_files = {}
29300
30255
 
29301
30256
  body_params = None
29302
- if 'login_user_params' in local_var_params:
29303
- body_params = local_var_params['login_user_params']
29304
- # HTTP header `Accept`
29305
- header_params['Accept'] = self.api_client.select_header_accept(
29306
- ['application/json']) # noqa: E501
29307
-
29308
- # HTTP header `Content-Type`
29309
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
29310
- ['application/json']) # noqa: E501
29311
-
29312
30257
  # Authentication setting
29313
30258
  auth_settings = [] # noqa: E501
29314
30259
 
29315
30260
  return self.api_client.call_api(
29316
- '/api/v2/users/login', 'POST',
30261
+ '/api/v2/users/logout', 'POST',
29317
30262
  path_params,
29318
30263
  query_params,
29319
30264
  header_params,
@@ -29328,16 +30273,18 @@ class DefaultApi(object):
29328
30273
  _request_timeout=local_var_params.get('_request_timeout'),
29329
30274
  collection_formats=collection_formats)
29330
30275
 
29331
- def logout_user_api_v2_users_logout_post(self, **kwargs): # noqa: E501
29332
- """Logout User # noqa: E501
30276
+ def oauth_callback_api_v2_integrations_oauth_callback_get(self, code, state, **kwargs): # noqa: E501
30277
+ """Oauth Callback # noqa: E501
29333
30278
 
29334
- Log a user out. # noqa: E501
30279
+ Handle OAuth callback from third party integration # noqa: E501
29335
30280
  This method makes a synchronous HTTP request by default. To make an
29336
30281
  asynchronous HTTP request, please pass async_req=True
29337
- >>> thread = api.logout_user_api_v2_users_logout_post(async_req=True)
30282
+ >>> thread = api.oauth_callback_api_v2_integrations_oauth_callback_get(code, state, async_req=True)
29338
30283
  >>> result = thread.get()
29339
30284
 
29340
30285
  :param async_req bool: execute request asynchronously
30286
+ :param str code: Authorization code from third party integration (required)
30287
+ :param str state: State parameter for security (required)
29341
30288
  :param _preload_content: if False, the urllib3.HTTPResponse object will
29342
30289
  be returned without reading/decoding response
29343
30290
  data. Default is True.
@@ -29345,23 +30292,25 @@ class DefaultApi(object):
29345
30292
  number provided, it will be total request
29346
30293
  timeout. It can also be a pair (tuple) of
29347
30294
  (connection, read) timeouts.
29348
- :return: None
30295
+ :return: OauthconnectionresponseResponse
29349
30296
  If the method is called asynchronously,
29350
30297
  returns the request thread.
29351
30298
  """
29352
30299
  kwargs['_return_http_data_only'] = True
29353
- return self.logout_user_api_v2_users_logout_post_with_http_info(**kwargs) # noqa: E501
30300
+ return self.oauth_callback_api_v2_integrations_oauth_callback_get_with_http_info(code, state, **kwargs) # noqa: E501
29354
30301
 
29355
- def logout_user_api_v2_users_logout_post_with_http_info(self, **kwargs): # noqa: E501
29356
- """Logout User # noqa: E501
30302
+ def oauth_callback_api_v2_integrations_oauth_callback_get_with_http_info(self, code, state, **kwargs): # noqa: E501
30303
+ """Oauth Callback # noqa: E501
29357
30304
 
29358
- Log a user out. # noqa: E501
30305
+ Handle OAuth callback from third party integration # noqa: E501
29359
30306
  This method makes a synchronous HTTP request by default. To make an
29360
30307
  asynchronous HTTP request, please pass async_req=True
29361
- >>> thread = api.logout_user_api_v2_users_logout_post_with_http_info(async_req=True)
30308
+ >>> thread = api.oauth_callback_api_v2_integrations_oauth_callback_get_with_http_info(code, state, async_req=True)
29362
30309
  >>> result = thread.get()
29363
30310
 
29364
30311
  :param async_req bool: execute request asynchronously
30312
+ :param str code: Authorization code from third party integration (required)
30313
+ :param str state: State parameter for security (required)
29365
30314
  :param _return_http_data_only: response data without head status code
29366
30315
  and headers
29367
30316
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -29371,7 +30320,7 @@ class DefaultApi(object):
29371
30320
  number provided, it will be total request
29372
30321
  timeout. It can also be a pair (tuple) of
29373
30322
  (connection, read) timeouts.
29374
- :return: None
30323
+ :return: tuple(OauthconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
29375
30324
  If the method is called asynchronously,
29376
30325
  returns the request thread.
29377
30326
  """
@@ -29379,6 +30328,8 @@ class DefaultApi(object):
29379
30328
  local_var_params = locals()
29380
30329
 
29381
30330
  all_params = [
30331
+ 'code',
30332
+ 'state'
29382
30333
  ]
29383
30334
  all_params.extend(
29384
30335
  [
@@ -29393,16 +30344,28 @@ class DefaultApi(object):
29393
30344
  if key not in all_params:
29394
30345
  raise ApiTypeError(
29395
30346
  "Got an unexpected keyword argument '%s'"
29396
- " to method logout_user_api_v2_users_logout_post" % key
30347
+ " to method oauth_callback_api_v2_integrations_oauth_callback_get" % key
29397
30348
  )
29398
30349
  local_var_params[key] = val
29399
30350
  del local_var_params['kwargs']
30351
+ # verify the required parameter 'code' is set
30352
+ if self.api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
30353
+ local_var_params['code'] is None): # noqa: E501
30354
+ raise ApiValueError("Missing the required parameter `code` when calling `oauth_callback_api_v2_integrations_oauth_callback_get`") # noqa: E501
30355
+ # verify the required parameter 'state' is set
30356
+ if self.api_client.client_side_validation and ('state' not in local_var_params or # noqa: E501
30357
+ local_var_params['state'] is None): # noqa: E501
30358
+ raise ApiValueError("Missing the required parameter `state` when calling `oauth_callback_api_v2_integrations_oauth_callback_get`") # noqa: E501
29400
30359
 
29401
30360
  collection_formats = {}
29402
30361
 
29403
30362
  path_params = {}
29404
30363
 
29405
30364
  query_params = []
30365
+ if 'code' in local_var_params and local_var_params['code'] is not None: # noqa: E501
30366
+ query_params.append(('code', local_var_params['code'])) # noqa: E501
30367
+ if 'state' in local_var_params and local_var_params['state'] is not None: # noqa: E501
30368
+ query_params.append(('state', local_var_params['state'])) # noqa: E501
29406
30369
 
29407
30370
  header_params = {}
29408
30371
 
@@ -29410,18 +30373,22 @@ class DefaultApi(object):
29410
30373
  local_var_files = {}
29411
30374
 
29412
30375
  body_params = None
30376
+ # HTTP header `Accept`
30377
+ header_params['Accept'] = self.api_client.select_header_accept(
30378
+ ['application/json']) # noqa: E501
30379
+
29413
30380
  # Authentication setting
29414
30381
  auth_settings = [] # noqa: E501
29415
30382
 
29416
30383
  return self.api_client.call_api(
29417
- '/api/v2/users/logout', 'POST',
30384
+ '/api/v2/integrations/oauth/callback', 'GET',
29418
30385
  path_params,
29419
30386
  query_params,
29420
30387
  header_params,
29421
30388
  body=body_params,
29422
30389
  post_params=form_params,
29423
30390
  files=local_var_files,
29424
- response_type=None, # noqa: E501
30391
+ response_type='OauthconnectionresponseResponse', # noqa: E501
29425
30392
  auth_settings=auth_settings,
29426
30393
  async_req=local_var_params.get('async_req'),
29427
30394
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -31869,6 +32836,124 @@ class DefaultApi(object):
31869
32836
  _request_timeout=local_var_params.get('_request_timeout'),
31870
32837
  collection_formats=collection_formats)
31871
32838
 
32839
+ def register_databricks_connection_api_v2_integrations_connections_databricks_post(self, databricks_register_request, **kwargs): # noqa: E501
32840
+ """Register Databricks Connection # noqa: E501
32841
+
32842
+ Register Databricks connection configuration # noqa: E501
32843
+ This method makes a synchronous HTTP request by default. To make an
32844
+ asynchronous HTTP request, please pass async_req=True
32845
+ >>> thread = api.register_databricks_connection_api_v2_integrations_connections_databricks_post(databricks_register_request, async_req=True)
32846
+ >>> result = thread.get()
32847
+
32848
+ :param async_req bool: execute request asynchronously
32849
+ :param DatabricksRegisterRequest databricks_register_request: (required)
32850
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
32851
+ be returned without reading/decoding response
32852
+ data. Default is True.
32853
+ :param _request_timeout: timeout setting for this request. If one
32854
+ number provided, it will be total request
32855
+ timeout. It can also be a pair (tuple) of
32856
+ (connection, read) timeouts.
32857
+ :return: DatabricksconnectionresponseResponse
32858
+ If the method is called asynchronously,
32859
+ returns the request thread.
32860
+ """
32861
+ kwargs['_return_http_data_only'] = True
32862
+ return self.register_databricks_connection_api_v2_integrations_connections_databricks_post_with_http_info(databricks_register_request, **kwargs) # noqa: E501
32863
+
32864
+ def register_databricks_connection_api_v2_integrations_connections_databricks_post_with_http_info(self, databricks_register_request, **kwargs): # noqa: E501
32865
+ """Register Databricks Connection # noqa: E501
32866
+
32867
+ Register Databricks connection configuration # noqa: E501
32868
+ This method makes a synchronous HTTP request by default. To make an
32869
+ asynchronous HTTP request, please pass async_req=True
32870
+ >>> thread = api.register_databricks_connection_api_v2_integrations_connections_databricks_post_with_http_info(databricks_register_request, async_req=True)
32871
+ >>> result = thread.get()
32872
+
32873
+ :param async_req bool: execute request asynchronously
32874
+ :param DatabricksRegisterRequest databricks_register_request: (required)
32875
+ :param _return_http_data_only: response data without head status code
32876
+ and headers
32877
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
32878
+ be returned without reading/decoding response
32879
+ data. Default is True.
32880
+ :param _request_timeout: timeout setting for this request. If one
32881
+ number provided, it will be total request
32882
+ timeout. It can also be a pair (tuple) of
32883
+ (connection, read) timeouts.
32884
+ :return: tuple(DatabricksconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
32885
+ If the method is called asynchronously,
32886
+ returns the request thread.
32887
+ """
32888
+
32889
+ local_var_params = locals()
32890
+
32891
+ all_params = [
32892
+ 'databricks_register_request'
32893
+ ]
32894
+ all_params.extend(
32895
+ [
32896
+ 'async_req',
32897
+ '_return_http_data_only',
32898
+ '_preload_content',
32899
+ '_request_timeout'
32900
+ ]
32901
+ )
32902
+
32903
+ for key, val in six.iteritems(local_var_params['kwargs']):
32904
+ if key not in all_params:
32905
+ raise ApiTypeError(
32906
+ "Got an unexpected keyword argument '%s'"
32907
+ " to method register_databricks_connection_api_v2_integrations_connections_databricks_post" % key
32908
+ )
32909
+ local_var_params[key] = val
32910
+ del local_var_params['kwargs']
32911
+ # verify the required parameter 'databricks_register_request' is set
32912
+ if self.api_client.client_side_validation and ('databricks_register_request' not in local_var_params or # noqa: E501
32913
+ local_var_params['databricks_register_request'] is None): # noqa: E501
32914
+ raise ApiValueError("Missing the required parameter `databricks_register_request` when calling `register_databricks_connection_api_v2_integrations_connections_databricks_post`") # noqa: E501
32915
+
32916
+ collection_formats = {}
32917
+
32918
+ path_params = {}
32919
+
32920
+ query_params = []
32921
+
32922
+ header_params = {}
32923
+
32924
+ form_params = []
32925
+ local_var_files = {}
32926
+
32927
+ body_params = None
32928
+ if 'databricks_register_request' in local_var_params:
32929
+ body_params = local_var_params['databricks_register_request']
32930
+ # HTTP header `Accept`
32931
+ header_params['Accept'] = self.api_client.select_header_accept(
32932
+ ['application/json']) # noqa: E501
32933
+
32934
+ # HTTP header `Content-Type`
32935
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
32936
+ ['application/json']) # noqa: E501
32937
+
32938
+ # Authentication setting
32939
+ auth_settings = [] # noqa: E501
32940
+
32941
+ return self.api_client.call_api(
32942
+ '/api/v2/integrations/connections/databricks', 'POST',
32943
+ path_params,
32944
+ query_params,
32945
+ header_params,
32946
+ body=body_params,
32947
+ post_params=form_params,
32948
+ files=local_var_files,
32949
+ response_type='DatabricksconnectionresponseResponse', # noqa: E501
32950
+ auth_settings=auth_settings,
32951
+ async_req=local_var_params.get('async_req'),
32952
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
32953
+ _preload_content=local_var_params.get('_preload_content', True),
32954
+ _request_timeout=local_var_params.get('_request_timeout'),
32955
+ collection_formats=collection_formats)
32956
+
31872
32957
  def register_machine_api_v2_anyscaled_register_machine_post(self, create_machine_request, **kwargs): # noqa: E501
31873
32958
  """Register Machine # noqa: E501
31874
32959
 
@@ -34981,14 +36066,128 @@ class DefaultApi(object):
34981
36066
  auth_settings = [] # noqa: E501
34982
36067
 
34983
36068
  return self.api_client.call_api(
34984
- '/api/v2/resource_quotas/{resource_quota_id}/status', 'PATCH',
36069
+ '/api/v2/resource_quotas/{resource_quota_id}/status', 'PATCH',
36070
+ path_params,
36071
+ query_params,
36072
+ header_params,
36073
+ body=body_params,
36074
+ post_params=form_params,
36075
+ files=local_var_files,
36076
+ response_type='ResourcequotaResponse', # noqa: E501
36077
+ auth_settings=auth_settings,
36078
+ async_req=local_var_params.get('async_req'),
36079
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36080
+ _preload_content=local_var_params.get('_preload_content', True),
36081
+ _request_timeout=local_var_params.get('_request_timeout'),
36082
+ collection_formats=collection_formats)
36083
+
36084
+ def show_one_time_password_source_api_v2_users_show_otp_source_post(self, otp, **kwargs): # noqa: E501
36085
+ """Show One Time Password Source # noqa: E501
36086
+
36087
+ Show the source of the one time password. # noqa: E501
36088
+ This method makes a synchronous HTTP request by default. To make an
36089
+ asynchronous HTTP request, please pass async_req=True
36090
+ >>> thread = api.show_one_time_password_source_api_v2_users_show_otp_source_post(otp, async_req=True)
36091
+ >>> result = thread.get()
36092
+
36093
+ :param async_req bool: execute request asynchronously
36094
+ :param str otp: (required)
36095
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
36096
+ be returned without reading/decoding response
36097
+ data. Default is True.
36098
+ :param _request_timeout: timeout setting for this request. If one
36099
+ number provided, it will be total request
36100
+ timeout. It can also be a pair (tuple) of
36101
+ (connection, read) timeouts.
36102
+ :return: ShowotpsourcereturnapimodelResponse
36103
+ If the method is called asynchronously,
36104
+ returns the request thread.
36105
+ """
36106
+ kwargs['_return_http_data_only'] = True
36107
+ return self.show_one_time_password_source_api_v2_users_show_otp_source_post_with_http_info(otp, **kwargs) # noqa: E501
36108
+
36109
+ def show_one_time_password_source_api_v2_users_show_otp_source_post_with_http_info(self, otp, **kwargs): # noqa: E501
36110
+ """Show One Time Password Source # noqa: E501
36111
+
36112
+ Show the source of the one time password. # noqa: E501
36113
+ This method makes a synchronous HTTP request by default. To make an
36114
+ asynchronous HTTP request, please pass async_req=True
36115
+ >>> thread = api.show_one_time_password_source_api_v2_users_show_otp_source_post_with_http_info(otp, async_req=True)
36116
+ >>> result = thread.get()
36117
+
36118
+ :param async_req bool: execute request asynchronously
36119
+ :param str otp: (required)
36120
+ :param _return_http_data_only: response data without head status code
36121
+ and headers
36122
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
36123
+ be returned without reading/decoding response
36124
+ data. Default is True.
36125
+ :param _request_timeout: timeout setting for this request. If one
36126
+ number provided, it will be total request
36127
+ timeout. It can also be a pair (tuple) of
36128
+ (connection, read) timeouts.
36129
+ :return: tuple(ShowotpsourcereturnapimodelResponse, status_code(int), headers(HTTPHeaderDict))
36130
+ If the method is called asynchronously,
36131
+ returns the request thread.
36132
+ """
36133
+
36134
+ local_var_params = locals()
36135
+
36136
+ all_params = [
36137
+ 'otp'
36138
+ ]
36139
+ all_params.extend(
36140
+ [
36141
+ 'async_req',
36142
+ '_return_http_data_only',
36143
+ '_preload_content',
36144
+ '_request_timeout'
36145
+ ]
36146
+ )
36147
+
36148
+ for key, val in six.iteritems(local_var_params['kwargs']):
36149
+ if key not in all_params:
36150
+ raise ApiTypeError(
36151
+ "Got an unexpected keyword argument '%s'"
36152
+ " to method show_one_time_password_source_api_v2_users_show_otp_source_post" % key
36153
+ )
36154
+ local_var_params[key] = val
36155
+ del local_var_params['kwargs']
36156
+ # verify the required parameter 'otp' is set
36157
+ if self.api_client.client_side_validation and ('otp' not in local_var_params or # noqa: E501
36158
+ local_var_params['otp'] is None): # noqa: E501
36159
+ raise ApiValueError("Missing the required parameter `otp` when calling `show_one_time_password_source_api_v2_users_show_otp_source_post`") # noqa: E501
36160
+
36161
+ collection_formats = {}
36162
+
36163
+ path_params = {}
36164
+
36165
+ query_params = []
36166
+ if 'otp' in local_var_params and local_var_params['otp'] is not None: # noqa: E501
36167
+ query_params.append(('otp', local_var_params['otp'])) # noqa: E501
36168
+
36169
+ header_params = {}
36170
+
36171
+ form_params = []
36172
+ local_var_files = {}
36173
+
36174
+ body_params = None
36175
+ # HTTP header `Accept`
36176
+ header_params['Accept'] = self.api_client.select_header_accept(
36177
+ ['application/json']) # noqa: E501
36178
+
36179
+ # Authentication setting
36180
+ auth_settings = [] # noqa: E501
36181
+
36182
+ return self.api_client.call_api(
36183
+ '/api/v2/users/show_otp_source', 'POST',
34985
36184
  path_params,
34986
36185
  query_params,
34987
36186
  header_params,
34988
36187
  body=body_params,
34989
36188
  post_params=form_params,
34990
36189
  files=local_var_files,
34991
- response_type='ResourcequotaResponse', # noqa: E501
36190
+ response_type='ShowotpsourcereturnapimodelResponse', # noqa: E501
34992
36191
  auth_settings=auth_settings,
34993
36192
  async_req=local_var_params.get('async_req'),
34994
36193
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -34996,17 +36195,17 @@ class DefaultApi(object):
34996
36195
  _request_timeout=local_var_params.get('_request_timeout'),
34997
36196
  collection_formats=collection_formats)
34998
36197
 
34999
- def show_one_time_password_source_api_v2_users_show_otp_source_post(self, otp, **kwargs): # noqa: E501
35000
- """Show One Time Password Source # noqa: E501
36198
+ def sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get(self, organization_id, **kwargs): # noqa: E501
36199
+ """Sso Admin Link # noqa: E501
35001
36200
 
35002
- Show the source of the one time password. # noqa: E501
36201
+ Get the admin link for the organization's SSO configuration. # noqa: E501
35003
36202
  This method makes a synchronous HTTP request by default. To make an
35004
36203
  asynchronous HTTP request, please pass async_req=True
35005
- >>> thread = api.show_one_time_password_source_api_v2_users_show_otp_source_post(otp, async_req=True)
36204
+ >>> thread = api.sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get(organization_id, async_req=True)
35006
36205
  >>> result = thread.get()
35007
36206
 
35008
36207
  :param async_req bool: execute request asynchronously
35009
- :param str otp: (required)
36208
+ :param str organization_id: (required)
35010
36209
  :param _preload_content: if False, the urllib3.HTTPResponse object will
35011
36210
  be returned without reading/decoding response
35012
36211
  data. Default is True.
@@ -35014,24 +36213,24 @@ class DefaultApi(object):
35014
36213
  number provided, it will be total request
35015
36214
  timeout. It can also be a pair (tuple) of
35016
36215
  (connection, read) timeouts.
35017
- :return: ShowotpsourcereturnapimodelResponse
36216
+ :return: SsoconfigResponse
35018
36217
  If the method is called asynchronously,
35019
36218
  returns the request thread.
35020
36219
  """
35021
36220
  kwargs['_return_http_data_only'] = True
35022
- return self.show_one_time_password_source_api_v2_users_show_otp_source_post_with_http_info(otp, **kwargs) # noqa: E501
36221
+ return self.sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get_with_http_info(organization_id, **kwargs) # noqa: E501
35023
36222
 
35024
- def show_one_time_password_source_api_v2_users_show_otp_source_post_with_http_info(self, otp, **kwargs): # noqa: E501
35025
- """Show One Time Password Source # noqa: E501
36223
+ def sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get_with_http_info(self, organization_id, **kwargs): # noqa: E501
36224
+ """Sso Admin Link # noqa: E501
35026
36225
 
35027
- Show the source of the one time password. # noqa: E501
36226
+ Get the admin link for the organization's SSO configuration. # noqa: E501
35028
36227
  This method makes a synchronous HTTP request by default. To make an
35029
36228
  asynchronous HTTP request, please pass async_req=True
35030
- >>> thread = api.show_one_time_password_source_api_v2_users_show_otp_source_post_with_http_info(otp, async_req=True)
36229
+ >>> thread = api.sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get_with_http_info(organization_id, async_req=True)
35031
36230
  >>> result = thread.get()
35032
36231
 
35033
36232
  :param async_req bool: execute request asynchronously
35034
- :param str otp: (required)
36233
+ :param str organization_id: (required)
35035
36234
  :param _return_http_data_only: response data without head status code
35036
36235
  and headers
35037
36236
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -35041,7 +36240,7 @@ class DefaultApi(object):
35041
36240
  number provided, it will be total request
35042
36241
  timeout. It can also be a pair (tuple) of
35043
36242
  (connection, read) timeouts.
35044
- :return: tuple(ShowotpsourcereturnapimodelResponse, status_code(int), headers(HTTPHeaderDict))
36243
+ :return: tuple(SsoconfigResponse, status_code(int), headers(HTTPHeaderDict))
35045
36244
  If the method is called asynchronously,
35046
36245
  returns the request thread.
35047
36246
  """
@@ -35049,7 +36248,7 @@ class DefaultApi(object):
35049
36248
  local_var_params = locals()
35050
36249
 
35051
36250
  all_params = [
35052
- 'otp'
36251
+ 'organization_id'
35053
36252
  ]
35054
36253
  all_params.extend(
35055
36254
  [
@@ -35064,22 +36263,22 @@ class DefaultApi(object):
35064
36263
  if key not in all_params:
35065
36264
  raise ApiTypeError(
35066
36265
  "Got an unexpected keyword argument '%s'"
35067
- " to method show_one_time_password_source_api_v2_users_show_otp_source_post" % key
36266
+ " to method sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get" % key
35068
36267
  )
35069
36268
  local_var_params[key] = val
35070
36269
  del local_var_params['kwargs']
35071
- # verify the required parameter 'otp' is set
35072
- if self.api_client.client_side_validation and ('otp' not in local_var_params or # noqa: E501
35073
- local_var_params['otp'] is None): # noqa: E501
35074
- raise ApiValueError("Missing the required parameter `otp` when calling `show_one_time_password_source_api_v2_users_show_otp_source_post`") # noqa: E501
36270
+ # verify the required parameter 'organization_id' is set
36271
+ if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
36272
+ local_var_params['organization_id'] is None): # noqa: E501
36273
+ raise ApiValueError("Missing the required parameter `organization_id` when calling `sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get`") # noqa: E501
35075
36274
 
35076
36275
  collection_formats = {}
35077
36276
 
35078
36277
  path_params = {}
36278
+ if 'organization_id' in local_var_params:
36279
+ path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
35079
36280
 
35080
36281
  query_params = []
35081
- if 'otp' in local_var_params and local_var_params['otp'] is not None: # noqa: E501
35082
- query_params.append(('otp', local_var_params['otp'])) # noqa: E501
35083
36282
 
35084
36283
  header_params = {}
35085
36284
 
@@ -35095,14 +36294,14 @@ class DefaultApi(object):
35095
36294
  auth_settings = [] # noqa: E501
35096
36295
 
35097
36296
  return self.api_client.call_api(
35098
- '/api/v2/users/show_otp_source', 'POST',
36297
+ '/api/v2/organizations/{organization_id}/sso_admin_link', 'GET',
35099
36298
  path_params,
35100
36299
  query_params,
35101
36300
  header_params,
35102
36301
  body=body_params,
35103
36302
  post_params=form_params,
35104
36303
  files=local_var_files,
35105
- response_type='ShowotpsourcereturnapimodelResponse', # noqa: E501
36304
+ response_type='SsoconfigResponse', # noqa: E501
35106
36305
  auth_settings=auth_settings,
35107
36306
  async_req=local_var_params.get('async_req'),
35108
36307
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -37084,131 +38283,6 @@ class DefaultApi(object):
37084
38283
  _request_timeout=local_var_params.get('_request_timeout'),
37085
38284
  collection_formats=collection_formats)
37086
38285
 
37087
- def update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
37088
- """Update Cloud Deployment # noqa: E501
37089
-
37090
- This method makes a synchronous HTTP request by default. To make an
37091
- asynchronous HTTP request, please pass async_req=True
37092
- >>> thread = api.update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put(cloud_id, cloud_deployment, async_req=True)
37093
- >>> result = thread.get()
37094
-
37095
- :param async_req bool: execute request asynchronously
37096
- :param str cloud_id: (required)
37097
- :param CloudDeployment cloud_deployment: (required)
37098
- :param _preload_content: if False, the urllib3.HTTPResponse object will
37099
- be returned without reading/decoding response
37100
- data. Default is True.
37101
- :param _request_timeout: timeout setting for this request. If one
37102
- number provided, it will be total request
37103
- timeout. It can also be a pair (tuple) of
37104
- (connection, read) timeouts.
37105
- :return: object
37106
- If the method is called asynchronously,
37107
- returns the request thread.
37108
- """
37109
- kwargs['_return_http_data_only'] = True
37110
- return self.update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put_with_http_info(cloud_id, cloud_deployment, **kwargs) # noqa: E501
37111
-
37112
- def update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put_with_http_info(self, cloud_id, cloud_deployment, **kwargs): # noqa: E501
37113
- """Update Cloud Deployment # noqa: E501
37114
-
37115
- This method makes a synchronous HTTP request by default. To make an
37116
- asynchronous HTTP request, please pass async_req=True
37117
- >>> thread = api.update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put_with_http_info(cloud_id, cloud_deployment, async_req=True)
37118
- >>> result = thread.get()
37119
-
37120
- :param async_req bool: execute request asynchronously
37121
- :param str cloud_id: (required)
37122
- :param CloudDeployment cloud_deployment: (required)
37123
- :param _return_http_data_only: response data without head status code
37124
- and headers
37125
- :param _preload_content: if False, the urllib3.HTTPResponse object will
37126
- be returned without reading/decoding response
37127
- data. Default is True.
37128
- :param _request_timeout: timeout setting for this request. If one
37129
- number provided, it will be total request
37130
- timeout. It can also be a pair (tuple) of
37131
- (connection, read) timeouts.
37132
- :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
37133
- If the method is called asynchronously,
37134
- returns the request thread.
37135
- """
37136
-
37137
- local_var_params = locals()
37138
-
37139
- all_params = [
37140
- 'cloud_id',
37141
- 'cloud_deployment'
37142
- ]
37143
- all_params.extend(
37144
- [
37145
- 'async_req',
37146
- '_return_http_data_only',
37147
- '_preload_content',
37148
- '_request_timeout'
37149
- ]
37150
- )
37151
-
37152
- for key, val in six.iteritems(local_var_params['kwargs']):
37153
- if key not in all_params:
37154
- raise ApiTypeError(
37155
- "Got an unexpected keyword argument '%s'"
37156
- " to method update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put" % key
37157
- )
37158
- local_var_params[key] = val
37159
- del local_var_params['kwargs']
37160
- # verify the required parameter 'cloud_id' is set
37161
- if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
37162
- local_var_params['cloud_id'] is None): # noqa: E501
37163
- raise ApiValueError("Missing the required parameter `cloud_id` when calling `update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put`") # noqa: E501
37164
- # verify the required parameter 'cloud_deployment' is set
37165
- if self.api_client.client_side_validation and ('cloud_deployment' not in local_var_params or # noqa: E501
37166
- local_var_params['cloud_deployment'] is None): # noqa: E501
37167
- raise ApiValueError("Missing the required parameter `cloud_deployment` when calling `update_cloud_deployment_api_v2_clouds_cloud_id_update_deployment_put`") # noqa: E501
37168
-
37169
- collection_formats = {}
37170
-
37171
- path_params = {}
37172
- if 'cloud_id' in local_var_params:
37173
- path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
37174
-
37175
- query_params = []
37176
-
37177
- header_params = {}
37178
-
37179
- form_params = []
37180
- local_var_files = {}
37181
-
37182
- body_params = None
37183
- if 'cloud_deployment' in local_var_params:
37184
- body_params = local_var_params['cloud_deployment']
37185
- # HTTP header `Accept`
37186
- header_params['Accept'] = self.api_client.select_header_accept(
37187
- ['application/json']) # noqa: E501
37188
-
37189
- # HTTP header `Content-Type`
37190
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
37191
- ['application/json']) # noqa: E501
37192
-
37193
- # Authentication setting
37194
- auth_settings = [] # noqa: E501
37195
-
37196
- return self.api_client.call_api(
37197
- '/api/v2/clouds/{cloud_id}/update_deployment', 'PUT',
37198
- path_params,
37199
- query_params,
37200
- header_params,
37201
- body=body_params,
37202
- post_params=form_params,
37203
- files=local_var_files,
37204
- response_type='object', # noqa: E501
37205
- auth_settings=auth_settings,
37206
- async_req=local_var_params.get('async_req'),
37207
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
37208
- _preload_content=local_var_params.get('_preload_content', True),
37209
- _request_timeout=local_var_params.get('_request_timeout'),
37210
- collection_formats=collection_formats)
37211
-
37212
38286
  def update_cloud_deployment_config_api_v2_clouds_cloud_id_deployment_cloud_deployment_id_config_put(self, cloud_id, cloud_deployment_id, cloud_deployment_config, **kwargs): # noqa: E501
37213
38287
  """Update Cloud Deployment Config # noqa: E501
37214
38288
 
@@ -39045,6 +40119,133 @@ class DefaultApi(object):
39045
40119
  _request_timeout=local_var_params.get('_request_timeout'),
39046
40120
  collection_formats=collection_formats)
39047
40121
 
40122
+ def update_template_api_v2_workspace_templates_template_id_put(self, template_id, update_workspace_template, **kwargs): # noqa: E501
40123
+ """Update Template # noqa: E501
40124
+
40125
+ Update a workspace template # noqa: E501
40126
+ This method makes a synchronous HTTP request by default. To make an
40127
+ asynchronous HTTP request, please pass async_req=True
40128
+ >>> thread = api.update_template_api_v2_workspace_templates_template_id_put(template_id, update_workspace_template, async_req=True)
40129
+ >>> result = thread.get()
40130
+
40131
+ :param async_req bool: execute request asynchronously
40132
+ :param str template_id: (required)
40133
+ :param UpdateWorkspaceTemplate update_workspace_template: (required)
40134
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
40135
+ be returned without reading/decoding response
40136
+ data. Default is True.
40137
+ :param _request_timeout: timeout setting for this request. If one
40138
+ number provided, it will be total request
40139
+ timeout. It can also be a pair (tuple) of
40140
+ (connection, read) timeouts.
40141
+ :return: WorkspacetemplateResponse
40142
+ If the method is called asynchronously,
40143
+ returns the request thread.
40144
+ """
40145
+ kwargs['_return_http_data_only'] = True
40146
+ return self.update_template_api_v2_workspace_templates_template_id_put_with_http_info(template_id, update_workspace_template, **kwargs) # noqa: E501
40147
+
40148
+ def update_template_api_v2_workspace_templates_template_id_put_with_http_info(self, template_id, update_workspace_template, **kwargs): # noqa: E501
40149
+ """Update Template # noqa: E501
40150
+
40151
+ Update a workspace template # noqa: E501
40152
+ This method makes a synchronous HTTP request by default. To make an
40153
+ asynchronous HTTP request, please pass async_req=True
40154
+ >>> thread = api.update_template_api_v2_workspace_templates_template_id_put_with_http_info(template_id, update_workspace_template, async_req=True)
40155
+ >>> result = thread.get()
40156
+
40157
+ :param async_req bool: execute request asynchronously
40158
+ :param str template_id: (required)
40159
+ :param UpdateWorkspaceTemplate update_workspace_template: (required)
40160
+ :param _return_http_data_only: response data without head status code
40161
+ and headers
40162
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
40163
+ be returned without reading/decoding response
40164
+ data. Default is True.
40165
+ :param _request_timeout: timeout setting for this request. If one
40166
+ number provided, it will be total request
40167
+ timeout. It can also be a pair (tuple) of
40168
+ (connection, read) timeouts.
40169
+ :return: tuple(WorkspacetemplateResponse, status_code(int), headers(HTTPHeaderDict))
40170
+ If the method is called asynchronously,
40171
+ returns the request thread.
40172
+ """
40173
+
40174
+ local_var_params = locals()
40175
+
40176
+ all_params = [
40177
+ 'template_id',
40178
+ 'update_workspace_template'
40179
+ ]
40180
+ all_params.extend(
40181
+ [
40182
+ 'async_req',
40183
+ '_return_http_data_only',
40184
+ '_preload_content',
40185
+ '_request_timeout'
40186
+ ]
40187
+ )
40188
+
40189
+ for key, val in six.iteritems(local_var_params['kwargs']):
40190
+ if key not in all_params:
40191
+ raise ApiTypeError(
40192
+ "Got an unexpected keyword argument '%s'"
40193
+ " to method update_template_api_v2_workspace_templates_template_id_put" % key
40194
+ )
40195
+ local_var_params[key] = val
40196
+ del local_var_params['kwargs']
40197
+ # verify the required parameter 'template_id' is set
40198
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
40199
+ local_var_params['template_id'] is None): # noqa: E501
40200
+ raise ApiValueError("Missing the required parameter `template_id` when calling `update_template_api_v2_workspace_templates_template_id_put`") # noqa: E501
40201
+ # verify the required parameter 'update_workspace_template' is set
40202
+ if self.api_client.client_side_validation and ('update_workspace_template' not in local_var_params or # noqa: E501
40203
+ local_var_params['update_workspace_template'] is None): # noqa: E501
40204
+ raise ApiValueError("Missing the required parameter `update_workspace_template` when calling `update_template_api_v2_workspace_templates_template_id_put`") # noqa: E501
40205
+
40206
+ collection_formats = {}
40207
+
40208
+ path_params = {}
40209
+ if 'template_id' in local_var_params:
40210
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
40211
+
40212
+ query_params = []
40213
+
40214
+ header_params = {}
40215
+
40216
+ form_params = []
40217
+ local_var_files = {}
40218
+
40219
+ body_params = None
40220
+ if 'update_workspace_template' in local_var_params:
40221
+ body_params = local_var_params['update_workspace_template']
40222
+ # HTTP header `Accept`
40223
+ header_params['Accept'] = self.api_client.select_header_accept(
40224
+ ['application/json']) # noqa: E501
40225
+
40226
+ # HTTP header `Content-Type`
40227
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
40228
+ ['application/json']) # noqa: E501
40229
+
40230
+ # Authentication setting
40231
+ auth_settings = [] # noqa: E501
40232
+
40233
+ return self.api_client.call_api(
40234
+ '/api/v2/workspace_templates/{template_id}', 'PUT',
40235
+ path_params,
40236
+ query_params,
40237
+ header_params,
40238
+ body=body_params,
40239
+ post_params=form_params,
40240
+ files=local_var_files,
40241
+ response_type='WorkspacetemplateResponse', # noqa: E501
40242
+ auth_settings=auth_settings,
40243
+ async_req=local_var_params.get('async_req'),
40244
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
40245
+ _preload_content=local_var_params.get('_preload_content', True),
40246
+ _request_timeout=local_var_params.get('_request_timeout'),
40247
+ collection_formats=collection_formats)
40248
+
39048
40249
  def upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post(self, session_command_id, **kwargs): # noqa: E501
39049
40250
  """Upload Session Command Logs # noqa: E501
39050
40251