anyscale 0.26.0__py3-none-any.whl → 0.26.1__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 (30) hide show
  1. anyscale/client/README.md +11 -10
  2. anyscale/client/openapi_client/__init__.py +6 -6
  3. anyscale/client/openapi_client/api/default_api.py +210 -83
  4. anyscale/client/openapi_client/models/__init__.py +6 -6
  5. anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +81 -3
  6. anyscale/client/openapi_client/models/create_organization_configuration.py +3 -3
  7. anyscale/client/openapi_client/models/{create_resource_alert.py → create_resource_notification.py} +40 -40
  8. anyscale/client/openapi_client/models/{list_resource_alerts_query.py → list_resource_notifications_query.py} +24 -24
  9. anyscale/client/openapi_client/models/{customer_billing_type.py → machine_launch_failure.py} +65 -14
  10. anyscale/client/openapi_client/models/organization_configuration.py +3 -3
  11. anyscale/client/openapi_client/models/organization_configuration_response.py +3 -3
  12. anyscale/client/openapi_client/models/resource_alert_event_type.py +4 -1
  13. anyscale/client/openapi_client/models/{resource_alert.py → resource_notification.py} +64 -64
  14. anyscale/client/openapi_client/models/{resourcealert_list_response.py → resourcenotification_list_response.py} +15 -15
  15. anyscale/client/openapi_client/models/{resourcealert_response.py → resourcenotification_response.py} +11 -11
  16. anyscale/client/openapi_client/models/scheduler_info.py +32 -3
  17. anyscale/client/openapi_client/models/tool.py +2 -1
  18. anyscale/client/openapi_client/models/workspace_dataplane_proxied_artifacts.py +31 -3
  19. anyscale/commands/machine_pool_commands.py +15 -10
  20. anyscale/resource_quota/commands.py +1 -2
  21. anyscale/service/_private/service_sdk.py +2 -3
  22. anyscale/shared_anyscale_utils/constants.py +3 -0
  23. anyscale/version.py +1 -1
  24. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/RECORD +30 -29
  26. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/LICENSE +0 -0
  27. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/NOTICE +0 -0
  28. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/WHEEL +0 -0
  29. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/entry_points.txt +0 -0
  30. {anyscale-0.26.0.dist-info → anyscale-0.26.1.dist-info}/top_level.txt +0 -0
@@ -4974,7 +4974,7 @@ class DefaultApi(object):
4974
4974
  >>> result = thread.get()
4975
4975
 
4976
4976
  :param async_req bool: execute request asynchronously
4977
- :param CustomerBillingType customer_billing_type: (required)
4977
+ :param str customer_billing_type: (required)
4978
4978
  :param str invite_code:
4979
4979
  :param datetime expires_at:
4980
4980
  :param str description:
@@ -5002,7 +5002,7 @@ class DefaultApi(object):
5002
5002
  >>> result = thread.get()
5003
5003
 
5004
5004
  :param async_req bool: execute request asynchronously
5005
- :param CustomerBillingType customer_billing_type: (required)
5005
+ :param str customer_billing_type: (required)
5006
5006
  :param str invite_code:
5007
5007
  :param datetime expires_at:
5008
5008
  :param str description:
@@ -6960,16 +6960,16 @@ class DefaultApi(object):
6960
6960
  _request_timeout=local_var_params.get('_request_timeout'),
6961
6961
  collection_formats=collection_formats)
6962
6962
 
6963
- def create_resource_alert_api_v2_resource_alerts_post(self, create_resource_alert, **kwargs): # noqa: E501
6964
- """Create Resource Alert # noqa: E501
6963
+ def create_resource_notification_api_v2_resource_notifications_post(self, create_resource_notification, **kwargs): # noqa: E501
6964
+ """Create Resource Notification # noqa: E501
6965
6965
 
6966
6966
  This method makes a synchronous HTTP request by default. To make an
6967
6967
  asynchronous HTTP request, please pass async_req=True
6968
- >>> thread = api.create_resource_alert_api_v2_resource_alerts_post(create_resource_alert, async_req=True)
6968
+ >>> thread = api.create_resource_notification_api_v2_resource_notifications_post(create_resource_notification, async_req=True)
6969
6969
  >>> result = thread.get()
6970
6970
 
6971
6971
  :param async_req bool: execute request asynchronously
6972
- :param CreateResourceAlert create_resource_alert: (required)
6972
+ :param CreateResourceNotification create_resource_notification: (required)
6973
6973
  :param _preload_content: if False, the urllib3.HTTPResponse object will
6974
6974
  be returned without reading/decoding response
6975
6975
  data. Default is True.
@@ -6977,23 +6977,23 @@ class DefaultApi(object):
6977
6977
  number provided, it will be total request
6978
6978
  timeout. It can also be a pair (tuple) of
6979
6979
  (connection, read) timeouts.
6980
- :return: ResourcealertResponse
6980
+ :return: ResourcenotificationResponse
6981
6981
  If the method is called asynchronously,
6982
6982
  returns the request thread.
6983
6983
  """
6984
6984
  kwargs['_return_http_data_only'] = True
6985
- return self.create_resource_alert_api_v2_resource_alerts_post_with_http_info(create_resource_alert, **kwargs) # noqa: E501
6985
+ return self.create_resource_notification_api_v2_resource_notifications_post_with_http_info(create_resource_notification, **kwargs) # noqa: E501
6986
6986
 
6987
- def create_resource_alert_api_v2_resource_alerts_post_with_http_info(self, create_resource_alert, **kwargs): # noqa: E501
6988
- """Create Resource Alert # noqa: E501
6987
+ def create_resource_notification_api_v2_resource_notifications_post_with_http_info(self, create_resource_notification, **kwargs): # noqa: E501
6988
+ """Create Resource Notification # noqa: E501
6989
6989
 
6990
6990
  This method makes a synchronous HTTP request by default. To make an
6991
6991
  asynchronous HTTP request, please pass async_req=True
6992
- >>> thread = api.create_resource_alert_api_v2_resource_alerts_post_with_http_info(create_resource_alert, async_req=True)
6992
+ >>> thread = api.create_resource_notification_api_v2_resource_notifications_post_with_http_info(create_resource_notification, async_req=True)
6993
6993
  >>> result = thread.get()
6994
6994
 
6995
6995
  :param async_req bool: execute request asynchronously
6996
- :param CreateResourceAlert create_resource_alert: (required)
6996
+ :param CreateResourceNotification create_resource_notification: (required)
6997
6997
  :param _return_http_data_only: response data without head status code
6998
6998
  and headers
6999
6999
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -7003,7 +7003,7 @@ class DefaultApi(object):
7003
7003
  number provided, it will be total request
7004
7004
  timeout. It can also be a pair (tuple) of
7005
7005
  (connection, read) timeouts.
7006
- :return: tuple(ResourcealertResponse, status_code(int), headers(HTTPHeaderDict))
7006
+ :return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
7007
7007
  If the method is called asynchronously,
7008
7008
  returns the request thread.
7009
7009
  """
@@ -7011,7 +7011,7 @@ class DefaultApi(object):
7011
7011
  local_var_params = locals()
7012
7012
 
7013
7013
  all_params = [
7014
- 'create_resource_alert'
7014
+ 'create_resource_notification'
7015
7015
  ]
7016
7016
  all_params.extend(
7017
7017
  [
@@ -7026,14 +7026,14 @@ class DefaultApi(object):
7026
7026
  if key not in all_params:
7027
7027
  raise ApiTypeError(
7028
7028
  "Got an unexpected keyword argument '%s'"
7029
- " to method create_resource_alert_api_v2_resource_alerts_post" % key
7029
+ " to method create_resource_notification_api_v2_resource_notifications_post" % key
7030
7030
  )
7031
7031
  local_var_params[key] = val
7032
7032
  del local_var_params['kwargs']
7033
- # verify the required parameter 'create_resource_alert' is set
7034
- if self.api_client.client_side_validation and ('create_resource_alert' not in local_var_params or # noqa: E501
7035
- local_var_params['create_resource_alert'] is None): # noqa: E501
7036
- raise ApiValueError("Missing the required parameter `create_resource_alert` when calling `create_resource_alert_api_v2_resource_alerts_post`") # noqa: E501
7033
+ # verify the required parameter 'create_resource_notification' is set
7034
+ if self.api_client.client_side_validation and ('create_resource_notification' not in local_var_params or # noqa: E501
7035
+ local_var_params['create_resource_notification'] is None): # noqa: E501
7036
+ raise ApiValueError("Missing the required parameter `create_resource_notification` when calling `create_resource_notification_api_v2_resource_notifications_post`") # noqa: E501
7037
7037
 
7038
7038
  collection_formats = {}
7039
7039
 
@@ -7047,8 +7047,8 @@ class DefaultApi(object):
7047
7047
  local_var_files = {}
7048
7048
 
7049
7049
  body_params = None
7050
- if 'create_resource_alert' in local_var_params:
7051
- body_params = local_var_params['create_resource_alert']
7050
+ if 'create_resource_notification' in local_var_params:
7051
+ body_params = local_var_params['create_resource_notification']
7052
7052
  # HTTP header `Accept`
7053
7053
  header_params['Accept'] = self.api_client.select_header_accept(
7054
7054
  ['application/json']) # noqa: E501
@@ -7061,14 +7061,14 @@ class DefaultApi(object):
7061
7061
  auth_settings = [] # noqa: E501
7062
7062
 
7063
7063
  return self.api_client.call_api(
7064
- '/api/v2/resource_alerts/', 'POST',
7064
+ '/api/v2/resource_notifications/', 'POST',
7065
7065
  path_params,
7066
7066
  query_params,
7067
7067
  header_params,
7068
7068
  body=body_params,
7069
7069
  post_params=form_params,
7070
7070
  files=local_var_files,
7071
- response_type='ResourcealertResponse', # noqa: E501
7071
+ response_type='ResourcenotificationResponse', # noqa: E501
7072
7072
  auth_settings=auth_settings,
7073
7073
  async_req=local_var_params.get('async_req'),
7074
7074
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -9175,16 +9175,16 @@ class DefaultApi(object):
9175
9175
  _request_timeout=local_var_params.get('_request_timeout'),
9176
9176
  collection_formats=collection_formats)
9177
9177
 
9178
- def delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete(self, resource_alert_id, **kwargs): # noqa: E501
9179
- """Delete Resource Alert # noqa: E501
9178
+ def delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete(self, resource_notification_id, **kwargs): # noqa: E501
9179
+ """Delete Resource Notification # noqa: E501
9180
9180
 
9181
9181
  This method makes a synchronous HTTP request by default. To make an
9182
9182
  asynchronous HTTP request, please pass async_req=True
9183
- >>> thread = api.delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete(resource_alert_id, async_req=True)
9183
+ >>> thread = api.delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete(resource_notification_id, async_req=True)
9184
9184
  >>> result = thread.get()
9185
9185
 
9186
9186
  :param async_req bool: execute request asynchronously
9187
- :param str resource_alert_id: (required)
9187
+ :param str resource_notification_id: (required)
9188
9188
  :param _preload_content: if False, the urllib3.HTTPResponse object will
9189
9189
  be returned without reading/decoding response
9190
9190
  data. Default is True.
@@ -9197,18 +9197,18 @@ class DefaultApi(object):
9197
9197
  returns the request thread.
9198
9198
  """
9199
9199
  kwargs['_return_http_data_only'] = True
9200
- return self.delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete_with_http_info(resource_alert_id, **kwargs) # noqa: E501
9200
+ return self.delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete_with_http_info(resource_notification_id, **kwargs) # noqa: E501
9201
9201
 
9202
- def delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete_with_http_info(self, resource_alert_id, **kwargs): # noqa: E501
9203
- """Delete Resource Alert # noqa: E501
9202
+ def delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete_with_http_info(self, resource_notification_id, **kwargs): # noqa: E501
9203
+ """Delete Resource Notification # noqa: E501
9204
9204
 
9205
9205
  This method makes a synchronous HTTP request by default. To make an
9206
9206
  asynchronous HTTP request, please pass async_req=True
9207
- >>> thread = api.delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete_with_http_info(resource_alert_id, async_req=True)
9207
+ >>> thread = api.delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete_with_http_info(resource_notification_id, async_req=True)
9208
9208
  >>> result = thread.get()
9209
9209
 
9210
9210
  :param async_req bool: execute request asynchronously
9211
- :param str resource_alert_id: (required)
9211
+ :param str resource_notification_id: (required)
9212
9212
  :param _return_http_data_only: response data without head status code
9213
9213
  and headers
9214
9214
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -9226,7 +9226,7 @@ class DefaultApi(object):
9226
9226
  local_var_params = locals()
9227
9227
 
9228
9228
  all_params = [
9229
- 'resource_alert_id'
9229
+ 'resource_notification_id'
9230
9230
  ]
9231
9231
  all_params.extend(
9232
9232
  [
@@ -9241,20 +9241,20 @@ class DefaultApi(object):
9241
9241
  if key not in all_params:
9242
9242
  raise ApiTypeError(
9243
9243
  "Got an unexpected keyword argument '%s'"
9244
- " to method delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete" % key
9244
+ " to method delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete" % key
9245
9245
  )
9246
9246
  local_var_params[key] = val
9247
9247
  del local_var_params['kwargs']
9248
- # verify the required parameter 'resource_alert_id' is set
9249
- if self.api_client.client_side_validation and ('resource_alert_id' not in local_var_params or # noqa: E501
9250
- local_var_params['resource_alert_id'] is None): # noqa: E501
9251
- raise ApiValueError("Missing the required parameter `resource_alert_id` when calling `delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete`") # noqa: E501
9248
+ # verify the required parameter 'resource_notification_id' is set
9249
+ if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
9250
+ local_var_params['resource_notification_id'] is None): # noqa: E501
9251
+ raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `delete_resource_notification_api_v2_resource_notifications_resource_notification_id_delete`") # noqa: E501
9252
9252
 
9253
9253
  collection_formats = {}
9254
9254
 
9255
9255
  path_params = {}
9256
- if 'resource_alert_id' in local_var_params:
9257
- path_params['resource_alert_id'] = local_var_params['resource_alert_id'] # noqa: E501
9256
+ if 'resource_notification_id' in local_var_params:
9257
+ path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
9258
9258
 
9259
9259
  query_params = []
9260
9260
 
@@ -9272,7 +9272,7 @@ class DefaultApi(object):
9272
9272
  auth_settings = [] # noqa: E501
9273
9273
 
9274
9274
  return self.api_client.call_api(
9275
- '/api/v2/resource_alerts/{resource_alert_id}', 'DELETE',
9275
+ '/api/v2/resource_notifications/{resource_notification_id}', 'DELETE',
9276
9276
  path_params,
9277
9277
  query_params,
9278
9278
  header_params,
@@ -22208,16 +22208,16 @@ class DefaultApi(object):
22208
22208
  _request_timeout=local_var_params.get('_request_timeout'),
22209
22209
  collection_formats=collection_formats)
22210
22210
 
22211
- def get_resource_alert_api_v2_resource_alerts_resource_alert_id_get(self, resource_alert_id, **kwargs): # noqa: E501
22212
- """Get Resource Alert # noqa: E501
22211
+ def get_resource_notification_api_v2_resource_notifications_resource_notification_id_get(self, resource_notification_id, **kwargs): # noqa: E501
22212
+ """Get Resource Notification # noqa: E501
22213
22213
 
22214
22214
  This method makes a synchronous HTTP request by default. To make an
22215
22215
  asynchronous HTTP request, please pass async_req=True
22216
- >>> thread = api.get_resource_alert_api_v2_resource_alerts_resource_alert_id_get(resource_alert_id, async_req=True)
22216
+ >>> thread = api.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get(resource_notification_id, async_req=True)
22217
22217
  >>> result = thread.get()
22218
22218
 
22219
22219
  :param async_req bool: execute request asynchronously
22220
- :param str resource_alert_id: (required)
22220
+ :param str resource_notification_id: (required)
22221
22221
  :param _preload_content: if False, the urllib3.HTTPResponse object will
22222
22222
  be returned without reading/decoding response
22223
22223
  data. Default is True.
@@ -22225,23 +22225,23 @@ class DefaultApi(object):
22225
22225
  number provided, it will be total request
22226
22226
  timeout. It can also be a pair (tuple) of
22227
22227
  (connection, read) timeouts.
22228
- :return: ResourcealertResponse
22228
+ :return: ResourcenotificationResponse
22229
22229
  If the method is called asynchronously,
22230
22230
  returns the request thread.
22231
22231
  """
22232
22232
  kwargs['_return_http_data_only'] = True
22233
- return self.get_resource_alert_api_v2_resource_alerts_resource_alert_id_get_with_http_info(resource_alert_id, **kwargs) # noqa: E501
22233
+ return self.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, **kwargs) # noqa: E501
22234
22234
 
22235
- def get_resource_alert_api_v2_resource_alerts_resource_alert_id_get_with_http_info(self, resource_alert_id, **kwargs): # noqa: E501
22236
- """Get Resource Alert # noqa: E501
22235
+ def get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(self, resource_notification_id, **kwargs): # noqa: E501
22236
+ """Get Resource Notification # noqa: E501
22237
22237
 
22238
22238
  This method makes a synchronous HTTP request by default. To make an
22239
22239
  asynchronous HTTP request, please pass async_req=True
22240
- >>> thread = api.get_resource_alert_api_v2_resource_alerts_resource_alert_id_get_with_http_info(resource_alert_id, async_req=True)
22240
+ >>> thread = api.get_resource_notification_api_v2_resource_notifications_resource_notification_id_get_with_http_info(resource_notification_id, async_req=True)
22241
22241
  >>> result = thread.get()
22242
22242
 
22243
22243
  :param async_req bool: execute request asynchronously
22244
- :param str resource_alert_id: (required)
22244
+ :param str resource_notification_id: (required)
22245
22245
  :param _return_http_data_only: response data without head status code
22246
22246
  and headers
22247
22247
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -22251,7 +22251,7 @@ class DefaultApi(object):
22251
22251
  number provided, it will be total request
22252
22252
  timeout. It can also be a pair (tuple) of
22253
22253
  (connection, read) timeouts.
22254
- :return: tuple(ResourcealertResponse, status_code(int), headers(HTTPHeaderDict))
22254
+ :return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
22255
22255
  If the method is called asynchronously,
22256
22256
  returns the request thread.
22257
22257
  """
@@ -22259,7 +22259,7 @@ class DefaultApi(object):
22259
22259
  local_var_params = locals()
22260
22260
 
22261
22261
  all_params = [
22262
- 'resource_alert_id'
22262
+ 'resource_notification_id'
22263
22263
  ]
22264
22264
  all_params.extend(
22265
22265
  [
@@ -22274,20 +22274,20 @@ class DefaultApi(object):
22274
22274
  if key not in all_params:
22275
22275
  raise ApiTypeError(
22276
22276
  "Got an unexpected keyword argument '%s'"
22277
- " to method get_resource_alert_api_v2_resource_alerts_resource_alert_id_get" % key
22277
+ " to method get_resource_notification_api_v2_resource_notifications_resource_notification_id_get" % key
22278
22278
  )
22279
22279
  local_var_params[key] = val
22280
22280
  del local_var_params['kwargs']
22281
- # verify the required parameter 'resource_alert_id' is set
22282
- if self.api_client.client_side_validation and ('resource_alert_id' not in local_var_params or # noqa: E501
22283
- local_var_params['resource_alert_id'] is None): # noqa: E501
22284
- raise ApiValueError("Missing the required parameter `resource_alert_id` when calling `get_resource_alert_api_v2_resource_alerts_resource_alert_id_get`") # noqa: E501
22281
+ # verify the required parameter 'resource_notification_id' is set
22282
+ if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
22283
+ local_var_params['resource_notification_id'] is None): # noqa: E501
22284
+ raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `get_resource_notification_api_v2_resource_notifications_resource_notification_id_get`") # noqa: E501
22285
22285
 
22286
22286
  collection_formats = {}
22287
22287
 
22288
22288
  path_params = {}
22289
- if 'resource_alert_id' in local_var_params:
22290
- path_params['resource_alert_id'] = local_var_params['resource_alert_id'] # noqa: E501
22289
+ if 'resource_notification_id' in local_var_params:
22290
+ path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
22291
22291
 
22292
22292
  query_params = []
22293
22293
 
@@ -22305,14 +22305,14 @@ class DefaultApi(object):
22305
22305
  auth_settings = [] # noqa: E501
22306
22306
 
22307
22307
  return self.api_client.call_api(
22308
- '/api/v2/resource_alerts/{resource_alert_id}', 'GET',
22308
+ '/api/v2/resource_notifications/{resource_notification_id}', 'GET',
22309
22309
  path_params,
22310
22310
  query_params,
22311
22311
  header_params,
22312
22312
  body=body_params,
22313
22313
  post_params=form_params,
22314
22314
  files=local_var_files,
22315
- response_type='ResourcealertResponse', # noqa: E501
22315
+ response_type='ResourcenotificationResponse', # noqa: E501
22316
22316
  auth_settings=auth_settings,
22317
22317
  async_req=local_var_params.get('async_req'),
22318
22318
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -37011,16 +37011,16 @@ class DefaultApi(object):
37011
37011
  _request_timeout=local_var_params.get('_request_timeout'),
37012
37012
  collection_formats=collection_formats)
37013
37013
 
37014
- def search_resource_alerts_api_v2_resource_alerts_search_post(self, list_resource_alerts_query, **kwargs): # noqa: E501
37015
- """Search Resource Alerts # noqa: E501
37014
+ def search_resource_notifications_api_v2_resource_notifications_search_post(self, list_resource_notifications_query, **kwargs): # noqa: E501
37015
+ """Search Resource Notifications # noqa: E501
37016
37016
 
37017
37017
  This method makes a synchronous HTTP request by default. To make an
37018
37018
  asynchronous HTTP request, please pass async_req=True
37019
- >>> thread = api.search_resource_alerts_api_v2_resource_alerts_search_post(list_resource_alerts_query, async_req=True)
37019
+ >>> thread = api.search_resource_notifications_api_v2_resource_notifications_search_post(list_resource_notifications_query, async_req=True)
37020
37020
  >>> result = thread.get()
37021
37021
 
37022
37022
  :param async_req bool: execute request asynchronously
37023
- :param ListResourceAlertsQuery list_resource_alerts_query: (required)
37023
+ :param ListResourceNotificationsQuery list_resource_notifications_query: (required)
37024
37024
  :param _preload_content: if False, the urllib3.HTTPResponse object will
37025
37025
  be returned without reading/decoding response
37026
37026
  data. Default is True.
@@ -37028,23 +37028,23 @@ class DefaultApi(object):
37028
37028
  number provided, it will be total request
37029
37029
  timeout. It can also be a pair (tuple) of
37030
37030
  (connection, read) timeouts.
37031
- :return: ResourcealertListResponse
37031
+ :return: ResourcenotificationListResponse
37032
37032
  If the method is called asynchronously,
37033
37033
  returns the request thread.
37034
37034
  """
37035
37035
  kwargs['_return_http_data_only'] = True
37036
- return self.search_resource_alerts_api_v2_resource_alerts_search_post_with_http_info(list_resource_alerts_query, **kwargs) # noqa: E501
37036
+ return self.search_resource_notifications_api_v2_resource_notifications_search_post_with_http_info(list_resource_notifications_query, **kwargs) # noqa: E501
37037
37037
 
37038
- def search_resource_alerts_api_v2_resource_alerts_search_post_with_http_info(self, list_resource_alerts_query, **kwargs): # noqa: E501
37039
- """Search Resource Alerts # noqa: E501
37038
+ def search_resource_notifications_api_v2_resource_notifications_search_post_with_http_info(self, list_resource_notifications_query, **kwargs): # noqa: E501
37039
+ """Search Resource Notifications # noqa: E501
37040
37040
 
37041
37041
  This method makes a synchronous HTTP request by default. To make an
37042
37042
  asynchronous HTTP request, please pass async_req=True
37043
- >>> thread = api.search_resource_alerts_api_v2_resource_alerts_search_post_with_http_info(list_resource_alerts_query, async_req=True)
37043
+ >>> thread = api.search_resource_notifications_api_v2_resource_notifications_search_post_with_http_info(list_resource_notifications_query, async_req=True)
37044
37044
  >>> result = thread.get()
37045
37045
 
37046
37046
  :param async_req bool: execute request asynchronously
37047
- :param ListResourceAlertsQuery list_resource_alerts_query: (required)
37047
+ :param ListResourceNotificationsQuery list_resource_notifications_query: (required)
37048
37048
  :param _return_http_data_only: response data without head status code
37049
37049
  and headers
37050
37050
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -37054,7 +37054,7 @@ class DefaultApi(object):
37054
37054
  number provided, it will be total request
37055
37055
  timeout. It can also be a pair (tuple) of
37056
37056
  (connection, read) timeouts.
37057
- :return: tuple(ResourcealertListResponse, status_code(int), headers(HTTPHeaderDict))
37057
+ :return: tuple(ResourcenotificationListResponse, status_code(int), headers(HTTPHeaderDict))
37058
37058
  If the method is called asynchronously,
37059
37059
  returns the request thread.
37060
37060
  """
@@ -37062,7 +37062,7 @@ class DefaultApi(object):
37062
37062
  local_var_params = locals()
37063
37063
 
37064
37064
  all_params = [
37065
- 'list_resource_alerts_query'
37065
+ 'list_resource_notifications_query'
37066
37066
  ]
37067
37067
  all_params.extend(
37068
37068
  [
@@ -37077,14 +37077,14 @@ class DefaultApi(object):
37077
37077
  if key not in all_params:
37078
37078
  raise ApiTypeError(
37079
37079
  "Got an unexpected keyword argument '%s'"
37080
- " to method search_resource_alerts_api_v2_resource_alerts_search_post" % key
37080
+ " to method search_resource_notifications_api_v2_resource_notifications_search_post" % key
37081
37081
  )
37082
37082
  local_var_params[key] = val
37083
37083
  del local_var_params['kwargs']
37084
- # verify the required parameter 'list_resource_alerts_query' is set
37085
- if self.api_client.client_side_validation and ('list_resource_alerts_query' not in local_var_params or # noqa: E501
37086
- local_var_params['list_resource_alerts_query'] is None): # noqa: E501
37087
- raise ApiValueError("Missing the required parameter `list_resource_alerts_query` when calling `search_resource_alerts_api_v2_resource_alerts_search_post`") # noqa: E501
37084
+ # verify the required parameter 'list_resource_notifications_query' is set
37085
+ if self.api_client.client_side_validation and ('list_resource_notifications_query' not in local_var_params or # noqa: E501
37086
+ local_var_params['list_resource_notifications_query'] is None): # noqa: E501
37087
+ raise ApiValueError("Missing the required parameter `list_resource_notifications_query` when calling `search_resource_notifications_api_v2_resource_notifications_search_post`") # noqa: E501
37088
37088
 
37089
37089
  collection_formats = {}
37090
37090
 
@@ -37098,8 +37098,8 @@ class DefaultApi(object):
37098
37098
  local_var_files = {}
37099
37099
 
37100
37100
  body_params = None
37101
- if 'list_resource_alerts_query' in local_var_params:
37102
- body_params = local_var_params['list_resource_alerts_query']
37101
+ if 'list_resource_notifications_query' in local_var_params:
37102
+ body_params = local_var_params['list_resource_notifications_query']
37103
37103
  # HTTP header `Accept`
37104
37104
  header_params['Accept'] = self.api_client.select_header_accept(
37105
37105
  ['application/json']) # noqa: E501
@@ -37112,14 +37112,14 @@ class DefaultApi(object):
37112
37112
  auth_settings = [] # noqa: E501
37113
37113
 
37114
37114
  return self.api_client.call_api(
37115
- '/api/v2/resource_alerts/search', 'POST',
37115
+ '/api/v2/resource_notifications/search', 'POST',
37116
37116
  path_params,
37117
37117
  query_params,
37118
37118
  header_params,
37119
37119
  body=body_params,
37120
37120
  post_params=form_params,
37121
37121
  files=local_var_files,
37122
- response_type='ResourcealertListResponse', # noqa: E501
37122
+ response_type='ResourcenotificationListResponse', # noqa: E501
37123
37123
  auth_settings=auth_settings,
37124
37124
  async_req=local_var_params.get('async_req'),
37125
37125
  _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -41075,6 +41075,133 @@ class DefaultApi(object):
41075
41075
  _request_timeout=local_var_params.get('_request_timeout'),
41076
41076
  collection_formats=collection_formats)
41077
41077
 
41078
+ def update_resource_notification_api_v2_resource_notifications_resource_notification_id_put(self, resource_notification_id, create_resource_notification, **kwargs): # noqa: E501
41079
+ """Update Resource Notification # noqa: E501
41080
+
41081
+ Full update of the resource notification. This will replace the resource notification with the new data. For example, if None is passed as one of the fields, we will clear out that field. # noqa: E501
41082
+ This method makes a synchronous HTTP request by default. To make an
41083
+ asynchronous HTTP request, please pass async_req=True
41084
+ >>> thread = api.update_resource_notification_api_v2_resource_notifications_resource_notification_id_put(resource_notification_id, create_resource_notification, async_req=True)
41085
+ >>> result = thread.get()
41086
+
41087
+ :param async_req bool: execute request asynchronously
41088
+ :param str resource_notification_id: (required)
41089
+ :param CreateResourceNotification create_resource_notification: (required)
41090
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
41091
+ be returned without reading/decoding response
41092
+ data. Default is True.
41093
+ :param _request_timeout: timeout setting for this request. If one
41094
+ number provided, it will be total request
41095
+ timeout. It can also be a pair (tuple) of
41096
+ (connection, read) timeouts.
41097
+ :return: ResourcenotificationResponse
41098
+ If the method is called asynchronously,
41099
+ returns the request thread.
41100
+ """
41101
+ kwargs['_return_http_data_only'] = True
41102
+ return self.update_resource_notification_api_v2_resource_notifications_resource_notification_id_put_with_http_info(resource_notification_id, create_resource_notification, **kwargs) # noqa: E501
41103
+
41104
+ def update_resource_notification_api_v2_resource_notifications_resource_notification_id_put_with_http_info(self, resource_notification_id, create_resource_notification, **kwargs): # noqa: E501
41105
+ """Update Resource Notification # noqa: E501
41106
+
41107
+ Full update of the resource notification. This will replace the resource notification with the new data. For example, if None is passed as one of the fields, we will clear out that field. # noqa: E501
41108
+ This method makes a synchronous HTTP request by default. To make an
41109
+ asynchronous HTTP request, please pass async_req=True
41110
+ >>> thread = api.update_resource_notification_api_v2_resource_notifications_resource_notification_id_put_with_http_info(resource_notification_id, create_resource_notification, async_req=True)
41111
+ >>> result = thread.get()
41112
+
41113
+ :param async_req bool: execute request asynchronously
41114
+ :param str resource_notification_id: (required)
41115
+ :param CreateResourceNotification create_resource_notification: (required)
41116
+ :param _return_http_data_only: response data without head status code
41117
+ and headers
41118
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
41119
+ be returned without reading/decoding response
41120
+ data. Default is True.
41121
+ :param _request_timeout: timeout setting for this request. If one
41122
+ number provided, it will be total request
41123
+ timeout. It can also be a pair (tuple) of
41124
+ (connection, read) timeouts.
41125
+ :return: tuple(ResourcenotificationResponse, status_code(int), headers(HTTPHeaderDict))
41126
+ If the method is called asynchronously,
41127
+ returns the request thread.
41128
+ """
41129
+
41130
+ local_var_params = locals()
41131
+
41132
+ all_params = [
41133
+ 'resource_notification_id',
41134
+ 'create_resource_notification'
41135
+ ]
41136
+ all_params.extend(
41137
+ [
41138
+ 'async_req',
41139
+ '_return_http_data_only',
41140
+ '_preload_content',
41141
+ '_request_timeout'
41142
+ ]
41143
+ )
41144
+
41145
+ for key, val in six.iteritems(local_var_params['kwargs']):
41146
+ if key not in all_params:
41147
+ raise ApiTypeError(
41148
+ "Got an unexpected keyword argument '%s'"
41149
+ " to method update_resource_notification_api_v2_resource_notifications_resource_notification_id_put" % key
41150
+ )
41151
+ local_var_params[key] = val
41152
+ del local_var_params['kwargs']
41153
+ # verify the required parameter 'resource_notification_id' is set
41154
+ if self.api_client.client_side_validation and ('resource_notification_id' not in local_var_params or # noqa: E501
41155
+ local_var_params['resource_notification_id'] is None): # noqa: E501
41156
+ raise ApiValueError("Missing the required parameter `resource_notification_id` when calling `update_resource_notification_api_v2_resource_notifications_resource_notification_id_put`") # noqa: E501
41157
+ # verify the required parameter 'create_resource_notification' is set
41158
+ if self.api_client.client_side_validation and ('create_resource_notification' not in local_var_params or # noqa: E501
41159
+ local_var_params['create_resource_notification'] is None): # noqa: E501
41160
+ raise ApiValueError("Missing the required parameter `create_resource_notification` when calling `update_resource_notification_api_v2_resource_notifications_resource_notification_id_put`") # noqa: E501
41161
+
41162
+ collection_formats = {}
41163
+
41164
+ path_params = {}
41165
+ if 'resource_notification_id' in local_var_params:
41166
+ path_params['resource_notification_id'] = local_var_params['resource_notification_id'] # noqa: E501
41167
+
41168
+ query_params = []
41169
+
41170
+ header_params = {}
41171
+
41172
+ form_params = []
41173
+ local_var_files = {}
41174
+
41175
+ body_params = None
41176
+ if 'create_resource_notification' in local_var_params:
41177
+ body_params = local_var_params['create_resource_notification']
41178
+ # HTTP header `Accept`
41179
+ header_params['Accept'] = self.api_client.select_header_accept(
41180
+ ['application/json']) # noqa: E501
41181
+
41182
+ # HTTP header `Content-Type`
41183
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
41184
+ ['application/json']) # noqa: E501
41185
+
41186
+ # Authentication setting
41187
+ auth_settings = [] # noqa: E501
41188
+
41189
+ return self.api_client.call_api(
41190
+ '/api/v2/resource_notifications/{resource_notification_id}', 'PUT',
41191
+ path_params,
41192
+ query_params,
41193
+ header_params,
41194
+ body=body_params,
41195
+ post_params=form_params,
41196
+ files=local_var_files,
41197
+ response_type='ResourcenotificationResponse', # noqa: E501
41198
+ auth_settings=auth_settings,
41199
+ async_req=local_var_params.get('async_req'),
41200
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
41201
+ _preload_content=local_var_params.get('_preload_content', True),
41202
+ _request_timeout=local_var_params.get('_request_timeout'),
41203
+ collection_formats=collection_formats)
41204
+
41078
41205
  def update_resource_quota_api_v2_resource_quotas_resource_quota_id_patch(self, resource_quota_id, update_resource_quota, **kwargs): # noqa: E501
41079
41206
  """Update Resource Quota # noqa: E501
41080
41207
 
@@ -202,7 +202,7 @@ from openapi_client.models.create_otp_return_api_model import CreateOTPReturnApi
202
202
  from openapi_client.models.create_organization_configuration import CreateOrganizationConfiguration
203
203
  from openapi_client.models.create_organization_invitation import CreateOrganizationInvitation
204
204
  from openapi_client.models.create_production_job_config import CreateProductionJobConfig
205
- from openapi_client.models.create_resource_alert import CreateResourceAlert
205
+ from openapi_client.models.create_resource_notification import CreateResourceNotification
206
206
  from openapi_client.models.create_resource_quota import CreateResourceQuota
207
207
  from openapi_client.models.create_schedule import CreateSchedule
208
208
  from openapi_client.models.create_session_from_snapshot_options import CreateSessionFromSnapshotOptions
@@ -220,7 +220,6 @@ from openapi_client.models.createotpreturnapimodel_response import Createotpretu
220
220
  from openapi_client.models.createsessionresponse_response import CreatesessionresponseResponse
221
221
  from openapi_client.models.credit_card_information import CreditCardInformation
222
222
  from openapi_client.models.customer_alert_status import CustomerAlertStatus
223
- from openapi_client.models.customer_billing_type import CustomerBillingType
224
223
  from openapi_client.models.dataplane_services import DataplaneServices
225
224
  from openapi_client.models.dataset import Dataset
226
225
  from openapi_client.models.dataset_list_response import DatasetListResponse
@@ -370,7 +369,7 @@ from openapi_client.models.lb_resource import LBResource
370
369
  from openapi_client.models.lbresource_response import LbresourceResponse
371
370
  from openapi_client.models.list_machine_pools_response import ListMachinePoolsResponse
372
371
  from openapi_client.models.list_machines_response import ListMachinesResponse
373
- from openapi_client.models.list_resource_alerts_query import ListResourceAlertsQuery
372
+ from openapi_client.models.list_resource_notifications_query import ListResourceNotificationsQuery
374
373
  from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQuery
375
374
  from openapi_client.models.list_response_metadata import ListResponseMetadata
376
375
  from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
@@ -397,6 +396,7 @@ from openapi_client.models.longrunningworkload_list_response import Longrunningw
397
396
  from openapi_client.models.machine_allocation_state import MachineAllocationState
398
397
  from openapi_client.models.machine_connection_state import MachineConnectionState
399
398
  from openapi_client.models.machine_info import MachineInfo
399
+ from openapi_client.models.machine_launch_failure import MachineLaunchFailure
400
400
  from openapi_client.models.machine_pool import MachinePool
401
401
  from openapi_client.models.machine_state_info import MachineStateInfo
402
402
  from openapi_client.models.metronome_customer_info_model import MetronomeCustomerInfoModel
@@ -506,12 +506,12 @@ from openapi_client.models.request_state_info import RequestStateInfo
506
506
  from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
507
507
  from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
508
508
  from openapi_client.models.reset_password_params import ResetPasswordParams
509
- from openapi_client.models.resource_alert import ResourceAlert
510
509
  from openapi_client.models.resource_alert_event_type import ResourceAlertEventType
510
+ from openapi_client.models.resource_notification import ResourceNotification
511
511
  from openapi_client.models.resource_quota import ResourceQuota
512
512
  from openapi_client.models.resource_quota_status import ResourceQuotaStatus
513
- from openapi_client.models.resourcealert_list_response import ResourcealertListResponse
514
- from openapi_client.models.resourcealert_response import ResourcealertResponse
513
+ from openapi_client.models.resourcenotification_list_response import ResourcenotificationListResponse
514
+ from openapi_client.models.resourcenotification_response import ResourcenotificationResponse
515
515
  from openapi_client.models.resourcequota_list_response import ResourcequotaListResponse
516
516
  from openapi_client.models.resourcequota_response import ResourcequotaResponse
517
517
  from openapi_client.models.resources import Resources