anyscale 0.26.52__py3-none-any.whl → 0.26.54__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 (64) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +26 -26
  2. anyscale/_private/anyscale_client/common.py +5 -5
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +6 -6
  4. anyscale/_private/docgen/__main__.py +8 -8
  5. anyscale/_private/docgen/generator.py +48 -10
  6. anyscale/_private/docgen/models.md +2 -2
  7. anyscale/_private/sdk/__init__.py +124 -1
  8. anyscale/_private/workload/workload_config.py +4 -6
  9. anyscale/_private/workload/workload_sdk.py +9 -11
  10. anyscale/client/README.md +14 -13
  11. anyscale/client/openapi_client/__init__.py +4 -4
  12. anyscale/client/openapi_client/api/default_api.py +395 -325
  13. anyscale/client/openapi_client/models/__init__.py +4 -4
  14. anyscale/client/openapi_client/models/aws_config.py +2 -2
  15. anyscale/client/openapi_client/models/baseimagesenum.py +76 -1
  16. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  17. anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
  18. anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
  19. anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
  20. anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
  21. anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
  22. anyscale/client/openapi_client/models/{clouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
  23. anyscale/client/openapi_client/models/file_storage.py +4 -4
  24. anyscale/client/openapi_client/models/gcp_config.py +2 -2
  25. anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
  26. anyscale/client/openapi_client/models/object_storage.py +2 -2
  27. anyscale/client/openapi_client/models/{decoratedclouddeployment_response.py → presigned_url_response.py} +24 -22
  28. anyscale/client/openapi_client/models/production_job_event.py +31 -3
  29. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  30. anyscale/client/openapi_client/models/resource_notification.py +29 -1
  31. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +76 -1
  32. anyscale/client/openapi_client/models/workload_info.py +31 -3
  33. anyscale/client/openapi_client/models/workload_state_info.py +29 -1
  34. anyscale/cloud/models.py +39 -42
  35. anyscale/commands/cloud_commands.py +25 -23
  36. anyscale/commands/command_examples.py +10 -10
  37. anyscale/commands/exec_commands.py +12 -1
  38. anyscale/commands/list_commands.py +42 -12
  39. anyscale/commands/project_commands.py +23 -10
  40. anyscale/commands/schedule_commands.py +22 -11
  41. anyscale/commands/service_commands.py +11 -6
  42. anyscale/commands/util.py +94 -1
  43. anyscale/commands/workspace_commands.py +92 -38
  44. anyscale/compute_config/__init__.py +1 -1
  45. anyscale/compute_config/_private/compute_config_sdk.py +8 -11
  46. anyscale/compute_config/commands.py +3 -3
  47. anyscale/compute_config/models.py +30 -30
  48. anyscale/controllers/cloud_controller.py +306 -300
  49. anyscale/controllers/kubernetes_verifier.py +1 -1
  50. anyscale/job/_private/job_sdk.py +12 -12
  51. anyscale/job/models.py +1 -1
  52. anyscale/sdk/anyscale_client/models/baseimagesenum.py +76 -1
  53. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +76 -1
  54. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  55. anyscale/version.py +1 -1
  56. anyscale/workspace/commands.py +114 -23
  57. anyscale/workspace/models.py +3 -5
  58. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/METADATA +1 -1
  59. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/RECORD +64 -64
  60. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/WHEEL +0 -0
  61. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/entry_points.txt +0 -0
  62. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/licenses/LICENSE +0 -0
  63. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/licenses/NOTICE +0 -0
  64. {anyscale-0.26.52.dist-info → anyscale-0.26.54.dist-info}/top_level.txt +0 -0
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class ClouddeploymentResponse(object):
21
+ class DecoratedcloudresourceResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,7 +33,7 @@ class ClouddeploymentResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'CloudDeployment'
36
+ 'result': 'DecoratedCloudResource'
37
37
  }
38
38
 
39
39
  attribute_map = {
@@ -41,7 +41,7 @@ class ClouddeploymentResponse(object):
41
41
  }
42
42
 
43
43
  def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """ClouddeploymentResponse - a model defined in OpenAPI""" # noqa: E501
44
+ """DecoratedcloudresourceResponse - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
@@ -53,21 +53,21 @@ class ClouddeploymentResponse(object):
53
53
 
54
54
  @property
55
55
  def result(self):
56
- """Gets the result of this ClouddeploymentResponse. # noqa: E501
56
+ """Gets the result of this DecoratedcloudresourceResponse. # noqa: E501
57
57
 
58
58
 
59
- :return: The result of this ClouddeploymentResponse. # noqa: E501
60
- :rtype: CloudDeployment
59
+ :return: The result of this DecoratedcloudresourceResponse. # noqa: E501
60
+ :rtype: DecoratedCloudResource
61
61
  """
62
62
  return self._result
63
63
 
64
64
  @result.setter
65
65
  def result(self, result):
66
- """Sets the result of this ClouddeploymentResponse.
66
+ """Sets the result of this DecoratedcloudresourceResponse.
67
67
 
68
68
 
69
- :param result: The result of this ClouddeploymentResponse. # noqa: E501
70
- :type: CloudDeployment
69
+ :param result: The result of this DecoratedcloudresourceResponse. # noqa: E501
70
+ :type: DecoratedCloudResource
71
71
  """
72
72
  if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
73
  raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
@@ -108,14 +108,14 @@ class ClouddeploymentResponse(object):
108
108
 
109
109
  def __eq__(self, other):
110
110
  """Returns true if both objects are equal"""
111
- if not isinstance(other, ClouddeploymentResponse):
111
+ if not isinstance(other, DecoratedcloudresourceResponse):
112
112
  return False
113
113
 
114
114
  return self.to_dict() == other.to_dict()
115
115
 
116
116
  def __ne__(self, other):
117
117
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, ClouddeploymentResponse):
118
+ if not isinstance(other, DecoratedcloudresourceResponse):
119
119
  return True
120
120
 
121
121
  return self.to_dict() != other.to_dict()
@@ -145,7 +145,7 @@ class FileStorage(object):
145
145
  def persistent_volume_claim(self):
146
146
  """Gets the persistent_volume_claim of this FileStorage. # noqa: E501
147
147
 
148
- For Kubernetes deployments, the name of the persistent volume claim used to mount shared storage into pods. # noqa: E501
148
+ For Kubernetes resources, the name of the persistent volume claim used to mount shared storage into pods. # noqa: E501
149
149
 
150
150
  :return: The persistent_volume_claim of this FileStorage. # noqa: E501
151
151
  :rtype: str
@@ -156,7 +156,7 @@ class FileStorage(object):
156
156
  def persistent_volume_claim(self, persistent_volume_claim):
157
157
  """Sets the persistent_volume_claim of this FileStorage.
158
158
 
159
- For Kubernetes deployments, the name of the persistent volume claim used to mount shared storage into pods. # noqa: E501
159
+ For Kubernetes resources, the name of the persistent volume claim used to mount shared storage into pods. # noqa: E501
160
160
 
161
161
  :param persistent_volume_claim: The persistent_volume_claim of this FileStorage. # noqa: E501
162
162
  :type: str
@@ -168,7 +168,7 @@ class FileStorage(object):
168
168
  def csi_ephemeral_volume_driver(self):
169
169
  """Gets the csi_ephemeral_volume_driver of this FileStorage. # noqa: E501
170
170
 
171
- For Kubernetes deployments, the CSI ephemeral volume driver used to mount shared storage into pods. # noqa: E501
171
+ For Kubernetes resources, the CSI ephemeral volume driver used to mount shared storage into pods. # noqa: E501
172
172
 
173
173
  :return: The csi_ephemeral_volume_driver of this FileStorage. # noqa: E501
174
174
  :rtype: str
@@ -179,7 +179,7 @@ class FileStorage(object):
179
179
  def csi_ephemeral_volume_driver(self, csi_ephemeral_volume_driver):
180
180
  """Sets the csi_ephemeral_volume_driver of this FileStorage.
181
181
 
182
- For Kubernetes deployments, the CSI ephemeral volume driver used to mount shared storage into pods. # noqa: E501
182
+ For Kubernetes resources, the CSI ephemeral volume driver used to mount shared storage into pods. # noqa: E501
183
183
 
184
184
  :param csi_ephemeral_volume_driver: The csi_ephemeral_volume_driver of this FileStorage. # noqa: E501
185
185
  :type: str
@@ -336,7 +336,7 @@ class GCPConfig(object):
336
336
  def deployment_manager_id(self):
337
337
  """Gets the deployment_manager_id of this GCPConfig. # noqa: E501
338
338
 
339
- The deployment manager deployment ID, for deployments with Anyscale-managed resources. # noqa: E501
339
+ The deployment manager deployment ID, for Anyscale-managed resources. # noqa: E501
340
340
 
341
341
  :return: The deployment_manager_id of this GCPConfig. # noqa: E501
342
342
  :rtype: str
@@ -347,7 +347,7 @@ class GCPConfig(object):
347
347
  def deployment_manager_id(self, deployment_manager_id):
348
348
  """Sets the deployment_manager_id of this GCPConfig.
349
349
 
350
- The deployment manager deployment ID, for deployments with Anyscale-managed resources. # noqa: E501
350
+ The deployment manager deployment ID, for Anyscale-managed resources. # noqa: E501
351
351
 
352
352
  :param deployment_manager_id: The deployment_manager_id of this GCPConfig. # noqa: E501
353
353
  :type: str
@@ -33,8 +33,15 @@ class HaJobErrorTypes(object):
33
33
  CLUSTER_FAILURE = "CLUSTER_FAILURE"
34
34
  CLUSTER_START_FAILURE = "CLUSTER_START_FAILURE"
35
35
  RAY_JOB_RUNTIME_ENV_SETUP_FAILURE = "RAY_JOB_RUNTIME_ENV_SETUP_FAILURE"
36
-
37
- allowable_values = [RAY_JOB_FAILURE, RAY_JOB_SUBMISSION_FAILURE, CLUSTER_FAILURE, CLUSTER_START_FAILURE, RAY_JOB_RUNTIME_ENV_SETUP_FAILURE] # noqa: E501
36
+ RAY_JOB_SUPERVISOR_ACTOR_START_TIMEOUT = "RAY_JOB_SUPERVISOR_ACTOR_START_TIMEOUT"
37
+ RAY_JOB_SUPERVISOR_ACTOR_START_FAILURE = "RAY_JOB_SUPERVISOR_ACTOR_START_FAILURE"
38
+ RAY_JOB_SUPERVISOR_ACTOR_UNSCHEDULABLE = "RAY_JOB_SUPERVISOR_ACTOR_UNSCHEDULABLE"
39
+ RAY_JOB_SUPERVISOR_ACTOR_UNKNOWN_FAILURE = "RAY_JOB_SUPERVISOR_ACTOR_UNKNOWN_FAILURE"
40
+ RAY_JOB_SUPERVISOR_ACTOR_DIED = "RAY_JOB_SUPERVISOR_ACTOR_DIED"
41
+ RAY_JOB_ENTRYPOINT_COMMAND_START_ERROR = "RAY_JOB_ENTRYPOINT_COMMAND_START_ERROR"
42
+ RAY_JOB_ENTRYPOINT_COMMAND_ERROR = "RAY_JOB_ENTRYPOINT_COMMAND_ERROR"
43
+
44
+ allowable_values = [RAY_JOB_FAILURE, RAY_JOB_SUBMISSION_FAILURE, CLUSTER_FAILURE, CLUSTER_START_FAILURE, RAY_JOB_RUNTIME_ENV_SETUP_FAILURE, RAY_JOB_SUPERVISOR_ACTOR_START_TIMEOUT, RAY_JOB_SUPERVISOR_ACTOR_START_FAILURE, RAY_JOB_SUPERVISOR_ACTOR_UNSCHEDULABLE, RAY_JOB_SUPERVISOR_ACTOR_UNKNOWN_FAILURE, RAY_JOB_SUPERVISOR_ACTOR_DIED, RAY_JOB_ENTRYPOINT_COMMAND_START_ERROR, RAY_JOB_ENTRYPOINT_COMMAND_ERROR] # noqa: E501
38
45
 
39
46
  """
40
47
  Attributes:
@@ -89,7 +89,7 @@ class ObjectStorage(object):
89
89
  def region(self):
90
90
  """Gets the region of this ObjectStorage. # noqa: E501
91
91
 
92
- The region for the cloud storage bucket. Defaults to the region of the deployment. # noqa: E501
92
+ The region for the cloud storage bucket. Defaults to the region of the cloud resource. # noqa: E501
93
93
 
94
94
  :return: The region of this ObjectStorage. # noqa: E501
95
95
  :rtype: str
@@ -100,7 +100,7 @@ class ObjectStorage(object):
100
100
  def region(self, region):
101
101
  """Sets the region of this ObjectStorage.
102
102
 
103
- The region for the cloud storage bucket. Defaults to the region of the deployment. # noqa: E501
103
+ The region for the cloud storage bucket. Defaults to the region of the cloud resource. # noqa: E501
104
104
 
105
105
  :param region: The region of this ObjectStorage. # noqa: E501
106
106
  :type: str
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class DecoratedclouddeploymentResponse(object):
21
+ class PresignedUrlResponse(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -33,46 +33,48 @@ class DecoratedclouddeploymentResponse(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  openapi_types = {
36
- 'result': 'DecoratedCloudDeployment'
36
+ 'url': 'str'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'result': 'result'
40
+ 'url': 'url'
41
41
  }
42
42
 
43
- def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """DecoratedclouddeploymentResponse - a model defined in OpenAPI""" # noqa: E501
43
+ def __init__(self, url=None, local_vars_configuration=None): # noqa: E501
44
+ """PresignedUrlResponse - a model defined in OpenAPI""" # noqa: E501
45
45
  if local_vars_configuration is None:
46
46
  local_vars_configuration = Configuration()
47
47
  self.local_vars_configuration = local_vars_configuration
48
48
 
49
- self._result = None
49
+ self._url = None
50
50
  self.discriminator = None
51
51
 
52
- self.result = result
52
+ self.url = url
53
53
 
54
54
  @property
55
- def result(self):
56
- """Gets the result of this DecoratedclouddeploymentResponse. # noqa: E501
55
+ def url(self):
56
+ """Gets the url of this PresignedUrlResponse. # noqa: E501
57
57
 
58
+ The presigned url # noqa: E501
58
59
 
59
- :return: The result of this DecoratedclouddeploymentResponse. # noqa: E501
60
- :rtype: DecoratedCloudDeployment
60
+ :return: The url of this PresignedUrlResponse. # noqa: E501
61
+ :rtype: str
61
62
  """
62
- return self._result
63
+ return self._url
63
64
 
64
- @result.setter
65
- def result(self, result):
66
- """Sets the result of this DecoratedclouddeploymentResponse.
65
+ @url.setter
66
+ def url(self, url):
67
+ """Sets the url of this PresignedUrlResponse.
67
68
 
69
+ The presigned url # noqa: E501
68
70
 
69
- :param result: The result of this DecoratedclouddeploymentResponse. # noqa: E501
70
- :type: DecoratedCloudDeployment
71
+ :param url: The url of this PresignedUrlResponse. # noqa: E501
72
+ :type: str
71
73
  """
72
- if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
73
- raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
74
+ if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
75
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
74
76
 
75
- self._result = result
77
+ self._url = url
76
78
 
77
79
  def to_dict(self):
78
80
  """Returns the model properties as a dict"""
@@ -108,14 +110,14 @@ class DecoratedclouddeploymentResponse(object):
108
110
 
109
111
  def __eq__(self, other):
110
112
  """Returns true if both objects are equal"""
111
- if not isinstance(other, DecoratedclouddeploymentResponse):
113
+ if not isinstance(other, PresignedUrlResponse):
112
114
  return False
113
115
 
114
116
  return self.to_dict() == other.to_dict()
115
117
 
116
118
  def __ne__(self, other):
117
119
  """Returns true if both objects are not equal"""
118
- if not isinstance(other, DecoratedclouddeploymentResponse):
120
+ if not isinstance(other, PresignedUrlResponse):
119
121
  return True
120
122
 
121
123
  return self.to_dict() != other.to_dict()
@@ -42,7 +42,8 @@ class ProductionJobEvent(object):
42
42
  'origin': 'HaJobEventOrigin',
43
43
  'ha_job_id': 'str',
44
44
  'cluster_id': 'str',
45
- 'metadata': 'object'
45
+ 'metadata': 'object',
46
+ 'has_additional_sensitive_message': 'bool'
46
47
  }
47
48
 
48
49
  attribute_map = {
@@ -55,10 +56,11 @@ class ProductionJobEvent(object):
55
56
  'origin': 'origin',
56
57
  'ha_job_id': 'ha_job_id',
57
58
  'cluster_id': 'cluster_id',
58
- 'metadata': 'metadata'
59
+ 'metadata': 'metadata',
60
+ 'has_additional_sensitive_message': 'has_additional_sensitive_message'
59
61
  }
60
62
 
61
- def __init__(self, id=None, created_at=None, event_type=None, error_type=None, level=None, message=None, origin=None, ha_job_id=None, cluster_id=None, metadata=None, local_vars_configuration=None): # noqa: E501
63
+ def __init__(self, id=None, created_at=None, event_type=None, error_type=None, level=None, message=None, origin=None, ha_job_id=None, cluster_id=None, metadata=None, has_additional_sensitive_message=False, local_vars_configuration=None): # noqa: E501
62
64
  """ProductionJobEvent - a model defined in OpenAPI""" # noqa: E501
63
65
  if local_vars_configuration is None:
64
66
  local_vars_configuration = Configuration()
@@ -74,6 +76,7 @@ class ProductionJobEvent(object):
74
76
  self._ha_job_id = None
75
77
  self._cluster_id = None
76
78
  self._metadata = None
79
+ self._has_additional_sensitive_message = None
77
80
  self.discriminator = None
78
81
 
79
82
  self.id = id
@@ -92,6 +95,8 @@ class ProductionJobEvent(object):
92
95
  self.cluster_id = cluster_id
93
96
  if metadata is not None:
94
97
  self.metadata = metadata
98
+ if has_additional_sensitive_message is not None:
99
+ self.has_additional_sensitive_message = has_additional_sensitive_message
95
100
 
96
101
  @property
97
102
  def id(self):
@@ -331,6 +336,29 @@ class ProductionJobEvent(object):
331
336
 
332
337
  self._metadata = metadata
333
338
 
339
+ @property
340
+ def has_additional_sensitive_message(self):
341
+ """Gets the has_additional_sensitive_message of this ProductionJobEvent. # noqa: E501
342
+
343
+ Whether we have additional sensitive message details stored that can be subsequently fetched. # noqa: E501
344
+
345
+ :return: The has_additional_sensitive_message of this ProductionJobEvent. # noqa: E501
346
+ :rtype: bool
347
+ """
348
+ return self._has_additional_sensitive_message
349
+
350
+ @has_additional_sensitive_message.setter
351
+ def has_additional_sensitive_message(self, has_additional_sensitive_message):
352
+ """Sets the has_additional_sensitive_message of this ProductionJobEvent.
353
+
354
+ Whether we have additional sensitive message details stored that can be subsequently fetched. # noqa: E501
355
+
356
+ :param has_additional_sensitive_message: The has_additional_sensitive_message of this ProductionJobEvent. # noqa: E501
357
+ :type: bool
358
+ """
359
+
360
+ self._has_additional_sensitive_message = has_additional_sensitive_message
361
+
334
362
  def to_dict(self):
335
363
  """Returns the model properties as a dict"""
336
364
  result = {}
@@ -35,8 +35,9 @@ class ResourceAlertEventType(object):
35
35
  SERVICE_RUNNING = "NOTIFICATION_EVENT_TYPE_SERVICE_RUNNING"
36
36
  SERVICE_ROLLING_OUT = "NOTIFICATION_EVENT_TYPE_SERVICE_ROLLING_OUT"
37
37
  SERVICE_ROLLING_BACK = "NOTIFICATION_EVENT_TYPE_SERVICE_ROLLING_BACK"
38
+ JOB_LONG_RUNNING = "NOTIFICATION_EVENT_TYPE_JOB_LONG_RUNNING"
38
39
 
39
- allowable_values = [JOB_FAILED, JOB_SUCCEEDED, JOB_RETRYING, SERVICE_UNHEALTHY, SERVICE_RUNNING, SERVICE_ROLLING_OUT, SERVICE_ROLLING_BACK] # noqa: E501
40
+ allowable_values = [JOB_FAILED, JOB_SUCCEEDED, JOB_RETRYING, SERVICE_UNHEALTHY, SERVICE_RUNNING, SERVICE_ROLLING_OUT, SERVICE_ROLLING_BACK, JOB_LONG_RUNNING] # noqa: E501
40
41
 
41
42
  """
42
43
  Attributes:
@@ -39,6 +39,7 @@ class ResourceNotification(object):
39
39
  'user_id': 'str',
40
40
  'notification_events': 'list[ResourceAlertEventType]',
41
41
  'notification_channel': 'CreateNotificationChannelRecord',
42
+ 'alert_config': 'object',
42
43
  'id': 'str',
43
44
  'is_enabled': 'bool',
44
45
  'created_at': 'datetime',
@@ -54,6 +55,7 @@ class ResourceNotification(object):
54
55
  'user_id': 'user_id',
55
56
  'notification_events': 'notification_events',
56
57
  'notification_channel': 'notification_channel',
58
+ 'alert_config': 'alert_config',
57
59
  'id': 'id',
58
60
  'is_enabled': 'is_enabled',
59
61
  'created_at': 'created_at',
@@ -62,7 +64,7 @@ class ResourceNotification(object):
62
64
  'cloud': 'cloud'
63
65
  }
64
66
 
65
- def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, notification_events=None, notification_channel=None, id=None, is_enabled=True, created_at=None, deleted_at=None, creator=None, cloud=None, local_vars_configuration=None): # noqa: E501
67
+ def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, notification_events=None, notification_channel=None, alert_config=None, id=None, is_enabled=True, created_at=None, deleted_at=None, creator=None, cloud=None, local_vars_configuration=None): # noqa: E501
66
68
  """ResourceNotification - a model defined in OpenAPI""" # noqa: E501
67
69
  if local_vars_configuration is None:
68
70
  local_vars_configuration = Configuration()
@@ -74,6 +76,7 @@ class ResourceNotification(object):
74
76
  self._user_id = None
75
77
  self._notification_events = None
76
78
  self._notification_channel = None
79
+ self._alert_config = None
77
80
  self._id = None
78
81
  self._is_enabled = None
79
82
  self._created_at = None
@@ -91,6 +94,8 @@ class ResourceNotification(object):
91
94
  self.notification_events = notification_events
92
95
  if notification_channel is not None:
93
96
  self.notification_channel = notification_channel
97
+ if alert_config is not None:
98
+ self.alert_config = alert_config
94
99
  self.id = id
95
100
  if is_enabled is not None:
96
101
  self.is_enabled = is_enabled
@@ -244,6 +249,29 @@ class ResourceNotification(object):
244
249
 
245
250
  self._notification_channel = notification_channel
246
251
 
252
+ @property
253
+ def alert_config(self):
254
+ """Gets the alert_config of this ResourceNotification. # noqa: E501
255
+
256
+ The alert configuration for resource alert events. # noqa: E501
257
+
258
+ :return: The alert_config of this ResourceNotification. # noqa: E501
259
+ :rtype: object
260
+ """
261
+ return self._alert_config
262
+
263
+ @alert_config.setter
264
+ def alert_config(self, alert_config):
265
+ """Sets the alert_config of this ResourceNotification.
266
+
267
+ The alert configuration for resource alert events. # noqa: E501
268
+
269
+ :param alert_config: The alert_config of this ResourceNotification. # noqa: E501
270
+ :type: object
271
+ """
272
+
273
+ self._alert_config = alert_config
274
+
247
275
  @property
248
276
  def id(self):
249
277
  """Gets the id of this ResourceNotification. # noqa: E501