anyscale 0.26.69__py3-none-any.whl → 0.26.71__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 (113) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +126 -3
  2. anyscale/_private/anyscale_client/common.py +51 -2
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +103 -11
  4. anyscale/client/README.md +43 -4
  5. anyscale/client/openapi_client/__init__.py +30 -4
  6. anyscale/client/openapi_client/api/default_api.py +1769 -27
  7. anyscale/client/openapi_client/models/__init__.py +30 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_multi_version_update_weights_update_model.py +152 -0
  11. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  12. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  13. anyscale/client/openapi_client/models/apply_version_weight_update_model.py +181 -0
  14. anyscale/client/openapi_client/models/backend_server_api_product_models_catalog_client_models_table_metadata.py +546 -0
  15. anyscale/client/openapi_client/models/backend_server_api_product_models_data_catalogs_table_metadata.py +178 -0
  16. anyscale/client/openapi_client/models/baseimagesenum.py +139 -1
  17. anyscale/client/openapi_client/models/catalog_metadata.py +150 -0
  18. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  19. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  20. anyscale/client/openapi_client/models/column_info.py +265 -0
  21. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  22. anyscale/client/openapi_client/models/connection_metadata.py +206 -0
  23. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  24. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  25. anyscale/client/openapi_client/models/create_workspace_template_version.py +59 -3
  26. anyscale/client/openapi_client/models/data_catalog.py +45 -31
  27. anyscale/client/openapi_client/models/data_catalog_connection.py +74 -58
  28. anyscale/client/openapi_client/models/{ha_job_event_level.py → data_catalog_object_type.py} +7 -8
  29. anyscale/client/openapi_client/models/data_catalog_schema.py +324 -0
  30. anyscale/client/openapi_client/models/data_catalog_table.py +437 -0
  31. anyscale/client/openapi_client/models/data_catalog_volume.py +437 -0
  32. anyscale/client/openapi_client/models/datacatalogschema_list_response.py +147 -0
  33. anyscale/client/openapi_client/models/datacatalogtable_list_response.py +147 -0
  34. anyscale/client/openapi_client/models/datacatalogvolume_list_response.py +147 -0
  35. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  36. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  37. anyscale/client/openapi_client/models/decorated_serve_deployment.py +27 -1
  38. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  39. anyscale/client/openapi_client/models/decoratedproductionservicev2_versionapimodel_response.py +121 -0
  40. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  41. anyscale/client/openapi_client/models/describe_machine_pool_requests_filters.py +33 -5
  42. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  43. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  44. anyscale/client/openapi_client/models/event_level.py +2 -1
  45. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  46. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  47. anyscale/client/openapi_client/models/partition_info.py +30 -1
  48. anyscale/client/openapi_client/models/physical_resources.py +178 -0
  49. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  50. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  51. anyscale/client/openapi_client/models/schema_metadata.py +150 -0
  52. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  53. anyscale/client/openapi_client/models/sso_config.py +18 -18
  54. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +139 -1
  55. anyscale/client/openapi_client/models/table_data_preview.py +209 -0
  56. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  57. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  58. anyscale/client/openapi_client/models/unified_event.py +377 -0
  59. anyscale/client/openapi_client/models/unified_origin_filter.py +113 -0
  60. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  61. anyscale/client/openapi_client/models/volume_metadata.py +150 -0
  62. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  63. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  64. anyscale/client/openapi_client/models/workspace_template_version.py +58 -1
  65. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +58 -1
  66. anyscale/cloud/models.py +2 -2
  67. anyscale/commands/cloud_commands.py +133 -2
  68. anyscale/commands/job_commands.py +121 -1
  69. anyscale/commands/job_queue_commands.py +99 -2
  70. anyscale/commands/service_commands.py +267 -67
  71. anyscale/commands/setup_k8s.py +546 -31
  72. anyscale/commands/util.py +104 -1
  73. anyscale/commands/workspace_commands.py +123 -5
  74. anyscale/commands/workspace_commands_v2.py +17 -1
  75. anyscale/compute_config/_private/compute_config_sdk.py +25 -12
  76. anyscale/compute_config/models.py +15 -0
  77. anyscale/controllers/cloud_controller.py +15 -2
  78. anyscale/controllers/job_controller.py +12 -0
  79. anyscale/controllers/kubernetes_verifier.py +80 -66
  80. anyscale/controllers/workspace_controller.py +67 -5
  81. anyscale/job/_private/job_sdk.py +50 -2
  82. anyscale/job/commands.py +3 -0
  83. anyscale/job/models.py +16 -0
  84. anyscale/job_queue/__init__.py +37 -1
  85. anyscale/job_queue/_private/job_queue_sdk.py +28 -1
  86. anyscale/job_queue/commands.py +61 -1
  87. anyscale/sdk/anyscale_client/__init__.py +1 -0
  88. anyscale/sdk/anyscale_client/api/default_api.py +12 -2
  89. anyscale/sdk/anyscale_client/models/__init__.py +1 -0
  90. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  91. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  92. anyscale/sdk/anyscale_client/models/baseimagesenum.py +139 -1
  93. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  94. anyscale/sdk/anyscale_client/models/physical_resources.py +178 -0
  95. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  96. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +139 -1
  97. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  98. anyscale/service/__init__.py +51 -3
  99. anyscale/service/_private/service_sdk.py +481 -58
  100. anyscale/service/commands.py +90 -4
  101. anyscale/service/models.py +56 -0
  102. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  103. anyscale/version.py +1 -1
  104. anyscale/workspace/_private/workspace_sdk.py +1 -0
  105. anyscale/workspace/models.py +19 -0
  106. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/METADATA +1 -1
  107. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/RECORD +112 -85
  108. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  109. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/WHEEL +0 -0
  110. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/entry_points.txt +0 -0
  111. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/LICENSE +0 -0
  112. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/licenses/NOTICE +0 -0
  113. {anyscale-0.26.69.dist-info → anyscale-0.26.71.dist-info}/top_level.txt +0 -0
@@ -54,7 +54,7 @@ class DefaultApi(object):
54
54
  number provided, it will be total request
55
55
  timeout. It can also be a pair (tuple) of
56
56
  (connection, read) timeouts.
57
- :return: object
57
+ :return: ClouddeploymentResponse
58
58
  If the method is called asynchronously,
59
59
  returns the request thread.
60
60
  """
@@ -81,7 +81,7 @@ class DefaultApi(object):
81
81
  number provided, it will be total request
82
82
  timeout. It can also be a pair (tuple) of
83
83
  (connection, read) timeouts.
84
- :return: tuple(object, status_code(int), headers(HTTPHeaderDict))
84
+ :return: tuple(ClouddeploymentResponse, status_code(int), headers(HTTPHeaderDict))
85
85
  If the method is called asynchronously,
86
86
  returns the request thread.
87
87
  """
@@ -153,7 +153,7 @@ class DefaultApi(object):
153
153
  body=body_params,
154
154
  post_params=form_params,
155
155
  files=local_var_files,
156
- response_type='object', # noqa: E501
156
+ response_type='ClouddeploymentResponse', # noqa: E501
157
157
  auth_settings=auth_settings,
158
158
  async_req=local_var_params.get('async_req'),
159
159
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -902,6 +902,133 @@ class DefaultApi(object):
902
902
  _request_timeout=local_var_params.get('_request_timeout'),
903
903
  collection_formats=collection_formats)
904
904
 
905
+ def apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put(self, service_id, apply_autoscaling_config_update_model, **kwargs): # noqa: E501
906
+ """Apply Autoscaling Config Update # noqa: E501
907
+
908
+ Apply an autoscaling config update # noqa: E501
909
+ This method makes a synchronous HTTP request by default. To make an
910
+ asynchronous HTTP request, please pass async_req=True
911
+ >>> thread = api.apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put(service_id, apply_autoscaling_config_update_model, async_req=True)
912
+ >>> result = thread.get()
913
+
914
+ :param async_req bool: execute request asynchronously
915
+ :param str service_id: (required)
916
+ :param ApplyAutoscalingConfigUpdateModel apply_autoscaling_config_update_model: (required)
917
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
918
+ be returned without reading/decoding response
919
+ data. Default is True.
920
+ :param _request_timeout: timeout setting for this request. If one
921
+ number provided, it will be total request
922
+ timeout. It can also be a pair (tuple) of
923
+ (connection, read) timeouts.
924
+ :return: Decoratedproductionservicev2ApimodelResponse
925
+ If the method is called asynchronously,
926
+ returns the request thread.
927
+ """
928
+ kwargs['_return_http_data_only'] = True
929
+ return self.apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put_with_http_info(service_id, apply_autoscaling_config_update_model, **kwargs) # noqa: E501
930
+
931
+ def apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put_with_http_info(self, service_id, apply_autoscaling_config_update_model, **kwargs): # noqa: E501
932
+ """Apply Autoscaling Config Update # noqa: E501
933
+
934
+ Apply an autoscaling config update # noqa: E501
935
+ This method makes a synchronous HTTP request by default. To make an
936
+ asynchronous HTTP request, please pass async_req=True
937
+ >>> thread = api.apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put_with_http_info(service_id, apply_autoscaling_config_update_model, async_req=True)
938
+ >>> result = thread.get()
939
+
940
+ :param async_req bool: execute request asynchronously
941
+ :param str service_id: (required)
942
+ :param ApplyAutoscalingConfigUpdateModel apply_autoscaling_config_update_model: (required)
943
+ :param _return_http_data_only: response data without head status code
944
+ and headers
945
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
946
+ be returned without reading/decoding response
947
+ data. Default is True.
948
+ :param _request_timeout: timeout setting for this request. If one
949
+ number provided, it will be total request
950
+ timeout. It can also be a pair (tuple) of
951
+ (connection, read) timeouts.
952
+ :return: tuple(Decoratedproductionservicev2ApimodelResponse, status_code(int), headers(HTTPHeaderDict))
953
+ If the method is called asynchronously,
954
+ returns the request thread.
955
+ """
956
+
957
+ local_var_params = locals()
958
+
959
+ all_params = [
960
+ 'service_id',
961
+ 'apply_autoscaling_config_update_model'
962
+ ]
963
+ all_params.extend(
964
+ [
965
+ 'async_req',
966
+ '_return_http_data_only',
967
+ '_preload_content',
968
+ '_request_timeout'
969
+ ]
970
+ )
971
+
972
+ for key, val in six.iteritems(local_var_params['kwargs']):
973
+ if key not in all_params:
974
+ raise ApiTypeError(
975
+ "Got an unexpected keyword argument '%s'"
976
+ " to method apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put" % key
977
+ )
978
+ local_var_params[key] = val
979
+ del local_var_params['kwargs']
980
+ # verify the required parameter 'service_id' is set
981
+ if self.api_client.client_side_validation and ('service_id' not in local_var_params or # noqa: E501
982
+ local_var_params['service_id'] is None): # noqa: E501
983
+ raise ApiValueError("Missing the required parameter `service_id` when calling `apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put`") # noqa: E501
984
+ # verify the required parameter 'apply_autoscaling_config_update_model' is set
985
+ if self.api_client.client_side_validation and ('apply_autoscaling_config_update_model' not in local_var_params or # noqa: E501
986
+ local_var_params['apply_autoscaling_config_update_model'] is None): # noqa: E501
987
+ raise ApiValueError("Missing the required parameter `apply_autoscaling_config_update_model` when calling `apply_autoscaling_config_update_api_v2_services_v2_service_id_apply_autoscaling_config_update_put`") # noqa: E501
988
+
989
+ collection_formats = {}
990
+
991
+ path_params = {}
992
+ if 'service_id' in local_var_params:
993
+ path_params['service_id'] = local_var_params['service_id'] # noqa: E501
994
+
995
+ query_params = []
996
+
997
+ header_params = {}
998
+
999
+ form_params = []
1000
+ local_var_files = {}
1001
+
1002
+ body_params = None
1003
+ if 'apply_autoscaling_config_update_model' in local_var_params:
1004
+ body_params = local_var_params['apply_autoscaling_config_update_model']
1005
+ # HTTP header `Accept`
1006
+ header_params['Accept'] = self.api_client.select_header_accept(
1007
+ ['application/json']) # noqa: E501
1008
+
1009
+ # HTTP header `Content-Type`
1010
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1011
+ ['application/json']) # noqa: E501
1012
+
1013
+ # Authentication setting
1014
+ auth_settings = [] # noqa: E501
1015
+
1016
+ return self.api_client.call_api(
1017
+ '/api/v2/services-v2/{service_id}/apply_autoscaling_config_update', 'PUT',
1018
+ path_params,
1019
+ query_params,
1020
+ header_params,
1021
+ body=body_params,
1022
+ post_params=form_params,
1023
+ files=local_var_files,
1024
+ response_type='Decoratedproductionservicev2ApimodelResponse', # noqa: E501
1025
+ auth_settings=auth_settings,
1026
+ async_req=local_var_params.get('async_req'),
1027
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1028
+ _preload_content=local_var_params.get('_preload_content', True),
1029
+ _request_timeout=local_var_params.get('_request_timeout'),
1030
+ collection_formats=collection_formats)
1031
+
905
1032
  def apply_service_api_v2_services_v2_apply_put(self, apply_production_service_v2_model, **kwargs): # noqa: E501
906
1033
  """Apply Service # noqa: E501
907
1034
 
@@ -1020,6 +1147,124 @@ class DefaultApi(object):
1020
1147
  _request_timeout=local_var_params.get('_request_timeout'),
1021
1148
  collection_formats=collection_formats)
1022
1149
 
1150
+ def apply_service_multi_version_api_v2_services_v2_apply_multi_version_put(self, apply_production_service_multi_version_v2_model, **kwargs): # noqa: E501
1151
+ """Apply Service Multi Version # noqa: E501
1152
+
1153
+ Apply a Service # noqa: E501
1154
+ This method makes a synchronous HTTP request by default. To make an
1155
+ asynchronous HTTP request, please pass async_req=True
1156
+ >>> thread = api.apply_service_multi_version_api_v2_services_v2_apply_multi_version_put(apply_production_service_multi_version_v2_model, async_req=True)
1157
+ >>> result = thread.get()
1158
+
1159
+ :param async_req bool: execute request asynchronously
1160
+ :param ApplyProductionServiceMultiVersionV2Model apply_production_service_multi_version_v2_model: (required)
1161
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1162
+ be returned without reading/decoding response
1163
+ data. Default is True.
1164
+ :param _request_timeout: timeout setting for this request. If one
1165
+ number provided, it will be total request
1166
+ timeout. It can also be a pair (tuple) of
1167
+ (connection, read) timeouts.
1168
+ :return: Decoratedproductionservicev2ApimodelResponse
1169
+ If the method is called asynchronously,
1170
+ returns the request thread.
1171
+ """
1172
+ kwargs['_return_http_data_only'] = True
1173
+ return self.apply_service_multi_version_api_v2_services_v2_apply_multi_version_put_with_http_info(apply_production_service_multi_version_v2_model, **kwargs) # noqa: E501
1174
+
1175
+ def apply_service_multi_version_api_v2_services_v2_apply_multi_version_put_with_http_info(self, apply_production_service_multi_version_v2_model, **kwargs): # noqa: E501
1176
+ """Apply Service Multi Version # noqa: E501
1177
+
1178
+ Apply a Service # noqa: E501
1179
+ This method makes a synchronous HTTP request by default. To make an
1180
+ asynchronous HTTP request, please pass async_req=True
1181
+ >>> thread = api.apply_service_multi_version_api_v2_services_v2_apply_multi_version_put_with_http_info(apply_production_service_multi_version_v2_model, async_req=True)
1182
+ >>> result = thread.get()
1183
+
1184
+ :param async_req bool: execute request asynchronously
1185
+ :param ApplyProductionServiceMultiVersionV2Model apply_production_service_multi_version_v2_model: (required)
1186
+ :param _return_http_data_only: response data without head status code
1187
+ and headers
1188
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
1189
+ be returned without reading/decoding response
1190
+ data. Default is True.
1191
+ :param _request_timeout: timeout setting for this request. If one
1192
+ number provided, it will be total request
1193
+ timeout. It can also be a pair (tuple) of
1194
+ (connection, read) timeouts.
1195
+ :return: tuple(Decoratedproductionservicev2ApimodelResponse, status_code(int), headers(HTTPHeaderDict))
1196
+ If the method is called asynchronously,
1197
+ returns the request thread.
1198
+ """
1199
+
1200
+ local_var_params = locals()
1201
+
1202
+ all_params = [
1203
+ 'apply_production_service_multi_version_v2_model'
1204
+ ]
1205
+ all_params.extend(
1206
+ [
1207
+ 'async_req',
1208
+ '_return_http_data_only',
1209
+ '_preload_content',
1210
+ '_request_timeout'
1211
+ ]
1212
+ )
1213
+
1214
+ for key, val in six.iteritems(local_var_params['kwargs']):
1215
+ if key not in all_params:
1216
+ raise ApiTypeError(
1217
+ "Got an unexpected keyword argument '%s'"
1218
+ " to method apply_service_multi_version_api_v2_services_v2_apply_multi_version_put" % key
1219
+ )
1220
+ local_var_params[key] = val
1221
+ del local_var_params['kwargs']
1222
+ # verify the required parameter 'apply_production_service_multi_version_v2_model' is set
1223
+ if self.api_client.client_side_validation and ('apply_production_service_multi_version_v2_model' not in local_var_params or # noqa: E501
1224
+ local_var_params['apply_production_service_multi_version_v2_model'] is None): # noqa: E501
1225
+ raise ApiValueError("Missing the required parameter `apply_production_service_multi_version_v2_model` when calling `apply_service_multi_version_api_v2_services_v2_apply_multi_version_put`") # noqa: E501
1226
+
1227
+ collection_formats = {}
1228
+
1229
+ path_params = {}
1230
+
1231
+ query_params = []
1232
+
1233
+ header_params = {}
1234
+
1235
+ form_params = []
1236
+ local_var_files = {}
1237
+
1238
+ body_params = None
1239
+ if 'apply_production_service_multi_version_v2_model' in local_var_params:
1240
+ body_params = local_var_params['apply_production_service_multi_version_v2_model']
1241
+ # HTTP header `Accept`
1242
+ header_params['Accept'] = self.api_client.select_header_accept(
1243
+ ['application/json']) # noqa: E501
1244
+
1245
+ # HTTP header `Content-Type`
1246
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1247
+ ['application/json']) # noqa: E501
1248
+
1249
+ # Authentication setting
1250
+ auth_settings = [] # noqa: E501
1251
+
1252
+ return self.api_client.call_api(
1253
+ '/api/v2/services-v2/apply_multi_version', 'PUT',
1254
+ path_params,
1255
+ query_params,
1256
+ header_params,
1257
+ body=body_params,
1258
+ post_params=form_params,
1259
+ files=local_var_files,
1260
+ response_type='Decoratedproductionservicev2ApimodelResponse', # noqa: E501
1261
+ auth_settings=auth_settings,
1262
+ async_req=local_var_params.get('async_req'),
1263
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1264
+ _preload_content=local_var_params.get('_preload_content', True),
1265
+ _request_timeout=local_var_params.get('_request_timeout'),
1266
+ collection_formats=collection_formats)
1267
+
1023
1268
  def archive_cluster_environment_api_v2_application_templates_application_template_id_archive_post(self, application_template_id, **kwargs): # noqa: E501
1024
1269
  """Archive Cluster Environment # noqa: E501
1025
1270
 
@@ -8398,6 +8643,120 @@ class DefaultApi(object):
8398
8643
  _request_timeout=local_var_params.get('_request_timeout'),
8399
8644
  collection_formats=collection_formats)
8400
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
+
8401
8760
  def delete_workspace_api_v2_experimental_workspaces_workspace_id_delete(self, workspace_id, **kwargs): # noqa: E501
8402
8761
  """Delete Workspace # noqa: E501
8403
8762
 
@@ -10930,6 +11289,127 @@ class DefaultApi(object):
10930
11289
  _request_timeout=local_var_params.get('_request_timeout'),
10931
11290
  collection_formats=collection_formats)
10932
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
+
10933
11413
  def find_dataset_api_v2_datasets_find_get(self, name, **kwargs): # noqa: E501
10934
11414
  """Find Dataset # noqa: E501
10935
11415
 
@@ -13395,7 +13875,7 @@ class DefaultApi(object):
13395
13875
  :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
13396
13876
  :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
13397
13877
  :param int count: Max number of events to fetch.
13398
- :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
13878
+ :param list[EventLevel] level: Filter by level of event. If level is not set, query will return all level values
13399
13879
  :param str message: Filter by message of event. If message is not set, query will not filter for message
13400
13880
  :param _preload_content: if False, the urllib3.HTTPResponse object will
13401
13881
  be returned without reading/decoding response
@@ -13430,7 +13910,7 @@ class DefaultApi(object):
13430
13910
  :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
13431
13911
  :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
13432
13912
  :param int count: Max number of events to fetch.
13433
- :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
13913
+ :param list[EventLevel] level: Filter by level of event. If level is not set, query will return all level values
13434
13914
  :param str message: Filter by message of event. If message is not set, query will not filter for message
13435
13915
  :param _return_http_data_only: response data without head status code
13436
13916
  and headers
@@ -13510,6 +13990,7 @@ class DefaultApi(object):
13510
13990
  query_params.append(('count', local_var_params['count'])) # noqa: E501
13511
13991
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
13512
13992
  query_params.append(('level', local_var_params['level'])) # noqa: E501
13993
+ collection_formats['level'] = 'multi' # noqa: E501
13513
13994
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
13514
13995
  query_params.append(('message', local_var_params['message'])) # noqa: E501
13515
13996
 
@@ -15531,6 +16012,7 @@ class DefaultApi(object):
15531
16012
 
15532
16013
  :param async_req bool: execute request asynchronously
15533
16014
  :param str cloud_id: (required)
16015
+ :param str cloud_resource_id:
15534
16016
  :param _preload_content: if False, the urllib3.HTTPResponse object will
15535
16017
  be returned without reading/decoding response
15536
16018
  data. Default is True.
@@ -15556,6 +16038,7 @@ class DefaultApi(object):
15556
16038
 
15557
16039
  :param async_req bool: execute request asynchronously
15558
16040
  :param str cloud_id: (required)
16041
+ :param str cloud_resource_id:
15559
16042
  :param _return_http_data_only: response data without head status code
15560
16043
  and headers
15561
16044
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -15573,7 +16056,8 @@ class DefaultApi(object):
15573
16056
  local_var_params = locals()
15574
16057
 
15575
16058
  all_params = [
15576
- 'cloud_id'
16059
+ 'cloud_id',
16060
+ 'cloud_resource_id'
15577
16061
  ]
15578
16062
  all_params.extend(
15579
16063
  [
@@ -15604,6 +16088,8 @@ class DefaultApi(object):
15604
16088
  path_params['cloud_id'] = local_var_params['cloud_id'] # noqa: E501
15605
16089
 
15606
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
15607
16093
 
15608
16094
  header_params = {}
15609
16095
 
@@ -16231,7 +16717,7 @@ class DefaultApi(object):
16231
16717
  :param async_req bool: execute request asynchronously
16232
16718
  :param str production_job_id: ID of the production job to fetch logs for. Note: This API doesn't support offset based pagination and the time filter should instead be used. (required)
16233
16719
  :param list[ProductionJobEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
16234
- :param HaJobEventLevel level: Filter by level of event
16720
+ :param list[EventLevel] level: Filter by level of event
16235
16721
  :param str message: Filter by message of event
16236
16722
  :param datetime start_time: The start time for the query. If start_time is not set, the query will use beginning of time. Non-inclusive.
16237
16723
  :param datetime end_time: The end time for the query. If end_time is not set, the query will use the time now. Non-inclusive.
@@ -16264,7 +16750,7 @@ class DefaultApi(object):
16264
16750
  :param async_req bool: execute request asynchronously
16265
16751
  :param str production_job_id: ID of the production job to fetch logs for. Note: This API doesn't support offset based pagination and the time filter should instead be used. (required)
16266
16752
  :param list[ProductionJobEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
16267
- :param HaJobEventLevel level: Filter by level of event
16753
+ :param list[EventLevel] level: Filter by level of event
16268
16754
  :param str message: Filter by message of event
16269
16755
  :param datetime start_time: The start time for the query. If start_time is not set, the query will use beginning of time. Non-inclusive.
16270
16756
  :param datetime end_time: The end time for the query. If end_time is not set, the query will use the time now. Non-inclusive.
@@ -16336,6 +16822,7 @@ class DefaultApi(object):
16336
16822
  collection_formats['origin'] = 'multi' # noqa: E501
16337
16823
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
16338
16824
  query_params.append(('level', local_var_params['level'])) # noqa: E501
16825
+ collection_formats['level'] = 'multi' # noqa: E501
16339
16826
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
16340
16827
  query_params.append(('message', local_var_params['message'])) # noqa: E501
16341
16828
  if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
@@ -20981,7 +21468,7 @@ class DefaultApi(object):
20981
21468
  def get_service_events_api_v2_services_v2_service_id_events_get(self, service_id, **kwargs): # noqa: E501
20982
21469
  """Get Service Events # noqa: E501
20983
21470
 
20984
- Get Service events # noqa: E501
21471
+ Get Service events (DEPRECATED: Use /api/v2/events/service/{service_id}/events instead) # noqa: E501
20985
21472
  This method makes a synchronous HTTP request by default. To make an
20986
21473
  asynchronous HTTP request, please pass async_req=True
20987
21474
  >>> thread = api.get_service_events_api_v2_services_v2_service_id_events_get(service_id, async_req=True)
@@ -20990,7 +21477,7 @@ class DefaultApi(object):
20990
21477
  :param async_req bool: execute request asynchronously
20991
21478
  :param str service_id: (required)
20992
21479
  :param list[ServiceEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
20993
- :param ServiceEventLevel level: Filter by level of event
21480
+ :param list[EventLevel] level: Filter by level of event
20994
21481
  :param str message: Filter by message of event
20995
21482
  :param datetime start_time: The start time for the query. Non-inclusive. If start_time is not set, the query will use beginning of time.
20996
21483
  :param datetime end_time: The end time for the query. Non-inclusive. If end_time is not set, the query will use the time now.
@@ -21015,7 +21502,7 @@ class DefaultApi(object):
21015
21502
  def get_service_events_api_v2_services_v2_service_id_events_get_with_http_info(self, service_id, **kwargs): # noqa: E501
21016
21503
  """Get Service Events # noqa: E501
21017
21504
 
21018
- Get Service events # noqa: E501
21505
+ Get Service events (DEPRECATED: Use /api/v2/events/service/{service_id}/events instead) # noqa: E501
21019
21506
  This method makes a synchronous HTTP request by default. To make an
21020
21507
  asynchronous HTTP request, please pass async_req=True
21021
21508
  >>> thread = api.get_service_events_api_v2_services_v2_service_id_events_get_with_http_info(service_id, async_req=True)
@@ -21024,7 +21511,7 @@ class DefaultApi(object):
21024
21511
  :param async_req bool: execute request asynchronously
21025
21512
  :param str service_id: (required)
21026
21513
  :param list[ServiceEventScopeFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
21027
- :param ServiceEventLevel level: Filter by level of event
21514
+ :param list[EventLevel] level: Filter by level of event
21028
21515
  :param str message: Filter by message of event
21029
21516
  :param datetime start_time: The start time for the query. Non-inclusive. If start_time is not set, the query will use beginning of time.
21030
21517
  :param datetime end_time: The end time for the query. Non-inclusive. If end_time is not set, the query will use the time now.
@@ -21098,6 +21585,7 @@ class DefaultApi(object):
21098
21585
  collection_formats['origin'] = 'multi' # noqa: E501
21099
21586
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
21100
21587
  query_params.append(('level', local_var_params['level'])) # noqa: E501
21588
+ collection_formats['level'] = 'multi' # noqa: E501
21101
21589
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
21102
21590
  query_params.append(('message', local_var_params['message'])) # noqa: E501
21103
21591
  if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
@@ -21142,10 +21630,133 @@ class DefaultApi(object):
21142
21630
  _request_timeout=local_var_params.get('_request_timeout'),
21143
21631
  collection_formats=collection_formats)
21144
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
+
21145
21756
  def get_service_versions_api_v2_services_v2_service_id_versions_get(self, service_id, **kwargs): # noqa: E501
21146
21757
  """Get Service Versions # noqa: E501
21147
21758
 
21148
- Returns up to 10 (most recent) versions for the given Service (ordered by most to least recent). # noqa: E501
21759
+ Returns up to 100 (most recent) versions for the given Service (ordered by most to least recent). # noqa: E501
21149
21760
  This method makes a synchronous HTTP request by default. To make an
21150
21761
  asynchronous HTTP request, please pass async_req=True
21151
21762
  >>> thread = api.get_service_versions_api_v2_services_v2_service_id_versions_get(service_id, async_req=True)
@@ -21153,6 +21764,9 @@ class DefaultApi(object):
21153
21764
 
21154
21765
  :param async_req bool: execute request asynchronously
21155
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
21156
21770
  :param _preload_content: if False, the urllib3.HTTPResponse object will
21157
21771
  be returned without reading/decoding response
21158
21772
  data. Default is True.
@@ -21170,7 +21784,7 @@ class DefaultApi(object):
21170
21784
  def get_service_versions_api_v2_services_v2_service_id_versions_get_with_http_info(self, service_id, **kwargs): # noqa: E501
21171
21785
  """Get Service Versions # noqa: E501
21172
21786
 
21173
- Returns up to 10 (most recent) versions for the given Service (ordered by most to least recent). # noqa: E501
21787
+ Returns up to 100 (most recent) versions for the given Service (ordered by most to least recent). # noqa: E501
21174
21788
  This method makes a synchronous HTTP request by default. To make an
21175
21789
  asynchronous HTTP request, please pass async_req=True
21176
21790
  >>> thread = api.get_service_versions_api_v2_services_v2_service_id_versions_get_with_http_info(service_id, async_req=True)
@@ -21178,6 +21792,9 @@ class DefaultApi(object):
21178
21792
 
21179
21793
  :param async_req bool: execute request asynchronously
21180
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
21181
21798
  :param _return_http_data_only: response data without head status code
21182
21799
  and headers
21183
21800
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -21195,7 +21812,10 @@ class DefaultApi(object):
21195
21812
  local_var_params = locals()
21196
21813
 
21197
21814
  all_params = [
21198
- 'service_id'
21815
+ 'service_id',
21816
+ 'state_filter',
21817
+ 'count',
21818
+ 'paging_token'
21199
21819
  ]
21200
21820
  all_params.extend(
21201
21821
  [
@@ -21226,6 +21846,13 @@ class DefaultApi(object):
21226
21846
  path_params['service_id'] = local_var_params['service_id'] # noqa: E501
21227
21847
 
21228
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
21229
21856
 
21230
21857
  header_params = {}
21231
21858
 
@@ -21995,6 +22622,302 @@ class DefaultApi(object):
21995
22622
  _request_timeout=local_var_params.get('_request_timeout'),
21996
22623
  collection_formats=collection_formats)
21997
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
+
21998
22921
  def get_tags_for_resource_api_v2_tags_resource_get(self, resource_type, resource_id, **kwargs): # noqa: E501
21999
22922
  """Get Tags For Resource # noqa: E501
22000
22923
 
@@ -23310,6 +24233,196 @@ class DefaultApi(object):
23310
24233
  _request_timeout=local_var_params.get('_request_timeout'),
23311
24234
  collection_formats=collection_formats)
23312
24235
 
24236
+ def get_unified_events_api_v2_events_entity_type_entity_id_events_get(self, entity_type, entity_id, **kwargs): # noqa: E501
24237
+ """Get Unified Events # noqa: E501
24238
+
24239
+ Get events for any entity type (production jobs, workspaces, or services) # noqa: E501
24240
+ This method makes a synchronous HTTP request by default. To make an
24241
+ asynchronous HTTP request, please pass async_req=True
24242
+ >>> thread = api.get_unified_events_api_v2_events_entity_type_entity_id_events_get(entity_type, entity_id, async_req=True)
24243
+ >>> result = thread.get()
24244
+
24245
+ :param async_req bool: execute request asynchronously
24246
+ :param EntityType entity_type: The type of entity (required)
24247
+ :param str entity_id: The ID of the entity (required)
24248
+ :param list[UnifiedOriginFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter. Available origins by entity type: • Jobs: JOB, CLUSTER • Workspaces: WORKSPACE, CLUSTER • Services: SERVICE, SERVICE_VERSION, ALB, SERVE_DEPLOYMENT, CLUSTER • Clusters: AUTOSCALER, CLUSTER_LIFECYCLE, IDLE_TERMINATION, JOBS, WORKSPACE_SNAPSHOT, OS, CLUSTER
24249
+ :param list[EventLevel] level: Filter by level of event
24250
+ :param str message: Filter by message of event
24251
+ :param datetime start_time: The start time for the query. Non-inclusive. If start_time is not set, the query will use beginning of time.
24252
+ :param datetime end_time: The end time for the query. Non-inclusive. If end_time is not set, the query will use the time now.
24253
+ :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
24254
+ :param bool include_verbose_events: Show all verbose service events without truncation if set to True. Only applicable to service events.
24255
+ :param str instance_id: Filter for events from this instance. This is a string that is the instance id of the instance.
24256
+ :param list[str] autoscaler_resource_bundles: Filter for autoscaler events relevant to specific resource bundles.Each string should be a JSON-encoded resource bundle. We accept a string here because query params do not support dictionaries. Ex: ['{\"CPU\": 1, \"GPU\": 1}', '{\"GPU\": 1}']
24257
+ :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
24258
+ :param int count:
24259
+ :param str paging_token:
24260
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24261
+ be returned without reading/decoding response
24262
+ data. Default is True.
24263
+ :param _request_timeout: timeout setting for this request. If one
24264
+ number provided, it will be total request
24265
+ timeout. It can also be a pair (tuple) of
24266
+ (connection, read) timeouts.
24267
+ :return: UnifiedeventListResponse
24268
+ If the method is called asynchronously,
24269
+ returns the request thread.
24270
+ """
24271
+ kwargs['_return_http_data_only'] = True
24272
+ return self.get_unified_events_api_v2_events_entity_type_entity_id_events_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
24273
+
24274
+ def get_unified_events_api_v2_events_entity_type_entity_id_events_get_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
24275
+ """Get Unified Events # noqa: E501
24276
+
24277
+ Get events for any entity type (production jobs, workspaces, or services) # noqa: E501
24278
+ This method makes a synchronous HTTP request by default. To make an
24279
+ asynchronous HTTP request, please pass async_req=True
24280
+ >>> thread = api.get_unified_events_api_v2_events_entity_type_entity_id_events_get_with_http_info(entity_type, entity_id, async_req=True)
24281
+ >>> result = thread.get()
24282
+
24283
+ :param async_req bool: execute request asynchronously
24284
+ :param EntityType entity_type: The type of entity (required)
24285
+ :param str entity_id: The ID of the entity (required)
24286
+ :param list[UnifiedOriginFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter. Available origins by entity type: • Jobs: JOB, CLUSTER • Workspaces: WORKSPACE, CLUSTER • Services: SERVICE, SERVICE_VERSION, ALB, SERVE_DEPLOYMENT, CLUSTER • Clusters: AUTOSCALER, CLUSTER_LIFECYCLE, IDLE_TERMINATION, JOBS, WORKSPACE_SNAPSHOT, OS, CLUSTER
24287
+ :param list[EventLevel] level: Filter by level of event
24288
+ :param str message: Filter by message of event
24289
+ :param datetime start_time: The start time for the query. Non-inclusive. If start_time is not set, the query will use beginning of time.
24290
+ :param datetime end_time: The end time for the query. Non-inclusive. If end_time is not set, the query will use the time now.
24291
+ :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
24292
+ :param bool include_verbose_events: Show all verbose service events without truncation if set to True. Only applicable to service events.
24293
+ :param str instance_id: Filter for events from this instance. This is a string that is the instance id of the instance.
24294
+ :param list[str] autoscaler_resource_bundles: Filter for autoscaler events relevant to specific resource bundles.Each string should be a JSON-encoded resource bundle. We accept a string here because query params do not support dictionaries. Ex: ['{\"CPU\": 1, \"GPU\": 1}', '{\"GPU\": 1}']
24295
+ :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
24296
+ :param int count:
24297
+ :param str paging_token:
24298
+ :param _return_http_data_only: response data without head status code
24299
+ and headers
24300
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
24301
+ be returned without reading/decoding response
24302
+ data. Default is True.
24303
+ :param _request_timeout: timeout setting for this request. If one
24304
+ number provided, it will be total request
24305
+ timeout. It can also be a pair (tuple) of
24306
+ (connection, read) timeouts.
24307
+ :return: tuple(UnifiedeventListResponse, status_code(int), headers(HTTPHeaderDict))
24308
+ If the method is called asynchronously,
24309
+ returns the request thread.
24310
+ """
24311
+
24312
+ local_var_params = locals()
24313
+
24314
+ all_params = [
24315
+ 'entity_type',
24316
+ 'entity_id',
24317
+ 'origin',
24318
+ 'level',
24319
+ 'message',
24320
+ 'start_time',
24321
+ 'end_time',
24322
+ 'ascending_order',
24323
+ 'include_verbose_events',
24324
+ 'instance_id',
24325
+ 'autoscaler_resource_bundles',
24326
+ 'instance_node_ip',
24327
+ 'count',
24328
+ 'paging_token'
24329
+ ]
24330
+ all_params.extend(
24331
+ [
24332
+ 'async_req',
24333
+ '_return_http_data_only',
24334
+ '_preload_content',
24335
+ '_request_timeout'
24336
+ ]
24337
+ )
24338
+
24339
+ for key, val in six.iteritems(local_var_params['kwargs']):
24340
+ if key not in all_params:
24341
+ raise ApiTypeError(
24342
+ "Got an unexpected keyword argument '%s'"
24343
+ " to method get_unified_events_api_v2_events_entity_type_entity_id_events_get" % key
24344
+ )
24345
+ local_var_params[key] = val
24346
+ del local_var_params['kwargs']
24347
+ # verify the required parameter 'entity_type' is set
24348
+ if self.api_client.client_side_validation and ('entity_type' not in local_var_params or # noqa: E501
24349
+ local_var_params['entity_type'] is None): # noqa: E501
24350
+ raise ApiValueError("Missing the required parameter `entity_type` when calling `get_unified_events_api_v2_events_entity_type_entity_id_events_get`") # noqa: E501
24351
+ # verify the required parameter 'entity_id' is set
24352
+ if self.api_client.client_side_validation and ('entity_id' not in local_var_params or # noqa: E501
24353
+ local_var_params['entity_id'] is None): # noqa: E501
24354
+ raise ApiValueError("Missing the required parameter `entity_id` when calling `get_unified_events_api_v2_events_entity_type_entity_id_events_get`") # noqa: E501
24355
+
24356
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
24357
+ raise ApiValueError("Invalid value for parameter `count` when calling `get_unified_events_api_v2_events_entity_type_entity_id_events_get`, must be a value less than or equal to `1000`") # noqa: E501
24358
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
24359
+ raise ApiValueError("Invalid value for parameter `count` when calling `get_unified_events_api_v2_events_entity_type_entity_id_events_get`, must be a value greater than or equal to `0`") # noqa: E501
24360
+ collection_formats = {}
24361
+
24362
+ path_params = {}
24363
+ if 'entity_type' in local_var_params:
24364
+ path_params['entity_type'] = local_var_params['entity_type'] # noqa: E501
24365
+ if 'entity_id' in local_var_params:
24366
+ path_params['entity_id'] = local_var_params['entity_id'] # noqa: E501
24367
+
24368
+ query_params = []
24369
+ if 'origin' in local_var_params and local_var_params['origin'] is not None: # noqa: E501
24370
+ query_params.append(('origin', local_var_params['origin'])) # noqa: E501
24371
+ collection_formats['origin'] = 'multi' # noqa: E501
24372
+ if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
24373
+ query_params.append(('level', local_var_params['level'])) # noqa: E501
24374
+ collection_formats['level'] = 'multi' # noqa: E501
24375
+ if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
24376
+ query_params.append(('message', local_var_params['message'])) # noqa: E501
24377
+ if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
24378
+ query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
24379
+ if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
24380
+ query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
24381
+ if 'ascending_order' in local_var_params and local_var_params['ascending_order'] is not None: # noqa: E501
24382
+ query_params.append(('ascending_order', local_var_params['ascending_order'])) # noqa: E501
24383
+ if 'include_verbose_events' in local_var_params and local_var_params['include_verbose_events'] is not None: # noqa: E501
24384
+ query_params.append(('include_verbose_events', local_var_params['include_verbose_events'])) # noqa: E501
24385
+ if 'instance_id' in local_var_params and local_var_params['instance_id'] is not None: # noqa: E501
24386
+ query_params.append(('instance_id', local_var_params['instance_id'])) # noqa: E501
24387
+ if 'autoscaler_resource_bundles' in local_var_params and local_var_params['autoscaler_resource_bundles'] is not None: # noqa: E501
24388
+ query_params.append(('autoscaler_resource_bundles', local_var_params['autoscaler_resource_bundles'])) # noqa: E501
24389
+ collection_formats['autoscaler_resource_bundles'] = 'multi' # noqa: E501
24390
+ if 'instance_node_ip' in local_var_params and local_var_params['instance_node_ip'] is not None: # noqa: E501
24391
+ query_params.append(('instance_node_ip', local_var_params['instance_node_ip'])) # noqa: E501
24392
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
24393
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
24394
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
24395
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
24396
+
24397
+ header_params = {}
24398
+
24399
+ form_params = []
24400
+ local_var_files = {}
24401
+
24402
+ body_params = None
24403
+ # HTTP header `Accept`
24404
+ header_params['Accept'] = self.api_client.select_header_accept(
24405
+ ['application/json']) # noqa: E501
24406
+
24407
+ # Authentication setting
24408
+ auth_settings = [] # noqa: E501
24409
+
24410
+ return self.api_client.call_api(
24411
+ '/api/v2/events/{entity_type}/{entity_id}/events', 'GET',
24412
+ path_params,
24413
+ query_params,
24414
+ header_params,
24415
+ body=body_params,
24416
+ post_params=form_params,
24417
+ files=local_var_files,
24418
+ response_type='UnifiedeventListResponse', # noqa: E501
24419
+ auth_settings=auth_settings,
24420
+ async_req=local_var_params.get('async_req'),
24421
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
24422
+ _preload_content=local_var_params.get('_preload_content', True),
24423
+ _request_timeout=local_var_params.get('_request_timeout'),
24424
+ collection_formats=collection_formats)
24425
+
23313
24426
  def get_user_info_api_v2_userinfo_get(self, **kwargs): # noqa: E501
23314
24427
  """Get User Info # noqa: E501
23315
24428
 
@@ -23885,7 +24998,7 @@ class DefaultApi(object):
23885
24998
  def get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get(self, workspace_id, **kwargs): # noqa: E501
23886
24999
  """Get Workspace Events # noqa: E501
23887
25000
 
23888
- Retrieves events for a Workspace. # noqa: E501
25001
+ Retrieves events for a Workspace. (DEPRECATED: Use /api/v2/events/workspace/{workspace_id}/events instead) # noqa: E501
23889
25002
  This method makes a synchronous HTTP request by default. To make an
23890
25003
  asynchronous HTTP request, please pass async_req=True
23891
25004
  >>> thread = api.get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get(workspace_id, async_req=True)
@@ -23894,7 +25007,7 @@ class DefaultApi(object):
23894
25007
  :param async_req bool: execute request asynchronously
23895
25008
  :param str workspace_id: ID of the Workspace to retreive. (required)
23896
25009
  :param list[WorkspaceEventSourceFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
23897
- :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
25010
+ :param list[EventLevel] level: Filter by level of event
23898
25011
  :param str message: Filter by message of event. If message is not set, query will not filter for message
23899
25012
  :param datetime start_time: The start time for the query. Non-inclusive. If start_time is not set, the query will use beginning of time.
23900
25013
  :param datetime end_time: The end time for the query. Non-inclusive. If end_time is not set, the query will use the time now.
@@ -23918,7 +25031,7 @@ class DefaultApi(object):
23918
25031
  def get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get_with_http_info(self, workspace_id, **kwargs): # noqa: E501
23919
25032
  """Get Workspace Events # noqa: E501
23920
25033
 
23921
- Retrieves events for a Workspace. # noqa: E501
25034
+ Retrieves events for a Workspace. (DEPRECATED: Use /api/v2/events/workspace/{workspace_id}/events instead) # noqa: E501
23922
25035
  This method makes a synchronous HTTP request by default. To make an
23923
25036
  asynchronous HTTP request, please pass async_req=True
23924
25037
  >>> thread = api.get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get_with_http_info(workspace_id, async_req=True)
@@ -23927,7 +25040,7 @@ class DefaultApi(object):
23927
25040
  :param async_req bool: execute request asynchronously
23928
25041
  :param str workspace_id: ID of the Workspace to retreive. (required)
23929
25042
  :param list[WorkspaceEventSourceFilter] origin: Filter if origin of event is included in this list. If \"\" in this list, no origin will be included in filter, so no results will be returned. Default behavior is to include all origin values in filter.
23930
- :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
25043
+ :param list[EventLevel] level: Filter by level of event
23931
25044
  :param str message: Filter by message of event. If message is not set, query will not filter for message
23932
25045
  :param datetime start_time: The start time for the query. Non-inclusive. If start_time is not set, the query will use beginning of time.
23933
25046
  :param datetime end_time: The end time for the query. Non-inclusive. If end_time is not set, the query will use the time now.
@@ -23999,6 +25112,7 @@ class DefaultApi(object):
23999
25112
  collection_formats['origin'] = 'multi' # noqa: E501
24000
25113
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
24001
25114
  query_params.append(('level', local_var_params['level'])) # noqa: E501
25115
+ collection_formats['level'] = 'multi' # noqa: E501
24002
25116
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
24003
25117
  query_params.append(('message', local_var_params['message'])) # noqa: E501
24004
25118
  if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
@@ -28417,7 +29531,7 @@ class DefaultApi(object):
28417
29531
 
28418
29532
  :param async_req bool: execute request asynchronously
28419
29533
  :param LineageWorkloadType workload_type: Lineage workload type. (required)
28420
- :param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
29534
+ :param str anyscale_workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
28421
29535
  :param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
28422
29536
  :param str cloud_id: Filter by cloud ID.
28423
29537
  :param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
@@ -28449,7 +29563,7 @@ class DefaultApi(object):
28449
29563
 
28450
29564
  :param async_req bool: execute request asynchronously
28451
29565
  :param LineageWorkloadType workload_type: Lineage workload type. (required)
28452
- :param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
29566
+ :param str anyscale_workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
28453
29567
  :param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
28454
29568
  :param str cloud_id: Filter by cloud ID.
28455
29569
  :param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
@@ -28474,7 +29588,7 @@ class DefaultApi(object):
28474
29588
 
28475
29589
  all_params = [
28476
29590
  'workload_type',
28477
- 'workload_id',
29591
+ 'anyscale_workload_id',
28478
29592
  'project_id',
28479
29593
  'cloud_id',
28480
29594
  'sort_field',
@@ -28515,8 +29629,8 @@ class DefaultApi(object):
28515
29629
  query_params = []
28516
29630
  if 'workload_type' in local_var_params and local_var_params['workload_type'] is not None: # noqa: E501
28517
29631
  query_params.append(('workload_type', local_var_params['workload_type'])) # noqa: E501
28518
- if 'workload_id' in local_var_params and local_var_params['workload_id'] is not None: # noqa: E501
28519
- query_params.append(('workload_id', local_var_params['workload_id'])) # noqa: E501
29632
+ if 'anyscale_workload_id' in local_var_params and local_var_params['anyscale_workload_id'] is not None: # noqa: E501
29633
+ query_params.append(('anyscale_workload_id', local_var_params['anyscale_workload_id'])) # noqa: E501
28520
29634
  if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28521
29635
  query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28522
29636
  if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
@@ -29803,6 +30917,129 @@ class DefaultApi(object):
29803
30917
  _request_timeout=local_var_params.get('_request_timeout'),
29804
30918
  collection_formats=collection_formats)
29805
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
+
29806
31043
  def list_services_api_v2_services_v2_get(self, **kwargs): # noqa: E501
29807
31044
  """List Services # noqa: E501
29808
31045
 
@@ -30122,6 +31359,138 @@ class DefaultApi(object):
30122
31359
  _request_timeout=local_var_params.get('_request_timeout'),
30123
31360
  collection_formats=collection_formats)
30124
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
+
30125
31494
  def list_template_versions_api_v2_workspace_templates_template_id_versions_get(self, template_id, **kwargs): # noqa: E501
30126
31495
  """List Template Versions # noqa: E501
30127
31496
 
@@ -30541,6 +31910,138 @@ class DefaultApi(object):
30541
31910
  _request_timeout=local_var_params.get('_request_timeout'),
30542
31911
  collection_formats=collection_formats)
30543
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
+
30544
32045
  def list_workspace_templates_api_v2_experimental_workspaces_templates_get(self, **kwargs): # noqa: E501
30545
32046
  """List Workspace Templates # noqa: E501
30546
32047
 
@@ -31074,7 +32575,7 @@ class DefaultApi(object):
31074
32575
  number provided, it will be total request
31075
32576
  timeout. It can also be a pair (tuple) of
31076
32577
  (connection, read) timeouts.
31077
- :return: OauthconnectionresponseResponse
32578
+ :return: None
31078
32579
  If the method is called asynchronously,
31079
32580
  returns the request thread.
31080
32581
  """
@@ -31102,7 +32603,7 @@ class DefaultApi(object):
31102
32603
  number provided, it will be total request
31103
32604
  timeout. It can also be a pair (tuple) of
31104
32605
  (connection, read) timeouts.
31105
- :return: tuple(OauthconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
32606
+ :return: None
31106
32607
  If the method is called asynchronously,
31107
32608
  returns the request thread.
31108
32609
  """
@@ -31170,7 +32671,7 @@ class DefaultApi(object):
31170
32671
  body=body_params,
31171
32672
  post_params=form_params,
31172
32673
  files=local_var_files,
31173
- response_type='OauthconnectionresponseResponse', # noqa: E501
32674
+ response_type=None, # noqa: E501
31174
32675
  auth_settings=auth_settings,
31175
32676
  async_req=local_var_params.get('async_req'),
31176
32677
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -38944,6 +40445,120 @@ class DefaultApi(object):
38944
40445
  _request_timeout=local_var_params.get('_request_timeout'),
38945
40446
  collection_formats=collection_formats)
38946
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
+
38947
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
38948
40563
  """Update Cloud Auto Add User # noqa: E501
38949
40564
 
@@ -41028,6 +42643,133 @@ class DefaultApi(object):
41028
42643
  _request_timeout=local_var_params.get('_request_timeout'),
41029
42644
  collection_formats=collection_formats)
41030
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
+
41031
42773
  def upload_session_command_logs_api_v2_session_commands_session_command_id_upload_logs_post(self, session_command_id, **kwargs): # noqa: E501
41032
42774
  """Upload Session Command Logs # noqa: E501
41033
42775