anyscale 0.26.70__py3-none-any.whl → 0.26.72__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +63 -6
- anyscale/_private/anyscale_client/common.py +33 -3
- anyscale/_private/anyscale_client/fake_anyscale_client.py +27 -2
- anyscale/client/README.md +29 -0
- anyscale/client/openapi_client/__init__.py +19 -0
- anyscale/client/openapi_client/api/default_api.py +1307 -4
- anyscale/client/openapi_client/models/__init__.py +19 -0
- anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
- anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
- anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
- anyscale/client/openapi_client/models/column_info.py +265 -0
- anyscale/client/openapi_client/models/compute_node_type.py +29 -1
- anyscale/client/openapi_client/models/connection_metadata.py +206 -0
- anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
- anyscale/client/openapi_client/models/data_catalog.py +45 -31
- anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
- anyscale/client/openapi_client/models/data_catalog_object_type.py +100 -0
- anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
- anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
- anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
- anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
- anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
- anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
- anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +2 -2
- anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
- anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +2 -2
- anyscale/client/openapi_client/models/physical_resources.py +178 -0
- anyscale/client/openapi_client/models/schema_metadata.py +150 -0
- anyscale/client/openapi_client/models/sso_config.py +18 -18
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/table_data_preview.py +209 -0
- anyscale/client/openapi_client/models/volume_metadata.py +150 -0
- anyscale/client/openapi_client/models/worker_node_type.py +29 -1
- anyscale/client/openapi_client/models/workspace_template_version.py +29 -1
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +29 -1
- anyscale/commands/job_commands.py +120 -0
- anyscale/commands/job_queue_commands.py +99 -2
- anyscale/commands/service_commands.py +139 -2
- anyscale/commands/util.py +104 -1
- anyscale/commands/workspace_commands.py +123 -5
- anyscale/commands/workspace_commands_v2.py +17 -1
- anyscale/compute_config/_private/compute_config_sdk.py +25 -12
- anyscale/compute_config/models.py +15 -0
- anyscale/controllers/job_controller.py +12 -0
- anyscale/controllers/workspace_controller.py +67 -5
- anyscale/job/_private/job_sdk.py +3 -1
- anyscale/job/models.py +16 -0
- anyscale/job_queue/__init__.py +37 -1
- anyscale/job_queue/_private/job_queue_sdk.py +28 -1
- anyscale/job_queue/commands.py +61 -1
- anyscale/sdk/anyscale_client/__init__.py +1 -0
- anyscale/sdk/anyscale_client/api/default_api.py +12 -2
- anyscale/sdk/anyscale_client/models/__init__.py +1 -0
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
- anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
- anyscale/service/__init__.py +40 -0
- anyscale/service/_private/service_sdk.py +121 -24
- anyscale/service/commands.py +75 -1
- anyscale/service/models.py +46 -2
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +1 -0
- anyscale/workspace/models.py +19 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/METADATA +1 -1
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/RECORD +78 -58
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/WHEEL +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.70.dist-info → anyscale-0.26.72.dist-info}/top_level.txt +0 -0
|
@@ -8643,6 +8643,120 @@ class DefaultApi(object):
|
|
|
8643
8643
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
8644
8644
|
collection_formats=collection_formats)
|
|
8645
8645
|
|
|
8646
|
+
def delete_template_api_v2_workspace_templates_template_id_delete(self, template_id, **kwargs): # noqa: E501
|
|
8647
|
+
"""Delete Template # noqa: E501
|
|
8648
|
+
|
|
8649
|
+
Delete a workspace template and all its versions # noqa: E501
|
|
8650
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
8651
|
+
asynchronous HTTP request, please pass async_req=True
|
|
8652
|
+
>>> thread = api.delete_template_api_v2_workspace_templates_template_id_delete(template_id, async_req=True)
|
|
8653
|
+
>>> result = thread.get()
|
|
8654
|
+
|
|
8655
|
+
:param async_req bool: execute request asynchronously
|
|
8656
|
+
:param str template_id: ID of the template to delete (required)
|
|
8657
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
8658
|
+
be returned without reading/decoding response
|
|
8659
|
+
data. Default is True.
|
|
8660
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8661
|
+
number provided, it will be total request
|
|
8662
|
+
timeout. It can also be a pair (tuple) of
|
|
8663
|
+
(connection, read) timeouts.
|
|
8664
|
+
:return: None
|
|
8665
|
+
If the method is called asynchronously,
|
|
8666
|
+
returns the request thread.
|
|
8667
|
+
"""
|
|
8668
|
+
kwargs['_return_http_data_only'] = True
|
|
8669
|
+
return self.delete_template_api_v2_workspace_templates_template_id_delete_with_http_info(template_id, **kwargs) # noqa: E501
|
|
8670
|
+
|
|
8671
|
+
def delete_template_api_v2_workspace_templates_template_id_delete_with_http_info(self, template_id, **kwargs): # noqa: E501
|
|
8672
|
+
"""Delete Template # noqa: E501
|
|
8673
|
+
|
|
8674
|
+
Delete a workspace template and all its versions # noqa: E501
|
|
8675
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
8676
|
+
asynchronous HTTP request, please pass async_req=True
|
|
8677
|
+
>>> thread = api.delete_template_api_v2_workspace_templates_template_id_delete_with_http_info(template_id, async_req=True)
|
|
8678
|
+
>>> result = thread.get()
|
|
8679
|
+
|
|
8680
|
+
:param async_req bool: execute request asynchronously
|
|
8681
|
+
:param str template_id: ID of the template to delete (required)
|
|
8682
|
+
:param _return_http_data_only: response data without head status code
|
|
8683
|
+
and headers
|
|
8684
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
8685
|
+
be returned without reading/decoding response
|
|
8686
|
+
data. Default is True.
|
|
8687
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8688
|
+
number provided, it will be total request
|
|
8689
|
+
timeout. It can also be a pair (tuple) of
|
|
8690
|
+
(connection, read) timeouts.
|
|
8691
|
+
:return: None
|
|
8692
|
+
If the method is called asynchronously,
|
|
8693
|
+
returns the request thread.
|
|
8694
|
+
"""
|
|
8695
|
+
|
|
8696
|
+
local_var_params = locals()
|
|
8697
|
+
|
|
8698
|
+
all_params = [
|
|
8699
|
+
'template_id'
|
|
8700
|
+
]
|
|
8701
|
+
all_params.extend(
|
|
8702
|
+
[
|
|
8703
|
+
'async_req',
|
|
8704
|
+
'_return_http_data_only',
|
|
8705
|
+
'_preload_content',
|
|
8706
|
+
'_request_timeout'
|
|
8707
|
+
]
|
|
8708
|
+
)
|
|
8709
|
+
|
|
8710
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
8711
|
+
if key not in all_params:
|
|
8712
|
+
raise ApiTypeError(
|
|
8713
|
+
"Got an unexpected keyword argument '%s'"
|
|
8714
|
+
" to method delete_template_api_v2_workspace_templates_template_id_delete" % key
|
|
8715
|
+
)
|
|
8716
|
+
local_var_params[key] = val
|
|
8717
|
+
del local_var_params['kwargs']
|
|
8718
|
+
# verify the required parameter 'template_id' is set
|
|
8719
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
|
8720
|
+
local_var_params['template_id'] is None): # noqa: E501
|
|
8721
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `delete_template_api_v2_workspace_templates_template_id_delete`") # noqa: E501
|
|
8722
|
+
|
|
8723
|
+
collection_formats = {}
|
|
8724
|
+
|
|
8725
|
+
path_params = {}
|
|
8726
|
+
if 'template_id' in local_var_params:
|
|
8727
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
|
8728
|
+
|
|
8729
|
+
query_params = []
|
|
8730
|
+
|
|
8731
|
+
header_params = {}
|
|
8732
|
+
|
|
8733
|
+
form_params = []
|
|
8734
|
+
local_var_files = {}
|
|
8735
|
+
|
|
8736
|
+
body_params = None
|
|
8737
|
+
# HTTP header `Accept`
|
|
8738
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
8739
|
+
['application/json']) # noqa: E501
|
|
8740
|
+
|
|
8741
|
+
# Authentication setting
|
|
8742
|
+
auth_settings = [] # noqa: E501
|
|
8743
|
+
|
|
8744
|
+
return self.api_client.call_api(
|
|
8745
|
+
'/api/v2/workspace_templates/{template_id}', 'DELETE',
|
|
8746
|
+
path_params,
|
|
8747
|
+
query_params,
|
|
8748
|
+
header_params,
|
|
8749
|
+
body=body_params,
|
|
8750
|
+
post_params=form_params,
|
|
8751
|
+
files=local_var_files,
|
|
8752
|
+
response_type=None, # noqa: E501
|
|
8753
|
+
auth_settings=auth_settings,
|
|
8754
|
+
async_req=local_var_params.get('async_req'),
|
|
8755
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
8756
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
8757
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
8758
|
+
collection_formats=collection_formats)
|
|
8759
|
+
|
|
8646
8760
|
def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
|
|
8647
8761
|
"""Delete Workspace # noqa: E501
|
|
8648
8762
|
|
|
@@ -11175,6 +11289,127 @@ class DefaultApi(object):
|
|
|
11175
11289
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
11176
11290
|
collection_formats=collection_formats)
|
|
11177
11291
|
|
|
11292
|
+
def find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post(self, cloud_id, cloud_resource_name, **kwargs): # noqa: E501
|
|
11293
|
+
"""Find Cloud Resource By Name # noqa: E501
|
|
11294
|
+
|
|
11295
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
11296
|
+
asynchronous HTTP request, please pass async_req=True
|
|
11297
|
+
>>> thread = api.find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post(cloud_id, cloud_resource_name, async_req=True)
|
|
11298
|
+
>>> result = thread.get()
|
|
11299
|
+
|
|
11300
|
+
:param async_req bool: execute request asynchronously
|
|
11301
|
+
:param str cloud_id: (required)
|
|
11302
|
+
:param str cloud_resource_name: (required)
|
|
11303
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
11304
|
+
be returned without reading/decoding response
|
|
11305
|
+
data. Default is True.
|
|
11306
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11307
|
+
number provided, it will be total request
|
|
11308
|
+
timeout. It can also be a pair (tuple) of
|
|
11309
|
+
(connection, read) timeouts.
|
|
11310
|
+
:return: DecoratedcloudresourceResponse
|
|
11311
|
+
If the method is called asynchronously,
|
|
11312
|
+
returns the request thread.
|
|
11313
|
+
"""
|
|
11314
|
+
kwargs['_return_http_data_only'] = True
|
|
11315
|
+
return self.find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post_with_http_info(cloud_id, cloud_resource_name, **kwargs) # noqa: E501
|
|
11316
|
+
|
|
11317
|
+
def find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post_with_http_info(self, cloud_id, cloud_resource_name, **kwargs): # noqa: E501
|
|
11318
|
+
"""Find Cloud Resource By Name # noqa: E501
|
|
11319
|
+
|
|
11320
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
11321
|
+
asynchronous HTTP request, please pass async_req=True
|
|
11322
|
+
>>> thread = api.find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post_with_http_info(cloud_id, cloud_resource_name, async_req=True)
|
|
11323
|
+
>>> result = thread.get()
|
|
11324
|
+
|
|
11325
|
+
:param async_req bool: execute request asynchronously
|
|
11326
|
+
:param str cloud_id: (required)
|
|
11327
|
+
:param str cloud_resource_name: (required)
|
|
11328
|
+
:param _return_http_data_only: response data without head status code
|
|
11329
|
+
and headers
|
|
11330
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
11331
|
+
be returned without reading/decoding response
|
|
11332
|
+
data. Default is True.
|
|
11333
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
11334
|
+
number provided, it will be total request
|
|
11335
|
+
timeout. It can also be a pair (tuple) of
|
|
11336
|
+
(connection, read) timeouts.
|
|
11337
|
+
:return: tuple(DecoratedcloudresourceResponse, status_code(int), headers(HTTPHeaderDict))
|
|
11338
|
+
If the method is called asynchronously,
|
|
11339
|
+
returns the request thread.
|
|
11340
|
+
"""
|
|
11341
|
+
|
|
11342
|
+
local_var_params = locals()
|
|
11343
|
+
|
|
11344
|
+
all_params = [
|
|
11345
|
+
'cloud_id',
|
|
11346
|
+
'cloud_resource_name'
|
|
11347
|
+
]
|
|
11348
|
+
all_params.extend(
|
|
11349
|
+
[
|
|
11350
|
+
'async_req',
|
|
11351
|
+
'_return_http_data_only',
|
|
11352
|
+
'_preload_content',
|
|
11353
|
+
'_request_timeout'
|
|
11354
|
+
]
|
|
11355
|
+
)
|
|
11356
|
+
|
|
11357
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
11358
|
+
if key not in all_params:
|
|
11359
|
+
raise ApiTypeError(
|
|
11360
|
+
"Got an unexpected keyword argument '%s'"
|
|
11361
|
+
" to method find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post" % key
|
|
11362
|
+
)
|
|
11363
|
+
local_var_params[key] = val
|
|
11364
|
+
del local_var_params['kwargs']
|
|
11365
|
+
# verify the required parameter 'cloud_id' is set
|
|
11366
|
+
if self.api_client.client_side_validation and ('cloud_id' not in local_var_params or # noqa: E501
|
|
11367
|
+
local_var_params['cloud_id'] is None): # noqa: E501
|
|
11368
|
+
raise ApiValueError("Missing the required parameter `cloud_id` when calling `find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post`") # noqa: E501
|
|
11369
|
+
# verify the required parameter 'cloud_resource_name' is set
|
|
11370
|
+
if self.api_client.client_side_validation and ('cloud_resource_name' not in local_var_params or # noqa: E501
|
|
11371
|
+
local_var_params['cloud_resource_name'] is None): # noqa: E501
|
|
11372
|
+
raise ApiValueError("Missing the required parameter `cloud_resource_name` when calling `find_cloud_resource_by_name_api_v2_clouds_cloud_id_find_cloud_resource_by_name_post`") # noqa: E501
|
|
11373
|
+
|
|
11374
|
+
collection_formats = {}
|
|
11375
|
+
|
|
11376
|
+
path_params = {}
|
|
11377
|
+
if 'cloud_id' in local_var_params:
|
|
11378
|
+
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
|
11379
|
+
|
|
11380
|
+
query_params = []
|
|
11381
|
+
if 'cloud_resource_name' in local_var_params and local_var_params['cloud_resource_name'] is not None: # noqa: E501
|
|
11382
|
+
query_params.append(('cloud_resource_name', local_var_params['cloud_resource_name'])) # noqa: E501
|
|
11383
|
+
|
|
11384
|
+
header_params = {}
|
|
11385
|
+
|
|
11386
|
+
form_params = []
|
|
11387
|
+
local_var_files = {}
|
|
11388
|
+
|
|
11389
|
+
body_params = None
|
|
11390
|
+
# HTTP header `Accept`
|
|
11391
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
11392
|
+
['application/json']) # noqa: E501
|
|
11393
|
+
|
|
11394
|
+
# Authentication setting
|
|
11395
|
+
auth_settings = [] # noqa: E501
|
|
11396
|
+
|
|
11397
|
+
return self.api_client.call_api(
|
|
11398
|
+
'/api/v2/clouds/{cloud_id}/find_cloud_resource_by_name', 'POST',
|
|
11399
|
+
path_params,
|
|
11400
|
+
query_params,
|
|
11401
|
+
header_params,
|
|
11402
|
+
body=body_params,
|
|
11403
|
+
post_params=form_params,
|
|
11404
|
+
files=local_var_files,
|
|
11405
|
+
response_type='DecoratedcloudresourceResponse', # noqa: E501
|
|
11406
|
+
auth_settings=auth_settings,
|
|
11407
|
+
async_req=local_var_params.get('async_req'),
|
|
11408
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
11409
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
11410
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
11411
|
+
collection_formats=collection_formats)
|
|
11412
|
+
|
|
11178
11413
|
def find_dataset_api_v2_datasets_find_get(self, name, **kwargs): # noqa: E501
|
|
11179
11414
|
"""Find Dataset # noqa: E501
|
|
11180
11415
|
|
|
@@ -15777,6 +16012,7 @@ class DefaultApi(object):
|
|
|
15777
16012
|
|
|
15778
16013
|
:param async_req bool: execute request asynchronously
|
|
15779
16014
|
:param str cloud_id: (required)
|
|
16015
|
+
:param str cloud_resource_id:
|
|
15780
16016
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
15781
16017
|
be returned without reading/decoding response
|
|
15782
16018
|
data. Default is True.
|
|
@@ -15802,6 +16038,7 @@ class DefaultApi(object):
|
|
|
15802
16038
|
|
|
15803
16039
|
:param async_req bool: execute request asynchronously
|
|
15804
16040
|
:param str cloud_id: (required)
|
|
16041
|
+
:param str cloud_resource_id:
|
|
15805
16042
|
:param _return_http_data_only: response data without head status code
|
|
15806
16043
|
and headers
|
|
15807
16044
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -15819,7 +16056,8 @@ class DefaultApi(object):
|
|
|
15819
16056
|
local_var_params = locals()
|
|
15820
16057
|
|
|
15821
16058
|
all_params = [
|
|
15822
|
-
'cloud_id'
|
|
16059
|
+
'cloud_id',
|
|
16060
|
+
'cloud_resource_id'
|
|
15823
16061
|
]
|
|
15824
16062
|
all_params.extend(
|
|
15825
16063
|
[
|
|
@@ -15850,6 +16088,8 @@ class DefaultApi(object):
|
|
|
15850
16088
|
path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
|
|
15851
16089
|
|
|
15852
16090
|
query_params = []
|
|
16091
|
+
if 'cloud_resource_id' in local_var_params and local_var_params['cloud_resource_id'] is not None: # noqa: E501
|
|
16092
|
+
query_params.append(('cloud_resource_id', local_var_params['cloud_resource_id'])) # noqa: E501
|
|
15853
16093
|
|
|
15854
16094
|
header_params = {}
|
|
15855
16095
|
|
|
@@ -21390,10 +21630,133 @@ class DefaultApi(object):
|
|
|
21390
21630
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
21391
21631
|
collection_formats=collection_formats)
|
|
21392
21632
|
|
|
21633
|
+
def get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get(self, service_id, service_version_name, **kwargs): # noqa: E501
|
|
21634
|
+
"""Get Service Version # noqa: E501
|
|
21635
|
+
|
|
21636
|
+
Get a Service Version by name # noqa: E501
|
|
21637
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
21638
|
+
asynchronous HTTP request, please pass async_req=True
|
|
21639
|
+
>>> thread = api.get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get(service_id, service_version_name, async_req=True)
|
|
21640
|
+
>>> result = thread.get()
|
|
21641
|
+
|
|
21642
|
+
:param async_req bool: execute request asynchronously
|
|
21643
|
+
:param str service_id: (required)
|
|
21644
|
+
:param str service_version_name: (required)
|
|
21645
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
21646
|
+
be returned without reading/decoding response
|
|
21647
|
+
data. Default is True.
|
|
21648
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
21649
|
+
number provided, it will be total request
|
|
21650
|
+
timeout. It can also be a pair (tuple) of
|
|
21651
|
+
(connection, read) timeouts.
|
|
21652
|
+
:return: Decoratedproductionservicev2VersionapimodelResponse
|
|
21653
|
+
If the method is called asynchronously,
|
|
21654
|
+
returns the request thread.
|
|
21655
|
+
"""
|
|
21656
|
+
kwargs['_return_http_data_only'] = True
|
|
21657
|
+
return self.get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get_with_http_info(service_id, service_version_name, **kwargs) # noqa: E501
|
|
21658
|
+
|
|
21659
|
+
def get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get_with_http_info(self, service_id, service_version_name, **kwargs): # noqa: E501
|
|
21660
|
+
"""Get Service Version # noqa: E501
|
|
21661
|
+
|
|
21662
|
+
Get a Service Version by name # noqa: E501
|
|
21663
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
21664
|
+
asynchronous HTTP request, please pass async_req=True
|
|
21665
|
+
>>> thread = api.get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get_with_http_info(service_id, service_version_name, async_req=True)
|
|
21666
|
+
>>> result = thread.get()
|
|
21667
|
+
|
|
21668
|
+
:param async_req bool: execute request asynchronously
|
|
21669
|
+
:param str service_id: (required)
|
|
21670
|
+
:param str service_version_name: (required)
|
|
21671
|
+
:param _return_http_data_only: response data without head status code
|
|
21672
|
+
and headers
|
|
21673
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
21674
|
+
be returned without reading/decoding response
|
|
21675
|
+
data. Default is True.
|
|
21676
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
21677
|
+
number provided, it will be total request
|
|
21678
|
+
timeout. It can also be a pair (tuple) of
|
|
21679
|
+
(connection, read) timeouts.
|
|
21680
|
+
:return: tuple(Decoratedproductionservicev2VersionapimodelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
21681
|
+
If the method is called asynchronously,
|
|
21682
|
+
returns the request thread.
|
|
21683
|
+
"""
|
|
21684
|
+
|
|
21685
|
+
local_var_params = locals()
|
|
21686
|
+
|
|
21687
|
+
all_params = [
|
|
21688
|
+
'service_id',
|
|
21689
|
+
'service_version_name'
|
|
21690
|
+
]
|
|
21691
|
+
all_params.extend(
|
|
21692
|
+
[
|
|
21693
|
+
'async_req',
|
|
21694
|
+
'_return_http_data_only',
|
|
21695
|
+
'_preload_content',
|
|
21696
|
+
'_request_timeout'
|
|
21697
|
+
]
|
|
21698
|
+
)
|
|
21699
|
+
|
|
21700
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
21701
|
+
if key not in all_params:
|
|
21702
|
+
raise ApiTypeError(
|
|
21703
|
+
"Got an unexpected keyword argument '%s'"
|
|
21704
|
+
" to method get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get" % key
|
|
21705
|
+
)
|
|
21706
|
+
local_var_params[key] = val
|
|
21707
|
+
del local_var_params['kwargs']
|
|
21708
|
+
# verify the required parameter 'service_id' is set
|
|
21709
|
+
if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
|
|
21710
|
+
local_var_params['service_id'] is None): # noqa: E501
|
|
21711
|
+
raise ApiValueError("Missing the required parameter `service_id` when calling `get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get`") # noqa: E501
|
|
21712
|
+
# verify the required parameter 'service_version_name' is set
|
|
21713
|
+
if self.api_client.client_side_validation and ('service_version_name' not in local_var_params or # noqa: E501
|
|
21714
|
+
local_var_params['service_version_name'] is None): # noqa: E501
|
|
21715
|
+
raise ApiValueError("Missing the required parameter `service_version_name` when calling `get_service_version_api_v2_services_v2_service_id_versions_service_version_name_get`") # noqa: E501
|
|
21716
|
+
|
|
21717
|
+
collection_formats = {}
|
|
21718
|
+
|
|
21719
|
+
path_params = {}
|
|
21720
|
+
if 'service_id' in local_var_params:
|
|
21721
|
+
path_params['service_id'] = local_var_params['service_id'] # noqa: E501
|
|
21722
|
+
if 'service_version_name' in local_var_params:
|
|
21723
|
+
path_params['service_version_name'] = local_var_params['service_version_name'] # noqa: E501
|
|
21724
|
+
|
|
21725
|
+
query_params = []
|
|
21726
|
+
|
|
21727
|
+
header_params = {}
|
|
21728
|
+
|
|
21729
|
+
form_params = []
|
|
21730
|
+
local_var_files = {}
|
|
21731
|
+
|
|
21732
|
+
body_params = None
|
|
21733
|
+
# HTTP header `Accept`
|
|
21734
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
21735
|
+
['application/json']) # noqa: E501
|
|
21736
|
+
|
|
21737
|
+
# Authentication setting
|
|
21738
|
+
auth_settings = [] # noqa: E501
|
|
21739
|
+
|
|
21740
|
+
return self.api_client.call_api(
|
|
21741
|
+
'/api/v2/services-v2/{service_id}/versions/{service_version_name}', 'GET',
|
|
21742
|
+
path_params,
|
|
21743
|
+
query_params,
|
|
21744
|
+
header_params,
|
|
21745
|
+
body=body_params,
|
|
21746
|
+
post_params=form_params,
|
|
21747
|
+
files=local_var_files,
|
|
21748
|
+
response_type='Decoratedproductionservicev2VersionapimodelResponse', # noqa: E501
|
|
21749
|
+
auth_settings=auth_settings,
|
|
21750
|
+
async_req=local_var_params.get('async_req'),
|
|
21751
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
21752
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
21753
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
21754
|
+
collection_formats=collection_formats)
|
|
21755
|
+
|
|
21393
21756
|
def get_service_versions_api_v2_services_v2_service_id_versions_get(self, service_id, **kwargs): # noqa: E501
|
|
21394
21757
|
"""Get Service Versions # noqa: E501
|
|
21395
21758
|
|
|
21396
|
-
Returns up to
|
|
21759
|
+
Returns up to 100 (most recent) versions for the given Service (ordered by most to least recent). # noqa: E501
|
|
21397
21760
|
This method makes a synchronous HTTP request by default. To make an
|
|
21398
21761
|
asynchronous HTTP request, please pass async_req=True
|
|
21399
21762
|
>>> thread = api.get_service_versions_api_v2_services_v2_service_id_versions_get(service_id, async_req=True)
|
|
@@ -21401,6 +21764,9 @@ class DefaultApi(object):
|
|
|
21401
21764
|
|
|
21402
21765
|
:param async_req bool: execute request asynchronously
|
|
21403
21766
|
:param str service_id: (required)
|
|
21767
|
+
:param list[ServiceVersionState] state_filter: Filter by one or more states of version. Can specify multiple states.
|
|
21768
|
+
:param int count: Number of versions to return
|
|
21769
|
+
:param str paging_token: Token for pagination
|
|
21404
21770
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
21405
21771
|
be returned without reading/decoding response
|
|
21406
21772
|
data. Default is True.
|
|
@@ -21418,7 +21784,7 @@ class DefaultApi(object):
|
|
|
21418
21784
|
def get_service_versions_api_v2_services_v2_service_id_versions_get_with_http_info(self, service_id, **kwargs): # noqa: E501
|
|
21419
21785
|
"""Get Service Versions # noqa: E501
|
|
21420
21786
|
|
|
21421
|
-
Returns up to
|
|
21787
|
+
Returns up to 100 (most recent) versions for the given Service (ordered by most to least recent). # noqa: E501
|
|
21422
21788
|
This method makes a synchronous HTTP request by default. To make an
|
|
21423
21789
|
asynchronous HTTP request, please pass async_req=True
|
|
21424
21790
|
>>> thread = api.get_service_versions_api_v2_services_v2_service_id_versions_get_with_http_info(service_id, async_req=True)
|
|
@@ -21426,6 +21792,9 @@ class DefaultApi(object):
|
|
|
21426
21792
|
|
|
21427
21793
|
:param async_req bool: execute request asynchronously
|
|
21428
21794
|
:param str service_id: (required)
|
|
21795
|
+
:param list[ServiceVersionState] state_filter: Filter by one or more states of version. Can specify multiple states.
|
|
21796
|
+
:param int count: Number of versions to return
|
|
21797
|
+
:param str paging_token: Token for pagination
|
|
21429
21798
|
:param _return_http_data_only: response data without head status code
|
|
21430
21799
|
and headers
|
|
21431
21800
|
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
@@ -21443,7 +21812,10 @@ class DefaultApi(object):
|
|
|
21443
21812
|
local_var_params = locals()
|
|
21444
21813
|
|
|
21445
21814
|
all_params = [
|
|
21446
|
-
'service_id'
|
|
21815
|
+
'service_id',
|
|
21816
|
+
'state_filter',
|
|
21817
|
+
'count',
|
|
21818
|
+
'paging_token'
|
|
21447
21819
|
]
|
|
21448
21820
|
all_params.extend(
|
|
21449
21821
|
[
|
|
@@ -21474,6 +21846,13 @@ class DefaultApi(object):
|
|
|
21474
21846
|
path_params['service_id'] = local_var_params['service_id'] # noqa: E501
|
|
21475
21847
|
|
|
21476
21848
|
query_params = []
|
|
21849
|
+
if 'state_filter' in local_var_params and local_var_params['state_filter'] is not None: # noqa: E501
|
|
21850
|
+
query_params.append(('state_filter', local_var_params['state_filter'])) # noqa: E501
|
|
21851
|
+
collection_formats['state_filter'] = 'multi' # noqa: E501
|
|
21852
|
+
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
|
21853
|
+
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
|
21854
|
+
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
|
21855
|
+
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
|
21477
21856
|
|
|
21478
21857
|
header_params = {}
|
|
21479
21858
|
|
|
@@ -22243,6 +22622,302 @@ class DefaultApi(object):
|
|
|
22243
22622
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
22244
22623
|
collection_formats=collection_formats)
|
|
22245
22624
|
|
|
22625
|
+
def get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get(self, connection_id, catalog_id, schema_id, table_id, **kwargs): # noqa: E501
|
|
22626
|
+
"""Get Table Metadata # noqa: E501
|
|
22627
|
+
|
|
22628
|
+
Gets detailed metadata for a specific table including columns, properties, and statistics # noqa: E501
|
|
22629
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
22630
|
+
asynchronous HTTP request, please pass async_req=True
|
|
22631
|
+
>>> thread = api.get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get(connection_id, catalog_id, schema_id, table_id, async_req=True)
|
|
22632
|
+
>>> result = thread.get()
|
|
22633
|
+
|
|
22634
|
+
:param async_req bool: execute request asynchronously
|
|
22635
|
+
:param str connection_id: ID of the provider connection (required)
|
|
22636
|
+
:param str catalog_id: ID of the catalog (required)
|
|
22637
|
+
:param str schema_id: ID of the schema (required)
|
|
22638
|
+
:param str table_id: ID of the table (required)
|
|
22639
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
22640
|
+
be returned without reading/decoding response
|
|
22641
|
+
data. Default is True.
|
|
22642
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
22643
|
+
number provided, it will be total request
|
|
22644
|
+
timeout. It can also be a pair (tuple) of
|
|
22645
|
+
(connection, read) timeouts.
|
|
22646
|
+
:return: BackendServerApiProductModelsCatalogClientModelsTableMetadata
|
|
22647
|
+
If the method is called asynchronously,
|
|
22648
|
+
returns the request thread.
|
|
22649
|
+
"""
|
|
22650
|
+
kwargs['_return_http_data_only'] = True
|
|
22651
|
+
return self.get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get_with_http_info(connection_id, catalog_id, schema_id, table_id, **kwargs) # noqa: E501
|
|
22652
|
+
|
|
22653
|
+
def get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get_with_http_info(self, connection_id, catalog_id, schema_id, table_id, **kwargs): # noqa: E501
|
|
22654
|
+
"""Get Table Metadata # noqa: E501
|
|
22655
|
+
|
|
22656
|
+
Gets detailed metadata for a specific table including columns, properties, and statistics # noqa: E501
|
|
22657
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
22658
|
+
asynchronous HTTP request, please pass async_req=True
|
|
22659
|
+
>>> thread = api.get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get_with_http_info(connection_id, catalog_id, schema_id, table_id, async_req=True)
|
|
22660
|
+
>>> result = thread.get()
|
|
22661
|
+
|
|
22662
|
+
:param async_req bool: execute request asynchronously
|
|
22663
|
+
:param str connection_id: ID of the provider connection (required)
|
|
22664
|
+
:param str catalog_id: ID of the catalog (required)
|
|
22665
|
+
:param str schema_id: ID of the schema (required)
|
|
22666
|
+
:param str table_id: ID of the table (required)
|
|
22667
|
+
:param _return_http_data_only: response data without head status code
|
|
22668
|
+
and headers
|
|
22669
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
22670
|
+
be returned without reading/decoding response
|
|
22671
|
+
data. Default is True.
|
|
22672
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
22673
|
+
number provided, it will be total request
|
|
22674
|
+
timeout. It can also be a pair (tuple) of
|
|
22675
|
+
(connection, read) timeouts.
|
|
22676
|
+
:return: tuple(BackendServerApiProductModelsCatalogClientModelsTableMetadata, status_code(int), headers(HTTPHeaderDict))
|
|
22677
|
+
If the method is called asynchronously,
|
|
22678
|
+
returns the request thread.
|
|
22679
|
+
"""
|
|
22680
|
+
|
|
22681
|
+
local_var_params = locals()
|
|
22682
|
+
|
|
22683
|
+
all_params = [
|
|
22684
|
+
'connection_id',
|
|
22685
|
+
'catalog_id',
|
|
22686
|
+
'schema_id',
|
|
22687
|
+
'table_id'
|
|
22688
|
+
]
|
|
22689
|
+
all_params.extend(
|
|
22690
|
+
[
|
|
22691
|
+
'async_req',
|
|
22692
|
+
'_return_http_data_only',
|
|
22693
|
+
'_preload_content',
|
|
22694
|
+
'_request_timeout'
|
|
22695
|
+
]
|
|
22696
|
+
)
|
|
22697
|
+
|
|
22698
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
22699
|
+
if key not in all_params:
|
|
22700
|
+
raise ApiTypeError(
|
|
22701
|
+
"Got an unexpected keyword argument '%s'"
|
|
22702
|
+
" to method get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get" % key
|
|
22703
|
+
)
|
|
22704
|
+
local_var_params[key] = val
|
|
22705
|
+
del local_var_params['kwargs']
|
|
22706
|
+
# verify the required parameter 'connection_id' is set
|
|
22707
|
+
if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
|
|
22708
|
+
local_var_params['connection_id'] is None): # noqa: E501
|
|
22709
|
+
raise ApiValueError("Missing the required parameter `connection_id` when calling `get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get`") # noqa: E501
|
|
22710
|
+
# verify the required parameter 'catalog_id' is set
|
|
22711
|
+
if self.api_client.client_side_validation and ('catalog_id' not in local_var_params or # noqa: E501
|
|
22712
|
+
local_var_params['catalog_id'] is None): # noqa: E501
|
|
22713
|
+
raise ApiValueError("Missing the required parameter `catalog_id` when calling `get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get`") # noqa: E501
|
|
22714
|
+
# verify the required parameter 'schema_id' is set
|
|
22715
|
+
if self.api_client.client_side_validation and ('schema_id' not in local_var_params or # noqa: E501
|
|
22716
|
+
local_var_params['schema_id'] is None): # noqa: E501
|
|
22717
|
+
raise ApiValueError("Missing the required parameter `schema_id` when calling `get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get`") # noqa: E501
|
|
22718
|
+
# verify the required parameter 'table_id' is set
|
|
22719
|
+
if self.api_client.client_side_validation and ('table_id' not in local_var_params or # noqa: E501
|
|
22720
|
+
local_var_params['table_id'] is None): # noqa: E501
|
|
22721
|
+
raise ApiValueError("Missing the required parameter `table_id` when calling `get_table_metadata_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_metadata_get`") # noqa: E501
|
|
22722
|
+
|
|
22723
|
+
collection_formats = {}
|
|
22724
|
+
|
|
22725
|
+
path_params = {}
|
|
22726
|
+
if 'connection_id' in local_var_params:
|
|
22727
|
+
path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
|
|
22728
|
+
if 'catalog_id' in local_var_params:
|
|
22729
|
+
path_params['catalog_id'] = local_var_params['catalog_id'] # noqa: E501
|
|
22730
|
+
if 'schema_id' in local_var_params:
|
|
22731
|
+
path_params['schema_id'] = local_var_params['schema_id'] # noqa: E501
|
|
22732
|
+
if 'table_id' in local_var_params:
|
|
22733
|
+
path_params['table_id'] = local_var_params['table_id'] # noqa: E501
|
|
22734
|
+
|
|
22735
|
+
query_params = []
|
|
22736
|
+
|
|
22737
|
+
header_params = {}
|
|
22738
|
+
|
|
22739
|
+
form_params = []
|
|
22740
|
+
local_var_files = {}
|
|
22741
|
+
|
|
22742
|
+
body_params = None
|
|
22743
|
+
# HTTP header `Accept`
|
|
22744
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
22745
|
+
['application/json']) # noqa: E501
|
|
22746
|
+
|
|
22747
|
+
# Authentication setting
|
|
22748
|
+
auth_settings = [] # noqa: E501
|
|
22749
|
+
|
|
22750
|
+
return self.api_client.call_api(
|
|
22751
|
+
'/api/v2/data_catalogs/connections/{connection_id}/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/metadata', 'GET',
|
|
22752
|
+
path_params,
|
|
22753
|
+
query_params,
|
|
22754
|
+
header_params,
|
|
22755
|
+
body=body_params,
|
|
22756
|
+
post_params=form_params,
|
|
22757
|
+
files=local_var_files,
|
|
22758
|
+
response_type='BackendServerApiProductModelsCatalogClientModelsTableMetadata', # noqa: E501
|
|
22759
|
+
auth_settings=auth_settings,
|
|
22760
|
+
async_req=local_var_params.get('async_req'),
|
|
22761
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
22762
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
22763
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
22764
|
+
collection_formats=collection_formats)
|
|
22765
|
+
|
|
22766
|
+
def get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get(self, connection_id, catalog_id, schema_id, table_id, allow_warehouse_start, **kwargs): # noqa: E501
|
|
22767
|
+
"""Get Table Preview # noqa: E501
|
|
22768
|
+
|
|
22769
|
+
Gets a preview of data for a specific table with sample rows. Note: Requires a running SQL warehouse. If no warehouse is running, allow_warehouse_start must be true to proceed (will incur compute costs). # noqa: E501
|
|
22770
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
22771
|
+
asynchronous HTTP request, please pass async_req=True
|
|
22772
|
+
>>> thread = api.get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get(connection_id, catalog_id, schema_id, table_id, allow_warehouse_start, async_req=True)
|
|
22773
|
+
>>> result = thread.get()
|
|
22774
|
+
|
|
22775
|
+
:param async_req bool: execute request asynchronously
|
|
22776
|
+
:param str connection_id: ID of the provider connection (required)
|
|
22777
|
+
:param str catalog_id: ID of the catalog (required)
|
|
22778
|
+
:param str schema_id: ID of the schema (required)
|
|
22779
|
+
:param str table_id: ID of the table (required)
|
|
22780
|
+
:param bool allow_warehouse_start: Whether to allow starting a stopped SQL warehouse. Starting a warehouse incurs compute costs. If false and no warehouse is running, the request will fail with an error. See: https://www.databricks.com/product/pricing/databricks-sql (required)
|
|
22781
|
+
:param str version: Version of the table to retrieve
|
|
22782
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
22783
|
+
be returned without reading/decoding response
|
|
22784
|
+
data. Default is True.
|
|
22785
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
22786
|
+
number provided, it will be total request
|
|
22787
|
+
timeout. It can also be a pair (tuple) of
|
|
22788
|
+
(connection, read) timeouts.
|
|
22789
|
+
:return: TableDataPreview
|
|
22790
|
+
If the method is called asynchronously,
|
|
22791
|
+
returns the request thread.
|
|
22792
|
+
"""
|
|
22793
|
+
kwargs['_return_http_data_only'] = True
|
|
22794
|
+
return self.get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get_with_http_info(connection_id, catalog_id, schema_id, table_id, allow_warehouse_start, **kwargs) # noqa: E501
|
|
22795
|
+
|
|
22796
|
+
def get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get_with_http_info(self, connection_id, catalog_id, schema_id, table_id, allow_warehouse_start, **kwargs): # noqa: E501
|
|
22797
|
+
"""Get Table Preview # noqa: E501
|
|
22798
|
+
|
|
22799
|
+
Gets a preview of data for a specific table with sample rows. Note: Requires a running SQL warehouse. If no warehouse is running, allow_warehouse_start must be true to proceed (will incur compute costs). # noqa: E501
|
|
22800
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
22801
|
+
asynchronous HTTP request, please pass async_req=True
|
|
22802
|
+
>>> thread = api.get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get_with_http_info(connection_id, catalog_id, schema_id, table_id, allow_warehouse_start, async_req=True)
|
|
22803
|
+
>>> result = thread.get()
|
|
22804
|
+
|
|
22805
|
+
:param async_req bool: execute request asynchronously
|
|
22806
|
+
:param str connection_id: ID of the provider connection (required)
|
|
22807
|
+
:param str catalog_id: ID of the catalog (required)
|
|
22808
|
+
:param str schema_id: ID of the schema (required)
|
|
22809
|
+
:param str table_id: ID of the table (required)
|
|
22810
|
+
:param bool allow_warehouse_start: Whether to allow starting a stopped SQL warehouse. Starting a warehouse incurs compute costs. If false and no warehouse is running, the request will fail with an error. See: https://www.databricks.com/product/pricing/databricks-sql (required)
|
|
22811
|
+
:param str version: Version of the table to retrieve
|
|
22812
|
+
:param _return_http_data_only: response data without head status code
|
|
22813
|
+
and headers
|
|
22814
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
22815
|
+
be returned without reading/decoding response
|
|
22816
|
+
data. Default is True.
|
|
22817
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
22818
|
+
number provided, it will be total request
|
|
22819
|
+
timeout. It can also be a pair (tuple) of
|
|
22820
|
+
(connection, read) timeouts.
|
|
22821
|
+
:return: tuple(TableDataPreview, status_code(int), headers(HTTPHeaderDict))
|
|
22822
|
+
If the method is called asynchronously,
|
|
22823
|
+
returns the request thread.
|
|
22824
|
+
"""
|
|
22825
|
+
|
|
22826
|
+
local_var_params = locals()
|
|
22827
|
+
|
|
22828
|
+
all_params = [
|
|
22829
|
+
'connection_id',
|
|
22830
|
+
'catalog_id',
|
|
22831
|
+
'schema_id',
|
|
22832
|
+
'table_id',
|
|
22833
|
+
'allow_warehouse_start',
|
|
22834
|
+
'version'
|
|
22835
|
+
]
|
|
22836
|
+
all_params.extend(
|
|
22837
|
+
[
|
|
22838
|
+
'async_req',
|
|
22839
|
+
'_return_http_data_only',
|
|
22840
|
+
'_preload_content',
|
|
22841
|
+
'_request_timeout'
|
|
22842
|
+
]
|
|
22843
|
+
)
|
|
22844
|
+
|
|
22845
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
22846
|
+
if key not in all_params:
|
|
22847
|
+
raise ApiTypeError(
|
|
22848
|
+
"Got an unexpected keyword argument '%s'"
|
|
22849
|
+
" to method get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get" % key
|
|
22850
|
+
)
|
|
22851
|
+
local_var_params[key] = val
|
|
22852
|
+
del local_var_params['kwargs']
|
|
22853
|
+
# verify the required parameter 'connection_id' is set
|
|
22854
|
+
if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
|
|
22855
|
+
local_var_params['connection_id'] is None): # noqa: E501
|
|
22856
|
+
raise ApiValueError("Missing the required parameter `connection_id` when calling `get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get`") # noqa: E501
|
|
22857
|
+
# verify the required parameter 'catalog_id' is set
|
|
22858
|
+
if self.api_client.client_side_validation and ('catalog_id' not in local_var_params or # noqa: E501
|
|
22859
|
+
local_var_params['catalog_id'] is None): # noqa: E501
|
|
22860
|
+
raise ApiValueError("Missing the required parameter `catalog_id` when calling `get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get`") # noqa: E501
|
|
22861
|
+
# verify the required parameter 'schema_id' is set
|
|
22862
|
+
if self.api_client.client_side_validation and ('schema_id' not in local_var_params or # noqa: E501
|
|
22863
|
+
local_var_params['schema_id'] is None): # noqa: E501
|
|
22864
|
+
raise ApiValueError("Missing the required parameter `schema_id` when calling `get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get`") # noqa: E501
|
|
22865
|
+
# verify the required parameter 'table_id' is set
|
|
22866
|
+
if self.api_client.client_side_validation and ('table_id' not in local_var_params or # noqa: E501
|
|
22867
|
+
local_var_params['table_id'] is None): # noqa: E501
|
|
22868
|
+
raise ApiValueError("Missing the required parameter `table_id` when calling `get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get`") # noqa: E501
|
|
22869
|
+
# verify the required parameter 'allow_warehouse_start' is set
|
|
22870
|
+
if self.api_client.client_side_validation and ('allow_warehouse_start' not in local_var_params or # noqa: E501
|
|
22871
|
+
local_var_params['allow_warehouse_start'] is None): # noqa: E501
|
|
22872
|
+
raise ApiValueError("Missing the required parameter `allow_warehouse_start` when calling `get_table_preview_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_table_id_preview_get`") # noqa: E501
|
|
22873
|
+
|
|
22874
|
+
collection_formats = {}
|
|
22875
|
+
|
|
22876
|
+
path_params = {}
|
|
22877
|
+
if 'connection_id' in local_var_params:
|
|
22878
|
+
path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
|
|
22879
|
+
if 'catalog_id' in local_var_params:
|
|
22880
|
+
path_params['catalog_id'] = local_var_params['catalog_id'] # noqa: E501
|
|
22881
|
+
if 'schema_id' in local_var_params:
|
|
22882
|
+
path_params['schema_id'] = local_var_params['schema_id'] # noqa: E501
|
|
22883
|
+
if 'table_id' in local_var_params:
|
|
22884
|
+
path_params['table_id'] = local_var_params['table_id'] # noqa: E501
|
|
22885
|
+
|
|
22886
|
+
query_params = []
|
|
22887
|
+
if 'version' in local_var_params and local_var_params['version'] is not None: # noqa: E501
|
|
22888
|
+
query_params.append(('version', local_var_params['version'])) # noqa: E501
|
|
22889
|
+
if 'allow_warehouse_start' in local_var_params and local_var_params['allow_warehouse_start'] is not None: # noqa: E501
|
|
22890
|
+
query_params.append(('allow_warehouse_start', local_var_params['allow_warehouse_start'])) # noqa: E501
|
|
22891
|
+
|
|
22892
|
+
header_params = {}
|
|
22893
|
+
|
|
22894
|
+
form_params = []
|
|
22895
|
+
local_var_files = {}
|
|
22896
|
+
|
|
22897
|
+
body_params = None
|
|
22898
|
+
# HTTP header `Accept`
|
|
22899
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
22900
|
+
['application/json']) # noqa: E501
|
|
22901
|
+
|
|
22902
|
+
# Authentication setting
|
|
22903
|
+
auth_settings = [] # noqa: E501
|
|
22904
|
+
|
|
22905
|
+
return self.api_client.call_api(
|
|
22906
|
+
'/api/v2/data_catalogs/connections/{connection_id}/catalogs/{catalog_id}/schemas/{schema_id}/tables/{table_id}/preview', 'GET',
|
|
22907
|
+
path_params,
|
|
22908
|
+
query_params,
|
|
22909
|
+
header_params,
|
|
22910
|
+
body=body_params,
|
|
22911
|
+
post_params=form_params,
|
|
22912
|
+
files=local_var_files,
|
|
22913
|
+
response_type='TableDataPreview', # noqa: E501
|
|
22914
|
+
auth_settings=auth_settings,
|
|
22915
|
+
async_req=local_var_params.get('async_req'),
|
|
22916
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
22917
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
22918
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
22919
|
+
collection_formats=collection_formats)
|
|
22920
|
+
|
|
22246
22921
|
def get_tags_for_resource_api_v2_tags_resource_get(self, resource_type, resource_id, **kwargs): # noqa: E501
|
|
22247
22922
|
"""Get Tags For Resource # noqa: E501
|
|
22248
22923
|
|
|
@@ -30242,6 +30917,129 @@ class DefaultApi(object):
|
|
|
30242
30917
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
30243
30918
|
collection_formats=collection_formats)
|
|
30244
30919
|
|
|
30920
|
+
def list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get(self, connection_id, catalog_id, **kwargs): # noqa: E501
|
|
30921
|
+
"""List Schemas In Catalog # noqa: E501
|
|
30922
|
+
|
|
30923
|
+
Lists all schemas within a specific catalog # noqa: E501
|
|
30924
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
30925
|
+
asynchronous HTTP request, please pass async_req=True
|
|
30926
|
+
>>> thread = api.list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get(connection_id, catalog_id, async_req=True)
|
|
30927
|
+
>>> result = thread.get()
|
|
30928
|
+
|
|
30929
|
+
:param async_req bool: execute request asynchronously
|
|
30930
|
+
:param str connection_id: ID of the provider connection (required)
|
|
30931
|
+
:param str catalog_id: ID of the catalog (required)
|
|
30932
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
30933
|
+
be returned without reading/decoding response
|
|
30934
|
+
data. Default is True.
|
|
30935
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
30936
|
+
number provided, it will be total request
|
|
30937
|
+
timeout. It can also be a pair (tuple) of
|
|
30938
|
+
(connection, read) timeouts.
|
|
30939
|
+
:return: DatacatalogschemaListResponse
|
|
30940
|
+
If the method is called asynchronously,
|
|
30941
|
+
returns the request thread.
|
|
30942
|
+
"""
|
|
30943
|
+
kwargs['_return_http_data_only'] = True
|
|
30944
|
+
return self.list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get_with_http_info(connection_id, catalog_id, **kwargs) # noqa: E501
|
|
30945
|
+
|
|
30946
|
+
def list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get_with_http_info(self, connection_id, catalog_id, **kwargs): # noqa: E501
|
|
30947
|
+
"""List Schemas In Catalog # noqa: E501
|
|
30948
|
+
|
|
30949
|
+
Lists all schemas within a specific catalog # noqa: E501
|
|
30950
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
30951
|
+
asynchronous HTTP request, please pass async_req=True
|
|
30952
|
+
>>> thread = api.list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get_with_http_info(connection_id, catalog_id, async_req=True)
|
|
30953
|
+
>>> result = thread.get()
|
|
30954
|
+
|
|
30955
|
+
:param async_req bool: execute request asynchronously
|
|
30956
|
+
:param str connection_id: ID of the provider connection (required)
|
|
30957
|
+
:param str catalog_id: ID of the catalog (required)
|
|
30958
|
+
:param _return_http_data_only: response data without head status code
|
|
30959
|
+
and headers
|
|
30960
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
30961
|
+
be returned without reading/decoding response
|
|
30962
|
+
data. Default is True.
|
|
30963
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
30964
|
+
number provided, it will be total request
|
|
30965
|
+
timeout. It can also be a pair (tuple) of
|
|
30966
|
+
(connection, read) timeouts.
|
|
30967
|
+
:return: tuple(DatacatalogschemaListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
30968
|
+
If the method is called asynchronously,
|
|
30969
|
+
returns the request thread.
|
|
30970
|
+
"""
|
|
30971
|
+
|
|
30972
|
+
local_var_params = locals()
|
|
30973
|
+
|
|
30974
|
+
all_params = [
|
|
30975
|
+
'connection_id',
|
|
30976
|
+
'catalog_id'
|
|
30977
|
+
]
|
|
30978
|
+
all_params.extend(
|
|
30979
|
+
[
|
|
30980
|
+
'async_req',
|
|
30981
|
+
'_return_http_data_only',
|
|
30982
|
+
'_preload_content',
|
|
30983
|
+
'_request_timeout'
|
|
30984
|
+
]
|
|
30985
|
+
)
|
|
30986
|
+
|
|
30987
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
30988
|
+
if key not in all_params:
|
|
30989
|
+
raise ApiTypeError(
|
|
30990
|
+
"Got an unexpected keyword argument '%s'"
|
|
30991
|
+
" to method list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get" % key
|
|
30992
|
+
)
|
|
30993
|
+
local_var_params[key] = val
|
|
30994
|
+
del local_var_params['kwargs']
|
|
30995
|
+
# verify the required parameter 'connection_id' is set
|
|
30996
|
+
if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
|
|
30997
|
+
local_var_params['connection_id'] is None): # noqa: E501
|
|
30998
|
+
raise ApiValueError("Missing the required parameter `connection_id` when calling `list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get`") # noqa: E501
|
|
30999
|
+
# verify the required parameter 'catalog_id' is set
|
|
31000
|
+
if self.api_client.client_side_validation and ('catalog_id' not in local_var_params or # noqa: E501
|
|
31001
|
+
local_var_params['catalog_id'] is None): # noqa: E501
|
|
31002
|
+
raise ApiValueError("Missing the required parameter `catalog_id` when calling `list_schemas_in_catalog_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_get`") # noqa: E501
|
|
31003
|
+
|
|
31004
|
+
collection_formats = {}
|
|
31005
|
+
|
|
31006
|
+
path_params = {}
|
|
31007
|
+
if 'connection_id' in local_var_params:
|
|
31008
|
+
path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
|
|
31009
|
+
if 'catalog_id' in local_var_params:
|
|
31010
|
+
path_params['catalog_id'] = local_var_params['catalog_id'] # noqa: E501
|
|
31011
|
+
|
|
31012
|
+
query_params = []
|
|
31013
|
+
|
|
31014
|
+
header_params = {}
|
|
31015
|
+
|
|
31016
|
+
form_params = []
|
|
31017
|
+
local_var_files = {}
|
|
31018
|
+
|
|
31019
|
+
body_params = None
|
|
31020
|
+
# HTTP header `Accept`
|
|
31021
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
31022
|
+
['application/json']) # noqa: E501
|
|
31023
|
+
|
|
31024
|
+
# Authentication setting
|
|
31025
|
+
auth_settings = [] # noqa: E501
|
|
31026
|
+
|
|
31027
|
+
return self.api_client.call_api(
|
|
31028
|
+
'/api/v2/data_catalogs/connections/{connection_id}/catalogs/{catalog_id}/schemas', 'GET',
|
|
31029
|
+
path_params,
|
|
31030
|
+
query_params,
|
|
31031
|
+
header_params,
|
|
31032
|
+
body=body_params,
|
|
31033
|
+
post_params=form_params,
|
|
31034
|
+
files=local_var_files,
|
|
31035
|
+
response_type='DatacatalogschemaListResponse', # noqa: E501
|
|
31036
|
+
auth_settings=auth_settings,
|
|
31037
|
+
async_req=local_var_params.get('async_req'),
|
|
31038
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
31039
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
31040
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
31041
|
+
collection_formats=collection_formats)
|
|
31042
|
+
|
|
30245
31043
|
def list_services_api_v2_services_v2_get(self, **kwargs): # noqa: E501
|
|
30246
31044
|
"""List Services # noqa: E501
|
|
30247
31045
|
|
|
@@ -30561,6 +31359,138 @@ class DefaultApi(object):
|
|
|
30561
31359
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
30562
31360
|
collection_formats=collection_formats)
|
|
30563
31361
|
|
|
31362
|
+
def list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get(self, connection_id, catalog_id, schema_id, **kwargs): # noqa: E501
|
|
31363
|
+
"""List Tables In Schema # noqa: E501
|
|
31364
|
+
|
|
31365
|
+
Lists all tables within a specific schema # noqa: E501
|
|
31366
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
31367
|
+
asynchronous HTTP request, please pass async_req=True
|
|
31368
|
+
>>> thread = api.list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get(connection_id, catalog_id, schema_id, async_req=True)
|
|
31369
|
+
>>> result = thread.get()
|
|
31370
|
+
|
|
31371
|
+
:param async_req bool: execute request asynchronously
|
|
31372
|
+
:param str connection_id: ID of the provider connection (required)
|
|
31373
|
+
:param str catalog_id: ID of the catalog (required)
|
|
31374
|
+
:param str schema_id: ID of the schema (required)
|
|
31375
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
31376
|
+
be returned without reading/decoding response
|
|
31377
|
+
data. Default is True.
|
|
31378
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
31379
|
+
number provided, it will be total request
|
|
31380
|
+
timeout. It can also be a pair (tuple) of
|
|
31381
|
+
(connection, read) timeouts.
|
|
31382
|
+
:return: DatacatalogtableListResponse
|
|
31383
|
+
If the method is called asynchronously,
|
|
31384
|
+
returns the request thread.
|
|
31385
|
+
"""
|
|
31386
|
+
kwargs['_return_http_data_only'] = True
|
|
31387
|
+
return self.list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get_with_http_info(connection_id, catalog_id, schema_id, **kwargs) # noqa: E501
|
|
31388
|
+
|
|
31389
|
+
def list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get_with_http_info(self, connection_id, catalog_id, schema_id, **kwargs): # noqa: E501
|
|
31390
|
+
"""List Tables In Schema # noqa: E501
|
|
31391
|
+
|
|
31392
|
+
Lists all tables within a specific schema # noqa: E501
|
|
31393
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
31394
|
+
asynchronous HTTP request, please pass async_req=True
|
|
31395
|
+
>>> thread = api.list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get_with_http_info(connection_id, catalog_id, schema_id, async_req=True)
|
|
31396
|
+
>>> result = thread.get()
|
|
31397
|
+
|
|
31398
|
+
:param async_req bool: execute request asynchronously
|
|
31399
|
+
:param str connection_id: ID of the provider connection (required)
|
|
31400
|
+
:param str catalog_id: ID of the catalog (required)
|
|
31401
|
+
:param str schema_id: ID of the schema (required)
|
|
31402
|
+
:param _return_http_data_only: response data without head status code
|
|
31403
|
+
and headers
|
|
31404
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
31405
|
+
be returned without reading/decoding response
|
|
31406
|
+
data. Default is True.
|
|
31407
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
31408
|
+
number provided, it will be total request
|
|
31409
|
+
timeout. It can also be a pair (tuple) of
|
|
31410
|
+
(connection, read) timeouts.
|
|
31411
|
+
:return: tuple(DatacatalogtableListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
31412
|
+
If the method is called asynchronously,
|
|
31413
|
+
returns the request thread.
|
|
31414
|
+
"""
|
|
31415
|
+
|
|
31416
|
+
local_var_params = locals()
|
|
31417
|
+
|
|
31418
|
+
all_params = [
|
|
31419
|
+
'connection_id',
|
|
31420
|
+
'catalog_id',
|
|
31421
|
+
'schema_id'
|
|
31422
|
+
]
|
|
31423
|
+
all_params.extend(
|
|
31424
|
+
[
|
|
31425
|
+
'async_req',
|
|
31426
|
+
'_return_http_data_only',
|
|
31427
|
+
'_preload_content',
|
|
31428
|
+
'_request_timeout'
|
|
31429
|
+
]
|
|
31430
|
+
)
|
|
31431
|
+
|
|
31432
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
31433
|
+
if key not in all_params:
|
|
31434
|
+
raise ApiTypeError(
|
|
31435
|
+
"Got an unexpected keyword argument '%s'"
|
|
31436
|
+
" to method list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get" % key
|
|
31437
|
+
)
|
|
31438
|
+
local_var_params[key] = val
|
|
31439
|
+
del local_var_params['kwargs']
|
|
31440
|
+
# verify the required parameter 'connection_id' is set
|
|
31441
|
+
if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
|
|
31442
|
+
local_var_params['connection_id'] is None): # noqa: E501
|
|
31443
|
+
raise ApiValueError("Missing the required parameter `connection_id` when calling `list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get`") # noqa: E501
|
|
31444
|
+
# verify the required parameter 'catalog_id' is set
|
|
31445
|
+
if self.api_client.client_side_validation and ('catalog_id' not in local_var_params or # noqa: E501
|
|
31446
|
+
local_var_params['catalog_id'] is None): # noqa: E501
|
|
31447
|
+
raise ApiValueError("Missing the required parameter `catalog_id` when calling `list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get`") # noqa: E501
|
|
31448
|
+
# verify the required parameter 'schema_id' is set
|
|
31449
|
+
if self.api_client.client_side_validation and ('schema_id' not in local_var_params or # noqa: E501
|
|
31450
|
+
local_var_params['schema_id'] is None): # noqa: E501
|
|
31451
|
+
raise ApiValueError("Missing the required parameter `schema_id` when calling `list_tables_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_tables_get`") # noqa: E501
|
|
31452
|
+
|
|
31453
|
+
collection_formats = {}
|
|
31454
|
+
|
|
31455
|
+
path_params = {}
|
|
31456
|
+
if 'connection_id' in local_var_params:
|
|
31457
|
+
path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
|
|
31458
|
+
if 'catalog_id' in local_var_params:
|
|
31459
|
+
path_params['catalog_id'] = local_var_params['catalog_id'] # noqa: E501
|
|
31460
|
+
if 'schema_id' in local_var_params:
|
|
31461
|
+
path_params['schema_id'] = local_var_params['schema_id'] # noqa: E501
|
|
31462
|
+
|
|
31463
|
+
query_params = []
|
|
31464
|
+
|
|
31465
|
+
header_params = {}
|
|
31466
|
+
|
|
31467
|
+
form_params = []
|
|
31468
|
+
local_var_files = {}
|
|
31469
|
+
|
|
31470
|
+
body_params = None
|
|
31471
|
+
# HTTP header `Accept`
|
|
31472
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
31473
|
+
['application/json']) # noqa: E501
|
|
31474
|
+
|
|
31475
|
+
# Authentication setting
|
|
31476
|
+
auth_settings = [] # noqa: E501
|
|
31477
|
+
|
|
31478
|
+
return self.api_client.call_api(
|
|
31479
|
+
'/api/v2/data_catalogs/connections/{connection_id}/catalogs/{catalog_id}/schemas/{schema_id}/tables', 'GET',
|
|
31480
|
+
path_params,
|
|
31481
|
+
query_params,
|
|
31482
|
+
header_params,
|
|
31483
|
+
body=body_params,
|
|
31484
|
+
post_params=form_params,
|
|
31485
|
+
files=local_var_files,
|
|
31486
|
+
response_type='DatacatalogtableListResponse', # noqa: E501
|
|
31487
|
+
auth_settings=auth_settings,
|
|
31488
|
+
async_req=local_var_params.get('async_req'),
|
|
31489
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
31490
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
31491
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
31492
|
+
collection_formats=collection_formats)
|
|
31493
|
+
|
|
30564
31494
|
def list_template_versions_api_v2_workspace_templates_template_id_versions_get(self, template_id, **kwargs): # noqa: E501
|
|
30565
31495
|
"""List Template Versions # noqa: E501
|
|
30566
31496
|
|
|
@@ -30980,6 +31910,138 @@ class DefaultApi(object):
|
|
|
30980
31910
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
30981
31911
|
collection_formats=collection_formats)
|
|
30982
31912
|
|
|
31913
|
+
def list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get(self, connection_id, catalog_id, schema_id, **kwargs): # noqa: E501
|
|
31914
|
+
"""List Volumes In Schema # noqa: E501
|
|
31915
|
+
|
|
31916
|
+
Lists all volumes within a specific schema # noqa: E501
|
|
31917
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
31918
|
+
asynchronous HTTP request, please pass async_req=True
|
|
31919
|
+
>>> thread = api.list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get(connection_id, catalog_id, schema_id, async_req=True)
|
|
31920
|
+
>>> result = thread.get()
|
|
31921
|
+
|
|
31922
|
+
:param async_req bool: execute request asynchronously
|
|
31923
|
+
:param str connection_id: ID of the provider connection (required)
|
|
31924
|
+
:param str catalog_id: ID of the catalog (required)
|
|
31925
|
+
:param str schema_id: ID of the schema (required)
|
|
31926
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
31927
|
+
be returned without reading/decoding response
|
|
31928
|
+
data. Default is True.
|
|
31929
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
31930
|
+
number provided, it will be total request
|
|
31931
|
+
timeout. It can also be a pair (tuple) of
|
|
31932
|
+
(connection, read) timeouts.
|
|
31933
|
+
:return: DatacatalogvolumeListResponse
|
|
31934
|
+
If the method is called asynchronously,
|
|
31935
|
+
returns the request thread.
|
|
31936
|
+
"""
|
|
31937
|
+
kwargs['_return_http_data_only'] = True
|
|
31938
|
+
return self.list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get_with_http_info(connection_id, catalog_id, schema_id, **kwargs) # noqa: E501
|
|
31939
|
+
|
|
31940
|
+
def list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get_with_http_info(self, connection_id, catalog_id, schema_id, **kwargs): # noqa: E501
|
|
31941
|
+
"""List Volumes In Schema # noqa: E501
|
|
31942
|
+
|
|
31943
|
+
Lists all volumes within a specific schema # noqa: E501
|
|
31944
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
31945
|
+
asynchronous HTTP request, please pass async_req=True
|
|
31946
|
+
>>> thread = api.list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get_with_http_info(connection_id, catalog_id, schema_id, async_req=True)
|
|
31947
|
+
>>> result = thread.get()
|
|
31948
|
+
|
|
31949
|
+
:param async_req bool: execute request asynchronously
|
|
31950
|
+
:param str connection_id: ID of the provider connection (required)
|
|
31951
|
+
:param str catalog_id: ID of the catalog (required)
|
|
31952
|
+
:param str schema_id: ID of the schema (required)
|
|
31953
|
+
:param _return_http_data_only: response data without head status code
|
|
31954
|
+
and headers
|
|
31955
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
31956
|
+
be returned without reading/decoding response
|
|
31957
|
+
data. Default is True.
|
|
31958
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
31959
|
+
number provided, it will be total request
|
|
31960
|
+
timeout. It can also be a pair (tuple) of
|
|
31961
|
+
(connection, read) timeouts.
|
|
31962
|
+
:return: tuple(DatacatalogvolumeListResponse, status_code(int), headers(HTTPHeaderDict))
|
|
31963
|
+
If the method is called asynchronously,
|
|
31964
|
+
returns the request thread.
|
|
31965
|
+
"""
|
|
31966
|
+
|
|
31967
|
+
local_var_params = locals()
|
|
31968
|
+
|
|
31969
|
+
all_params = [
|
|
31970
|
+
'connection_id',
|
|
31971
|
+
'catalog_id',
|
|
31972
|
+
'schema_id'
|
|
31973
|
+
]
|
|
31974
|
+
all_params.extend(
|
|
31975
|
+
[
|
|
31976
|
+
'async_req',
|
|
31977
|
+
'_return_http_data_only',
|
|
31978
|
+
'_preload_content',
|
|
31979
|
+
'_request_timeout'
|
|
31980
|
+
]
|
|
31981
|
+
)
|
|
31982
|
+
|
|
31983
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
31984
|
+
if key not in all_params:
|
|
31985
|
+
raise ApiTypeError(
|
|
31986
|
+
"Got an unexpected keyword argument '%s'"
|
|
31987
|
+
" to method list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get" % key
|
|
31988
|
+
)
|
|
31989
|
+
local_var_params[key] = val
|
|
31990
|
+
del local_var_params['kwargs']
|
|
31991
|
+
# verify the required parameter 'connection_id' is set
|
|
31992
|
+
if self.api_client.client_side_validation and ('connection_id' not in local_var_params or # noqa: E501
|
|
31993
|
+
local_var_params['connection_id'] is None): # noqa: E501
|
|
31994
|
+
raise ApiValueError("Missing the required parameter `connection_id` when calling `list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get`") # noqa: E501
|
|
31995
|
+
# verify the required parameter 'catalog_id' is set
|
|
31996
|
+
if self.api_client.client_side_validation and ('catalog_id' not in local_var_params or # noqa: E501
|
|
31997
|
+
local_var_params['catalog_id'] is None): # noqa: E501
|
|
31998
|
+
raise ApiValueError("Missing the required parameter `catalog_id` when calling `list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get`") # noqa: E501
|
|
31999
|
+
# verify the required parameter 'schema_id' is set
|
|
32000
|
+
if self.api_client.client_side_validation and ('schema_id' not in local_var_params or # noqa: E501
|
|
32001
|
+
local_var_params['schema_id'] is None): # noqa: E501
|
|
32002
|
+
raise ApiValueError("Missing the required parameter `schema_id` when calling `list_volumes_in_schema_api_v2_data_catalogs_connections_connection_id_catalogs_catalog_id_schemas_schema_id_volumes_get`") # noqa: E501
|
|
32003
|
+
|
|
32004
|
+
collection_formats = {}
|
|
32005
|
+
|
|
32006
|
+
path_params = {}
|
|
32007
|
+
if 'connection_id' in local_var_params:
|
|
32008
|
+
path_params['connection_id'] = local_var_params['connection_id'] # noqa: E501
|
|
32009
|
+
if 'catalog_id' in local_var_params:
|
|
32010
|
+
path_params['catalog_id'] = local_var_params['catalog_id'] # noqa: E501
|
|
32011
|
+
if 'schema_id' in local_var_params:
|
|
32012
|
+
path_params['schema_id'] = local_var_params['schema_id'] # noqa: E501
|
|
32013
|
+
|
|
32014
|
+
query_params = []
|
|
32015
|
+
|
|
32016
|
+
header_params = {}
|
|
32017
|
+
|
|
32018
|
+
form_params = []
|
|
32019
|
+
local_var_files = {}
|
|
32020
|
+
|
|
32021
|
+
body_params = None
|
|
32022
|
+
# HTTP header `Accept`
|
|
32023
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
32024
|
+
['application/json']) # noqa: E501
|
|
32025
|
+
|
|
32026
|
+
# Authentication setting
|
|
32027
|
+
auth_settings = [] # noqa: E501
|
|
32028
|
+
|
|
32029
|
+
return self.api_client.call_api(
|
|
32030
|
+
'/api/v2/data_catalogs/connections/{connection_id}/catalogs/{catalog_id}/schemas/{schema_id}/volumes', 'GET',
|
|
32031
|
+
path_params,
|
|
32032
|
+
query_params,
|
|
32033
|
+
header_params,
|
|
32034
|
+
body=body_params,
|
|
32035
|
+
post_params=form_params,
|
|
32036
|
+
files=local_var_files,
|
|
32037
|
+
response_type='DatacatalogvolumeListResponse', # noqa: E501
|
|
32038
|
+
auth_settings=auth_settings,
|
|
32039
|
+
async_req=local_var_params.get('async_req'),
|
|
32040
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
32041
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
32042
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
32043
|
+
collection_formats=collection_formats)
|
|
32044
|
+
|
|
30983
32045
|
def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
|
|
30984
32046
|
"""List Workspace Templates # noqa: E501
|
|
30985
32047
|
|
|
@@ -39383,6 +40445,120 @@ class DefaultApi(object):
|
|
|
39383
40445
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
39384
40446
|
collection_formats=collection_formats)
|
|
39385
40447
|
|
|
40448
|
+
def unpublish_template_api_v2_workspace_templates_template_id_unpublish_post(self, template_id, **kwargs): # noqa: E501
|
|
40449
|
+
"""Unpublish Template # noqa: E501
|
|
40450
|
+
|
|
40451
|
+
Unpublish a template # noqa: E501
|
|
40452
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40453
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40454
|
+
>>> thread = api.unpublish_template_api_v2_workspace_templates_template_id_unpublish_post(template_id, async_req=True)
|
|
40455
|
+
>>> result = thread.get()
|
|
40456
|
+
|
|
40457
|
+
:param async_req bool: execute request asynchronously
|
|
40458
|
+
:param str template_id: (required)
|
|
40459
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
40460
|
+
be returned without reading/decoding response
|
|
40461
|
+
data. Default is True.
|
|
40462
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
40463
|
+
number provided, it will be total request
|
|
40464
|
+
timeout. It can also be a pair (tuple) of
|
|
40465
|
+
(connection, read) timeouts.
|
|
40466
|
+
:return: object
|
|
40467
|
+
If the method is called asynchronously,
|
|
40468
|
+
returns the request thread.
|
|
40469
|
+
"""
|
|
40470
|
+
kwargs['_return_http_data_only'] = True
|
|
40471
|
+
return self.unpublish_template_api_v2_workspace_templates_template_id_unpublish_post_with_http_info(template_id, **kwargs) # noqa: E501
|
|
40472
|
+
|
|
40473
|
+
def unpublish_template_api_v2_workspace_templates_template_id_unpublish_post_with_http_info(self, template_id, **kwargs): # noqa: E501
|
|
40474
|
+
"""Unpublish Template # noqa: E501
|
|
40475
|
+
|
|
40476
|
+
Unpublish a template # noqa: E501
|
|
40477
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40478
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40479
|
+
>>> thread = api.unpublish_template_api_v2_workspace_templates_template_id_unpublish_post_with_http_info(template_id, async_req=True)
|
|
40480
|
+
>>> result = thread.get()
|
|
40481
|
+
|
|
40482
|
+
:param async_req bool: execute request asynchronously
|
|
40483
|
+
:param str template_id: (required)
|
|
40484
|
+
:param _return_http_data_only: response data without head status code
|
|
40485
|
+
and headers
|
|
40486
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
40487
|
+
be returned without reading/decoding response
|
|
40488
|
+
data. Default is True.
|
|
40489
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
40490
|
+
number provided, it will be total request
|
|
40491
|
+
timeout. It can also be a pair (tuple) of
|
|
40492
|
+
(connection, read) timeouts.
|
|
40493
|
+
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
|
|
40494
|
+
If the method is called asynchronously,
|
|
40495
|
+
returns the request thread.
|
|
40496
|
+
"""
|
|
40497
|
+
|
|
40498
|
+
local_var_params = locals()
|
|
40499
|
+
|
|
40500
|
+
all_params = [
|
|
40501
|
+
'template_id'
|
|
40502
|
+
]
|
|
40503
|
+
all_params.extend(
|
|
40504
|
+
[
|
|
40505
|
+
'async_req',
|
|
40506
|
+
'_return_http_data_only',
|
|
40507
|
+
'_preload_content',
|
|
40508
|
+
'_request_timeout'
|
|
40509
|
+
]
|
|
40510
|
+
)
|
|
40511
|
+
|
|
40512
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
40513
|
+
if key not in all_params:
|
|
40514
|
+
raise ApiTypeError(
|
|
40515
|
+
"Got an unexpected keyword argument '%s'"
|
|
40516
|
+
" to method unpublish_template_api_v2_workspace_templates_template_id_unpublish_post" % key
|
|
40517
|
+
)
|
|
40518
|
+
local_var_params[key] = val
|
|
40519
|
+
del local_var_params['kwargs']
|
|
40520
|
+
# verify the required parameter 'template_id' is set
|
|
40521
|
+
if self.api_client.client_side_validation and ('template_id' not in local_var_params or # noqa: E501
|
|
40522
|
+
local_var_params['template_id'] is None): # noqa: E501
|
|
40523
|
+
raise ApiValueError("Missing the required parameter `template_id` when calling `unpublish_template_api_v2_workspace_templates_template_id_unpublish_post`") # noqa: E501
|
|
40524
|
+
|
|
40525
|
+
collection_formats = {}
|
|
40526
|
+
|
|
40527
|
+
path_params = {}
|
|
40528
|
+
if 'template_id' in local_var_params:
|
|
40529
|
+
path_params['template_id'] = local_var_params['template_id'] # noqa: E501
|
|
40530
|
+
|
|
40531
|
+
query_params = []
|
|
40532
|
+
|
|
40533
|
+
header_params = {}
|
|
40534
|
+
|
|
40535
|
+
form_params = []
|
|
40536
|
+
local_var_files = {}
|
|
40537
|
+
|
|
40538
|
+
body_params = None
|
|
40539
|
+
# HTTP header `Accept`
|
|
40540
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
40541
|
+
['application/json']) # noqa: E501
|
|
40542
|
+
|
|
40543
|
+
# Authentication setting
|
|
40544
|
+
auth_settings = [] # noqa: E501
|
|
40545
|
+
|
|
40546
|
+
return self.api_client.call_api(
|
|
40547
|
+
'/api/v2/workspace_templates/{template_id}/unpublish', 'POST',
|
|
40548
|
+
path_params,
|
|
40549
|
+
query_params,
|
|
40550
|
+
header_params,
|
|
40551
|
+
body=body_params,
|
|
40552
|
+
post_params=form_params,
|
|
40553
|
+
files=local_var_files,
|
|
40554
|
+
response_type='object', # noqa: E501
|
|
40555
|
+
auth_settings=auth_settings,
|
|
40556
|
+
async_req=local_var_params.get('async_req'),
|
|
40557
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
40558
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
40559
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
40560
|
+
collection_formats=collection_formats)
|
|
40561
|
+
|
|
39386
40562
|
def update_cloud_auto_add_user_api_v2_clouds_cloud_id_auto_add_user_put(self, cloud_id, auto_add_user, **kwargs): # noqa: E501
|
|
39387
40563
|
"""Update Cloud Auto Add User # noqa: E501
|
|
39388
40564
|
|
|
@@ -41467,6 +42643,133 @@ class DefaultApi(object):
|
|
|
41467
42643
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
41468
42644
|
collection_formats=collection_formats)
|
|
41469
42645
|
|
|
42646
|
+
def upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put(self, service_id, apply_multi_version_update_weights_update_model, **kwargs): # noqa: E501
|
|
42647
|
+
"""Upgrade Multi Version Weights # noqa: E501
|
|
42648
|
+
|
|
42649
|
+
Upgrade the weights of multiple service versions # noqa: E501
|
|
42650
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
42651
|
+
asynchronous HTTP request, please pass async_req=True
|
|
42652
|
+
>>> thread = api.upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put(service_id, apply_multi_version_update_weights_update_model, async_req=True)
|
|
42653
|
+
>>> result = thread.get()
|
|
42654
|
+
|
|
42655
|
+
:param async_req bool: execute request asynchronously
|
|
42656
|
+
:param str service_id: (required)
|
|
42657
|
+
:param ApplyMultiVersionUpdateWeightsUpdateModel apply_multi_version_update_weights_update_model: (required)
|
|
42658
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
42659
|
+
be returned without reading/decoding response
|
|
42660
|
+
data. Default is True.
|
|
42661
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
42662
|
+
number provided, it will be total request
|
|
42663
|
+
timeout. It can also be a pair (tuple) of
|
|
42664
|
+
(connection, read) timeouts.
|
|
42665
|
+
:return: Decoratedproductionservicev2ApimodelResponse
|
|
42666
|
+
If the method is called asynchronously,
|
|
42667
|
+
returns the request thread.
|
|
42668
|
+
"""
|
|
42669
|
+
kwargs['_return_http_data_only'] = True
|
|
42670
|
+
return self.upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put_with_http_info(service_id, apply_multi_version_update_weights_update_model, **kwargs) # noqa: E501
|
|
42671
|
+
|
|
42672
|
+
def upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put_with_http_info(self, service_id, apply_multi_version_update_weights_update_model, **kwargs): # noqa: E501
|
|
42673
|
+
"""Upgrade Multi Version Weights # noqa: E501
|
|
42674
|
+
|
|
42675
|
+
Upgrade the weights of multiple service versions # noqa: E501
|
|
42676
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
42677
|
+
asynchronous HTTP request, please pass async_req=True
|
|
42678
|
+
>>> thread = api.upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put_with_http_info(service_id, apply_multi_version_update_weights_update_model, async_req=True)
|
|
42679
|
+
>>> result = thread.get()
|
|
42680
|
+
|
|
42681
|
+
:param async_req bool: execute request asynchronously
|
|
42682
|
+
:param str service_id: (required)
|
|
42683
|
+
:param ApplyMultiVersionUpdateWeightsUpdateModel apply_multi_version_update_weights_update_model: (required)
|
|
42684
|
+
:param _return_http_data_only: response data without head status code
|
|
42685
|
+
and headers
|
|
42686
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
42687
|
+
be returned without reading/decoding response
|
|
42688
|
+
data. Default is True.
|
|
42689
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
42690
|
+
number provided, it will be total request
|
|
42691
|
+
timeout. It can also be a pair (tuple) of
|
|
42692
|
+
(connection, read) timeouts.
|
|
42693
|
+
:return: tuple(Decoratedproductionservicev2ApimodelResponse, status_code(int), headers(HTTPHeaderDict))
|
|
42694
|
+
If the method is called asynchronously,
|
|
42695
|
+
returns the request thread.
|
|
42696
|
+
"""
|
|
42697
|
+
|
|
42698
|
+
local_var_params = locals()
|
|
42699
|
+
|
|
42700
|
+
all_params = [
|
|
42701
|
+
'service_id',
|
|
42702
|
+
'apply_multi_version_update_weights_update_model'
|
|
42703
|
+
]
|
|
42704
|
+
all_params.extend(
|
|
42705
|
+
[
|
|
42706
|
+
'async_req',
|
|
42707
|
+
'_return_http_data_only',
|
|
42708
|
+
'_preload_content',
|
|
42709
|
+
'_request_timeout'
|
|
42710
|
+
]
|
|
42711
|
+
)
|
|
42712
|
+
|
|
42713
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
42714
|
+
if key not in all_params:
|
|
42715
|
+
raise ApiTypeError(
|
|
42716
|
+
"Got an unexpected keyword argument '%s'"
|
|
42717
|
+
" to method upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put" % key
|
|
42718
|
+
)
|
|
42719
|
+
local_var_params[key] = val
|
|
42720
|
+
del local_var_params['kwargs']
|
|
42721
|
+
# verify the required parameter 'service_id' is set
|
|
42722
|
+
if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
|
|
42723
|
+
local_var_params['service_id'] is None): # noqa: E501
|
|
42724
|
+
raise ApiValueError("Missing the required parameter `service_id` when calling `upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put`") # noqa: E501
|
|
42725
|
+
# verify the required parameter 'apply_multi_version_update_weights_update_model' is set
|
|
42726
|
+
if self.api_client.client_side_validation and ('apply_multi_version_update_weights_update_model' not in local_var_params or # noqa: E501
|
|
42727
|
+
local_var_params['apply_multi_version_update_weights_update_model'] is None): # noqa: E501
|
|
42728
|
+
raise ApiValueError("Missing the required parameter `apply_multi_version_update_weights_update_model` when calling `upgrade_multi_version_weights_api_v2_services_v2_service_id_update_weights_put`") # noqa: E501
|
|
42729
|
+
|
|
42730
|
+
collection_formats = {}
|
|
42731
|
+
|
|
42732
|
+
path_params = {}
|
|
42733
|
+
if 'service_id' in local_var_params:
|
|
42734
|
+
path_params['service_id'] = local_var_params['service_id'] # noqa: E501
|
|
42735
|
+
|
|
42736
|
+
query_params = []
|
|
42737
|
+
|
|
42738
|
+
header_params = {}
|
|
42739
|
+
|
|
42740
|
+
form_params = []
|
|
42741
|
+
local_var_files = {}
|
|
42742
|
+
|
|
42743
|
+
body_params = None
|
|
42744
|
+
if 'apply_multi_version_update_weights_update_model' in local_var_params:
|
|
42745
|
+
body_params = local_var_params['apply_multi_version_update_weights_update_model']
|
|
42746
|
+
# HTTP header `Accept`
|
|
42747
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
42748
|
+
['application/json']) # noqa: E501
|
|
42749
|
+
|
|
42750
|
+
# HTTP header `Content-Type`
|
|
42751
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
42752
|
+
['application/json']) # noqa: E501
|
|
42753
|
+
|
|
42754
|
+
# Authentication setting
|
|
42755
|
+
auth_settings = [] # noqa: E501
|
|
42756
|
+
|
|
42757
|
+
return self.api_client.call_api(
|
|
42758
|
+
'/api/v2/services-v2/{service_id}/update_weights', 'PUT',
|
|
42759
|
+
path_params,
|
|
42760
|
+
query_params,
|
|
42761
|
+
header_params,
|
|
42762
|
+
body=body_params,
|
|
42763
|
+
post_params=form_params,
|
|
42764
|
+
files=local_var_files,
|
|
42765
|
+
response_type='Decoratedproductionservicev2ApimodelResponse', # noqa: E501
|
|
42766
|
+
auth_settings=auth_settings,
|
|
42767
|
+
async_req=local_var_params.get('async_req'),
|
|
42768
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
42769
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
42770
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
42771
|
+
collection_formats=collection_formats)
|
|
42772
|
+
|
|
41470
42773
|
def upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post(self, session_command_id, **kwargs): # noqa: E501
|
|
41471
42774
|
"""Upload Session Command Logs # noqa: E501
|
|
41472
42775
|
|