anyscale 0.26.2__py3-none-any.whl → 0.26.4__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/docgen/models.md +2 -1
- anyscale/_private/workload/workload_config.py +11 -0
- anyscale/_private/workload/workload_sdk.py +4 -0
- anyscale/client/README.md +3 -43
- anyscale/client/openapi_client/__init__.py +0 -26
- anyscale/client/openapi_client/api/default_api.py +368 -2030
- anyscale/client/openapi_client/models/__init__.py +0 -26
- anyscale/client/openapi_client/models/node_type.py +2 -1
- anyscale/client/openapi_client/models/ray_runtime_env_config.py +29 -1
- anyscale/client/openapi_client/models/train_run.py +29 -3
- anyscale/client/openapi_client/models/train_worker.py +29 -3
- anyscale/job/_private/job_sdk.py +4 -0
- anyscale/sdk/anyscale_client/models/node_type.py +2 -1
- anyscale/sdk/anyscale_client/models/ray_runtime_env_config.py +29 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/METADATA +1 -1
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/RECORD +22 -48
- anyscale/client/openapi_client/models/aica_endpoint.py +0 -527
- anyscale/client/openapi_client/models/aica_endpoint_event.py +0 -433
- anyscale/client/openapi_client/models/aica_endpoint_event_level.py +0 -103
- anyscale/client/openapi_client/models/aica_endpoint_event_type.py +0 -120
- anyscale/client/openapi_client/models/aica_endpoint_scope.py +0 -102
- anyscale/client/openapi_client/models/aica_model.py +0 -398
- anyscale/client/openapi_client/models/aica_model_accelerator_map.py +0 -123
- anyscale/client/openapi_client/models/aica_model_configuration.py +0 -209
- anyscale/client/openapi_client/models/aica_observability_urls.py +0 -178
- anyscale/client/openapi_client/models/aicaendpoint_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicaendpoint_response.py +0 -121
- anyscale/client/openapi_client/models/aicaendpointevent_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_list_response.py +0 -147
- anyscale/client/openapi_client/models/aicamodel_response.py +0 -121
- anyscale/client/openapi_client/models/aws_credentials.py +0 -181
- anyscale/client/openapi_client/models/create_aica_endpoint.py +0 -210
- anyscale/client/openapi_client/models/create_cloud_with_cloud_resource.py +0 -546
- anyscale/client/openapi_client/models/import_aica_model.py +0 -241
- anyscale/client/openapi_client/models/log_detail.py +0 -187
- anyscale/client/openapi_client/models/log_details.py +0 -151
- anyscale/client/openapi_client/models/logdetails_response.py +0 -121
- anyscale/client/openapi_client/models/named_entity.py +0 -148
- anyscale/client/openapi_client/models/provider_metadata.py +0 -205
- anyscale/client/openapi_client/models/providermetadata_response.py +0 -121
- anyscale/client/openapi_client/models/update_endpoint.py +0 -152
- anyscale/client/openapi_client/models/update_model_deployment.py +0 -152
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/LICENSE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/NOTICE +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/WHEEL +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.2.dist-info → anyscale-0.26.4.dist-info}/top_level.txt +0 -0
@@ -1,433 +0,0 @@
|
|
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 AicaEndpointEvent(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
|
-
'id': 'str',
|
37
|
-
'service_event_id': 'str',
|
38
|
-
'aica_endpoint_id': 'str',
|
39
|
-
'timestamp': 'datetime',
|
40
|
-
'event_type': 'AicaEndpointEventType',
|
41
|
-
'level': 'AicaEndpointEventLevel',
|
42
|
-
'scope': 'AicaEndpointScope',
|
43
|
-
'message': 'str',
|
44
|
-
'cluster_event_id': 'str',
|
45
|
-
'cluster_state_transition_id': 'str',
|
46
|
-
'serve_deployment_event_id': 'str',
|
47
|
-
'model_name': 'str'
|
48
|
-
}
|
49
|
-
|
50
|
-
attribute_map = {
|
51
|
-
'id': 'id',
|
52
|
-
'service_event_id': 'service_event_id',
|
53
|
-
'aica_endpoint_id': 'aica_endpoint_id',
|
54
|
-
'timestamp': 'timestamp',
|
55
|
-
'event_type': 'event_type',
|
56
|
-
'level': 'level',
|
57
|
-
'scope': 'scope',
|
58
|
-
'message': 'message',
|
59
|
-
'cluster_event_id': 'cluster_event_id',
|
60
|
-
'cluster_state_transition_id': 'cluster_state_transition_id',
|
61
|
-
'serve_deployment_event_id': 'serve_deployment_event_id',
|
62
|
-
'model_name': 'model_name'
|
63
|
-
}
|
64
|
-
|
65
|
-
def __init__(self, id=None, service_event_id=None, aica_endpoint_id=None, timestamp=None, event_type=None, level=None, scope=None, message=None, cluster_event_id=None, cluster_state_transition_id=None, serve_deployment_event_id=None, model_name=None, local_vars_configuration=None): # noqa: E501
|
66
|
-
"""AicaEndpointEvent - a model defined in OpenAPI""" # noqa: E501
|
67
|
-
if local_vars_configuration is None:
|
68
|
-
local_vars_configuration = Configuration()
|
69
|
-
self.local_vars_configuration = local_vars_configuration
|
70
|
-
|
71
|
-
self._id = None
|
72
|
-
self._service_event_id = None
|
73
|
-
self._aica_endpoint_id = None
|
74
|
-
self._timestamp = None
|
75
|
-
self._event_type = None
|
76
|
-
self._level = None
|
77
|
-
self._scope = None
|
78
|
-
self._message = None
|
79
|
-
self._cluster_event_id = None
|
80
|
-
self._cluster_state_transition_id = None
|
81
|
-
self._serve_deployment_event_id = None
|
82
|
-
self._model_name = None
|
83
|
-
self.discriminator = None
|
84
|
-
|
85
|
-
self.id = id
|
86
|
-
if service_event_id is not None:
|
87
|
-
self.service_event_id = service_event_id
|
88
|
-
self.aica_endpoint_id = aica_endpoint_id
|
89
|
-
self.timestamp = timestamp
|
90
|
-
if event_type is not None:
|
91
|
-
self.event_type = event_type
|
92
|
-
self.level = level
|
93
|
-
self.scope = scope
|
94
|
-
if message is not None:
|
95
|
-
self.message = message
|
96
|
-
if cluster_event_id is not None:
|
97
|
-
self.cluster_event_id = cluster_event_id
|
98
|
-
if cluster_state_transition_id is not None:
|
99
|
-
self.cluster_state_transition_id = cluster_state_transition_id
|
100
|
-
if serve_deployment_event_id is not None:
|
101
|
-
self.serve_deployment_event_id = serve_deployment_event_id
|
102
|
-
if model_name is not None:
|
103
|
-
self.model_name = model_name
|
104
|
-
|
105
|
-
@property
|
106
|
-
def id(self):
|
107
|
-
"""Gets the id of this AicaEndpointEvent. # noqa: E501
|
108
|
-
|
109
|
-
Id of the AICA endpoint event. # noqa: E501
|
110
|
-
|
111
|
-
:return: The id of this AicaEndpointEvent. # noqa: E501
|
112
|
-
:rtype: str
|
113
|
-
"""
|
114
|
-
return self._id
|
115
|
-
|
116
|
-
@id.setter
|
117
|
-
def id(self, id):
|
118
|
-
"""Sets the id of this AicaEndpointEvent.
|
119
|
-
|
120
|
-
Id of the AICA endpoint event. # noqa: E501
|
121
|
-
|
122
|
-
:param id: The id of this AicaEndpointEvent. # noqa: E501
|
123
|
-
:type: str
|
124
|
-
"""
|
125
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
126
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
127
|
-
|
128
|
-
self._id = id
|
129
|
-
|
130
|
-
@property
|
131
|
-
def service_event_id(self):
|
132
|
-
"""Gets the service_event_id of this AicaEndpointEvent. # noqa: E501
|
133
|
-
|
134
|
-
Service event this AICA endpoint event is based off. # noqa: E501
|
135
|
-
|
136
|
-
:return: The service_event_id of this AicaEndpointEvent. # noqa: E501
|
137
|
-
:rtype: str
|
138
|
-
"""
|
139
|
-
return self._service_event_id
|
140
|
-
|
141
|
-
@service_event_id.setter
|
142
|
-
def service_event_id(self, service_event_id):
|
143
|
-
"""Sets the service_event_id of this AicaEndpointEvent.
|
144
|
-
|
145
|
-
Service event this AICA endpoint event is based off. # noqa: E501
|
146
|
-
|
147
|
-
:param service_event_id: The service_event_id of this AicaEndpointEvent. # noqa: E501
|
148
|
-
:type: str
|
149
|
-
"""
|
150
|
-
|
151
|
-
self._service_event_id = service_event_id
|
152
|
-
|
153
|
-
@property
|
154
|
-
def aica_endpoint_id(self):
|
155
|
-
"""Gets the aica_endpoint_id of this AicaEndpointEvent. # noqa: E501
|
156
|
-
|
157
|
-
Id of AICA endpoint this event belongs to. # noqa: E501
|
158
|
-
|
159
|
-
:return: The aica_endpoint_id of this AicaEndpointEvent. # noqa: E501
|
160
|
-
:rtype: str
|
161
|
-
"""
|
162
|
-
return self._aica_endpoint_id
|
163
|
-
|
164
|
-
@aica_endpoint_id.setter
|
165
|
-
def aica_endpoint_id(self, aica_endpoint_id):
|
166
|
-
"""Sets the aica_endpoint_id of this AicaEndpointEvent.
|
167
|
-
|
168
|
-
Id of AICA endpoint this event belongs to. # noqa: E501
|
169
|
-
|
170
|
-
:param aica_endpoint_id: The aica_endpoint_id of this AicaEndpointEvent. # noqa: E501
|
171
|
-
:type: str
|
172
|
-
"""
|
173
|
-
if self.local_vars_configuration.client_side_validation and aica_endpoint_id is None: # noqa: E501
|
174
|
-
raise ValueError("Invalid value for `aica_endpoint_id`, must not be `None`") # noqa: E501
|
175
|
-
|
176
|
-
self._aica_endpoint_id = aica_endpoint_id
|
177
|
-
|
178
|
-
@property
|
179
|
-
def timestamp(self):
|
180
|
-
"""Gets the timestamp of this AicaEndpointEvent. # noqa: E501
|
181
|
-
|
182
|
-
Inserted at time of service event this AICA endpoint event is based off. # noqa: E501
|
183
|
-
|
184
|
-
:return: The timestamp of this AicaEndpointEvent. # noqa: E501
|
185
|
-
:rtype: datetime
|
186
|
-
"""
|
187
|
-
return self._timestamp
|
188
|
-
|
189
|
-
@timestamp.setter
|
190
|
-
def timestamp(self, timestamp):
|
191
|
-
"""Sets the timestamp of this AicaEndpointEvent.
|
192
|
-
|
193
|
-
Inserted at time of service event this AICA endpoint event is based off. # noqa: E501
|
194
|
-
|
195
|
-
:param timestamp: The timestamp of this AicaEndpointEvent. # noqa: E501
|
196
|
-
:type: datetime
|
197
|
-
"""
|
198
|
-
if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
|
199
|
-
raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
|
200
|
-
|
201
|
-
self._timestamp = timestamp
|
202
|
-
|
203
|
-
@property
|
204
|
-
def event_type(self):
|
205
|
-
"""Gets the event_type of this AicaEndpointEvent. # noqa: E501
|
206
|
-
|
207
|
-
Type of AICA endpoint event. # noqa: E501
|
208
|
-
|
209
|
-
:return: The event_type of this AicaEndpointEvent. # noqa: E501
|
210
|
-
:rtype: AicaEndpointEventType
|
211
|
-
"""
|
212
|
-
return self._event_type
|
213
|
-
|
214
|
-
@event_type.setter
|
215
|
-
def event_type(self, event_type):
|
216
|
-
"""Sets the event_type of this AicaEndpointEvent.
|
217
|
-
|
218
|
-
Type of AICA endpoint event. # noqa: E501
|
219
|
-
|
220
|
-
:param event_type: The event_type of this AicaEndpointEvent. # noqa: E501
|
221
|
-
:type: AicaEndpointEventType
|
222
|
-
"""
|
223
|
-
|
224
|
-
self._event_type = event_type
|
225
|
-
|
226
|
-
@property
|
227
|
-
def level(self):
|
228
|
-
"""Gets the level of this AicaEndpointEvent. # noqa: E501
|
229
|
-
|
230
|
-
Log level of AICA endpoint event. # noqa: E501
|
231
|
-
|
232
|
-
:return: The level of this AicaEndpointEvent. # noqa: E501
|
233
|
-
:rtype: AicaEndpointEventLevel
|
234
|
-
"""
|
235
|
-
return self._level
|
236
|
-
|
237
|
-
@level.setter
|
238
|
-
def level(self, level):
|
239
|
-
"""Sets the level of this AicaEndpointEvent.
|
240
|
-
|
241
|
-
Log level of AICA endpoint event. # noqa: E501
|
242
|
-
|
243
|
-
:param level: The level of this AicaEndpointEvent. # noqa: E501
|
244
|
-
:type: AicaEndpointEventLevel
|
245
|
-
"""
|
246
|
-
if self.local_vars_configuration.client_side_validation and level is None: # noqa: E501
|
247
|
-
raise ValueError("Invalid value for `level`, must not be `None`") # noqa: E501
|
248
|
-
|
249
|
-
self._level = level
|
250
|
-
|
251
|
-
@property
|
252
|
-
def scope(self):
|
253
|
-
"""Gets the scope of this AicaEndpointEvent. # noqa: E501
|
254
|
-
|
255
|
-
Scope of AICA endpoint event. # noqa: E501
|
256
|
-
|
257
|
-
:return: The scope of this AicaEndpointEvent. # noqa: E501
|
258
|
-
:rtype: AicaEndpointScope
|
259
|
-
"""
|
260
|
-
return self._scope
|
261
|
-
|
262
|
-
@scope.setter
|
263
|
-
def scope(self, scope):
|
264
|
-
"""Sets the scope of this AicaEndpointEvent.
|
265
|
-
|
266
|
-
Scope of AICA endpoint event. # noqa: E501
|
267
|
-
|
268
|
-
:param scope: The scope of this AicaEndpointEvent. # noqa: E501
|
269
|
-
:type: AicaEndpointScope
|
270
|
-
"""
|
271
|
-
if self.local_vars_configuration.client_side_validation and scope is None: # noqa: E501
|
272
|
-
raise ValueError("Invalid value for `scope`, must not be `None`") # noqa: E501
|
273
|
-
|
274
|
-
self._scope = scope
|
275
|
-
|
276
|
-
@property
|
277
|
-
def message(self):
|
278
|
-
"""Gets the message of this AicaEndpointEvent. # noqa: E501
|
279
|
-
|
280
|
-
|
281
|
-
:return: The message of this AicaEndpointEvent. # noqa: E501
|
282
|
-
:rtype: str
|
283
|
-
"""
|
284
|
-
return self._message
|
285
|
-
|
286
|
-
@message.setter
|
287
|
-
def message(self, message):
|
288
|
-
"""Sets the message of this AicaEndpointEvent.
|
289
|
-
|
290
|
-
|
291
|
-
:param message: The message of this AicaEndpointEvent. # noqa: E501
|
292
|
-
:type: str
|
293
|
-
"""
|
294
|
-
|
295
|
-
self._message = message
|
296
|
-
|
297
|
-
@property
|
298
|
-
def cluster_event_id(self):
|
299
|
-
"""Gets the cluster_event_id of this AicaEndpointEvent. # noqa: E501
|
300
|
-
|
301
|
-
Cluster event id this AICA endpoint event is based off. # noqa: E501
|
302
|
-
|
303
|
-
:return: The cluster_event_id of this AicaEndpointEvent. # noqa: E501
|
304
|
-
:rtype: str
|
305
|
-
"""
|
306
|
-
return self._cluster_event_id
|
307
|
-
|
308
|
-
@cluster_event_id.setter
|
309
|
-
def cluster_event_id(self, cluster_event_id):
|
310
|
-
"""Sets the cluster_event_id of this AicaEndpointEvent.
|
311
|
-
|
312
|
-
Cluster event id this AICA endpoint event is based off. # noqa: E501
|
313
|
-
|
314
|
-
:param cluster_event_id: The cluster_event_id of this AicaEndpointEvent. # noqa: E501
|
315
|
-
:type: str
|
316
|
-
"""
|
317
|
-
|
318
|
-
self._cluster_event_id = cluster_event_id
|
319
|
-
|
320
|
-
@property
|
321
|
-
def cluster_state_transition_id(self):
|
322
|
-
"""Gets the cluster_state_transition_id of this AicaEndpointEvent. # noqa: E501
|
323
|
-
|
324
|
-
Cluster state transition id this AICA endpoint event is based off. # noqa: E501
|
325
|
-
|
326
|
-
:return: The cluster_state_transition_id of this AicaEndpointEvent. # noqa: E501
|
327
|
-
:rtype: str
|
328
|
-
"""
|
329
|
-
return self._cluster_state_transition_id
|
330
|
-
|
331
|
-
@cluster_state_transition_id.setter
|
332
|
-
def cluster_state_transition_id(self, cluster_state_transition_id):
|
333
|
-
"""Sets the cluster_state_transition_id of this AicaEndpointEvent.
|
334
|
-
|
335
|
-
Cluster state transition id this AICA endpoint event is based off. # noqa: E501
|
336
|
-
|
337
|
-
:param cluster_state_transition_id: The cluster_state_transition_id of this AicaEndpointEvent. # noqa: E501
|
338
|
-
:type: str
|
339
|
-
"""
|
340
|
-
|
341
|
-
self._cluster_state_transition_id = cluster_state_transition_id
|
342
|
-
|
343
|
-
@property
|
344
|
-
def serve_deployment_event_id(self):
|
345
|
-
"""Gets the serve_deployment_event_id of this AicaEndpointEvent. # noqa: E501
|
346
|
-
|
347
|
-
Serve deployment event id this AICA endpoint event is based off. # noqa: E501
|
348
|
-
|
349
|
-
:return: The serve_deployment_event_id of this AicaEndpointEvent. # noqa: E501
|
350
|
-
:rtype: str
|
351
|
-
"""
|
352
|
-
return self._serve_deployment_event_id
|
353
|
-
|
354
|
-
@serve_deployment_event_id.setter
|
355
|
-
def serve_deployment_event_id(self, serve_deployment_event_id):
|
356
|
-
"""Sets the serve_deployment_event_id of this AicaEndpointEvent.
|
357
|
-
|
358
|
-
Serve deployment event id this AICA endpoint event is based off. # noqa: E501
|
359
|
-
|
360
|
-
:param serve_deployment_event_id: The serve_deployment_event_id of this AicaEndpointEvent. # noqa: E501
|
361
|
-
:type: str
|
362
|
-
"""
|
363
|
-
|
364
|
-
self._serve_deployment_event_id = serve_deployment_event_id
|
365
|
-
|
366
|
-
@property
|
367
|
-
def model_name(self):
|
368
|
-
"""Gets the model_name of this AicaEndpointEvent. # noqa: E501
|
369
|
-
|
370
|
-
Model name if this AICA endpoint event refers to a model event. # noqa: E501
|
371
|
-
|
372
|
-
:return: The model_name of this AicaEndpointEvent. # noqa: E501
|
373
|
-
:rtype: str
|
374
|
-
"""
|
375
|
-
return self._model_name
|
376
|
-
|
377
|
-
@model_name.setter
|
378
|
-
def model_name(self, model_name):
|
379
|
-
"""Sets the model_name of this AicaEndpointEvent.
|
380
|
-
|
381
|
-
Model name if this AICA endpoint event refers to a model event. # noqa: E501
|
382
|
-
|
383
|
-
:param model_name: The model_name of this AicaEndpointEvent. # noqa: E501
|
384
|
-
:type: str
|
385
|
-
"""
|
386
|
-
|
387
|
-
self._model_name = model_name
|
388
|
-
|
389
|
-
def to_dict(self):
|
390
|
-
"""Returns the model properties as a dict"""
|
391
|
-
result = {}
|
392
|
-
|
393
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
394
|
-
value = getattr(self, attr)
|
395
|
-
if isinstance(value, list):
|
396
|
-
result[attr] = list(map(
|
397
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
398
|
-
value
|
399
|
-
))
|
400
|
-
elif hasattr(value, "to_dict"):
|
401
|
-
result[attr] = value.to_dict()
|
402
|
-
elif isinstance(value, dict):
|
403
|
-
result[attr] = dict(map(
|
404
|
-
lambda item: (item[0], item[1].to_dict())
|
405
|
-
if hasattr(item[1], "to_dict") else item,
|
406
|
-
value.items()
|
407
|
-
))
|
408
|
-
else:
|
409
|
-
result[attr] = value
|
410
|
-
|
411
|
-
return result
|
412
|
-
|
413
|
-
def to_str(self):
|
414
|
-
"""Returns the string representation of the model"""
|
415
|
-
return pprint.pformat(self.to_dict())
|
416
|
-
|
417
|
-
def __repr__(self):
|
418
|
-
"""For `print` and `pprint`"""
|
419
|
-
return self.to_str()
|
420
|
-
|
421
|
-
def __eq__(self, other):
|
422
|
-
"""Returns true if both objects are equal"""
|
423
|
-
if not isinstance(other, AicaEndpointEvent):
|
424
|
-
return False
|
425
|
-
|
426
|
-
return self.to_dict() == other.to_dict()
|
427
|
-
|
428
|
-
def __ne__(self, other):
|
429
|
-
"""Returns true if both objects are not equal"""
|
430
|
-
if not isinstance(other, AicaEndpointEvent):
|
431
|
-
return True
|
432
|
-
|
433
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,103 +0,0 @@
|
|
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 AicaEndpointEventLevel(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
|
-
allowed enum values
|
30
|
-
"""
|
31
|
-
ERROR = "ERROR"
|
32
|
-
INFO = "INFO"
|
33
|
-
WARNING = "WARNING"
|
34
|
-
TRACE = "TRACE"
|
35
|
-
DEBUG = "DEBUG"
|
36
|
-
|
37
|
-
allowable_values = [ERROR, INFO, WARNING, TRACE, DEBUG] # noqa: E501
|
38
|
-
|
39
|
-
"""
|
40
|
-
Attributes:
|
41
|
-
openapi_types (dict): The key is attribute name
|
42
|
-
and the value is attribute type.
|
43
|
-
attribute_map (dict): The key is attribute name
|
44
|
-
and the value is json key in definition.
|
45
|
-
"""
|
46
|
-
openapi_types = {
|
47
|
-
}
|
48
|
-
|
49
|
-
attribute_map = {
|
50
|
-
}
|
51
|
-
|
52
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
53
|
-
"""AicaEndpointEventLevel - a model defined in OpenAPI""" # noqa: E501
|
54
|
-
if local_vars_configuration is None:
|
55
|
-
local_vars_configuration = Configuration()
|
56
|
-
self.local_vars_configuration = local_vars_configuration
|
57
|
-
self.discriminator = None
|
58
|
-
|
59
|
-
def to_dict(self):
|
60
|
-
"""Returns the model properties as a dict"""
|
61
|
-
result = {}
|
62
|
-
|
63
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
64
|
-
value = getattr(self, attr)
|
65
|
-
if isinstance(value, list):
|
66
|
-
result[attr] = list(map(
|
67
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
68
|
-
value
|
69
|
-
))
|
70
|
-
elif hasattr(value, "to_dict"):
|
71
|
-
result[attr] = value.to_dict()
|
72
|
-
elif isinstance(value, dict):
|
73
|
-
result[attr] = dict(map(
|
74
|
-
lambda item: (item[0], item[1].to_dict())
|
75
|
-
if hasattr(item[1], "to_dict") else item,
|
76
|
-
value.items()
|
77
|
-
))
|
78
|
-
else:
|
79
|
-
result[attr] = value
|
80
|
-
|
81
|
-
return result
|
82
|
-
|
83
|
-
def to_str(self):
|
84
|
-
"""Returns the string representation of the model"""
|
85
|
-
return pprint.pformat(self.to_dict())
|
86
|
-
|
87
|
-
def __repr__(self):
|
88
|
-
"""For `print` and `pprint`"""
|
89
|
-
return self.to_str()
|
90
|
-
|
91
|
-
def __eq__(self, other):
|
92
|
-
"""Returns true if both objects are equal"""
|
93
|
-
if not isinstance(other, AicaEndpointEventLevel):
|
94
|
-
return False
|
95
|
-
|
96
|
-
return self.to_dict() == other.to_dict()
|
97
|
-
|
98
|
-
def __ne__(self, other):
|
99
|
-
"""Returns true if both objects are not equal"""
|
100
|
-
if not isinstance(other, AicaEndpointEventLevel):
|
101
|
-
return True
|
102
|
-
|
103
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,120 +0,0 @@
|
|
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 AicaEndpointEventType(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
|
-
allowed enum values
|
30
|
-
"""
|
31
|
-
CREATED = "CREATED"
|
32
|
-
STARTING = "STARTING"
|
33
|
-
RUNNING = "RUNNING"
|
34
|
-
UPDATE_INITIATED = "UPDATE_INITIATED"
|
35
|
-
TERMINATE_INITIATED = "TERMINATE_INITIATED"
|
36
|
-
TERMINATING = "TERMINATING"
|
37
|
-
TERMINATED = "TERMINATED"
|
38
|
-
UNHEALTHY = "UNHEALTHY"
|
39
|
-
SYSTEM_FAILURE = "SYSTEM_FAILURE"
|
40
|
-
USER_ERROR_FAILURE = "USER_ERROR_FAILURE"
|
41
|
-
UPDATING = "UPDATING"
|
42
|
-
CLUSTER_ERROR = "CLUSTER_ERROR"
|
43
|
-
DEPLOYMENT_STARTING = "DEPLOYMENT_STARTING"
|
44
|
-
DEPLOYMENT_COMPLETED = "DEPLOYMENT_COMPLETED"
|
45
|
-
DEPLOYMENT_FAILED = "DEPLOYMENT_FAILED"
|
46
|
-
DEPLOYMENT_UPDATING = "DEPLOYMENT_UPDATING"
|
47
|
-
DEPLOYMENT_UPDATE_COMPLETED = "DEPLOYMENT_UPDATE_COMPLETED"
|
48
|
-
DEPLOYMENT_UPDATE_FAILED = "DEPLOYMENT_UPDATE_FAILED"
|
49
|
-
DEPLOYMENT_UPSCALING_STARTED = "DEPLOYMENT_UPSCALING_STARTED"
|
50
|
-
DEPLOYMENT_UPSCALING_COMPLETED = "DEPLOYMENT_UPSCALING_COMPLETED"
|
51
|
-
DEPLOYMENT_DOWNSCALING_STARTED = "DEPLOYMENT_DOWNSCALING_STARTED"
|
52
|
-
DEPLOYMENT_DOWNSCALING_COMPLETED = "DEPLOYMENT_DOWNSCALING_COMPLETED"
|
53
|
-
|
54
|
-
allowable_values = [CREATED, STARTING, RUNNING, UPDATE_INITIATED, TERMINATE_INITIATED, TERMINATING, TERMINATED, UNHEALTHY, SYSTEM_FAILURE, USER_ERROR_FAILURE, UPDATING, CLUSTER_ERROR, DEPLOYMENT_STARTING, DEPLOYMENT_COMPLETED, DEPLOYMENT_FAILED, DEPLOYMENT_UPDATING, DEPLOYMENT_UPDATE_COMPLETED, DEPLOYMENT_UPDATE_FAILED, DEPLOYMENT_UPSCALING_STARTED, DEPLOYMENT_UPSCALING_COMPLETED, DEPLOYMENT_DOWNSCALING_STARTED, DEPLOYMENT_DOWNSCALING_COMPLETED] # noqa: E501
|
55
|
-
|
56
|
-
"""
|
57
|
-
Attributes:
|
58
|
-
openapi_types (dict): The key is attribute name
|
59
|
-
and the value is attribute type.
|
60
|
-
attribute_map (dict): The key is attribute name
|
61
|
-
and the value is json key in definition.
|
62
|
-
"""
|
63
|
-
openapi_types = {
|
64
|
-
}
|
65
|
-
|
66
|
-
attribute_map = {
|
67
|
-
}
|
68
|
-
|
69
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
70
|
-
"""AicaEndpointEventType - a model defined in OpenAPI""" # noqa: E501
|
71
|
-
if local_vars_configuration is None:
|
72
|
-
local_vars_configuration = Configuration()
|
73
|
-
self.local_vars_configuration = local_vars_configuration
|
74
|
-
self.discriminator = None
|
75
|
-
|
76
|
-
def to_dict(self):
|
77
|
-
"""Returns the model properties as a dict"""
|
78
|
-
result = {}
|
79
|
-
|
80
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
81
|
-
value = getattr(self, attr)
|
82
|
-
if isinstance(value, list):
|
83
|
-
result[attr] = list(map(
|
84
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
85
|
-
value
|
86
|
-
))
|
87
|
-
elif hasattr(value, "to_dict"):
|
88
|
-
result[attr] = value.to_dict()
|
89
|
-
elif isinstance(value, dict):
|
90
|
-
result[attr] = dict(map(
|
91
|
-
lambda item: (item[0], item[1].to_dict())
|
92
|
-
if hasattr(item[1], "to_dict") else item,
|
93
|
-
value.items()
|
94
|
-
))
|
95
|
-
else:
|
96
|
-
result[attr] = value
|
97
|
-
|
98
|
-
return result
|
99
|
-
|
100
|
-
def to_str(self):
|
101
|
-
"""Returns the string representation of the model"""
|
102
|
-
return pprint.pformat(self.to_dict())
|
103
|
-
|
104
|
-
def __repr__(self):
|
105
|
-
"""For `print` and `pprint`"""
|
106
|
-
return self.to_str()
|
107
|
-
|
108
|
-
def __eq__(self, other):
|
109
|
-
"""Returns true if both objects are equal"""
|
110
|
-
if not isinstance(other, AicaEndpointEventType):
|
111
|
-
return False
|
112
|
-
|
113
|
-
return self.to_dict() == other.to_dict()
|
114
|
-
|
115
|
-
def __ne__(self, other):
|
116
|
-
"""Returns true if both objects are not equal"""
|
117
|
-
if not isinstance(other, AicaEndpointEventType):
|
118
|
-
return True
|
119
|
-
|
120
|
-
return self.to_dict() != other.to_dict()
|