anyscale 0.26.51__py3-none-any.whl → 0.26.53__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.
- anyscale/_private/anyscale_client/README.md +1 -1
- anyscale/_private/anyscale_client/anyscale_client.py +178 -46
- anyscale/_private/anyscale_client/common.py +61 -2
- anyscale/_private/anyscale_client/fake_anyscale_client.py +145 -8
- anyscale/_private/docgen/__main__.py +42 -31
- anyscale/_private/docgen/generator.py +63 -28
- anyscale/_private/docgen/models.md +4 -2
- anyscale/_private/sdk/__init__.py +124 -1
- anyscale/_private/workload/workload_config.py +4 -6
- anyscale/_private/workload/workload_sdk.py +105 -12
- anyscale/client/README.md +13 -11
- anyscale/client/openapi_client/__init__.py +3 -3
- anyscale/client/openapi_client/api/default_api.py +512 -316
- anyscale/client/openapi_client/models/__init__.py +3 -3
- anyscale/client/openapi_client/models/aws_config.py +2 -2
- anyscale/client/openapi_client/models/baseimagesenum.py +158 -1
- anyscale/client/openapi_client/models/cloud_data_bucket_presigned_url_request.py +31 -3
- anyscale/client/openapi_client/models/cloud_deployment.py +37 -36
- anyscale/client/openapi_client/models/cloud_resource.py +59 -3
- anyscale/client/openapi_client/models/cloud_resource_gcp.py +59 -3
- anyscale/client/openapi_client/models/create_cloud_resource.py +59 -3
- anyscale/client/openapi_client/models/create_cloud_resource_gcp.py +59 -3
- anyscale/client/openapi_client/models/create_resource_notification.py +31 -3
- anyscale/client/openapi_client/models/{decorated_cloud_deployment.py → decorated_cloud_resource.py} +124 -96
- anyscale/client/openapi_client/models/{clouddeployment_list_response.py → decoratedcloudresource_list_response.py} +15 -15
- anyscale/client/openapi_client/models/{decoratedclouddeployment_response.py → decoratedcloudresource_response.py} +11 -11
- anyscale/client/openapi_client/models/file_storage.py +4 -4
- anyscale/client/openapi_client/models/gcp_config.py +2 -2
- anyscale/client/openapi_client/models/ha_job_error_types.py +9 -2
- anyscale/client/openapi_client/models/object_storage.py +4 -4
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +57 -1
- anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
- anyscale/client/openapi_client/models/resource_notification.py +29 -1
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +155 -1
- anyscale/client/openapi_client/models/workload_info.py +31 -3
- anyscale/client/openapi_client/models/workload_state_info.py +29 -1
- anyscale/cloud/models.py +40 -43
- anyscale/commands/cloud_commands.py +93 -88
- anyscale/commands/command_examples.py +37 -49
- anyscale/commands/exec_commands.py +12 -1
- anyscale/commands/list_commands.py +42 -12
- anyscale/commands/project_commands.py +399 -115
- anyscale/commands/schedule_commands.py +22 -11
- anyscale/commands/service_commands.py +11 -6
- anyscale/commands/util.py +94 -1
- anyscale/commands/workspace_commands.py +92 -38
- anyscale/compute_config/__init__.py +1 -1
- anyscale/compute_config/_private/compute_config_sdk.py +8 -11
- anyscale/compute_config/commands.py +3 -3
- anyscale/compute_config/models.py +30 -30
- anyscale/controllers/cloud_controller.py +361 -360
- anyscale/controllers/kubernetes_verifier.py +1 -1
- anyscale/job/_private/job_sdk.py +41 -23
- anyscale/job/models.py +1 -1
- anyscale/project/__init__.py +101 -1
- anyscale/project/_private/project_sdk.py +90 -2
- anyscale/project/commands.py +188 -1
- anyscale/project/models.py +198 -2
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +158 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +57 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +155 -1
- anyscale/service/_private/service_sdk.py +2 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/util.py +3 -0
- anyscale/utils/runtime_env.py +3 -1
- anyscale/version.py +1 -1
- anyscale/workspace/commands.py +114 -23
- anyscale/workspace/models.py +3 -5
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/METADATA +1 -1
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/RECORD +75 -75
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/WHEEL +0 -0
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.51.dist-info → anyscale-0.26.53.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
|
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 DecoratedclouddeploymentResponse(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'result': '
|
36
|
+
'result': 'DecoratedCloudResource'
|
37
37
|
}
|
38
38
|
|
39
39
|
attribute_map = {
|
@@ -41,7 +41,7 @@ class DecoratedclouddeploymentResponse(object):
|
|
41
41
|
}
|
42
42
|
|
43
43
|
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""
|
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 DecoratedclouddeploymentResponse(object):
|
|
53
53
|
|
54
54
|
@property
|
55
55
|
def result(self):
|
56
|
-
"""Gets the result of this
|
56
|
+
"""Gets the result of this DecoratedcloudresourceResponse. # noqa: E501
|
57
57
|
|
58
58
|
|
59
|
-
:return: The result of this
|
60
|
-
:rtype:
|
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
|
66
|
+
"""Sets the result of this DecoratedcloudresourceResponse.
|
67
67
|
|
68
68
|
|
69
|
-
:param result: The result of this
|
70
|
-
:type:
|
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 DecoratedclouddeploymentResponse(object):
|
|
108
108
|
|
109
109
|
def __eq__(self, other):
|
110
110
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
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,
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
-
|
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:
|
@@ -66,7 +66,7 @@ class ObjectStorage(object):
|
|
66
66
|
def bucket_name(self):
|
67
67
|
"""Gets the bucket_name of this ObjectStorage. # noqa: E501
|
68
68
|
|
69
|
-
The cloud storage bucket name, prefixed with the storage scheme (s3://bucket-name, gs://bucket-name, or
|
69
|
+
The cloud storage bucket name, prefixed with the storage scheme (s3://bucket-name, gs://bucket-name, or abfss://bucket-name@account.dfs.core.windows.net). # noqa: E501
|
70
70
|
|
71
71
|
:return: The bucket_name of this ObjectStorage. # noqa: E501
|
72
72
|
:rtype: str
|
@@ -77,7 +77,7 @@ class ObjectStorage(object):
|
|
77
77
|
def bucket_name(self, bucket_name):
|
78
78
|
"""Sets the bucket_name of this ObjectStorage.
|
79
79
|
|
80
|
-
The cloud storage bucket name, prefixed with the storage scheme (s3://bucket-name, gs://bucket-name, or
|
80
|
+
The cloud storage bucket name, prefixed with the storage scheme (s3://bucket-name, gs://bucket-name, or abfss://bucket-name@account.dfs.core.windows.net). # noqa: E501
|
81
81
|
|
82
82
|
:param bucket_name: The bucket_name of this ObjectStorage. # noqa: E501
|
83
83
|
:type: str
|
@@ -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
|
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
|
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
|
@@ -35,6 +35,8 @@ class RayRuntimeEnvConfig(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'working_dir': 'str',
|
37
37
|
'py_modules': 'list[str]',
|
38
|
+
'relative_working_dir': 'str',
|
39
|
+
'relative_py_modules': 'list[str]',
|
38
40
|
'py_executable': 'str',
|
39
41
|
'pip': 'list[str]',
|
40
42
|
'conda': 'object',
|
@@ -46,6 +48,8 @@ class RayRuntimeEnvConfig(object):
|
|
46
48
|
attribute_map = {
|
47
49
|
'working_dir': 'working_dir',
|
48
50
|
'py_modules': 'py_modules',
|
51
|
+
'relative_working_dir': 'relative_working_dir',
|
52
|
+
'relative_py_modules': 'relative_py_modules',
|
49
53
|
'py_executable': 'py_executable',
|
50
54
|
'pip': 'pip',
|
51
55
|
'conda': 'conda',
|
@@ -54,7 +58,7 @@ class RayRuntimeEnvConfig(object):
|
|
54
58
|
'image_uri': 'image_uri'
|
55
59
|
}
|
56
60
|
|
57
|
-
def __init__(self, working_dir=None, py_modules=None, py_executable=None, pip=None, conda=None, env_vars=None, config=None, image_uri=None, local_vars_configuration=None): # noqa: E501
|
61
|
+
def __init__(self, working_dir=None, py_modules=None, relative_working_dir=None, relative_py_modules=None, py_executable=None, pip=None, conda=None, env_vars=None, config=None, image_uri=None, local_vars_configuration=None): # noqa: E501
|
58
62
|
"""RayRuntimeEnvConfig - a model defined in OpenAPI""" # noqa: E501
|
59
63
|
if local_vars_configuration is None:
|
60
64
|
local_vars_configuration = Configuration()
|
@@ -62,6 +66,8 @@ class RayRuntimeEnvConfig(object):
|
|
62
66
|
|
63
67
|
self._working_dir = None
|
64
68
|
self._py_modules = None
|
69
|
+
self._relative_working_dir = None
|
70
|
+
self._relative_py_modules = None
|
65
71
|
self._py_executable = None
|
66
72
|
self._pip = None
|
67
73
|
self._conda = None
|
@@ -74,6 +80,10 @@ class RayRuntimeEnvConfig(object):
|
|
74
80
|
self.working_dir = working_dir
|
75
81
|
if py_modules is not None:
|
76
82
|
self.py_modules = py_modules
|
83
|
+
if relative_working_dir is not None:
|
84
|
+
self.relative_working_dir = relative_working_dir
|
85
|
+
if relative_py_modules is not None:
|
86
|
+
self.relative_py_modules = relative_py_modules
|
77
87
|
if py_executable is not None:
|
78
88
|
self.py_executable = py_executable
|
79
89
|
if pip is not None:
|
@@ -133,6 +143,52 @@ class RayRuntimeEnvConfig(object):
|
|
133
143
|
|
134
144
|
self._py_modules = py_modules
|
135
145
|
|
146
|
+
@property
|
147
|
+
def relative_working_dir(self):
|
148
|
+
"""Gets the relative_working_dir of this RayRuntimeEnvConfig. # noqa: E501
|
149
|
+
|
150
|
+
Relative path to the working directory that your code will run in. The appropriate cloud deployment object storage will be prepended to this path. # noqa: E501
|
151
|
+
|
152
|
+
:return: The relative_working_dir of this RayRuntimeEnvConfig. # noqa: E501
|
153
|
+
:rtype: str
|
154
|
+
"""
|
155
|
+
return self._relative_working_dir
|
156
|
+
|
157
|
+
@relative_working_dir.setter
|
158
|
+
def relative_working_dir(self, relative_working_dir):
|
159
|
+
"""Sets the relative_working_dir of this RayRuntimeEnvConfig.
|
160
|
+
|
161
|
+
Relative path to the working directory that your code will run in. The appropriate cloud deployment object storage will be prepended to this path. # noqa: E501
|
162
|
+
|
163
|
+
:param relative_working_dir: The relative_working_dir of this RayRuntimeEnvConfig. # noqa: E501
|
164
|
+
:type: str
|
165
|
+
"""
|
166
|
+
|
167
|
+
self._relative_working_dir = relative_working_dir
|
168
|
+
|
169
|
+
@property
|
170
|
+
def relative_py_modules(self):
|
171
|
+
"""Gets the relative_py_modules of this RayRuntimeEnvConfig. # noqa: E501
|
172
|
+
|
173
|
+
Relative paths to python modules that will be installed along with your runtime env. The appropriate cloud deployment object storage will be prepended to these paths. If `py_modules` are specified, they will be also be installed. # noqa: E501
|
174
|
+
|
175
|
+
:return: The relative_py_modules of this RayRuntimeEnvConfig. # noqa: E501
|
176
|
+
:rtype: list[str]
|
177
|
+
"""
|
178
|
+
return self._relative_py_modules
|
179
|
+
|
180
|
+
@relative_py_modules.setter
|
181
|
+
def relative_py_modules(self, relative_py_modules):
|
182
|
+
"""Sets the relative_py_modules of this RayRuntimeEnvConfig.
|
183
|
+
|
184
|
+
Relative paths to python modules that will be installed along with your runtime env. The appropriate cloud deployment object storage will be prepended to these paths. If `py_modules` are specified, they will be also be installed. # noqa: E501
|
185
|
+
|
186
|
+
:param relative_py_modules: The relative_py_modules of this RayRuntimeEnvConfig. # noqa: E501
|
187
|
+
:type: list[str]
|
188
|
+
"""
|
189
|
+
|
190
|
+
self._relative_py_modules = relative_py_modules
|
191
|
+
|
136
192
|
@property
|
137
193
|
def py_executable(self):
|
138
194
|
"""Gets the py_executable of this RayRuntimeEnvConfig. # noqa: E501
|
@@ -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
|