anyscale 0.26.69__py3-none-any.whl → 0.26.70__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 (67) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +67 -1
  2. anyscale/_private/anyscale_client/common.py +20 -1
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +77 -10
  4. anyscale/client/README.md +14 -4
  5. anyscale/client/openapi_client/__init__.py +11 -4
  6. anyscale/client/openapi_client/api/default_api.py +462 -23
  7. anyscale/client/openapi_client/models/__init__.py +11 -4
  8. anyscale/client/openapi_client/models/api_key_info.py +29 -3
  9. anyscale/client/openapi_client/models/apply_autoscaling_config_update_model.py +350 -0
  10. anyscale/client/openapi_client/models/apply_production_service_multi_version_v2_model.py +207 -0
  11. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
  12. anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
  13. anyscale/client/openapi_client/models/cloud_data_bucket_file_type.py +2 -1
  14. anyscale/client/openapi_client/models/{oauthconnectionresponse_response.py → clouddeployment_response.py} +11 -11
  15. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  16. anyscale/client/openapi_client/models/create_workspace_from_template.py +29 -1
  17. anyscale/client/openapi_client/models/create_workspace_template_version.py +31 -3
  18. anyscale/client/openapi_client/models/decorated_list_service_api_model.py +58 -1
  19. anyscale/client/openapi_client/models/decorated_production_service_v2_api_model.py +60 -3
  20. anyscale/client/openapi_client/models/decorated_service_event_api_model.py +3 -3
  21. anyscale/client/openapi_client/models/describe_machine_pool_machines_filters.py +33 -5
  22. anyscale/client/openapi_client/models/describe_machine_pool_workloads_filters.py +33 -5
  23. anyscale/client/openapi_client/models/{service_event_level.py → entity_type.py} +9 -9
  24. anyscale/client/openapi_client/models/event_level.py +2 -1
  25. anyscale/client/openapi_client/models/job_event_fields.py +206 -0
  26. anyscale/client/openapi_client/models/machine_type_partition_filter.py +152 -0
  27. anyscale/client/openapi_client/models/partition_info.py +30 -1
  28. anyscale/client/openapi_client/models/production_job_event.py +3 -3
  29. anyscale/client/openapi_client/models/rollout_strategy.py +2 -1
  30. anyscale/client/openapi_client/models/service_event_fields.py +318 -0
  31. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
  32. anyscale/client/openapi_client/models/task_summary_config.py +29 -3
  33. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  34. anyscale/client/openapi_client/models/unified_event.py +377 -0
  35. anyscale/client/openapi_client/models/{ha_job_event_level.py → unified_origin_filter.py} +21 -9
  36. anyscale/client/openapi_client/models/unifiedevent_list_response.py +147 -0
  37. anyscale/client/openapi_client/models/workspace_event_fields.py +122 -0
  38. anyscale/client/openapi_client/models/workspace_template_version.py +30 -1
  39. anyscale/client/openapi_client/models/workspace_template_version_data_object.py +30 -1
  40. anyscale/cloud/models.py +2 -2
  41. anyscale/commands/cloud_commands.py +133 -2
  42. anyscale/commands/job_commands.py +1 -1
  43. anyscale/commands/service_commands.py +130 -67
  44. anyscale/commands/setup_k8s.py +546 -31
  45. anyscale/controllers/cloud_controller.py +15 -2
  46. anyscale/controllers/kubernetes_verifier.py +80 -66
  47. anyscale/job/_private/job_sdk.py +47 -1
  48. anyscale/job/commands.py +3 -0
  49. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
  50. anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
  51. anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
  52. anyscale/sdk/anyscale_client/models/rollout_strategy.py +2 -1
  53. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
  54. anyscale/service/__init__.py +11 -3
  55. anyscale/service/_private/service_sdk.py +361 -35
  56. anyscale/service/commands.py +15 -3
  57. anyscale/service/models.py +12 -0
  58. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  59. anyscale/version.py +1 -1
  60. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/METADATA +1 -1
  61. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/RECORD +66 -59
  62. anyscale/client/openapi_client/models/o_auth_connection_response.py +0 -229
  63. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/WHEEL +0 -0
  64. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/entry_points.txt +0 -0
  65. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/licenses/LICENSE +0 -0
  66. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/licenses/NOTICE +0 -0
  67. {anyscale-0.26.69.dist-info → anyscale-0.26.70.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,377 @@
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 UnifiedEvent(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
+ 'created_at': 'datetime',
38
+ 'message': 'str',
39
+ 'origin': 'str',
40
+ 'cluster_id': 'str',
41
+ 'metadata': 'object',
42
+ 'level': 'EventLevel',
43
+ 'service': 'ServiceEventFields',
44
+ 'workspace': 'WorkspaceEventFields',
45
+ 'job': 'JobEventFields'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'id': 'id',
50
+ 'created_at': 'created_at',
51
+ 'message': 'message',
52
+ 'origin': 'origin',
53
+ 'cluster_id': 'cluster_id',
54
+ 'metadata': 'metadata',
55
+ 'level': 'level',
56
+ 'service': 'service',
57
+ 'workspace': 'workspace',
58
+ 'job': 'job'
59
+ }
60
+
61
+ def __init__(self, id=None, created_at=None, message=None, origin=None, cluster_id=None, metadata=None, level=None, service=None, workspace=None, job=None, local_vars_configuration=None): # noqa: E501
62
+ """UnifiedEvent - a model defined in OpenAPI""" # noqa: E501
63
+ if local_vars_configuration is None:
64
+ local_vars_configuration = Configuration()
65
+ self.local_vars_configuration = local_vars_configuration
66
+
67
+ self._id = None
68
+ self._created_at = None
69
+ self._message = None
70
+ self._origin = None
71
+ self._cluster_id = None
72
+ self._metadata = None
73
+ self._level = None
74
+ self._service = None
75
+ self._workspace = None
76
+ self._job = None
77
+ self.discriminator = None
78
+
79
+ self.id = id
80
+ self.created_at = created_at
81
+ if message is not None:
82
+ self.message = message
83
+ self.origin = origin
84
+ if cluster_id is not None:
85
+ self.cluster_id = cluster_id
86
+ if metadata is not None:
87
+ self.metadata = metadata
88
+ if level is not None:
89
+ self.level = level
90
+ if service is not None:
91
+ self.service = service
92
+ if workspace is not None:
93
+ self.workspace = workspace
94
+ if job is not None:
95
+ self.job = job
96
+
97
+ @property
98
+ def id(self):
99
+ """Gets the id of this UnifiedEvent. # noqa: E501
100
+
101
+ Unique identifier for the event # noqa: E501
102
+
103
+ :return: The id of this UnifiedEvent. # noqa: E501
104
+ :rtype: str
105
+ """
106
+ return self._id
107
+
108
+ @id.setter
109
+ def id(self, id):
110
+ """Sets the id of this UnifiedEvent.
111
+
112
+ Unique identifier for the event # noqa: E501
113
+
114
+ :param id: The id of this UnifiedEvent. # noqa: E501
115
+ :type: str
116
+ """
117
+ if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
118
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
119
+
120
+ self._id = id
121
+
122
+ @property
123
+ def created_at(self):
124
+ """Gets the created_at of this UnifiedEvent. # noqa: E501
125
+
126
+ The time the event was created # noqa: E501
127
+
128
+ :return: The created_at of this UnifiedEvent. # noqa: E501
129
+ :rtype: datetime
130
+ """
131
+ return self._created_at
132
+
133
+ @created_at.setter
134
+ def created_at(self, created_at):
135
+ """Sets the created_at of this UnifiedEvent.
136
+
137
+ The time the event was created # noqa: E501
138
+
139
+ :param created_at: The created_at of this UnifiedEvent. # noqa: E501
140
+ :type: datetime
141
+ """
142
+ if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
143
+ raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
144
+
145
+ self._created_at = created_at
146
+
147
+ @property
148
+ def message(self):
149
+ """Gets the message of this UnifiedEvent. # noqa: E501
150
+
151
+ The event message # noqa: E501
152
+
153
+ :return: The message of this UnifiedEvent. # noqa: E501
154
+ :rtype: str
155
+ """
156
+ return self._message
157
+
158
+ @message.setter
159
+ def message(self, message):
160
+ """Sets the message of this UnifiedEvent.
161
+
162
+ The event message # noqa: E501
163
+
164
+ :param message: The message of this UnifiedEvent. # noqa: E501
165
+ :type: str
166
+ """
167
+
168
+ self._message = message
169
+
170
+ @property
171
+ def origin(self):
172
+ """Gets the origin of this UnifiedEvent. # noqa: E501
173
+
174
+ The origin/source of the event # noqa: E501
175
+
176
+ :return: The origin of this UnifiedEvent. # noqa: E501
177
+ :rtype: str
178
+ """
179
+ return self._origin
180
+
181
+ @origin.setter
182
+ def origin(self, origin):
183
+ """Sets the origin of this UnifiedEvent.
184
+
185
+ The origin/source of the event # noqa: E501
186
+
187
+ :param origin: The origin of this UnifiedEvent. # noqa: E501
188
+ :type: str
189
+ """
190
+ if self.local_vars_configuration.client_side_validation and origin is None: # noqa: E501
191
+ raise ValueError("Invalid value for `origin`, must not be `None`") # noqa: E501
192
+
193
+ self._origin = origin
194
+
195
+ @property
196
+ def cluster_id(self):
197
+ """Gets the cluster_id of this UnifiedEvent. # noqa: E501
198
+
199
+ Associated cluster ID # noqa: E501
200
+
201
+ :return: The cluster_id of this UnifiedEvent. # noqa: E501
202
+ :rtype: str
203
+ """
204
+ return self._cluster_id
205
+
206
+ @cluster_id.setter
207
+ def cluster_id(self, cluster_id):
208
+ """Sets the cluster_id of this UnifiedEvent.
209
+
210
+ Associated cluster ID # noqa: E501
211
+
212
+ :param cluster_id: The cluster_id of this UnifiedEvent. # noqa: E501
213
+ :type: str
214
+ """
215
+
216
+ self._cluster_id = cluster_id
217
+
218
+ @property
219
+ def metadata(self):
220
+ """Gets the metadata of this UnifiedEvent. # noqa: E501
221
+
222
+ The metadata of the event # noqa: E501
223
+
224
+ :return: The metadata of this UnifiedEvent. # noqa: E501
225
+ :rtype: object
226
+ """
227
+ return self._metadata
228
+
229
+ @metadata.setter
230
+ def metadata(self, metadata):
231
+ """Sets the metadata of this UnifiedEvent.
232
+
233
+ The metadata of the event # noqa: E501
234
+
235
+ :param metadata: The metadata of this UnifiedEvent. # noqa: E501
236
+ :type: object
237
+ """
238
+
239
+ self._metadata = metadata
240
+
241
+ @property
242
+ def level(self):
243
+ """Gets the level of this UnifiedEvent. # noqa: E501
244
+
245
+ The level/severity of the event # noqa: E501
246
+
247
+ :return: The level of this UnifiedEvent. # noqa: E501
248
+ :rtype: EventLevel
249
+ """
250
+ return self._level
251
+
252
+ @level.setter
253
+ def level(self, level):
254
+ """Sets the level of this UnifiedEvent.
255
+
256
+ The level/severity of the event # noqa: E501
257
+
258
+ :param level: The level of this UnifiedEvent. # noqa: E501
259
+ :type: EventLevel
260
+ """
261
+
262
+ self._level = level
263
+
264
+ @property
265
+ def service(self):
266
+ """Gets the service of this UnifiedEvent. # noqa: E501
267
+
268
+ Service-specific event fields # noqa: E501
269
+
270
+ :return: The service of this UnifiedEvent. # noqa: E501
271
+ :rtype: ServiceEventFields
272
+ """
273
+ return self._service
274
+
275
+ @service.setter
276
+ def service(self, service):
277
+ """Sets the service of this UnifiedEvent.
278
+
279
+ Service-specific event fields # noqa: E501
280
+
281
+ :param service: The service of this UnifiedEvent. # noqa: E501
282
+ :type: ServiceEventFields
283
+ """
284
+
285
+ self._service = service
286
+
287
+ @property
288
+ def workspace(self):
289
+ """Gets the workspace of this UnifiedEvent. # noqa: E501
290
+
291
+ Workspace-specific event fields # noqa: E501
292
+
293
+ :return: The workspace of this UnifiedEvent. # noqa: E501
294
+ :rtype: WorkspaceEventFields
295
+ """
296
+ return self._workspace
297
+
298
+ @workspace.setter
299
+ def workspace(self, workspace):
300
+ """Sets the workspace of this UnifiedEvent.
301
+
302
+ Workspace-specific event fields # noqa: E501
303
+
304
+ :param workspace: The workspace of this UnifiedEvent. # noqa: E501
305
+ :type: WorkspaceEventFields
306
+ """
307
+
308
+ self._workspace = workspace
309
+
310
+ @property
311
+ def job(self):
312
+ """Gets the job of this UnifiedEvent. # noqa: E501
313
+
314
+ Job-specific event fields # noqa: E501
315
+
316
+ :return: The job of this UnifiedEvent. # noqa: E501
317
+ :rtype: JobEventFields
318
+ """
319
+ return self._job
320
+
321
+ @job.setter
322
+ def job(self, job):
323
+ """Sets the job of this UnifiedEvent.
324
+
325
+ Job-specific event fields # noqa: E501
326
+
327
+ :param job: The job of this UnifiedEvent. # noqa: E501
328
+ :type: JobEventFields
329
+ """
330
+
331
+ self._job = job
332
+
333
+ def to_dict(self):
334
+ """Returns the model properties as a dict"""
335
+ result = {}
336
+
337
+ for attr, _ in six.iteritems(self.openapi_types):
338
+ value = getattr(self, attr)
339
+ if isinstance(value, list):
340
+ result[attr] = list(map(
341
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
342
+ value
343
+ ))
344
+ elif hasattr(value, "to_dict"):
345
+ result[attr] = value.to_dict()
346
+ elif isinstance(value, dict):
347
+ result[attr] = dict(map(
348
+ lambda item: (item[0], item[1].to_dict())
349
+ if hasattr(item[1], "to_dict") else item,
350
+ value.items()
351
+ ))
352
+ else:
353
+ result[attr] = value
354
+
355
+ return result
356
+
357
+ def to_str(self):
358
+ """Returns the string representation of the model"""
359
+ return pprint.pformat(self.to_dict())
360
+
361
+ def __repr__(self):
362
+ """For `print` and `pprint`"""
363
+ return self.to_str()
364
+
365
+ def __eq__(self, other):
366
+ """Returns true if both objects are equal"""
367
+ if not isinstance(other, UnifiedEvent):
368
+ return False
369
+
370
+ return self.to_dict() == other.to_dict()
371
+
372
+ def __ne__(self, other):
373
+ """Returns true if both objects are not equal"""
374
+ if not isinstance(other, UnifiedEvent):
375
+ return True
376
+
377
+ return self.to_dict() != other.to_dict()
@@ -18,7 +18,7 @@ import six
18
18
  from openapi_client.configuration import Configuration
19
19
 
20
20
 
21
- class HaJobEventLevel(object):
21
+ class UnifiedOriginFilter(object):
22
22
  """NOTE: This class is auto generated by OpenAPI Generator.
23
23
  Ref: https://openapi-generator.tech
24
24
 
@@ -28,11 +28,23 @@ class HaJobEventLevel(object):
28
28
  """
29
29
  allowed enum values
30
30
  """
31
- INFO = "INFO"
32
- WARNING = "WARNING"
33
- ERROR = "ERROR"
34
-
35
- allowable_values = [INFO, WARNING, ERROR] # noqa: E501
31
+ JOB = "JOB"
32
+ WORKSPACE = "WORKSPACE"
33
+ SERVICE = "SERVICE"
34
+ SERVICE_VERSION = "SERVICE_VERSION"
35
+ ALB = "ALB"
36
+ SERVE_DEPLOYMENT = "SERVE_DEPLOYMENT"
37
+ AUTOSCALER = "AUTOSCALER"
38
+ CLUSTER_LIFECYCLE = "CLUSTER_LIFECYCLE"
39
+ IDLE_TERMINATION = "IDLE_TERMINATION"
40
+ JOBS = "JOBS"
41
+ WORKSPACE_SNAPSHOT = "WORKSPACE_SNAPSHOT"
42
+ OS = "OS"
43
+ CLUSTER = "CLUSTER"
44
+ UNKNOWN = "UNKNOWN"
45
+ EMPTY = ""
46
+
47
+ allowable_values = [JOB, WORKSPACE, SERVICE, SERVICE_VERSION, ALB, SERVE_DEPLOYMENT, AUTOSCALER, CLUSTER_LIFECYCLE, IDLE_TERMINATION, JOBS, WORKSPACE_SNAPSHOT, OS, CLUSTER, UNKNOWN, EMPTY] # noqa: E501
36
48
 
37
49
  """
38
50
  Attributes:
@@ -48,7 +60,7 @@ class HaJobEventLevel(object):
48
60
  }
49
61
 
50
62
  def __init__(self, local_vars_configuration=None): # noqa: E501
51
- """HaJobEventLevel - a model defined in OpenAPI""" # noqa: E501
63
+ """UnifiedOriginFilter - a model defined in OpenAPI""" # noqa: E501
52
64
  if local_vars_configuration is None:
53
65
  local_vars_configuration = Configuration()
54
66
  self.local_vars_configuration = local_vars_configuration
@@ -88,14 +100,14 @@ class HaJobEventLevel(object):
88
100
 
89
101
  def __eq__(self, other):
90
102
  """Returns true if both objects are equal"""
91
- if not isinstance(other, HaJobEventLevel):
103
+ if not isinstance(other, UnifiedOriginFilter):
92
104
  return False
93
105
 
94
106
  return self.to_dict() == other.to_dict()
95
107
 
96
108
  def __ne__(self, other):
97
109
  """Returns true if both objects are not equal"""
98
- if not isinstance(other, HaJobEventLevel):
110
+ if not isinstance(other, UnifiedOriginFilter):
99
111
  return True
100
112
 
101
113
  return self.to_dict() != other.to_dict()
@@ -0,0 +1,147 @@
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 UnifiedeventListResponse(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
+ 'results': 'list[UnifiedEvent]',
37
+ 'metadata': 'ListResponseMetadata'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'results': 'results',
42
+ 'metadata': 'metadata'
43
+ }
44
+
45
+ def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
+ """UnifiedeventListResponse - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._results = None
52
+ self._metadata = None
53
+ self.discriminator = None
54
+
55
+ self.results = results
56
+ if metadata is not None:
57
+ self.metadata = metadata
58
+
59
+ @property
60
+ def results(self):
61
+ """Gets the results of this UnifiedeventListResponse. # noqa: E501
62
+
63
+
64
+ :return: The results of this UnifiedeventListResponse. # noqa: E501
65
+ :rtype: list[UnifiedEvent]
66
+ """
67
+ return self._results
68
+
69
+ @results.setter
70
+ def results(self, results):
71
+ """Sets the results of this UnifiedeventListResponse.
72
+
73
+
74
+ :param results: The results of this UnifiedeventListResponse. # noqa: E501
75
+ :type: list[UnifiedEvent]
76
+ """
77
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
+
80
+ self._results = results
81
+
82
+ @property
83
+ def metadata(self):
84
+ """Gets the metadata of this UnifiedeventListResponse. # noqa: E501
85
+
86
+
87
+ :return: The metadata of this UnifiedeventListResponse. # noqa: E501
88
+ :rtype: ListResponseMetadata
89
+ """
90
+ return self._metadata
91
+
92
+ @metadata.setter
93
+ def metadata(self, metadata):
94
+ """Sets the metadata of this UnifiedeventListResponse.
95
+
96
+
97
+ :param metadata: The metadata of this UnifiedeventListResponse. # noqa: E501
98
+ :type: ListResponseMetadata
99
+ """
100
+
101
+ self._metadata = metadata
102
+
103
+ def to_dict(self):
104
+ """Returns the model properties as a dict"""
105
+ result = {}
106
+
107
+ for attr, _ in six.iteritems(self.openapi_types):
108
+ value = getattr(self, attr)
109
+ if isinstance(value, list):
110
+ result[attr] = list(map(
111
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
+ value
113
+ ))
114
+ elif hasattr(value, "to_dict"):
115
+ result[attr] = value.to_dict()
116
+ elif isinstance(value, dict):
117
+ result[attr] = dict(map(
118
+ lambda item: (item[0], item[1].to_dict())
119
+ if hasattr(item[1], "to_dict") else item,
120
+ value.items()
121
+ ))
122
+ else:
123
+ result[attr] = value
124
+
125
+ return result
126
+
127
+ def to_str(self):
128
+ """Returns the string representation of the model"""
129
+ return pprint.pformat(self.to_dict())
130
+
131
+ def __repr__(self):
132
+ """For `print` and `pprint`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, UnifiedeventListResponse):
138
+ return False
139
+
140
+ return self.to_dict() == other.to_dict()
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ if not isinstance(other, UnifiedeventListResponse):
145
+ return True
146
+
147
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,122 @@
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 WorkspaceEventFields(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
+ 'workspace_id': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'workspace_id': 'workspace_id'
41
+ }
42
+
43
+ def __init__(self, workspace_id=None, local_vars_configuration=None): # noqa: E501
44
+ """WorkspaceEventFields - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._workspace_id = None
50
+ self.discriminator = None
51
+
52
+ if workspace_id is not None:
53
+ self.workspace_id = workspace_id
54
+
55
+ @property
56
+ def workspace_id(self):
57
+ """Gets the workspace_id of this WorkspaceEventFields. # noqa: E501
58
+
59
+ The workspace the event originated from # noqa: E501
60
+
61
+ :return: The workspace_id of this WorkspaceEventFields. # noqa: E501
62
+ :rtype: str
63
+ """
64
+ return self._workspace_id
65
+
66
+ @workspace_id.setter
67
+ def workspace_id(self, workspace_id):
68
+ """Sets the workspace_id of this WorkspaceEventFields.
69
+
70
+ The workspace the event originated from # noqa: E501
71
+
72
+ :param workspace_id: The workspace_id of this WorkspaceEventFields. # noqa: E501
73
+ :type: str
74
+ """
75
+
76
+ self._workspace_id = workspace_id
77
+
78
+ def to_dict(self):
79
+ """Returns the model properties as a dict"""
80
+ result = {}
81
+
82
+ for attr, _ in six.iteritems(self.openapi_types):
83
+ value = getattr(self, attr)
84
+ if isinstance(value, list):
85
+ result[attr] = list(map(
86
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
87
+ value
88
+ ))
89
+ elif hasattr(value, "to_dict"):
90
+ result[attr] = value.to_dict()
91
+ elif isinstance(value, dict):
92
+ result[attr] = dict(map(
93
+ lambda item: (item[0], item[1].to_dict())
94
+ if hasattr(item[1], "to_dict") else item,
95
+ value.items()
96
+ ))
97
+ else:
98
+ result[attr] = value
99
+
100
+ return result
101
+
102
+ def to_str(self):
103
+ """Returns the string representation of the model"""
104
+ return pprint.pformat(self.to_dict())
105
+
106
+ def __repr__(self):
107
+ """For `print` and `pprint`"""
108
+ return self.to_str()
109
+
110
+ def __eq__(self, other):
111
+ """Returns true if both objects are equal"""
112
+ if not isinstance(other, WorkspaceEventFields):
113
+ return False
114
+
115
+ return self.to_dict() == other.to_dict()
116
+
117
+ def __ne__(self, other):
118
+ """Returns true if both objects are not equal"""
119
+ if not isinstance(other, WorkspaceEventFields):
120
+ return True
121
+
122
+ return self.to_dict() != other.to_dict()