anyscale 0.25.9__py3-none-any.whl → 0.25.10__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 (25) hide show
  1. anyscale/_private/anyscale_client/common.py +1 -1
  2. anyscale/_private/docgen/models.md +2 -2
  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/resource_alert.py +437 -0
  11. anyscale/client/openapi_client/models/resource_alert_event_type.py +102 -0
  12. anyscale/client/openapi_client/models/resourcealert_list_response.py +147 -0
  13. anyscale/client/openapi_client/models/resourcealert_response.py +121 -0
  14. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +51 -1
  15. anyscale/sdk/anyscale_client/models/baseimagesenum.py +51 -1
  16. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +51 -1
  17. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  18. anyscale/version.py +1 -1
  19. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/METADATA +1 -1
  20. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/RECORD +25 -19
  21. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/LICENSE +0 -0
  22. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/NOTICE +0 -0
  23. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/WHEEL +0 -0
  24. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/entry_points.txt +0 -0
  25. {anyscale-0.25.9.dist-info → anyscale-0.25.10.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,265 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class CreateResourceAlert(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'name': 'str',
37
+ 'cloud_id': 'str',
38
+ 'project_id': 'str',
39
+ 'user_id': 'str',
40
+ 'alert_events': 'list[ResourceAlertEventType]',
41
+ 'notification_channel': 'CreateNotificationChannelRecord'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'name': 'name',
46
+ 'cloud_id': 'cloud_id',
47
+ 'project_id': 'project_id',
48
+ 'user_id': 'user_id',
49
+ 'alert_events': 'alert_events',
50
+ 'notification_channel': 'notification_channel'
51
+ }
52
+
53
+ def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, alert_events=None, notification_channel=None, local_vars_configuration=None): # noqa: E501
54
+ """CreateResourceAlert - a model defined in OpenAPI""" # noqa: E501
55
+ if local_vars_configuration is None:
56
+ local_vars_configuration = Configuration()
57
+ self.local_vars_configuration = local_vars_configuration
58
+
59
+ self._name = None
60
+ self._cloud_id = None
61
+ self._project_id = None
62
+ self._user_id = None
63
+ self._alert_events = None
64
+ self._notification_channel = None
65
+ self.discriminator = None
66
+
67
+ self.name = name
68
+ self.cloud_id = cloud_id
69
+ if project_id is not None:
70
+ self.project_id = project_id
71
+ if user_id is not None:
72
+ self.user_id = user_id
73
+ self.alert_events = alert_events
74
+ if notification_channel is not None:
75
+ self.notification_channel = notification_channel
76
+
77
+ @property
78
+ def name(self):
79
+ """Gets the name of this CreateResourceAlert. # noqa: E501
80
+
81
+ The name of this resource alert. # noqa: E501
82
+
83
+ :return: The name of this CreateResourceAlert. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._name
87
+
88
+ @name.setter
89
+ def name(self, name):
90
+ """Sets the name of this CreateResourceAlert.
91
+
92
+ The name of this resource alert. # noqa: E501
93
+
94
+ :param name: The name of this CreateResourceAlert. # noqa: E501
95
+ :type: str
96
+ """
97
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
98
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
99
+
100
+ self._name = name
101
+
102
+ @property
103
+ def cloud_id(self):
104
+ """Gets the cloud_id of this CreateResourceAlert. # noqa: E501
105
+
106
+ The ID of the cloud that this resource alert applies to. # noqa: E501
107
+
108
+ :return: The cloud_id of this CreateResourceAlert. # noqa: E501
109
+ :rtype: str
110
+ """
111
+ return self._cloud_id
112
+
113
+ @cloud_id.setter
114
+ def cloud_id(self, cloud_id):
115
+ """Sets the cloud_id of this CreateResourceAlert.
116
+
117
+ The ID of the cloud that this resource alert applies to. # noqa: E501
118
+
119
+ :param cloud_id: The cloud_id of this CreateResourceAlert. # noqa: E501
120
+ :type: str
121
+ """
122
+ if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
123
+ raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
124
+
125
+ self._cloud_id = cloud_id
126
+
127
+ @property
128
+ def project_id(self):
129
+ """Gets the project_id of this CreateResourceAlert. # noqa: E501
130
+
131
+ The ID of the project that this resource alert applies to. # noqa: E501
132
+
133
+ :return: The project_id of this CreateResourceAlert. # noqa: E501
134
+ :rtype: str
135
+ """
136
+ return self._project_id
137
+
138
+ @project_id.setter
139
+ def project_id(self, project_id):
140
+ """Sets the project_id of this CreateResourceAlert.
141
+
142
+ The ID of the project that this resource alert applies to. # noqa: E501
143
+
144
+ :param project_id: The project_id of this CreateResourceAlert. # noqa: E501
145
+ :type: str
146
+ """
147
+
148
+ self._project_id = project_id
149
+
150
+ @property
151
+ def user_id(self):
152
+ """Gets the user_id of this CreateResourceAlert. # noqa: E501
153
+
154
+ The ID of the user that this resource alert applies to. # noqa: E501
155
+
156
+ :return: The user_id of this CreateResourceAlert. # noqa: E501
157
+ :rtype: str
158
+ """
159
+ return self._user_id
160
+
161
+ @user_id.setter
162
+ def user_id(self, user_id):
163
+ """Sets the user_id of this CreateResourceAlert.
164
+
165
+ The ID of the user that this resource alert applies to. # noqa: E501
166
+
167
+ :param user_id: The user_id of this CreateResourceAlert. # noqa: E501
168
+ :type: str
169
+ """
170
+
171
+ self._user_id = user_id
172
+
173
+ @property
174
+ def alert_events(self):
175
+ """Gets the alert_events of this CreateResourceAlert. # noqa: E501
176
+
177
+ The event types to alert on. # noqa: E501
178
+
179
+ :return: The alert_events of this CreateResourceAlert. # noqa: E501
180
+ :rtype: list[ResourceAlertEventType]
181
+ """
182
+ return self._alert_events
183
+
184
+ @alert_events.setter
185
+ def alert_events(self, alert_events):
186
+ """Sets the alert_events of this CreateResourceAlert.
187
+
188
+ The event types to alert on. # noqa: E501
189
+
190
+ :param alert_events: The alert_events of this CreateResourceAlert. # noqa: E501
191
+ :type: list[ResourceAlertEventType]
192
+ """
193
+ if self.local_vars_configuration.client_side_validation and alert_events is None: # noqa: E501
194
+ raise ValueError("Invalid value for `alert_events`, must not be `None`") # noqa: E501
195
+
196
+ self._alert_events = alert_events
197
+
198
+ @property
199
+ def notification_channel(self):
200
+ """Gets the notification_channel of this CreateResourceAlert. # noqa: E501
201
+
202
+ The notification channel that this resource alert sends notification to. # noqa: E501
203
+
204
+ :return: The notification_channel of this CreateResourceAlert. # noqa: E501
205
+ :rtype: CreateNotificationChannelRecord
206
+ """
207
+ return self._notification_channel
208
+
209
+ @notification_channel.setter
210
+ def notification_channel(self, notification_channel):
211
+ """Sets the notification_channel of this CreateResourceAlert.
212
+
213
+ The notification channel that this resource alert sends notification to. # noqa: E501
214
+
215
+ :param notification_channel: The notification_channel of this CreateResourceAlert. # noqa: E501
216
+ :type: CreateNotificationChannelRecord
217
+ """
218
+
219
+ self._notification_channel = notification_channel
220
+
221
+ def to_dict(self):
222
+ """Returns the model properties as a dict"""
223
+ result = {}
224
+
225
+ for attr, _ in six.iteritems(self.openapi_types):
226
+ value = getattr(self, attr)
227
+ if isinstance(value, list):
228
+ result[attr] = list(map(
229
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
230
+ value
231
+ ))
232
+ elif hasattr(value, "to_dict"):
233
+ result[attr] = value.to_dict()
234
+ elif isinstance(value, dict):
235
+ result[attr] = dict(map(
236
+ lambda item: (item[0], item[1].to_dict())
237
+ if hasattr(item[1], "to_dict") else item,
238
+ value.items()
239
+ ))
240
+ else:
241
+ result[attr] = value
242
+
243
+ return result
244
+
245
+ def to_str(self):
246
+ """Returns the string representation of the model"""
247
+ return pprint.pformat(self.to_dict())
248
+
249
+ def __repr__(self):
250
+ """For `print` and `pprint`"""
251
+ return self.to_str()
252
+
253
+ def __eq__(self, other):
254
+ """Returns true if both objects are equal"""
255
+ if not isinstance(other, CreateResourceAlert):
256
+ return False
257
+
258
+ return self.to_dict() == other.to_dict()
259
+
260
+ def __ne__(self, other):
261
+ """Returns true if both objects are not equal"""
262
+ if not isinstance(other, CreateResourceAlert):
263
+ return True
264
+
265
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,234 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Managed Ray API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from openapi_client.configuration import Configuration
19
+
20
+
21
+ class ListResourceAlertsQuery(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'name': 'TextQuery',
37
+ 'cloud_id': 'str',
38
+ 'creator_id': 'str',
39
+ 'is_enabled': 'bool',
40
+ 'paging': 'PageQuery'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'name': 'name',
45
+ 'cloud_id': 'cloud_id',
46
+ 'creator_id': 'creator_id',
47
+ 'is_enabled': 'is_enabled',
48
+ 'paging': 'paging'
49
+ }
50
+
51
+ def __init__(self, name=None, cloud_id=None, creator_id=None, is_enabled=None, paging=None, local_vars_configuration=None): # noqa: E501
52
+ """ListResourceAlertsQuery - a model defined in OpenAPI""" # noqa: E501
53
+ if local_vars_configuration is None:
54
+ local_vars_configuration = Configuration()
55
+ self.local_vars_configuration = local_vars_configuration
56
+
57
+ self._name = None
58
+ self._cloud_id = None
59
+ self._creator_id = None
60
+ self._is_enabled = None
61
+ self._paging = None
62
+ self.discriminator = None
63
+
64
+ if name is not None:
65
+ self.name = name
66
+ if cloud_id is not None:
67
+ self.cloud_id = cloud_id
68
+ if creator_id is not None:
69
+ self.creator_id = creator_id
70
+ if is_enabled is not None:
71
+ self.is_enabled = is_enabled
72
+ if paging is not None:
73
+ self.paging = paging
74
+
75
+ @property
76
+ def name(self):
77
+ """Gets the name of this ListResourceAlertsQuery. # noqa: E501
78
+
79
+ The name filter for the resource alerts. # noqa: E501
80
+
81
+ :return: The name of this ListResourceAlertsQuery. # noqa: E501
82
+ :rtype: TextQuery
83
+ """
84
+ return self._name
85
+
86
+ @name.setter
87
+ def name(self, name):
88
+ """Sets the name of this ListResourceAlertsQuery.
89
+
90
+ The name filter for the resource alerts. # noqa: E501
91
+
92
+ :param name: The name of this ListResourceAlertsQuery. # noqa: E501
93
+ :type: TextQuery
94
+ """
95
+
96
+ self._name = name
97
+
98
+ @property
99
+ def cloud_id(self):
100
+ """Gets the cloud_id of this ListResourceAlertsQuery. # noqa: E501
101
+
102
+ The cloud ID filter for the resource alerts. # noqa: E501
103
+
104
+ :return: The cloud_id of this ListResourceAlertsQuery. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._cloud_id
108
+
109
+ @cloud_id.setter
110
+ def cloud_id(self, cloud_id):
111
+ """Sets the cloud_id of this ListResourceAlertsQuery.
112
+
113
+ The cloud ID filter for the resource alerts. # noqa: E501
114
+
115
+ :param cloud_id: The cloud_id of this ListResourceAlertsQuery. # noqa: E501
116
+ :type: str
117
+ """
118
+
119
+ self._cloud_id = cloud_id
120
+
121
+ @property
122
+ def creator_id(self):
123
+ """Gets the creator_id of this ListResourceAlertsQuery. # noqa: E501
124
+
125
+ The creator ID filter for the resource alerts. # noqa: E501
126
+
127
+ :return: The creator_id of this ListResourceAlertsQuery. # noqa: E501
128
+ :rtype: str
129
+ """
130
+ return self._creator_id
131
+
132
+ @creator_id.setter
133
+ def creator_id(self, creator_id):
134
+ """Sets the creator_id of this ListResourceAlertsQuery.
135
+
136
+ The creator ID filter for the resource alerts. # noqa: E501
137
+
138
+ :param creator_id: The creator_id of this ListResourceAlertsQuery. # noqa: E501
139
+ :type: str
140
+ """
141
+
142
+ self._creator_id = creator_id
143
+
144
+ @property
145
+ def is_enabled(self):
146
+ """Gets the is_enabled of this ListResourceAlertsQuery. # noqa: E501
147
+
148
+ The is_enabled filter for the resource alerts. # noqa: E501
149
+
150
+ :return: The is_enabled of this ListResourceAlertsQuery. # noqa: E501
151
+ :rtype: bool
152
+ """
153
+ return self._is_enabled
154
+
155
+ @is_enabled.setter
156
+ def is_enabled(self, is_enabled):
157
+ """Sets the is_enabled of this ListResourceAlertsQuery.
158
+
159
+ The is_enabled filter for the resource alerts. # noqa: E501
160
+
161
+ :param is_enabled: The is_enabled of this ListResourceAlertsQuery. # noqa: E501
162
+ :type: bool
163
+ """
164
+
165
+ self._is_enabled = is_enabled
166
+
167
+ @property
168
+ def paging(self):
169
+ """Gets the paging of this ListResourceAlertsQuery. # noqa: E501
170
+
171
+ Pagination information. # noqa: E501
172
+
173
+ :return: The paging of this ListResourceAlertsQuery. # noqa: E501
174
+ :rtype: PageQuery
175
+ """
176
+ return self._paging
177
+
178
+ @paging.setter
179
+ def paging(self, paging):
180
+ """Sets the paging of this ListResourceAlertsQuery.
181
+
182
+ Pagination information. # noqa: E501
183
+
184
+ :param paging: The paging of this ListResourceAlertsQuery. # noqa: E501
185
+ :type: PageQuery
186
+ """
187
+
188
+ self._paging = paging
189
+
190
+ def to_dict(self):
191
+ """Returns the model properties as a dict"""
192
+ result = {}
193
+
194
+ for attr, _ in six.iteritems(self.openapi_types):
195
+ value = getattr(self, attr)
196
+ if isinstance(value, list):
197
+ result[attr] = list(map(
198
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
199
+ value
200
+ ))
201
+ elif hasattr(value, "to_dict"):
202
+ result[attr] = value.to_dict()
203
+ elif isinstance(value, dict):
204
+ result[attr] = dict(map(
205
+ lambda item: (item[0], item[1].to_dict())
206
+ if hasattr(item[1], "to_dict") else item,
207
+ value.items()
208
+ ))
209
+ else:
210
+ result[attr] = value
211
+
212
+ return result
213
+
214
+ def to_str(self):
215
+ """Returns the string representation of the model"""
216
+ return pprint.pformat(self.to_dict())
217
+
218
+ def __repr__(self):
219
+ """For `print` and `pprint`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, ListResourceAlertsQuery):
225
+ return False
226
+
227
+ return self.to_dict() == other.to_dict()
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ if not isinstance(other, ListResourceAlertsQuery):
232
+ return True
233
+
234
+ return self.to_dict() != other.to_dict()