anyscale 0.26.63__py3-none-any.whl → 0.26.65__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 (52) hide show
  1. anyscale/_private/docgen/__main__.py +23 -4
  2. anyscale/_private/docgen/generator.py +127 -34
  3. anyscale/_private/docgen/generator_legacy.py +35 -12
  4. anyscale/client/README.md +37 -0
  5. anyscale/client/openapi_client/__init__.py +26 -0
  6. anyscale/client/openapi_client/api/default_api.py +1423 -97
  7. anyscale/client/openapi_client/models/__init__.py +26 -0
  8. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +2 -2
  9. anyscale/client/openapi_client/models/connection_type.py +99 -0
  10. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  11. anyscale/client/openapi_client/models/data_catalog.py +281 -0
  12. anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
  13. anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
  14. anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
  15. anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
  16. anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
  17. anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
  18. anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
  19. anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
  20. anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
  21. anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
  22. anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
  23. anyscale/client/openapi_client/models/decorated_session.py +29 -1
  24. anyscale/client/openapi_client/models/domain_verification.py +181 -0
  25. anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
  26. anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
  27. anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
  28. anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
  29. anyscale/client/openapi_client/models/sso_config.py +148 -0
  30. anyscale/client/openapi_client/models/sso_connection.py +148 -0
  31. anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
  32. anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
  33. anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
  34. anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
  35. anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
  36. anyscale/client/openapi_client/models/validation_status.py +101 -0
  37. anyscale/commands/cloud_commands.py +310 -206
  38. anyscale/controllers/cloud_controller.py +174 -240
  39. anyscale/controllers/cloud_functional_verification_controller.py +6 -3
  40. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +2 -2
  41. anyscale/sdk/anyscale_client/models/apply_service_model.py +2 -2
  42. anyscale/sdk/anyscale_client/models/session.py +31 -3
  43. anyscale/util.py +1 -1
  44. anyscale/version.py +1 -1
  45. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/METADATA +1 -1
  46. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/RECORD +51 -26
  47. anyscale/commands/cloud_commands_util.py +0 -10
  48. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/WHEEL +0 -0
  49. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/entry_points.txt +0 -0
  50. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/licenses/LICENSE +0 -0
  51. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/licenses/NOTICE +0 -0
  52. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/top_level.txt +0 -0
@@ -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
 
@@ -29429,6 +30273,129 @@ class DefaultApi(object):
29429
30273
  _request_timeout=local_var_params.get('_request_timeout'),
29430
30274
  collection_formats=collection_formats)
29431
30275
 
30276
+ def oauth_callback_api_v2_integrations_oauth_callback_get(self, code, state, **kwargs): # noqa: E501
30277
+ """Oauth Callback # noqa: E501
30278
+
30279
+ Handle OAuth callback from third party integration # noqa: E501
30280
+ This method makes a synchronous HTTP request by default. To make an
30281
+ asynchronous HTTP request, please pass async_req=True
30282
+ >>> thread = api.oauth_callback_api_v2_integrations_oauth_callback_get(code, state, async_req=True)
30283
+ >>> result = thread.get()
30284
+
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)
30288
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
30289
+ be returned without reading/decoding response
30290
+ data. Default is True.
30291
+ :param _request_timeout: timeout setting for this request. If one
30292
+ number provided, it will be total request
30293
+ timeout. It can also be a pair (tuple) of
30294
+ (connection, read) timeouts.
30295
+ :return: OauthconnectionresponseResponse
30296
+ If the method is called asynchronously,
30297
+ returns the request thread.
30298
+ """
30299
+ kwargs['_return_http_data_only'] = True
30300
+ return self.oauth_callback_api_v2_integrations_oauth_callback_get_with_http_info(code, state, **kwargs) # noqa: E501
30301
+
30302
+ def oauth_callback_api_v2_integrations_oauth_callback_get_with_http_info(self, code, state, **kwargs): # noqa: E501
30303
+ """Oauth Callback # noqa: E501
30304
+
30305
+ Handle OAuth callback from third party integration # noqa: E501
30306
+ This method makes a synchronous HTTP request by default. To make an
30307
+ asynchronous HTTP request, please pass async_req=True
30308
+ >>> thread = api.oauth_callback_api_v2_integrations_oauth_callback_get_with_http_info(code, state, async_req=True)
30309
+ >>> result = thread.get()
30310
+
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)
30314
+ :param _return_http_data_only: response data without head status code
30315
+ and headers
30316
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
30317
+ be returned without reading/decoding response
30318
+ data. Default is True.
30319
+ :param _request_timeout: timeout setting for this request. If one
30320
+ number provided, it will be total request
30321
+ timeout. It can also be a pair (tuple) of
30322
+ (connection, read) timeouts.
30323
+ :return: tuple(OauthconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
30324
+ If the method is called asynchronously,
30325
+ returns the request thread.
30326
+ """
30327
+
30328
+ local_var_params = locals()
30329
+
30330
+ all_params = [
30331
+ 'code',
30332
+ 'state'
30333
+ ]
30334
+ all_params.extend(
30335
+ [
30336
+ 'async_req',
30337
+ '_return_http_data_only',
30338
+ '_preload_content',
30339
+ '_request_timeout'
30340
+ ]
30341
+ )
30342
+
30343
+ for key, val in six.iteritems(local_var_params['kwargs']):
30344
+ if key not in all_params:
30345
+ raise ApiTypeError(
30346
+ "Got an unexpected keyword argument '%s'"
30347
+ " to method oauth_callback_api_v2_integrations_oauth_callback_get" % key
30348
+ )
30349
+ local_var_params[key] = val
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
30359
+
30360
+ collection_formats = {}
30361
+
30362
+ path_params = {}
30363
+
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
30369
+
30370
+ header_params = {}
30371
+
30372
+ form_params = []
30373
+ local_var_files = {}
30374
+
30375
+ body_params = None
30376
+ # HTTP header `Accept`
30377
+ header_params['Accept'] = self.api_client.select_header_accept(
30378
+ ['application/json']) # noqa: E501
30379
+
30380
+ # Authentication setting
30381
+ auth_settings = [] # noqa: E501
30382
+
30383
+ return self.api_client.call_api(
30384
+ '/api/v2/integrations/oauth/callback', 'GET',
30385
+ path_params,
30386
+ query_params,
30387
+ header_params,
30388
+ body=body_params,
30389
+ post_params=form_params,
30390
+ files=local_var_files,
30391
+ response_type='OauthconnectionresponseResponse', # noqa: E501
30392
+ auth_settings=auth_settings,
30393
+ async_req=local_var_params.get('async_req'),
30394
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
30395
+ _preload_content=local_var_params.get('_preload_content', True),
30396
+ _request_timeout=local_var_params.get('_request_timeout'),
30397
+ collection_formats=collection_formats)
30398
+
29432
30399
  def patch_workspace_api_v2_experimental_workspaces_workspace_id_patch(self, workspace_id, json_patch_operation, **kwargs): # noqa: E501
29433
30400
  """Patch Workspace # noqa: E501
29434
30401
 
@@ -31661,14 +32628,132 @@ class DefaultApi(object):
31661
32628
  def register_api_v2_kubernetes_manager_register_post_with_http_info(self, kubernetes_manager_registration_request, **kwargs): # noqa: E501
31662
32629
  """Register # noqa: E501
31663
32630
 
31664
- Register a kubernetes manager to receive the token. # noqa: E501
32631
+ Register a kubernetes manager to receive the token. # noqa: E501
32632
+ This method makes a synchronous HTTP request by default. To make an
32633
+ asynchronous HTTP request, please pass async_req=True
32634
+ >>> thread = api.register_api_v2_kubernetes_manager_register_post_with_http_info(kubernetes_manager_registration_request, async_req=True)
32635
+ >>> result = thread.get()
32636
+
32637
+ :param async_req bool: execute request asynchronously
32638
+ :param KubernetesManagerRegistrationRequest kubernetes_manager_registration_request: (required)
32639
+ :param _return_http_data_only: response data without head status code
32640
+ and headers
32641
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
32642
+ be returned without reading/decoding response
32643
+ data. Default is True.
32644
+ :param _request_timeout: timeout setting for this request. If one
32645
+ number provided, it will be total request
32646
+ timeout. It can also be a pair (tuple) of
32647
+ (connection, read) timeouts.
32648
+ :return: tuple(KubernetesmanagerregistrationresponseResponse, status_code(int), headers(HTTPHeaderDict))
32649
+ If the method is called asynchronously,
32650
+ returns the request thread.
32651
+ """
32652
+
32653
+ local_var_params = locals()
32654
+
32655
+ all_params = [
32656
+ 'kubernetes_manager_registration_request'
32657
+ ]
32658
+ all_params.extend(
32659
+ [
32660
+ 'async_req',
32661
+ '_return_http_data_only',
32662
+ '_preload_content',
32663
+ '_request_timeout'
32664
+ ]
32665
+ )
32666
+
32667
+ for key, val in six.iteritems(local_var_params['kwargs']):
32668
+ if key not in all_params:
32669
+ raise ApiTypeError(
32670
+ "Got an unexpected keyword argument '%s'"
32671
+ " to method register_api_v2_kubernetes_manager_register_post" % key
32672
+ )
32673
+ local_var_params[key] = val
32674
+ del local_var_params['kwargs']
32675
+ # verify the required parameter 'kubernetes_manager_registration_request' is set
32676
+ if self.api_client.client_side_validation and ('kubernetes_manager_registration_request' not in local_var_params or # noqa: E501
32677
+ local_var_params['kubernetes_manager_registration_request'] is None): # noqa: E501
32678
+ raise ApiValueError("Missing the required parameter `kubernetes_manager_registration_request` when calling `register_api_v2_kubernetes_manager_register_post`") # noqa: E501
32679
+
32680
+ collection_formats = {}
32681
+
32682
+ path_params = {}
32683
+
32684
+ query_params = []
32685
+
32686
+ header_params = {}
32687
+
32688
+ form_params = []
32689
+ local_var_files = {}
32690
+
32691
+ body_params = None
32692
+ if 'kubernetes_manager_registration_request' in local_var_params:
32693
+ body_params = local_var_params['kubernetes_manager_registration_request']
32694
+ # HTTP header `Accept`
32695
+ header_params['Accept'] = self.api_client.select_header_accept(
32696
+ ['application/json']) # noqa: E501
32697
+
32698
+ # HTTP header `Content-Type`
32699
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
32700
+ ['application/json']) # noqa: E501
32701
+
32702
+ # Authentication setting
32703
+ auth_settings = [] # noqa: E501
32704
+
32705
+ return self.api_client.call_api(
32706
+ '/api/v2/kubernetes_manager/register', 'POST',
32707
+ path_params,
32708
+ query_params,
32709
+ header_params,
32710
+ body=body_params,
32711
+ post_params=form_params,
32712
+ files=local_var_files,
32713
+ response_type='KubernetesmanagerregistrationresponseResponse', # noqa: E501
32714
+ auth_settings=auth_settings,
32715
+ async_req=local_var_params.get('async_req'),
32716
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
32717
+ _preload_content=local_var_params.get('_preload_content', True),
32718
+ _request_timeout=local_var_params.get('_request_timeout'),
32719
+ collection_formats=collection_formats)
32720
+
32721
+ def register_build_api_v2_anyscaled_register_build_post(self, build_registration, **kwargs): # noqa: E501
32722
+ """Register Build # noqa: E501
32723
+
32724
+ Register a node to receive a per-build token. # noqa: E501
32725
+ This method makes a synchronous HTTP request by default. To make an
32726
+ asynchronous HTTP request, please pass async_req=True
32727
+ >>> thread = api.register_build_api_v2_anyscaled_register_build_post(build_registration, async_req=True)
32728
+ >>> result = thread.get()
32729
+
32730
+ :param async_req bool: execute request asynchronously
32731
+ :param BuildRegistration build_registration: (required)
32732
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
32733
+ be returned without reading/decoding response
32734
+ data. Default is True.
32735
+ :param _request_timeout: timeout setting for this request. If one
32736
+ number provided, it will be total request
32737
+ timeout. It can also be a pair (tuple) of
32738
+ (connection, read) timeouts.
32739
+ :return: AnyscaledcredentialresponseResponse
32740
+ If the method is called asynchronously,
32741
+ returns the request thread.
32742
+ """
32743
+ kwargs['_return_http_data_only'] = True
32744
+ return self.register_build_api_v2_anyscaled_register_build_post_with_http_info(build_registration, **kwargs) # noqa: E501
32745
+
32746
+ def register_build_api_v2_anyscaled_register_build_post_with_http_info(self, build_registration, **kwargs): # noqa: E501
32747
+ """Register Build # noqa: E501
32748
+
32749
+ Register a node to receive a per-build token. # noqa: E501
31665
32750
  This method makes a synchronous HTTP request by default. To make an
31666
32751
  asynchronous HTTP request, please pass async_req=True
31667
- >>> thread = api.register_api_v2_kubernetes_manager_register_post_with_http_info(kubernetes_manager_registration_request, async_req=True)
32752
+ >>> thread = api.register_build_api_v2_anyscaled_register_build_post_with_http_info(build_registration, async_req=True)
31668
32753
  >>> result = thread.get()
31669
32754
 
31670
32755
  :param async_req bool: execute request asynchronously
31671
- :param KubernetesManagerRegistrationRequest kubernetes_manager_registration_request: (required)
32756
+ :param BuildRegistration build_registration: (required)
31672
32757
  :param _return_http_data_only: response data without head status code
31673
32758
  and headers
31674
32759
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -31678,7 +32763,7 @@ class DefaultApi(object):
31678
32763
  number provided, it will be total request
31679
32764
  timeout. It can also be a pair (tuple) of
31680
32765
  (connection, read) timeouts.
31681
- :return: tuple(KubernetesmanagerregistrationresponseResponse, status_code(int), headers(HTTPHeaderDict))
32766
+ :return: tuple(AnyscaledcredentialresponseResponse, status_code(int), headers(HTTPHeaderDict))
31682
32767
  If the method is called asynchronously,
31683
32768
  returns the request thread.
31684
32769
  """
@@ -31686,7 +32771,7 @@ class DefaultApi(object):
31686
32771
  local_var_params = locals()
31687
32772
 
31688
32773
  all_params = [
31689
- 'kubernetes_manager_registration_request'
32774
+ 'build_registration'
31690
32775
  ]
31691
32776
  all_params.extend(
31692
32777
  [
@@ -31701,14 +32786,14 @@ class DefaultApi(object):
31701
32786
  if key not in all_params:
31702
32787
  raise ApiTypeError(
31703
32788
  "Got an unexpected keyword argument '%s'"
31704
- " to method register_api_v2_kubernetes_manager_register_post" % key
32789
+ " to method register_build_api_v2_anyscaled_register_build_post" % key
31705
32790
  )
31706
32791
  local_var_params[key] = val
31707
32792
  del local_var_params['kwargs']
31708
- # verify the required parameter 'kubernetes_manager_registration_request' is set
31709
- if self.api_client.client_side_validation and ('kubernetes_manager_registration_request' not in local_var_params or # noqa: E501
31710
- local_var_params['kubernetes_manager_registration_request'] is None): # noqa: E501
31711
- raise ApiValueError("Missing the required parameter `kubernetes_manager_registration_request` when calling `register_api_v2_kubernetes_manager_register_post`") # noqa: E501
32793
+ # verify the required parameter 'build_registration' is set
32794
+ if self.api_client.client_side_validation and ('build_registration' not in local_var_params or # noqa: E501
32795
+ local_var_params['build_registration'] is None): # noqa: E501
32796
+ raise ApiValueError("Missing the required parameter `build_registration` when calling `register_build_api_v2_anyscaled_register_build_post`") # noqa: E501
31712
32797
 
31713
32798
  collection_formats = {}
31714
32799
 
@@ -31722,8 +32807,8 @@ class DefaultApi(object):
31722
32807
  local_var_files = {}
31723
32808
 
31724
32809
  body_params = None
31725
- if 'kubernetes_manager_registration_request' in local_var_params:
31726
- body_params = local_var_params['kubernetes_manager_registration_request']
32810
+ if 'build_registration' in local_var_params:
32811
+ body_params = local_var_params['build_registration']
31727
32812
  # HTTP header `Accept`
31728
32813
  header_params['Accept'] = self.api_client.select_header_accept(
31729
32814
  ['application/json']) # noqa: E501
@@ -31736,14 +32821,14 @@ class DefaultApi(object):
31736
32821
  auth_settings = [] # noqa: E501
31737
32822
 
31738
32823
  return self.api_client.call_api(
31739
- '/api/v2/kubernetes_manager/register', 'POST',
32824
+ '/api/v2/anyscaled/register_build', 'POST',
31740
32825
  path_params,
31741
32826
  query_params,
31742
32827
  header_params,
31743
32828
  body=body_params,
31744
32829
  post_params=form_params,
31745
32830
  files=local_var_files,
31746
- response_type='KubernetesmanagerregistrationresponseResponse', # noqa: E501
32831
+ response_type='AnyscaledcredentialresponseResponse', # noqa: E501
31747
32832
  auth_settings=auth_settings,
31748
32833
  async_req=local_var_params.get('async_req'),
31749
32834
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -31751,17 +32836,17 @@ class DefaultApi(object):
31751
32836
  _request_timeout=local_var_params.get('_request_timeout'),
31752
32837
  collection_formats=collection_formats)
31753
32838
 
31754
- def register_build_api_v2_anyscaled_register_build_post(self, build_registration, **kwargs): # noqa: E501
31755
- """Register Build # noqa: E501
32839
+ def register_databricks_connection_api_v2_integrations_connections_databricks_post(self, databricks_register_request, **kwargs): # noqa: E501
32840
+ """Register Databricks Connection # noqa: E501
31756
32841
 
31757
- Register a node to receive a per-build token. # noqa: E501
32842
+ Register Databricks connection configuration # noqa: E501
31758
32843
  This method makes a synchronous HTTP request by default. To make an
31759
32844
  asynchronous HTTP request, please pass async_req=True
31760
- >>> thread = api.register_build_api_v2_anyscaled_register_build_post(build_registration, async_req=True)
32845
+ >>> thread = api.register_databricks_connection_api_v2_integrations_connections_databricks_post(databricks_register_request, async_req=True)
31761
32846
  >>> result = thread.get()
31762
32847
 
31763
32848
  :param async_req bool: execute request asynchronously
31764
- :param BuildRegistration build_registration: (required)
32849
+ :param DatabricksRegisterRequest databricks_register_request: (required)
31765
32850
  :param _preload_content: if False, the urllib3.HTTPResponse object will
31766
32851
  be returned without reading/decoding response
31767
32852
  data. Default is True.
@@ -31769,24 +32854,24 @@ class DefaultApi(object):
31769
32854
  number provided, it will be total request
31770
32855
  timeout. It can also be a pair (tuple) of
31771
32856
  (connection, read) timeouts.
31772
- :return: AnyscaledcredentialresponseResponse
32857
+ :return: DatabricksconnectionresponseResponse
31773
32858
  If the method is called asynchronously,
31774
32859
  returns the request thread.
31775
32860
  """
31776
32861
  kwargs['_return_http_data_only'] = True
31777
- return self.register_build_api_v2_anyscaled_register_build_post_with_http_info(build_registration, **kwargs) # noqa: E501
32862
+ return self.register_databricks_connection_api_v2_integrations_connections_databricks_post_with_http_info(databricks_register_request, **kwargs) # noqa: E501
31778
32863
 
31779
- def register_build_api_v2_anyscaled_register_build_post_with_http_info(self, build_registration, **kwargs): # noqa: E501
31780
- """Register Build # noqa: E501
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
31781
32866
 
31782
- Register a node to receive a per-build token. # noqa: E501
32867
+ Register Databricks connection configuration # noqa: E501
31783
32868
  This method makes a synchronous HTTP request by default. To make an
31784
32869
  asynchronous HTTP request, please pass async_req=True
31785
- >>> thread = api.register_build_api_v2_anyscaled_register_build_post_with_http_info(build_registration, async_req=True)
32870
+ >>> thread = api.register_databricks_connection_api_v2_integrations_connections_databricks_post_with_http_info(databricks_register_request, async_req=True)
31786
32871
  >>> result = thread.get()
31787
32872
 
31788
32873
  :param async_req bool: execute request asynchronously
31789
- :param BuildRegistration build_registration: (required)
32874
+ :param DatabricksRegisterRequest databricks_register_request: (required)
31790
32875
  :param _return_http_data_only: response data without head status code
31791
32876
  and headers
31792
32877
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -31796,7 +32881,7 @@ class DefaultApi(object):
31796
32881
  number provided, it will be total request
31797
32882
  timeout. It can also be a pair (tuple) of
31798
32883
  (connection, read) timeouts.
31799
- :return: tuple(AnyscaledcredentialresponseResponse, status_code(int), headers(HTTPHeaderDict))
32884
+ :return: tuple(DatabricksconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
31800
32885
  If the method is called asynchronously,
31801
32886
  returns the request thread.
31802
32887
  """
@@ -31804,7 +32889,7 @@ class DefaultApi(object):
31804
32889
  local_var_params = locals()
31805
32890
 
31806
32891
  all_params = [
31807
- 'build_registration'
32892
+ 'databricks_register_request'
31808
32893
  ]
31809
32894
  all_params.extend(
31810
32895
  [
@@ -31819,14 +32904,14 @@ class DefaultApi(object):
31819
32904
  if key not in all_params:
31820
32905
  raise ApiTypeError(
31821
32906
  "Got an unexpected keyword argument '%s'"
31822
- " to method register_build_api_v2_anyscaled_register_build_post" % key
32907
+ " to method register_databricks_connection_api_v2_integrations_connections_databricks_post" % key
31823
32908
  )
31824
32909
  local_var_params[key] = val
31825
32910
  del local_var_params['kwargs']
31826
- # verify the required parameter 'build_registration' is set
31827
- if self.api_client.client_side_validation and ('build_registration' not in local_var_params or # noqa: E501
31828
- local_var_params['build_registration'] is None): # noqa: E501
31829
- raise ApiValueError("Missing the required parameter `build_registration` when calling `register_build_api_v2_anyscaled_register_build_post`") # noqa: E501
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
31830
32915
 
31831
32916
  collection_formats = {}
31832
32917
 
@@ -31840,8 +32925,8 @@ class DefaultApi(object):
31840
32925
  local_var_files = {}
31841
32926
 
31842
32927
  body_params = None
31843
- if 'build_registration' in local_var_params:
31844
- body_params = local_var_params['build_registration']
32928
+ if 'databricks_register_request' in local_var_params:
32929
+ body_params = local_var_params['databricks_register_request']
31845
32930
  # HTTP header `Accept`
31846
32931
  header_params['Accept'] = self.api_client.select_header_accept(
31847
32932
  ['application/json']) # noqa: E501
@@ -31854,14 +32939,14 @@ class DefaultApi(object):
31854
32939
  auth_settings = [] # noqa: E501
31855
32940
 
31856
32941
  return self.api_client.call_api(
31857
- '/api/v2/anyscaled/register_build', 'POST',
32942
+ '/api/v2/integrations/connections/databricks', 'POST',
31858
32943
  path_params,
31859
32944
  query_params,
31860
32945
  header_params,
31861
32946
  body=body_params,
31862
32947
  post_params=form_params,
31863
32948
  files=local_var_files,
31864
- response_type='AnyscaledcredentialresponseResponse', # noqa: E501
32949
+ response_type='DatabricksconnectionresponseResponse', # noqa: E501
31865
32950
  auth_settings=auth_settings,
31866
32951
  async_req=local_var_params.get('async_req'),
31867
32952
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -35110,6 +36195,120 @@ class DefaultApi(object):
35110
36195
  _request_timeout=local_var_params.get('_request_timeout'),
35111
36196
  collection_formats=collection_formats)
35112
36197
 
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
36200
+
36201
+ Get the admin link for the organization's SSO configuration. # noqa: E501
36202
+ This method makes a synchronous HTTP request by default. To make an
36203
+ asynchronous HTTP request, please pass async_req=True
36204
+ >>> thread = api.sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get(organization_id, async_req=True)
36205
+ >>> result = thread.get()
36206
+
36207
+ :param async_req bool: execute request asynchronously
36208
+ :param str organization_id: (required)
36209
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
36210
+ be returned without reading/decoding response
36211
+ data. Default is True.
36212
+ :param _request_timeout: timeout setting for this request. If one
36213
+ number provided, it will be total request
36214
+ timeout. It can also be a pair (tuple) of
36215
+ (connection, read) timeouts.
36216
+ :return: SsoconfigResponse
36217
+ If the method is called asynchronously,
36218
+ returns the request thread.
36219
+ """
36220
+ kwargs['_return_http_data_only'] = True
36221
+ return self.sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get_with_http_info(organization_id, **kwargs) # noqa: E501
36222
+
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
36225
+
36226
+ Get the admin link for the organization's SSO configuration. # noqa: E501
36227
+ This method makes a synchronous HTTP request by default. To make an
36228
+ asynchronous HTTP request, please pass 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)
36230
+ >>> result = thread.get()
36231
+
36232
+ :param async_req bool: execute request asynchronously
36233
+ :param str organization_id: (required)
36234
+ :param _return_http_data_only: response data without head status code
36235
+ and headers
36236
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
36237
+ be returned without reading/decoding response
36238
+ data. Default is True.
36239
+ :param _request_timeout: timeout setting for this request. If one
36240
+ number provided, it will be total request
36241
+ timeout. It can also be a pair (tuple) of
36242
+ (connection, read) timeouts.
36243
+ :return: tuple(SsoconfigResponse, status_code(int), headers(HTTPHeaderDict))
36244
+ If the method is called asynchronously,
36245
+ returns the request thread.
36246
+ """
36247
+
36248
+ local_var_params = locals()
36249
+
36250
+ all_params = [
36251
+ 'organization_id'
36252
+ ]
36253
+ all_params.extend(
36254
+ [
36255
+ 'async_req',
36256
+ '_return_http_data_only',
36257
+ '_preload_content',
36258
+ '_request_timeout'
36259
+ ]
36260
+ )
36261
+
36262
+ for key, val in six.iteritems(local_var_params['kwargs']):
36263
+ if key not in all_params:
36264
+ raise ApiTypeError(
36265
+ "Got an unexpected keyword argument '%s'"
36266
+ " to method sso_admin_link_api_v2_organizations_organization_id_sso_admin_link_get" % key
36267
+ )
36268
+ local_var_params[key] = val
36269
+ del local_var_params['kwargs']
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
36274
+
36275
+ collection_formats = {}
36276
+
36277
+ path_params = {}
36278
+ if 'organization_id' in local_var_params:
36279
+ path_params['organization_id'] = local_var_params['organization_id'] # noqa: E501
36280
+
36281
+ query_params = []
36282
+
36283
+ header_params = {}
36284
+
36285
+ form_params = []
36286
+ local_var_files = {}
36287
+
36288
+ body_params = None
36289
+ # HTTP header `Accept`
36290
+ header_params['Accept'] = self.api_client.select_header_accept(
36291
+ ['application/json']) # noqa: E501
36292
+
36293
+ # Authentication setting
36294
+ auth_settings = [] # noqa: E501
36295
+
36296
+ return self.api_client.call_api(
36297
+ '/api/v2/organizations/{organization_id}/sso_admin_link', 'GET',
36298
+ path_params,
36299
+ query_params,
36300
+ header_params,
36301
+ body=body_params,
36302
+ post_params=form_params,
36303
+ files=local_var_files,
36304
+ response_type='SsoconfigResponse', # noqa: E501
36305
+ auth_settings=auth_settings,
36306
+ async_req=local_var_params.get('async_req'),
36307
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
36308
+ _preload_content=local_var_params.get('_preload_content', True),
36309
+ _request_timeout=local_var_params.get('_request_timeout'),
36310
+ collection_formats=collection_formats)
36311
+
35113
36312
  def sso_login_info_api_v2_users_sso_login_info_get(self, organization_id, **kwargs): # noqa: E501
35114
36313
  """Sso Login Info # noqa: E501
35115
36314
 
@@ -39045,6 +40244,133 @@ class DefaultApi(object):
39045
40244
  _request_timeout=local_var_params.get('_request_timeout'),
39046
40245
  collection_formats=collection_formats)
39047
40246
 
40247
+ def update_template_api_v2_workspace_templates_template_id_put(self, template_id, update_workspace_template, **kwargs): # noqa: E501
40248
+ """Update Template # noqa: E501
40249
+
40250
+ Update a workspace template # noqa: E501
40251
+ This method makes a synchronous HTTP request by default. To make an
40252
+ asynchronous HTTP request, please pass async_req=True
40253
+ >>> thread = api.update_template_api_v2_workspace_templates_template_id_put(template_id, update_workspace_template, async_req=True)
40254
+ >>> result = thread.get()
40255
+
40256
+ :param async_req bool: execute request asynchronously
40257
+ :param str template_id: (required)
40258
+ :param UpdateWorkspaceTemplate update_workspace_template: (required)
40259
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
40260
+ be returned without reading/decoding response
40261
+ data. Default is True.
40262
+ :param _request_timeout: timeout setting for this request. If one
40263
+ number provided, it will be total request
40264
+ timeout. It can also be a pair (tuple) of
40265
+ (connection, read) timeouts.
40266
+ :return: WorkspacetemplateResponse
40267
+ If the method is called asynchronously,
40268
+ returns the request thread.
40269
+ """
40270
+ kwargs['_return_http_data_only'] = True
40271
+ return self.update_template_api_v2_workspace_templates_template_id_put_with_http_info(template_id, update_workspace_template, **kwargs) # noqa: E501
40272
+
40273
+ def update_template_api_v2_workspace_templates_template_id_put_with_http_info(self, template_id, update_workspace_template, **kwargs): # noqa: E501
40274
+ """Update Template # noqa: E501
40275
+
40276
+ Update a workspace template # noqa: E501
40277
+ This method makes a synchronous HTTP request by default. To make an
40278
+ asynchronous HTTP request, please pass async_req=True
40279
+ >>> thread = api.update_template_api_v2_workspace_templates_template_id_put_with_http_info(template_id, update_workspace_template, async_req=True)
40280
+ >>> result = thread.get()
40281
+
40282
+ :param async_req bool: execute request asynchronously
40283
+ :param str template_id: (required)
40284
+ :param UpdateWorkspaceTemplate update_workspace_template: (required)
40285
+ :param _return_http_data_only: response data without head status code
40286
+ and headers
40287
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
40288
+ be returned without reading/decoding response
40289
+ data. Default is True.
40290
+ :param _request_timeout: timeout setting for this request. If one
40291
+ number provided, it will be total request
40292
+ timeout. It can also be a pair (tuple) of
40293
+ (connection, read) timeouts.
40294
+ :return: tuple(WorkspacetemplateResponse, status_code(int), headers(HTTPHeaderDict))
40295
+ If the method is called asynchronously,
40296
+ returns the request thread.
40297
+ """
40298
+
40299
+ local_var_params = locals()
40300
+
40301
+ all_params = [
40302
+ 'template_id',
40303
+ 'update_workspace_template'
40304
+ ]
40305
+ all_params.extend(
40306
+ [
40307
+ 'async_req',
40308
+ '_return_http_data_only',
40309
+ '_preload_content',
40310
+ '_request_timeout'
40311
+ ]
40312
+ )
40313
+
40314
+ for key, val in six.iteritems(local_var_params['kwargs']):
40315
+ if key not in all_params:
40316
+ raise ApiTypeError(
40317
+ "Got an unexpected keyword argument '%s'"
40318
+ " to method update_template_api_v2_workspace_templates_template_id_put" % key
40319
+ )
40320
+ local_var_params[key] = val
40321
+ del local_var_params['kwargs']
40322
+ # verify the required parameter 'template_id' is set
40323
+ if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
40324
+ local_var_params['template_id'] is None): # noqa: E501
40325
+ raise ApiValueError("Missing the required parameter `template_id` when calling `update_template_api_v2_workspace_templates_template_id_put`") # noqa: E501
40326
+ # verify the required parameter 'update_workspace_template' is set
40327
+ if self.api_client.client_side_validation and ('update_workspace_template' not in local_var_params or # noqa: E501
40328
+ local_var_params['update_workspace_template'] is None): # noqa: E501
40329
+ raise ApiValueError("Missing the required parameter `update_workspace_template` when calling `update_template_api_v2_workspace_templates_template_id_put`") # noqa: E501
40330
+
40331
+ collection_formats = {}
40332
+
40333
+ path_params = {}
40334
+ if 'template_id' in local_var_params:
40335
+ path_params['template_id'] = local_var_params['template_id'] # noqa: E501
40336
+
40337
+ query_params = []
40338
+
40339
+ header_params = {}
40340
+
40341
+ form_params = []
40342
+ local_var_files = {}
40343
+
40344
+ body_params = None
40345
+ if 'update_workspace_template' in local_var_params:
40346
+ body_params = local_var_params['update_workspace_template']
40347
+ # HTTP header `Accept`
40348
+ header_params['Accept'] = self.api_client.select_header_accept(
40349
+ ['application/json']) # noqa: E501
40350
+
40351
+ # HTTP header `Content-Type`
40352
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
40353
+ ['application/json']) # noqa: E501
40354
+
40355
+ # Authentication setting
40356
+ auth_settings = [] # noqa: E501
40357
+
40358
+ return self.api_client.call_api(
40359
+ '/api/v2/workspace_templates/{template_id}', 'PUT',
40360
+ path_params,
40361
+ query_params,
40362
+ header_params,
40363
+ body=body_params,
40364
+ post_params=form_params,
40365
+ files=local_var_files,
40366
+ response_type='WorkspacetemplateResponse', # noqa: E501
40367
+ auth_settings=auth_settings,
40368
+ async_req=local_var_params.get('async_req'),
40369
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
40370
+ _preload_content=local_var_params.get('_preload_content', True),
40371
+ _request_timeout=local_var_params.get('_request_timeout'),
40372
+ collection_formats=collection_formats)
40373
+
39048
40374
  def upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post(self, session_command_id, **kwargs): # noqa: E501
39049
40375
  """Upload Session Command Logs # noqa: E501
39050
40376