anyscale 0.25.9__py3-none-any.whl → 0.25.11__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 (28) hide show
  1. anyscale/_private/anyscale_client/common.py +1 -1
  2. anyscale/_private/docgen/models.md +4 -4
  3. anyscale/client/README.md +10 -0
  4. anyscale/client/openapi_client/__init__.py +6 -0
  5. anyscale/client/openapi_client/api/default_api.py +456 -0
  6. anyscale/client/openapi_client/models/__init__.py +6 -0
  7. anyscale/client/openapi_client/models/baseimagesenum.py +51 -1
  8. anyscale/client/openapi_client/models/create_resource_alert.py +265 -0
  9. anyscale/client/openapi_client/models/list_resource_alerts_query.py +234 -0
  10. anyscale/client/openapi_client/models/project.py +59 -61
  11. anyscale/client/openapi_client/models/projects_sort_field.py +1 -3
  12. anyscale/client/openapi_client/models/resource_alert.py +437 -0
  13. anyscale/client/openapi_client/models/resource_alert_event_type.py +101 -0
  14. anyscale/client/openapi_client/models/resourcealert_list_response.py +147 -0
  15. anyscale/client/openapi_client/models/resourcealert_response.py +121 -0
  16. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +51 -1
  17. anyscale/sdk/anyscale_client/models/baseimagesenum.py +51 -1
  18. anyscale/sdk/anyscale_client/models/project.py +9 -11
  19. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +51 -1
  20. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  21. anyscale/version.py +1 -1
  22. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/METADATA +1 -1
  23. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/RECORD +28 -22
  24. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/LICENSE +0 -0
  25. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/NOTICE +0 -0
  26. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/WHEEL +0 -0
  27. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/entry_points.txt +0 -0
  28. {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/top_level.txt +0 -0
anyscale/client/README.md CHANGED
@@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
134
134
  *DefaultApi* | [**create_organization_collaborator_api_v2_projects_project_id_collaborators_organization_post**](docs/DefaultApi.md#create_organization_collaborator_api_v2_projects_project_id_collaborators_organization_post) | **POST** /api/v2/projects/{project_id}/collaborators/organization | Create Organization Collaborator
135
135
  *DefaultApi* | [**create_project_api_v2_projects_post**](docs/DefaultApi.md#create_project_api_v2_projects_post) | **POST** /api/v2/projects/ | Create Project
136
136
  *DefaultApi* | [**create_project_collaborator_api_v2_projects_project_id_collaborators_users_post**](docs/DefaultApi.md#create_project_collaborator_api_v2_projects_project_id_collaborators_users_post) | **POST** /api/v2/projects/{project_id}/collaborators/users | Create Project Collaborator
137
+ *DefaultApi* | [**create_resource_alert_api_v2_resource_alerts_post**](docs/DefaultApi.md#create_resource_alert_api_v2_resource_alerts_post) | **POST** /api/v2/resource_alerts/ | Create Resource Alert
137
138
  *DefaultApi* | [**create_resource_quota_api_v2_resource_quotas_post**](docs/DefaultApi.md#create_resource_quota_api_v2_resource_quotas_post) | **POST** /api/v2/resource_quotas/ | Create Resource Quota
138
139
  *DefaultApi* | [**create_service_account_api_v2_users_service_accounts_post**](docs/DefaultApi.md#create_service_account_api_v2_users_service_accounts_post) | **POST** /api/v2/users/service_accounts | Create Service Account
139
140
  *DefaultApi* | [**create_session_command_api_v2_sessions_session_id_create_session_command_post**](docs/DefaultApi.md#create_session_command_api_v2_sessions_session_id_create_session_command_post) | **POST** /api/v2/sessions/{session_id}/create_session_command | Create Session Command
@@ -152,6 +153,7 @@ Class | Method | HTTP request | Description
152
153
  *DefaultApi* | [**delete_model_api_v2_llm_models_model_id_delete**](docs/DefaultApi.md#delete_model_api_v2_llm_models_model_id_delete) | **DELETE** /api/v2/llm/models/{model_id} | Delete Model
153
154
  *DefaultApi* | [**delete_project_api_v2_projects_project_id_delete**](docs/DefaultApi.md#delete_project_api_v2_projects_project_id_delete) | **DELETE** /api/v2/projects/{project_id} | Delete Project
154
155
  *DefaultApi* | [**delete_project_collaborator_api_v2_projects_project_id_collaborators_role_or_identity_id_delete**](docs/DefaultApi.md#delete_project_collaborator_api_v2_projects_project_id_collaborators_role_or_identity_id_delete) | **DELETE** /api/v2/projects/{project_id}/collaborators/{role_or_identity_id} | Delete Project Collaborator
156
+ *DefaultApi* | [**delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete**](docs/DefaultApi.md#delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete) | **DELETE** /api/v2/resource_alerts/{resource_alert_id} | Delete Resource Alert
155
157
  *DefaultApi* | [**delete_resource_quota_api_v2_resource_quotas_resource_quota_id_delete**](docs/DefaultApi.md#delete_resource_quota_api_v2_resource_quotas_resource_quota_id_delete) | **DELETE** /api/v2/resource_quotas/{resource_quota_id} | Delete Resource Quota
156
158
  *DefaultApi* | [**delete_session_api_v2_sessions_session_id_delete**](docs/DefaultApi.md#delete_session_api_v2_sessions_session_id_delete) | **DELETE** /api/v2/sessions/{session_id} | Delete Session
157
159
  *DefaultApi* | [**delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete**](docs/DefaultApi.md#delete_web_terminals_api_v2_sessions_session_id_web_terminals_terminal_id_delete) | **DELETE** /api/v2/sessions/{session_id}/web_terminals/{terminal_id} | Delete Web Terminals
@@ -262,6 +264,7 @@ Class | Method | HTTP request | Description
262
264
  *DefaultApi* | [**get_recent_projects_api_v2_recent_activity_projects_get**](docs/DefaultApi.md#get_recent_projects_api_v2_recent_activity_projects_get) | **GET** /api/v2/recent_activity/projects | Get Recent Projects
263
265
  *DefaultApi* | [**get_regions_and_zones_api_v2_aws_info_regions_and_zones_get**](docs/DefaultApi.md#get_regions_and_zones_api_v2_aws_info_regions_and_zones_get) | **GET** /api/v2/aws_info/regions_and_zones | Get Regions And Zones
264
266
  *DefaultApi* | [**get_regions_and_zones_api_v2_clouds_gcp_regions_and_zones_get**](docs/DefaultApi.md#get_regions_and_zones_api_v2_clouds_gcp_regions_and_zones_get) | **GET** /api/v2/clouds/gcp/regions_and_zones | Get Regions And Zones
267
+ *DefaultApi* | [**get_resource_alert_api_v2_resource_alerts_resource_alert_id_get**](docs/DefaultApi.md#get_resource_alert_api_v2_resource_alerts_resource_alert_id_get) | **GET** /api/v2/resource_alerts/{resource_alert_id} | Get Resource Alert
265
268
  *DefaultApi* | [**get_resource_quota_api_v2_resource_quotas_resource_quota_id_get**](docs/DefaultApi.md#get_resource_quota_api_v2_resource_quotas_resource_quota_id_get) | **GET** /api/v2/resource_quotas/{resource_quota_id} | Get Resource Quota
266
269
  *DefaultApi* | [**get_runtime_env_logs_api_v2_sessions_session_id_runtime_env_logs_get**](docs/DefaultApi.md#get_runtime_env_logs_api_v2_sessions_session_id_runtime_env_logs_get) | **GET** /api/v2/sessions/{session_id}/runtime_env_logs | Get Runtime Env Logs
267
270
  *DefaultApi* | [**get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get**](docs/DefaultApi.md#get_runtime_env_logs_download_api_v2_logs_runtime_env_logs_download_session_id_get) | **GET** /api/v2/logs/runtime_env_logs_download/{session_id} | Get Runtime Env Logs Download
@@ -380,6 +383,7 @@ Class | Method | HTTP request | Description
380
383
  *DefaultApi* | [**search_cluster_environments_api_v2_application_templates_search_post**](docs/DefaultApi.md#search_cluster_environments_api_v2_application_templates_search_post) | **POST** /api/v2/application_templates/search | Search Cluster Environments
381
384
  *DefaultApi* | [**search_compute_templates_api_v2_compute_templates_search_post**](docs/DefaultApi.md#search_compute_templates_api_v2_compute_templates_search_post) | **POST** /api/v2/compute_templates/search | Search Compute Templates
382
385
  *DefaultApi* | [**search_invoices_api_v2_organization_billing_invoices_post**](docs/DefaultApi.md#search_invoices_api_v2_organization_billing_invoices_post) | **POST** /api/v2/organization_billing/invoices | Search Invoices
386
+ *DefaultApi* | [**search_resource_alerts_api_v2_resource_alerts_search_post**](docs/DefaultApi.md#search_resource_alerts_api_v2_resource_alerts_search_post) | **POST** /api/v2/resource_alerts/search | Search Resource Alerts
383
387
  *DefaultApi* | [**search_resource_quotas_api_v2_resource_quotas_search_post**](docs/DefaultApi.md#search_resource_quotas_api_v2_resource_quotas_search_post) | **POST** /api/v2/resource_quotas/search | Search Resource Quotas
384
388
  *DefaultApi* | [**search_support_requests_api_v2_support_requests_search_post**](docs/DefaultApi.md#search_support_requests_api_v2_support_requests_search_post) | **POST** /api/v2/support_requests/search | Search Support Requests
385
389
  *DefaultApi* | [**search_user_cards_api_v2_onboarding_cards_search_post**](docs/DefaultApi.md#search_user_cards_api_v2_onboarding_cards_search_post) | **POST** /api/v2/onboarding_cards/search | Search User Cards
@@ -617,6 +621,7 @@ Class | Method | HTTP request | Description
617
621
  - [CreateOrganizationConfiguration](docs/CreateOrganizationConfiguration.md)
618
622
  - [CreateOrganizationInvitation](docs/CreateOrganizationInvitation.md)
619
623
  - [CreateProductionJobConfig](docs/CreateProductionJobConfig.md)
624
+ - [CreateResourceAlert](docs/CreateResourceAlert.md)
620
625
  - [CreateResourceQuota](docs/CreateResourceQuota.md)
621
626
  - [CreateSchedule](docs/CreateSchedule.md)
622
627
  - [CreateSessionFromSnapshotOptions](docs/CreateSessionFromSnapshotOptions.md)
@@ -784,6 +789,7 @@ Class | Method | HTTP request | Description
784
789
  - [LbresourceResponse](docs/LbresourceResponse.md)
785
790
  - [ListMachinePoolsResponse](docs/ListMachinePoolsResponse.md)
786
791
  - [ListMachinesResponse](docs/ListMachinesResponse.md)
792
+ - [ListResourceAlertsQuery](docs/ListResourceAlertsQuery.md)
787
793
  - [ListResourceQuotasQuery](docs/ListResourceQuotasQuery.md)
788
794
  - [ListResponseMetadata](docs/ListResponseMetadata.md)
789
795
  - [ListmachinepoolsresponseResponse](docs/ListmachinepoolsresponseResponse.md)
@@ -919,8 +925,12 @@ Class | Method | HTTP request | Description
919
925
  - [RequestemailmagiclinkresponseResponse](docs/RequestemailmagiclinkresponseResponse.md)
920
926
  - [RequestotpreturnapimodelResponse](docs/RequestotpreturnapimodelResponse.md)
921
927
  - [ResetPasswordParams](docs/ResetPasswordParams.md)
928
+ - [ResourceAlert](docs/ResourceAlert.md)
929
+ - [ResourceAlertEventType](docs/ResourceAlertEventType.md)
922
930
  - [ResourceQuota](docs/ResourceQuota.md)
923
931
  - [ResourceQuotaStatus](docs/ResourceQuotaStatus.md)
932
+ - [ResourcealertListResponse](docs/ResourcealertListResponse.md)
933
+ - [ResourcealertResponse](docs/ResourcealertResponse.md)
924
934
  - [ResourcequotaListResponse](docs/ResourcequotaListResponse.md)
925
935
  - [ResourcequotaResponse](docs/ResourcequotaResponse.md)
926
936
  - [Resources](docs/Resources.md)
@@ -216,6 +216,7 @@ from openapi_client.models.create_otp_return_api_model import CreateOTPReturnApi
216
216
  from openapi_client.models.create_organization_configuration import CreateOrganizationConfiguration
217
217
  from openapi_client.models.create_organization_invitation import CreateOrganizationInvitation
218
218
  from openapi_client.models.create_production_job_config import CreateProductionJobConfig
219
+ from openapi_client.models.create_resource_alert import CreateResourceAlert
219
220
  from openapi_client.models.create_resource_quota import CreateResourceQuota
220
221
  from openapi_client.models.create_schedule import CreateSchedule
221
222
  from openapi_client.models.create_session_from_snapshot_options import CreateSessionFromSnapshotOptions
@@ -383,6 +384,7 @@ from openapi_client.models.lb_resource import LBResource
383
384
  from openapi_client.models.lbresource_response import LbresourceResponse
384
385
  from openapi_client.models.list_machine_pools_response import ListMachinePoolsResponse
385
386
  from openapi_client.models.list_machines_response import ListMachinesResponse
387
+ from openapi_client.models.list_resource_alerts_query import ListResourceAlertsQuery
386
388
  from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQuery
387
389
  from openapi_client.models.list_response_metadata import ListResponseMetadata
388
390
  from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
@@ -518,8 +520,12 @@ from openapi_client.models.request_state_info import RequestStateInfo
518
520
  from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
519
521
  from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
520
522
  from openapi_client.models.reset_password_params import ResetPasswordParams
523
+ from openapi_client.models.resource_alert import ResourceAlert
524
+ from openapi_client.models.resource_alert_event_type import ResourceAlertEventType
521
525
  from openapi_client.models.resource_quota import ResourceQuota
522
526
  from openapi_client.models.resource_quota_status import ResourceQuotaStatus
527
+ from openapi_client.models.resourcealert_list_response import ResourcealertListResponse
528
+ from openapi_client.models.resourcealert_response import ResourcealertResponse
523
529
  from openapi_client.models.resourcequota_list_response import ResourcequotaListResponse
524
530
  from openapi_client.models.resourcequota_response import ResourcequotaResponse
525
531
  from openapi_client.models.resources import Resources
@@ -6960,6 +6960,122 @@ 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
6965
+
6966
+ This method makes a synchronous HTTP request by default. To make an
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)
6969
+ >>> result = thread.get()
6970
+
6971
+ :param async_req bool: execute request asynchronously
6972
+ :param CreateResourceAlert create_resource_alert: (required)
6973
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
6974
+ be returned without reading/decoding response
6975
+ data. Default is True.
6976
+ :param _request_timeout: timeout setting for this request. If one
6977
+ number provided, it will be total request
6978
+ timeout. It can also be a pair (tuple) of
6979
+ (connection, read) timeouts.
6980
+ :return: ResourcealertResponse
6981
+ If the method is called asynchronously,
6982
+ returns the request thread.
6983
+ """
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
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
6989
+
6990
+ This method makes a synchronous HTTP request by default. To make an
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)
6993
+ >>> result = thread.get()
6994
+
6995
+ :param async_req bool: execute request asynchronously
6996
+ :param CreateResourceAlert create_resource_alert: (required)
6997
+ :param _return_http_data_only: response data without head status code
6998
+ and headers
6999
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
7000
+ be returned without reading/decoding response
7001
+ data. Default is True.
7002
+ :param _request_timeout: timeout setting for this request. If one
7003
+ number provided, it will be total request
7004
+ timeout. It can also be a pair (tuple) of
7005
+ (connection, read) timeouts.
7006
+ :return: tuple(ResourcealertResponse, status_code(int), headers(HTTPHeaderDict))
7007
+ If the method is called asynchronously,
7008
+ returns the request thread.
7009
+ """
7010
+
7011
+ local_var_params = locals()
7012
+
7013
+ all_params = [
7014
+ 'create_resource_alert'
7015
+ ]
7016
+ all_params.extend(
7017
+ [
7018
+ 'async_req',
7019
+ '_return_http_data_only',
7020
+ '_preload_content',
7021
+ '_request_timeout'
7022
+ ]
7023
+ )
7024
+
7025
+ for key, val in six.iteritems(local_var_params['kwargs']):
7026
+ if key not in all_params:
7027
+ raise ApiTypeError(
7028
+ "Got an unexpected keyword argument '%s'"
7029
+ " to method create_resource_alert_api_v2_resource_alerts_post" % key
7030
+ )
7031
+ local_var_params[key] = val
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
7037
+
7038
+ collection_formats = {}
7039
+
7040
+ path_params = {}
7041
+
7042
+ query_params = []
7043
+
7044
+ header_params = {}
7045
+
7046
+ form_params = []
7047
+ local_var_files = {}
7048
+
7049
+ body_params = None
7050
+ if 'create_resource_alert' in local_var_params:
7051
+ body_params = local_var_params['create_resource_alert']
7052
+ # HTTP header `Accept`
7053
+ header_params['Accept'] = self.api_client.select_header_accept(
7054
+ ['application/json']) # noqa: E501
7055
+
7056
+ # HTTP header `Content-Type`
7057
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
7058
+ ['application/json']) # noqa: E501
7059
+
7060
+ # Authentication setting
7061
+ auth_settings = [] # noqa: E501
7062
+
7063
+ return self.api_client.call_api(
7064
+ '/api/v2/resource_alerts/', 'POST',
7065
+ path_params,
7066
+ query_params,
7067
+ header_params,
7068
+ body=body_params,
7069
+ post_params=form_params,
7070
+ files=local_var_files,
7071
+ response_type='ResourcealertResponse', # noqa: E501
7072
+ auth_settings=auth_settings,
7073
+ async_req=local_var_params.get('async_req'),
7074
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
7075
+ _preload_content=local_var_params.get('_preload_content', True),
7076
+ _request_timeout=local_var_params.get('_request_timeout'),
7077
+ collection_formats=collection_formats)
7078
+
6963
7079
  def create_resource_quota_api_v2_resource_quotas_post(self, create_resource_quota, **kwargs): # noqa: E501
6964
7080
  """Create Resource Quota # noqa: E501
6965
7081
 
@@ -9059,6 +9175,118 @@ class DefaultApi(object):
9059
9175
  _request_timeout=local_var_params.get('_request_timeout'),
9060
9176
  collection_formats=collection_formats)
9061
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
9180
+
9181
+ This method makes a synchronous HTTP request by default. To make an
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)
9184
+ >>> result = thread.get()
9185
+
9186
+ :param async_req bool: execute request asynchronously
9187
+ :param str resource_alert_id: (required)
9188
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
9189
+ be returned without reading/decoding response
9190
+ data. Default is True.
9191
+ :param _request_timeout: timeout setting for this request. If one
9192
+ number provided, it will be total request
9193
+ timeout. It can also be a pair (tuple) of
9194
+ (connection, read) timeouts.
9195
+ :return: None
9196
+ If the method is called asynchronously,
9197
+ returns the request thread.
9198
+ """
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
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
9204
+
9205
+ This method makes a synchronous HTTP request by default. To make an
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)
9208
+ >>> result = thread.get()
9209
+
9210
+ :param async_req bool: execute request asynchronously
9211
+ :param str resource_alert_id: (required)
9212
+ :param _return_http_data_only: response data without head status code
9213
+ and headers
9214
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
9215
+ be returned without reading/decoding response
9216
+ data. Default is True.
9217
+ :param _request_timeout: timeout setting for this request. If one
9218
+ number provided, it will be total request
9219
+ timeout. It can also be a pair (tuple) of
9220
+ (connection, read) timeouts.
9221
+ :return: None
9222
+ If the method is called asynchronously,
9223
+ returns the request thread.
9224
+ """
9225
+
9226
+ local_var_params = locals()
9227
+
9228
+ all_params = [
9229
+ 'resource_alert_id'
9230
+ ]
9231
+ all_params.extend(
9232
+ [
9233
+ 'async_req',
9234
+ '_return_http_data_only',
9235
+ '_preload_content',
9236
+ '_request_timeout'
9237
+ ]
9238
+ )
9239
+
9240
+ for key, val in six.iteritems(local_var_params['kwargs']):
9241
+ if key not in all_params:
9242
+ raise ApiTypeError(
9243
+ "Got an unexpected keyword argument '%s'"
9244
+ " to method delete_resource_alert_api_v2_resource_alerts_resource_alert_id_delete" % key
9245
+ )
9246
+ local_var_params[key] = val
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
9252
+
9253
+ collection_formats = {}
9254
+
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
9258
+
9259
+ query_params = []
9260
+
9261
+ header_params = {}
9262
+
9263
+ form_params = []
9264
+ local_var_files = {}
9265
+
9266
+ body_params = None
9267
+ # HTTP header `Accept`
9268
+ header_params['Accept'] = self.api_client.select_header_accept(
9269
+ ['application/json']) # noqa: E501
9270
+
9271
+ # Authentication setting
9272
+ auth_settings = [] # noqa: E501
9273
+
9274
+ return self.api_client.call_api(
9275
+ '/api/v2/resource_alerts/{resource_alert_id}', 'DELETE',
9276
+ path_params,
9277
+ query_params,
9278
+ header_params,
9279
+ body=body_params,
9280
+ post_params=form_params,
9281
+ files=local_var_files,
9282
+ response_type=None, # noqa: E501
9283
+ auth_settings=auth_settings,
9284
+ async_req=local_var_params.get('async_req'),
9285
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
9286
+ _preload_content=local_var_params.get('_preload_content', True),
9287
+ _request_timeout=local_var_params.get('_request_timeout'),
9288
+ collection_formats=collection_formats)
9289
+
9062
9290
  def delete_resource_quota_api_v2_resource_quotas_resource_quota_id_delete(self, resource_quota_id, **kwargs): # noqa: E501
9063
9291
  """Delete Resource Quota # noqa: E501
9064
9292
 
@@ -21980,6 +22208,118 @@ class DefaultApi(object):
21980
22208
  _request_timeout=local_var_params.get('_request_timeout'),
21981
22209
  collection_formats=collection_formats)
21982
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
22213
+
22214
+ This method makes a synchronous HTTP request by default. To make an
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)
22217
+ >>> result = thread.get()
22218
+
22219
+ :param async_req bool: execute request asynchronously
22220
+ :param str resource_alert_id: (required)
22221
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22222
+ be returned without reading/decoding response
22223
+ data. Default is True.
22224
+ :param _request_timeout: timeout setting for this request. If one
22225
+ number provided, it will be total request
22226
+ timeout. It can also be a pair (tuple) of
22227
+ (connection, read) timeouts.
22228
+ :return: ResourcealertResponse
22229
+ If the method is called asynchronously,
22230
+ returns the request thread.
22231
+ """
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
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
22237
+
22238
+ This method makes a synchronous HTTP request by default. To make an
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)
22241
+ >>> result = thread.get()
22242
+
22243
+ :param async_req bool: execute request asynchronously
22244
+ :param str resource_alert_id: (required)
22245
+ :param _return_http_data_only: response data without head status code
22246
+ and headers
22247
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
22248
+ be returned without reading/decoding response
22249
+ data. Default is True.
22250
+ :param _request_timeout: timeout setting for this request. If one
22251
+ number provided, it will be total request
22252
+ timeout. It can also be a pair (tuple) of
22253
+ (connection, read) timeouts.
22254
+ :return: tuple(ResourcealertResponse, status_code(int), headers(HTTPHeaderDict))
22255
+ If the method is called asynchronously,
22256
+ returns the request thread.
22257
+ """
22258
+
22259
+ local_var_params = locals()
22260
+
22261
+ all_params = [
22262
+ 'resource_alert_id'
22263
+ ]
22264
+ all_params.extend(
22265
+ [
22266
+ 'async_req',
22267
+ '_return_http_data_only',
22268
+ '_preload_content',
22269
+ '_request_timeout'
22270
+ ]
22271
+ )
22272
+
22273
+ for key, val in six.iteritems(local_var_params['kwargs']):
22274
+ if key not in all_params:
22275
+ raise ApiTypeError(
22276
+ "Got an unexpected keyword argument '%s'"
22277
+ " to method get_resource_alert_api_v2_resource_alerts_resource_alert_id_get" % key
22278
+ )
22279
+ local_var_params[key] = val
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
22285
+
22286
+ collection_formats = {}
22287
+
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
22291
+
22292
+ query_params = []
22293
+
22294
+ header_params = {}
22295
+
22296
+ form_params = []
22297
+ local_var_files = {}
22298
+
22299
+ body_params = None
22300
+ # HTTP header `Accept`
22301
+ header_params['Accept'] = self.api_client.select_header_accept(
22302
+ ['application/json']) # noqa: E501
22303
+
22304
+ # Authentication setting
22305
+ auth_settings = [] # noqa: E501
22306
+
22307
+ return self.api_client.call_api(
22308
+ '/api/v2/resource_alerts/{resource_alert_id}', 'GET',
22309
+ path_params,
22310
+ query_params,
22311
+ header_params,
22312
+ body=body_params,
22313
+ post_params=form_params,
22314
+ files=local_var_files,
22315
+ response_type='ResourcealertResponse', # noqa: E501
22316
+ auth_settings=auth_settings,
22317
+ async_req=local_var_params.get('async_req'),
22318
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
22319
+ _preload_content=local_var_params.get('_preload_content', True),
22320
+ _request_timeout=local_var_params.get('_request_timeout'),
22321
+ collection_formats=collection_formats)
22322
+
21983
22323
  def get_resource_quota_api_v2_resource_quotas_resource_quota_id_get(self, resource_quota_id, **kwargs): # noqa: E501
21984
22324
  """Get Resource Quota # noqa: E501
21985
22325
 
@@ -36671,6 +37011,122 @@ class DefaultApi(object):
36671
37011
  _request_timeout=local_var_params.get('_request_timeout'),
36672
37012
  collection_formats=collection_formats)
36673
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
37016
+
37017
+ This method makes a synchronous HTTP request by default. To make an
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)
37020
+ >>> result = thread.get()
37021
+
37022
+ :param async_req bool: execute request asynchronously
37023
+ :param ListResourceAlertsQuery list_resource_alerts_query: (required)
37024
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
37025
+ be returned without reading/decoding response
37026
+ data. Default is True.
37027
+ :param _request_timeout: timeout setting for this request. If one
37028
+ number provided, it will be total request
37029
+ timeout. It can also be a pair (tuple) of
37030
+ (connection, read) timeouts.
37031
+ :return: ResourcealertListResponse
37032
+ If the method is called asynchronously,
37033
+ returns the request thread.
37034
+ """
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
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
37040
+
37041
+ This method makes a synchronous HTTP request by default. To make an
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)
37044
+ >>> result = thread.get()
37045
+
37046
+ :param async_req bool: execute request asynchronously
37047
+ :param ListResourceAlertsQuery list_resource_alerts_query: (required)
37048
+ :param _return_http_data_only: response data without head status code
37049
+ and headers
37050
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
37051
+ be returned without reading/decoding response
37052
+ data. Default is True.
37053
+ :param _request_timeout: timeout setting for this request. If one
37054
+ number provided, it will be total request
37055
+ timeout. It can also be a pair (tuple) of
37056
+ (connection, read) timeouts.
37057
+ :return: tuple(ResourcealertListResponse, status_code(int), headers(HTTPHeaderDict))
37058
+ If the method is called asynchronously,
37059
+ returns the request thread.
37060
+ """
37061
+
37062
+ local_var_params = locals()
37063
+
37064
+ all_params = [
37065
+ 'list_resource_alerts_query'
37066
+ ]
37067
+ all_params.extend(
37068
+ [
37069
+ 'async_req',
37070
+ '_return_http_data_only',
37071
+ '_preload_content',
37072
+ '_request_timeout'
37073
+ ]
37074
+ )
37075
+
37076
+ for key, val in six.iteritems(local_var_params['kwargs']):
37077
+ if key not in all_params:
37078
+ raise ApiTypeError(
37079
+ "Got an unexpected keyword argument '%s'"
37080
+ " to method search_resource_alerts_api_v2_resource_alerts_search_post" % key
37081
+ )
37082
+ local_var_params[key] = val
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
37088
+
37089
+ collection_formats = {}
37090
+
37091
+ path_params = {}
37092
+
37093
+ query_params = []
37094
+
37095
+ header_params = {}
37096
+
37097
+ form_params = []
37098
+ local_var_files = {}
37099
+
37100
+ body_params = None
37101
+ if 'list_resource_alerts_query' in local_var_params:
37102
+ body_params = local_var_params['list_resource_alerts_query']
37103
+ # HTTP header `Accept`
37104
+ header_params['Accept'] = self.api_client.select_header_accept(
37105
+ ['application/json']) # noqa: E501
37106
+
37107
+ # HTTP header `Content-Type`
37108
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
37109
+ ['application/json']) # noqa: E501
37110
+
37111
+ # Authentication setting
37112
+ auth_settings = [] # noqa: E501
37113
+
37114
+ return self.api_client.call_api(
37115
+ '/api/v2/resource_alerts/search', 'POST',
37116
+ path_params,
37117
+ query_params,
37118
+ header_params,
37119
+ body=body_params,
37120
+ post_params=form_params,
37121
+ files=local_var_files,
37122
+ response_type='ResourcealertListResponse', # noqa: E501
37123
+ auth_settings=auth_settings,
37124
+ async_req=local_var_params.get('async_req'),
37125
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
37126
+ _preload_content=local_var_params.get('_preload_content', True),
37127
+ _request_timeout=local_var_params.get('_request_timeout'),
37128
+ collection_formats=collection_formats)
37129
+
36674
37130
  def search_resource_quotas_api_v2_resource_quotas_search_post(self, list_resource_quotas_query, **kwargs): # noqa: E501
36675
37131
  """Search Resource Quotas # noqa: E501
36676
37132
 
@@ -202,6 +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
206
  from openapi_client.models.create_resource_quota import CreateResourceQuota
206
207
  from openapi_client.models.create_schedule import CreateSchedule
207
208
  from openapi_client.models.create_session_from_snapshot_options import CreateSessionFromSnapshotOptions
@@ -369,6 +370,7 @@ from openapi_client.models.lb_resource import LBResource
369
370
  from openapi_client.models.lbresource_response import LbresourceResponse
370
371
  from openapi_client.models.list_machine_pools_response import ListMachinePoolsResponse
371
372
  from openapi_client.models.list_machines_response import ListMachinesResponse
373
+ from openapi_client.models.list_resource_alerts_query import ListResourceAlertsQuery
372
374
  from openapi_client.models.list_resource_quotas_query import ListResourceQuotasQuery
373
375
  from openapi_client.models.list_response_metadata import ListResponseMetadata
374
376
  from openapi_client.models.listmachinepoolsresponse_response import ListmachinepoolsresponseResponse
@@ -504,8 +506,12 @@ from openapi_client.models.request_state_info import RequestStateInfo
504
506
  from openapi_client.models.requestemailmagiclinkresponse_response import RequestemailmagiclinkresponseResponse
505
507
  from openapi_client.models.requestotpreturnapimodel_response import RequestotpreturnapimodelResponse
506
508
  from openapi_client.models.reset_password_params import ResetPasswordParams
509
+ from openapi_client.models.resource_alert import ResourceAlert
510
+ from openapi_client.models.resource_alert_event_type import ResourceAlertEventType
507
511
  from openapi_client.models.resource_quota import ResourceQuota
508
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
509
515
  from openapi_client.models.resourcequota_list_response import ResourcequotaListResponse
510
516
  from openapi_client.models.resourcequota_response import ResourcequotaResponse
511
517
  from openapi_client.models.resources import Resources