anyscale 0.26.68__py3-none-any.whl → 0.26.70__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 (71) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +67 -1
  2. anyscale/_private/anyscale_client/common.py +20 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +77 -10
  4. anyscale/client/README.md +16 -4
  5. anyscale/client/openapi_client/__init__.py +12 -4
  6. anyscale/client/openapi_client/api/default_api.py +588 -23
  7. anyscale/client/openapi_client/models/__init__.py +12 -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_production_service_multi_version_v2_model.py +207 -0
  11. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  12. anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
  13. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  14. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  15. anyscale/client/openapi_client/models/clusterdashboardnode_response.py +121 -0
  16. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  17. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  18. anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
  19. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  20. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  21. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  22. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  23. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  24. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  25. anyscale/client/openapi_client/models/event_level.py +2 -1
  26. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  27. anyscale/client/openapi_client/models/lineage_graph_node.py +70 -42
  28. anyscale/client/openapi_client/models/lineage_workload.py +31 -3
  29. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  30. anyscale/client/openapi_client/models/partition_info.py +30 -1
  31. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  32. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  33. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  34. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
  35. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  36. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  37. anyscale/client/openapi_client/models/unified_event.py +377 -0
  38. anyscale/client/openapi_client/models/{ha_job_event_level.py → unified_origin_filter.py} +21 -9
  39. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  40. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  41. anyscale/client/openapi_client/models/workspace_template_version.py +30 -1
  42. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +30 -1
  43. anyscale/cloud/models.py +2 -2
  44. anyscale/commands/cloud_commands.py +148 -11
  45. anyscale/commands/command_examples.py +53 -0
  46. anyscale/commands/job_commands.py +1 -1
  47. anyscale/commands/service_commands.py +130 -67
  48. anyscale/commands/setup_k8s.py +615 -49
  49. anyscale/controllers/cloud_controller.py +19 -5
  50. anyscale/controllers/kubernetes_verifier.py +80 -66
  51. anyscale/job/_private/job_sdk.py +47 -1
  52. anyscale/job/commands.py +3 -0
  53. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  54. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  55. anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
  56. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  57. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
  58. anyscale/service/__init__.py +11 -3
  59. anyscale/service/_private/service_sdk.py +361 -35
  60. anyscale/service/commands.py +15 -3
  61. anyscale/service/models.py +12 -0
  62. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  63. anyscale/version.py +1 -1
  64. {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/METADATA +1 -1
  65. {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/RECORD +70 -62
  66. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  67. {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/WHEEL +0 -0
  68. {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/entry_points.txt +0 -0
  69. {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/licenses/LICENSE +0 -0
  70. {anyscale-0.26.68.dist-info → anyscale-0.26.70.dist-info}/licenses/NOTICE +0 -0
  71. {anyscale-0.26.68.dist-info → anyscale-0.26.70.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
 
@@ -13395,7 +13640,7 @@ class DefaultApi(object):
13395
13640
  :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
13396
13641
  :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
13397
13642
  :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
13643
+ :param list[EventLevel] level: Filter by level of event. If level is not set, query will return all level values
13399
13644
  :param str message: Filter by message of event. If message is not set, query will not filter for message
13400
13645
  :param _preload_content: if False, the urllib3.HTTPResponse object will
13401
13646
  be returned without reading/decoding response
@@ -13430,7 +13675,7 @@ class DefaultApi(object):
13430
13675
  :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
13431
13676
  :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
13432
13677
  :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
13678
+ :param list[EventLevel] level: Filter by level of event. If level is not set, query will return all level values
13434
13679
  :param str message: Filter by message of event. If message is not set, query will not filter for message
13435
13680
  :param _return_http_data_only: response data without head status code
13436
13681
  and headers
@@ -13510,6 +13755,7 @@ class DefaultApi(object):
13510
13755
  query_params.append(('count', local_var_params['count'])) # noqa: E501
13511
13756
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
13512
13757
  query_params.append(('level', local_var_params['level'])) # noqa: E501
13758
+ collection_formats['level'] = 'multi' # noqa: E501
13513
13759
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
13514
13760
  query_params.append(('message', local_var_params['message'])) # noqa: E501
13515
13761
 
@@ -16231,7 +16477,7 @@ class DefaultApi(object):
16231
16477
  :param async_req bool: execute request asynchronously
16232
16478
  :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
16479
  :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
16480
+ :param list[EventLevel] level: Filter by level of event
16235
16481
  :param str message: Filter by message of event
16236
16482
  :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
16483
  :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 +16510,7 @@ class DefaultApi(object):
16264
16510
  :param async_req bool: execute request asynchronously
16265
16511
  :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
16512
  :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
16513
+ :param list[EventLevel] level: Filter by level of event
16268
16514
  :param str message: Filter by message of event
16269
16515
  :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
16516
  :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 +16582,7 @@ class DefaultApi(object):
16336
16582
  collection_formats['origin'] = 'multi' # noqa: E501
16337
16583
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
16338
16584
  query_params.append(('level', local_var_params['level'])) # noqa: E501
16585
+ collection_formats['level'] = 'multi' # noqa: E501
16339
16586
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
16340
16587
  query_params.append(('message', local_var_params['message'])) # noqa: E501
16341
16588
  if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
@@ -18490,6 +18737,132 @@ class DefaultApi(object):
18490
18737
  _request_timeout=local_var_params.get('_request_timeout'),
18491
18738
  collection_formats=collection_formats)
18492
18739
 
18740
+ def get_node_api_v2_cluster_dashboard_node_id_get(self, node_id, cluster_id, **kwargs): # noqa: E501
18741
+ """Get Node # noqa: E501
18742
+
18743
+ This method makes a synchronous HTTP request by default. To make an
18744
+ asynchronous HTTP request, please pass async_req=True
18745
+ >>> thread = api.get_node_api_v2_cluster_dashboard_node_id_get(node_id, cluster_id, async_req=True)
18746
+ >>> result = thread.get()
18747
+
18748
+ :param async_req bool: execute request asynchronously
18749
+ :param str node_id: (required)
18750
+ :param str cluster_id: (required)
18751
+ :param str session_name: The name of the session to the node belongs to.
18752
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18753
+ be returned without reading/decoding response
18754
+ data. Default is True.
18755
+ :param _request_timeout: timeout setting for this request. If one
18756
+ number provided, it will be total request
18757
+ timeout. It can also be a pair (tuple) of
18758
+ (connection, read) timeouts.
18759
+ :return: ClusterdashboardnodeResponse
18760
+ If the method is called asynchronously,
18761
+ returns the request thread.
18762
+ """
18763
+ kwargs['_return_http_data_only'] = True
18764
+ return self.get_node_api_v2_cluster_dashboard_node_id_get_with_http_info(node_id, cluster_id, **kwargs) # noqa: E501
18765
+
18766
+ def get_node_api_v2_cluster_dashboard_node_id_get_with_http_info(self, node_id, cluster_id, **kwargs): # noqa: E501
18767
+ """Get Node # noqa: E501
18768
+
18769
+ This method makes a synchronous HTTP request by default. To make an
18770
+ asynchronous HTTP request, please pass async_req=True
18771
+ >>> thread = api.get_node_api_v2_cluster_dashboard_node_id_get_with_http_info(node_id, cluster_id, async_req=True)
18772
+ >>> result = thread.get()
18773
+
18774
+ :param async_req bool: execute request asynchronously
18775
+ :param str node_id: (required)
18776
+ :param str cluster_id: (required)
18777
+ :param str session_name: The name of the session to the node belongs to.
18778
+ :param _return_http_data_only: response data without head status code
18779
+ and headers
18780
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
18781
+ be returned without reading/decoding response
18782
+ data. Default is True.
18783
+ :param _request_timeout: timeout setting for this request. If one
18784
+ number provided, it will be total request
18785
+ timeout. It can also be a pair (tuple) of
18786
+ (connection, read) timeouts.
18787
+ :return: tuple(ClusterdashboardnodeResponse, status_code(int), headers(HTTPHeaderDict))
18788
+ If the method is called asynchronously,
18789
+ returns the request thread.
18790
+ """
18791
+
18792
+ local_var_params = locals()
18793
+
18794
+ all_params = [
18795
+ 'node_id',
18796
+ 'cluster_id',
18797
+ 'session_name'
18798
+ ]
18799
+ all_params.extend(
18800
+ [
18801
+ 'async_req',
18802
+ '_return_http_data_only',
18803
+ '_preload_content',
18804
+ '_request_timeout'
18805
+ ]
18806
+ )
18807
+
18808
+ for key, val in six.iteritems(local_var_params['kwargs']):
18809
+ if key not in all_params:
18810
+ raise ApiTypeError(
18811
+ "Got an unexpected keyword argument '%s'"
18812
+ " to method get_node_api_v2_cluster_dashboard_node_id_get" % key
18813
+ )
18814
+ local_var_params[key] = val
18815
+ del local_var_params['kwargs']
18816
+ # verify the required parameter 'node_id' is set
18817
+ if self.api_client.client_side_validation and ('node_id' not in local_var_params or # noqa: E501
18818
+ local_var_params['node_id'] is None): # noqa: E501
18819
+ raise ApiValueError("Missing the required parameter `node_id` when calling `get_node_api_v2_cluster_dashboard_node_id_get`") # noqa: E501
18820
+ # verify the required parameter 'cluster_id' is set
18821
+ if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501
18822
+ local_var_params['cluster_id'] is None): # noqa: E501
18823
+ raise ApiValueError("Missing the required parameter `cluster_id` when calling `get_node_api_v2_cluster_dashboard_node_id_get`") # noqa: E501
18824
+
18825
+ collection_formats = {}
18826
+
18827
+ path_params = {}
18828
+ if 'node_id' in local_var_params:
18829
+ path_params['node_id'] = local_var_params['node_id'] # noqa: E501
18830
+
18831
+ query_params = []
18832
+ if 'cluster_id' in local_var_params and local_var_params['cluster_id'] is not None: # noqa: E501
18833
+ query_params.append(('cluster_id', local_var_params['cluster_id'])) # noqa: E501
18834
+ if 'session_name' in local_var_params and local_var_params['session_name'] is not None: # noqa: E501
18835
+ query_params.append(('session_name', local_var_params['session_name'])) # noqa: E501
18836
+
18837
+ header_params = {}
18838
+
18839
+ form_params = []
18840
+ local_var_files = {}
18841
+
18842
+ body_params = None
18843
+ # HTTP header `Accept`
18844
+ header_params['Accept'] = self.api_client.select_header_accept(
18845
+ ['application/json']) # noqa: E501
18846
+
18847
+ # Authentication setting
18848
+ auth_settings = [] # noqa: E501
18849
+
18850
+ return self.api_client.call_api(
18851
+ '/api/v2/cluster_dashboard/{node_id}', 'GET',
18852
+ path_params,
18853
+ query_params,
18854
+ header_params,
18855
+ body=body_params,
18856
+ post_params=form_params,
18857
+ files=local_var_files,
18858
+ response_type='ClusterdashboardnodeResponse', # noqa: E501
18859
+ auth_settings=auth_settings,
18860
+ async_req=local_var_params.get('async_req'),
18861
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
18862
+ _preload_content=local_var_params.get('_preload_content', True),
18863
+ _request_timeout=local_var_params.get('_request_timeout'),
18864
+ collection_formats=collection_formats)
18865
+
18493
18866
  def get_nodes_api_v2_cluster_dashboard_get(self, cluster_id, **kwargs): # noqa: E501
18494
18867
  """Get Nodes # noqa: E501
18495
18868
 
@@ -20855,7 +21228,7 @@ class DefaultApi(object):
20855
21228
  def get_service_events_api_v2_services_v2_service_id_events_get(self, service_id, **kwargs): # noqa: E501
20856
21229
  """Get Service Events # noqa: E501
20857
21230
 
20858
- Get Service events # noqa: E501
21231
+ Get Service events (DEPRECATED: Use /api/v2/events/service/{service_id}/events instead) # noqa: E501
20859
21232
  This method makes a synchronous HTTP request by default. To make an
20860
21233
  asynchronous HTTP request, please pass async_req=True
20861
21234
  >>> thread = api.get_service_events_api_v2_services_v2_service_id_events_get(service_id, async_req=True)
@@ -20864,7 +21237,7 @@ class DefaultApi(object):
20864
21237
  :param async_req bool: execute request asynchronously
20865
21238
  :param str service_id: (required)
20866
21239
  :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.
20867
- :param ServiceEventLevel level: Filter by level of event
21240
+ :param list[EventLevel] level: Filter by level of event
20868
21241
  :param str message: Filter by message of event
20869
21242
  :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.
20870
21243
  :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.
@@ -20889,7 +21262,7 @@ class DefaultApi(object):
20889
21262
  def get_service_events_api_v2_services_v2_service_id_events_get_with_http_info(self, service_id, **kwargs): # noqa: E501
20890
21263
  """Get Service Events # noqa: E501
20891
21264
 
20892
- Get Service events # noqa: E501
21265
+ Get Service events (DEPRECATED: Use /api/v2/events/service/{service_id}/events instead) # noqa: E501
20893
21266
  This method makes a synchronous HTTP request by default. To make an
20894
21267
  asynchronous HTTP request, please pass async_req=True
20895
21268
  >>> thread = api.get_service_events_api_v2_services_v2_service_id_events_get_with_http_info(service_id, async_req=True)
@@ -20898,7 +21271,7 @@ class DefaultApi(object):
20898
21271
  :param async_req bool: execute request asynchronously
20899
21272
  :param str service_id: (required)
20900
21273
  :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.
20901
- :param ServiceEventLevel level: Filter by level of event
21274
+ :param list[EventLevel] level: Filter by level of event
20902
21275
  :param str message: Filter by message of event
20903
21276
  :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.
20904
21277
  :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.
@@ -20972,6 +21345,7 @@ class DefaultApi(object):
20972
21345
  collection_formats['origin'] = 'multi' # noqa: E501
20973
21346
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
20974
21347
  query_params.append(('level', local_var_params['level'])) # noqa: E501
21348
+ collection_formats['level'] = 'multi' # noqa: E501
20975
21349
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
20976
21350
  query_params.append(('message', local_var_params['message'])) # noqa: E501
20977
21351
  if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
@@ -23184,6 +23558,196 @@ class DefaultApi(object):
23184
23558
  _request_timeout=local_var_params.get('_request_timeout'),
23185
23559
  collection_formats=collection_formats)
23186
23560
 
23561
+ def get_unified_events_api_v2_events_entity_type_entity_id_events_get(self, entity_type, entity_id, **kwargs): # noqa: E501
23562
+ """Get Unified Events # noqa: E501
23563
+
23564
+ Get events for any entity type (production jobs, workspaces, or services) # noqa: E501
23565
+ This method makes a synchronous HTTP request by default. To make an
23566
+ asynchronous HTTP request, please pass async_req=True
23567
+ >>> thread = api.get_unified_events_api_v2_events_entity_type_entity_id_events_get(entity_type, entity_id, async_req=True)
23568
+ >>> result = thread.get()
23569
+
23570
+ :param async_req bool: execute request asynchronously
23571
+ :param EntityType entity_type: The type of entity (required)
23572
+ :param str entity_id: The ID of the entity (required)
23573
+ :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
23574
+ :param list[EventLevel] level: Filter by level of event
23575
+ :param str message: Filter by message of event
23576
+ :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.
23577
+ :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.
23578
+ :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
23579
+ :param bool include_verbose_events: Show all verbose service events without truncation if set to True. Only applicable to service events.
23580
+ :param str instance_id: Filter for events from this instance. This is a string that is the instance id of the instance.
23581
+ :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}']
23582
+ :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
23583
+ :param int count:
23584
+ :param str paging_token:
23585
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
23586
+ be returned without reading/decoding response
23587
+ data. Default is True.
23588
+ :param _request_timeout: timeout setting for this request. If one
23589
+ number provided, it will be total request
23590
+ timeout. It can also be a pair (tuple) of
23591
+ (connection, read) timeouts.
23592
+ :return: UnifiedeventListResponse
23593
+ If the method is called asynchronously,
23594
+ returns the request thread.
23595
+ """
23596
+ kwargs['_return_http_data_only'] = True
23597
+ return self.get_unified_events_api_v2_events_entity_type_entity_id_events_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
23598
+
23599
+ def get_unified_events_api_v2_events_entity_type_entity_id_events_get_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
23600
+ """Get Unified Events # noqa: E501
23601
+
23602
+ Get events for any entity type (production jobs, workspaces, or services) # noqa: E501
23603
+ This method makes a synchronous HTTP request by default. To make an
23604
+ asynchronous HTTP request, please pass async_req=True
23605
+ >>> thread = api.get_unified_events_api_v2_events_entity_type_entity_id_events_get_with_http_info(entity_type, entity_id, async_req=True)
23606
+ >>> result = thread.get()
23607
+
23608
+ :param async_req bool: execute request asynchronously
23609
+ :param EntityType entity_type: The type of entity (required)
23610
+ :param str entity_id: The ID of the entity (required)
23611
+ :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
23612
+ :param list[EventLevel] level: Filter by level of event
23613
+ :param str message: Filter by message of event
23614
+ :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.
23615
+ :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.
23616
+ :param bool ascending_order: Fetch events in ascending order of time. Default is descending order.
23617
+ :param bool include_verbose_events: Show all verbose service events without truncation if set to True. Only applicable to service events.
23618
+ :param str instance_id: Filter for events from this instance. This is a string that is the instance id of the instance.
23619
+ :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}']
23620
+ :param str instance_node_ip: Filter for events from this instance. This is a string that is the node ip of the instance.
23621
+ :param int count:
23622
+ :param str paging_token:
23623
+ :param _return_http_data_only: response data without head status code
23624
+ and headers
23625
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
23626
+ be returned without reading/decoding response
23627
+ data. Default is True.
23628
+ :param _request_timeout: timeout setting for this request. If one
23629
+ number provided, it will be total request
23630
+ timeout. It can also be a pair (tuple) of
23631
+ (connection, read) timeouts.
23632
+ :return: tuple(UnifiedeventListResponse, status_code(int), headers(HTTPHeaderDict))
23633
+ If the method is called asynchronously,
23634
+ returns the request thread.
23635
+ """
23636
+
23637
+ local_var_params = locals()
23638
+
23639
+ all_params = [
23640
+ 'entity_type',
23641
+ 'entity_id',
23642
+ 'origin',
23643
+ 'level',
23644
+ 'message',
23645
+ 'start_time',
23646
+ 'end_time',
23647
+ 'ascending_order',
23648
+ 'include_verbose_events',
23649
+ 'instance_id',
23650
+ 'autoscaler_resource_bundles',
23651
+ 'instance_node_ip',
23652
+ 'count',
23653
+ 'paging_token'
23654
+ ]
23655
+ all_params.extend(
23656
+ [
23657
+ 'async_req',
23658
+ '_return_http_data_only',
23659
+ '_preload_content',
23660
+ '_request_timeout'
23661
+ ]
23662
+ )
23663
+
23664
+ for key, val in six.iteritems(local_var_params['kwargs']):
23665
+ if key not in all_params:
23666
+ raise ApiTypeError(
23667
+ "Got an unexpected keyword argument '%s'"
23668
+ " to method get_unified_events_api_v2_events_entity_type_entity_id_events_get" % key
23669
+ )
23670
+ local_var_params[key] = val
23671
+ del local_var_params['kwargs']
23672
+ # verify the required parameter 'entity_type' is set
23673
+ if self.api_client.client_side_validation and ('entity_type' not in local_var_params or # noqa: E501
23674
+ local_var_params['entity_type'] is None): # noqa: E501
23675
+ raise ApiValueError("Missing the required parameter `entity_type` when calling `get_unified_events_api_v2_events_entity_type_entity_id_events_get`") # noqa: E501
23676
+ # verify the required parameter 'entity_id' is set
23677
+ if self.api_client.client_side_validation and ('entity_id' not in local_var_params or # noqa: E501
23678
+ local_var_params['entity_id'] is None): # noqa: E501
23679
+ raise ApiValueError("Missing the required parameter `entity_id` when calling `get_unified_events_api_v2_events_entity_type_entity_id_events_get`") # noqa: E501
23680
+
23681
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 1000: # noqa: E501
23682
+ 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
23683
+ if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
23684
+ 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
23685
+ collection_formats = {}
23686
+
23687
+ path_params = {}
23688
+ if 'entity_type' in local_var_params:
23689
+ path_params['entity_type'] = local_var_params['entity_type'] # noqa: E501
23690
+ if 'entity_id' in local_var_params:
23691
+ path_params['entity_id'] = local_var_params['entity_id'] # noqa: E501
23692
+
23693
+ query_params = []
23694
+ if 'origin' in local_var_params and local_var_params['origin'] is not None: # noqa: E501
23695
+ query_params.append(('origin', local_var_params['origin'])) # noqa: E501
23696
+ collection_formats['origin'] = 'multi' # noqa: E501
23697
+ if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
23698
+ query_params.append(('level', local_var_params['level'])) # noqa: E501
23699
+ collection_formats['level'] = 'multi' # noqa: E501
23700
+ if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
23701
+ query_params.append(('message', local_var_params['message'])) # noqa: E501
23702
+ if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
23703
+ query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501
23704
+ if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501
23705
+ query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501
23706
+ if 'ascending_order' in local_var_params and local_var_params['ascending_order'] is not None: # noqa: E501
23707
+ query_params.append(('ascending_order', local_var_params['ascending_order'])) # noqa: E501
23708
+ if 'include_verbose_events' in local_var_params and local_var_params['include_verbose_events'] is not None: # noqa: E501
23709
+ query_params.append(('include_verbose_events', local_var_params['include_verbose_events'])) # noqa: E501
23710
+ if 'instance_id' in local_var_params and local_var_params['instance_id'] is not None: # noqa: E501
23711
+ query_params.append(('instance_id', local_var_params['instance_id'])) # noqa: E501
23712
+ if 'autoscaler_resource_bundles' in local_var_params and local_var_params['autoscaler_resource_bundles'] is not None: # noqa: E501
23713
+ query_params.append(('autoscaler_resource_bundles', local_var_params['autoscaler_resource_bundles'])) # noqa: E501
23714
+ collection_formats['autoscaler_resource_bundles'] = 'multi' # noqa: E501
23715
+ if 'instance_node_ip' in local_var_params and local_var_params['instance_node_ip'] is not None: # noqa: E501
23716
+ query_params.append(('instance_node_ip', local_var_params['instance_node_ip'])) # noqa: E501
23717
+ if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
23718
+ query_params.append(('count', local_var_params['count'])) # noqa: E501
23719
+ if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
23720
+ query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
23721
+
23722
+ header_params = {}
23723
+
23724
+ form_params = []
23725
+ local_var_files = {}
23726
+
23727
+ body_params = None
23728
+ # HTTP header `Accept`
23729
+ header_params['Accept'] = self.api_client.select_header_accept(
23730
+ ['application/json']) # noqa: E501
23731
+
23732
+ # Authentication setting
23733
+ auth_settings = [] # noqa: E501
23734
+
23735
+ return self.api_client.call_api(
23736
+ '/api/v2/events/{entity_type}/{entity_id}/events', 'GET',
23737
+ path_params,
23738
+ query_params,
23739
+ header_params,
23740
+ body=body_params,
23741
+ post_params=form_params,
23742
+ files=local_var_files,
23743
+ response_type='UnifiedeventListResponse', # noqa: E501
23744
+ auth_settings=auth_settings,
23745
+ async_req=local_var_params.get('async_req'),
23746
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
23747
+ _preload_content=local_var_params.get('_preload_content', True),
23748
+ _request_timeout=local_var_params.get('_request_timeout'),
23749
+ collection_formats=collection_formats)
23750
+
23187
23751
  def get_user_info_api_v2_userinfo_get(self, **kwargs): # noqa: E501
23188
23752
  """Get User Info # noqa: E501
23189
23753
 
@@ -23759,7 +24323,7 @@ class DefaultApi(object):
23759
24323
  def get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get(self, workspace_id, **kwargs): # noqa: E501
23760
24324
  """Get Workspace Events # noqa: E501
23761
24325
 
23762
- Retrieves events for a Workspace. # noqa: E501
24326
+ Retrieves events for a Workspace. (DEPRECATED: Use /api/v2/events/workspace/{workspace_id}/events instead) # noqa: E501
23763
24327
  This method makes a synchronous HTTP request by default. To make an
23764
24328
  asynchronous HTTP request, please pass async_req=True
23765
24329
  >>> thread = api.get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get(workspace_id, async_req=True)
@@ -23768,7 +24332,7 @@ class DefaultApi(object):
23768
24332
  :param async_req bool: execute request asynchronously
23769
24333
  :param str workspace_id: ID of the Workspace to retreive. (required)
23770
24334
  :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.
23771
- :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
24335
+ :param list[EventLevel] level: Filter by level of event
23772
24336
  :param str message: Filter by message of event. If message is not set, query will not filter for message
23773
24337
  :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.
23774
24338
  :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.
@@ -23792,7 +24356,7 @@ class DefaultApi(object):
23792
24356
  def get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get_with_http_info(self, workspace_id, **kwargs): # noqa: E501
23793
24357
  """Get Workspace Events # noqa: E501
23794
24358
 
23795
- Retrieves events for a Workspace. # noqa: E501
24359
+ Retrieves events for a Workspace. (DEPRECATED: Use /api/v2/events/workspace/{workspace_id}/events instead) # noqa: E501
23796
24360
  This method makes a synchronous HTTP request by default. To make an
23797
24361
  asynchronous HTTP request, please pass async_req=True
23798
24362
  >>> thread = api.get_workspace_events_api_v2_experimental_workspaces_workspace_id_events_get_with_http_info(workspace_id, async_req=True)
@@ -23801,7 +24365,7 @@ class DefaultApi(object):
23801
24365
  :param async_req bool: execute request asynchronously
23802
24366
  :param str workspace_id: ID of the Workspace to retreive. (required)
23803
24367
  :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.
23804
- :param EventLevel level: Filter by level of event. If level is not set, query will return all level values
24368
+ :param list[EventLevel] level: Filter by level of event
23805
24369
  :param str message: Filter by message of event. If message is not set, query will not filter for message
23806
24370
  :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.
23807
24371
  :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.
@@ -23873,6 +24437,7 @@ class DefaultApi(object):
23873
24437
  collection_formats['origin'] = 'multi' # noqa: E501
23874
24438
  if 'level' in local_var_params and local_var_params['level'] is not None: # noqa: E501
23875
24439
  query_params.append(('level', local_var_params['level'])) # noqa: E501
24440
+ collection_formats['level'] = 'multi' # noqa: E501
23876
24441
  if 'message' in local_var_params and local_var_params['message'] is not None: # noqa: E501
23877
24442
  query_params.append(('message', local_var_params['message'])) # noqa: E501
23878
24443
  if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501
@@ -28291,7 +28856,7 @@ class DefaultApi(object):
28291
28856
 
28292
28857
  :param async_req bool: execute request asynchronously
28293
28858
  :param LineageWorkloadType workload_type: Lineage workload type. (required)
28294
- :param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
28859
+ :param str anyscale_workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
28295
28860
  :param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
28296
28861
  :param str cloud_id: Filter by cloud ID.
28297
28862
  :param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
@@ -28323,7 +28888,7 @@ class DefaultApi(object):
28323
28888
 
28324
28889
  :param async_req bool: execute request asynchronously
28325
28890
  :param LineageWorkloadType workload_type: Lineage workload type. (required)
28326
- :param str workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
28891
+ :param str anyscale_workload_id: Filter by Anyscale workload ID. This takes precedence over project_id and cloud_id filters.
28327
28892
  :param str project_id: Filter by project ID. This takes precedence over cloud_id filter.
28328
28893
  :param str cloud_id: Filter by cloud ID.
28329
28894
  :param LineageWorkloadSortField sort_field: Sort field. Defaults to created_at.
@@ -28348,7 +28913,7 @@ class DefaultApi(object):
28348
28913
 
28349
28914
  all_params = [
28350
28915
  'workload_type',
28351
- 'workload_id',
28916
+ 'anyscale_workload_id',
28352
28917
  'project_id',
28353
28918
  'cloud_id',
28354
28919
  'sort_field',
@@ -28389,8 +28954,8 @@ class DefaultApi(object):
28389
28954
  query_params = []
28390
28955
  if 'workload_type' in local_var_params and local_var_params['workload_type'] is not None: # noqa: E501
28391
28956
  query_params.append(('workload_type', local_var_params['workload_type'])) # noqa: E501
28392
- if 'workload_id' in local_var_params and local_var_params['workload_id'] is not None: # noqa: E501
28393
- query_params.append(('workload_id', local_var_params['workload_id'])) # noqa: E501
28957
+ if 'anyscale_workload_id' in local_var_params and local_var_params['anyscale_workload_id'] is not None: # noqa: E501
28958
+ query_params.append(('anyscale_workload_id', local_var_params['anyscale_workload_id'])) # noqa: E501
28394
28959
  if 'project_id' in local_var_params and local_var_params['project_id'] is not None: # noqa: E501
28395
28960
  query_params.append(('project_id', local_var_params['project_id'])) # noqa: E501
28396
28961
  if 'cloud_id' in local_var_params and local_var_params['cloud_id'] is not None: # noqa: E501
@@ -30948,7 +31513,7 @@ class DefaultApi(object):
30948
31513
  number provided, it will be total request
30949
31514
  timeout. It can also be a pair (tuple) of
30950
31515
  (connection, read) timeouts.
30951
- :return: OauthconnectionresponseResponse
31516
+ :return: None
30952
31517
  If the method is called asynchronously,
30953
31518
  returns the request thread.
30954
31519
  """
@@ -30976,7 +31541,7 @@ class DefaultApi(object):
30976
31541
  number provided, it will be total request
30977
31542
  timeout. It can also be a pair (tuple) of
30978
31543
  (connection, read) timeouts.
30979
- :return: tuple(OauthconnectionresponseResponse, status_code(int), headers(HTTPHeaderDict))
31544
+ :return: None
30980
31545
  If the method is called asynchronously,
30981
31546
  returns the request thread.
30982
31547
  """
@@ -31044,7 +31609,7 @@ class DefaultApi(object):
31044
31609
  body=body_params,
31045
31610
  post_params=form_params,
31046
31611
  files=local_var_files,
31047
- response_type='OauthconnectionresponseResponse', # noqa: E501
31612
+ response_type=None, # noqa: E501
31048
31613
  auth_settings=auth_settings,
31049
31614
  async_req=local_var_params.get('async_req'),
31050
31615
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501