anyscale 0.26.13__py3-none-any.whl → 0.26.15__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 (54) hide show
  1. anyscale/_private/anyscale_client/fake_anyscale_client.py +1 -1
  2. anyscale/_private/docgen/models.md +2 -2
  3. anyscale/_private/models/model_base.py +5 -2
  4. anyscale/_private/utils/progress_util.py +2 -2
  5. anyscale/_private/workload/workload_sdk.py +4 -3
  6. anyscale/anyscale-cloud-setup.yaml +4 -0
  7. anyscale/client/README.md +20 -2
  8. anyscale/client/openapi_client/__init__.py +14 -1
  9. anyscale/client/openapi_client/api/default_api.py +847 -241
  10. anyscale/client/openapi_client/models/__init__.py +14 -1
  11. anyscale/client/openapi_client/models/baseimagesenum.py +2 -4
  12. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +2 -2
  13. anyscale/client/openapi_client/models/task_exception_group_aggregate.py +175 -0
  14. anyscale/client/openapi_client/models/task_exception_group_aggregate_response.py +174 -0
  15. anyscale/client/openapi_client/models/task_function_name_group_aggregate.py +202 -0
  16. anyscale/client/openapi_client/models/task_function_name_group_aggregate_response.py +174 -0
  17. anyscale/client/openapi_client/models/task_grouped_aggregate_metrics.py +337 -0
  18. anyscale/client/openapi_client/models/task_job_group_aggregate.py +175 -0
  19. anyscale/client/openapi_client/models/task_job_group_aggregate_response.py +174 -0
  20. anyscale/client/openapi_client/models/task_state.py +103 -0
  21. anyscale/client/openapi_client/models/task_summary.py +256 -0
  22. anyscale/client/openapi_client/models/task_table_config.py +250 -0
  23. anyscale/client/openapi_client/models/task_table_response.py +174 -0
  24. anyscale/client/openapi_client/models/task_table_row.py +491 -0
  25. anyscale/client/openapi_client/models/task_type.py +100 -0
  26. anyscale/client/openapi_client/models/tasksummary_response.py +121 -0
  27. anyscale/cloud_resource.py +1 -1
  28. anyscale/cloud_utils.py +6 -2
  29. anyscale/cluster_compute.py +4 -3
  30. anyscale/cluster_env.py +8 -5
  31. anyscale/commands/command_examples.py +22 -0
  32. anyscale/compute_config/_private/compute_config_sdk.py +1 -1
  33. anyscale/connect_utils/prepare_cluster.py +14 -4
  34. anyscale/controllers/cloud_controller.py +2 -2
  35. anyscale/controllers/cloud_functional_verification_controller.py +4 -2
  36. anyscale/controllers/service_controller.py +1 -1
  37. anyscale/project_utils.py +4 -3
  38. anyscale/sdk/anyscale_client/models/baseimagesenum.py +2 -4
  39. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +2 -2
  40. anyscale/sdk/anyscale_client/sdk.py +4 -4
  41. anyscale/utils/connect_helpers.py +16 -3
  42. anyscale/utils/runtime_env.py +3 -1
  43. anyscale/version.py +1 -1
  44. anyscale/workspace/__init__.py +10 -5
  45. anyscale/workspace/_private/workspace_sdk.py +4 -4
  46. anyscale/workspace/commands.py +1 -1
  47. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/METADATA +1 -1
  48. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/RECORD +53 -40
  49. anyscale/client/openapi_client/models/buffer_registration.py +0 -285
  50. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/LICENSE +0 -0
  51. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/NOTICE +0 -0
  52. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/WHEEL +0 -0
  53. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/entry_points.txt +0 -0
  54. {anyscale-0.26.13.dist-info → anyscale-0.26.15.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,337 @@
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 TaskGroupedAggregateMetrics(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
+ 'total': 'int',
37
+ 'count_finished': 'int',
38
+ 'count_failed': 'int',
39
+ 'count_running': 'int',
40
+ 'count_pending_schedule': 'int',
41
+ 'count_pending_dep': 'int',
42
+ 'max_duration_ts_ns': 'int',
43
+ 'min_duration_ts_ns': 'int',
44
+ 'avg_duration_ts_ns': 'int'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'total': 'total',
49
+ 'count_finished': 'count_finished',
50
+ 'count_failed': 'count_failed',
51
+ 'count_running': 'count_running',
52
+ 'count_pending_schedule': 'count_pending_schedule',
53
+ 'count_pending_dep': 'count_pending_dep',
54
+ 'max_duration_ts_ns': 'max_duration_ts_ns',
55
+ 'min_duration_ts_ns': 'min_duration_ts_ns',
56
+ 'avg_duration_ts_ns': 'avg_duration_ts_ns'
57
+ }
58
+
59
+ def __init__(self, total=None, count_finished=None, count_failed=None, count_running=None, count_pending_schedule=None, count_pending_dep=None, max_duration_ts_ns=None, min_duration_ts_ns=None, avg_duration_ts_ns=None, local_vars_configuration=None): # noqa: E501
60
+ """TaskGroupedAggregateMetrics - a model defined in OpenAPI""" # noqa: E501
61
+ if local_vars_configuration is None:
62
+ local_vars_configuration = Configuration()
63
+ self.local_vars_configuration = local_vars_configuration
64
+
65
+ self._total = None
66
+ self._count_finished = None
67
+ self._count_failed = None
68
+ self._count_running = None
69
+ self._count_pending_schedule = None
70
+ self._count_pending_dep = None
71
+ self._max_duration_ts_ns = None
72
+ self._min_duration_ts_ns = None
73
+ self._avg_duration_ts_ns = None
74
+ self.discriminator = None
75
+
76
+ self.total = total
77
+ self.count_finished = count_finished
78
+ self.count_failed = count_failed
79
+ self.count_running = count_running
80
+ self.count_pending_schedule = count_pending_schedule
81
+ self.count_pending_dep = count_pending_dep
82
+ self.max_duration_ts_ns = max_duration_ts_ns
83
+ self.min_duration_ts_ns = min_duration_ts_ns
84
+ self.avg_duration_ts_ns = avg_duration_ts_ns
85
+
86
+ @property
87
+ def total(self):
88
+ """Gets the total of this TaskGroupedAggregateMetrics. # noqa: E501
89
+
90
+
91
+ :return: The total of this TaskGroupedAggregateMetrics. # noqa: E501
92
+ :rtype: int
93
+ """
94
+ return self._total
95
+
96
+ @total.setter
97
+ def total(self, total):
98
+ """Sets the total of this TaskGroupedAggregateMetrics.
99
+
100
+
101
+ :param total: The total of this TaskGroupedAggregateMetrics. # noqa: E501
102
+ :type: int
103
+ """
104
+ if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501
105
+ raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501
106
+
107
+ self._total = total
108
+
109
+ @property
110
+ def count_finished(self):
111
+ """Gets the count_finished of this TaskGroupedAggregateMetrics. # noqa: E501
112
+
113
+
114
+ :return: The count_finished of this TaskGroupedAggregateMetrics. # noqa: E501
115
+ :rtype: int
116
+ """
117
+ return self._count_finished
118
+
119
+ @count_finished.setter
120
+ def count_finished(self, count_finished):
121
+ """Sets the count_finished of this TaskGroupedAggregateMetrics.
122
+
123
+
124
+ :param count_finished: The count_finished of this TaskGroupedAggregateMetrics. # noqa: E501
125
+ :type: int
126
+ """
127
+ if self.local_vars_configuration.client_side_validation and count_finished is None: # noqa: E501
128
+ raise ValueError("Invalid value for `count_finished`, must not be `None`") # noqa: E501
129
+
130
+ self._count_finished = count_finished
131
+
132
+ @property
133
+ def count_failed(self):
134
+ """Gets the count_failed of this TaskGroupedAggregateMetrics. # noqa: E501
135
+
136
+
137
+ :return: The count_failed of this TaskGroupedAggregateMetrics. # noqa: E501
138
+ :rtype: int
139
+ """
140
+ return self._count_failed
141
+
142
+ @count_failed.setter
143
+ def count_failed(self, count_failed):
144
+ """Sets the count_failed of this TaskGroupedAggregateMetrics.
145
+
146
+
147
+ :param count_failed: The count_failed of this TaskGroupedAggregateMetrics. # noqa: E501
148
+ :type: int
149
+ """
150
+ if self.local_vars_configuration.client_side_validation and count_failed is None: # noqa: E501
151
+ raise ValueError("Invalid value for `count_failed`, must not be `None`") # noqa: E501
152
+
153
+ self._count_failed = count_failed
154
+
155
+ @property
156
+ def count_running(self):
157
+ """Gets the count_running of this TaskGroupedAggregateMetrics. # noqa: E501
158
+
159
+
160
+ :return: The count_running of this TaskGroupedAggregateMetrics. # noqa: E501
161
+ :rtype: int
162
+ """
163
+ return self._count_running
164
+
165
+ @count_running.setter
166
+ def count_running(self, count_running):
167
+ """Sets the count_running of this TaskGroupedAggregateMetrics.
168
+
169
+
170
+ :param count_running: The count_running of this TaskGroupedAggregateMetrics. # noqa: E501
171
+ :type: int
172
+ """
173
+ if self.local_vars_configuration.client_side_validation and count_running is None: # noqa: E501
174
+ raise ValueError("Invalid value for `count_running`, must not be `None`") # noqa: E501
175
+
176
+ self._count_running = count_running
177
+
178
+ @property
179
+ def count_pending_schedule(self):
180
+ """Gets the count_pending_schedule of this TaskGroupedAggregateMetrics. # noqa: E501
181
+
182
+
183
+ :return: The count_pending_schedule of this TaskGroupedAggregateMetrics. # noqa: E501
184
+ :rtype: int
185
+ """
186
+ return self._count_pending_schedule
187
+
188
+ @count_pending_schedule.setter
189
+ def count_pending_schedule(self, count_pending_schedule):
190
+ """Sets the count_pending_schedule of this TaskGroupedAggregateMetrics.
191
+
192
+
193
+ :param count_pending_schedule: The count_pending_schedule of this TaskGroupedAggregateMetrics. # noqa: E501
194
+ :type: int
195
+ """
196
+ if self.local_vars_configuration.client_side_validation and count_pending_schedule is None: # noqa: E501
197
+ raise ValueError("Invalid value for `count_pending_schedule`, must not be `None`") # noqa: E501
198
+
199
+ self._count_pending_schedule = count_pending_schedule
200
+
201
+ @property
202
+ def count_pending_dep(self):
203
+ """Gets the count_pending_dep of this TaskGroupedAggregateMetrics. # noqa: E501
204
+
205
+
206
+ :return: The count_pending_dep of this TaskGroupedAggregateMetrics. # noqa: E501
207
+ :rtype: int
208
+ """
209
+ return self._count_pending_dep
210
+
211
+ @count_pending_dep.setter
212
+ def count_pending_dep(self, count_pending_dep):
213
+ """Sets the count_pending_dep of this TaskGroupedAggregateMetrics.
214
+
215
+
216
+ :param count_pending_dep: The count_pending_dep of this TaskGroupedAggregateMetrics. # noqa: E501
217
+ :type: int
218
+ """
219
+ if self.local_vars_configuration.client_side_validation and count_pending_dep is None: # noqa: E501
220
+ raise ValueError("Invalid value for `count_pending_dep`, must not be `None`") # noqa: E501
221
+
222
+ self._count_pending_dep = count_pending_dep
223
+
224
+ @property
225
+ def max_duration_ts_ns(self):
226
+ """Gets the max_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
227
+
228
+
229
+ :return: The max_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
230
+ :rtype: int
231
+ """
232
+ return self._max_duration_ts_ns
233
+
234
+ @max_duration_ts_ns.setter
235
+ def max_duration_ts_ns(self, max_duration_ts_ns):
236
+ """Sets the max_duration_ts_ns of this TaskGroupedAggregateMetrics.
237
+
238
+
239
+ :param max_duration_ts_ns: The max_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
240
+ :type: int
241
+ """
242
+ if self.local_vars_configuration.client_side_validation and max_duration_ts_ns is None: # noqa: E501
243
+ raise ValueError("Invalid value for `max_duration_ts_ns`, must not be `None`") # noqa: E501
244
+
245
+ self._max_duration_ts_ns = max_duration_ts_ns
246
+
247
+ @property
248
+ def min_duration_ts_ns(self):
249
+ """Gets the min_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
250
+
251
+
252
+ :return: The min_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
253
+ :rtype: int
254
+ """
255
+ return self._min_duration_ts_ns
256
+
257
+ @min_duration_ts_ns.setter
258
+ def min_duration_ts_ns(self, min_duration_ts_ns):
259
+ """Sets the min_duration_ts_ns of this TaskGroupedAggregateMetrics.
260
+
261
+
262
+ :param min_duration_ts_ns: The min_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
263
+ :type: int
264
+ """
265
+ if self.local_vars_configuration.client_side_validation and min_duration_ts_ns is None: # noqa: E501
266
+ raise ValueError("Invalid value for `min_duration_ts_ns`, must not be `None`") # noqa: E501
267
+
268
+ self._min_duration_ts_ns = min_duration_ts_ns
269
+
270
+ @property
271
+ def avg_duration_ts_ns(self):
272
+ """Gets the avg_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
273
+
274
+
275
+ :return: The avg_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
276
+ :rtype: int
277
+ """
278
+ return self._avg_duration_ts_ns
279
+
280
+ @avg_duration_ts_ns.setter
281
+ def avg_duration_ts_ns(self, avg_duration_ts_ns):
282
+ """Sets the avg_duration_ts_ns of this TaskGroupedAggregateMetrics.
283
+
284
+
285
+ :param avg_duration_ts_ns: The avg_duration_ts_ns of this TaskGroupedAggregateMetrics. # noqa: E501
286
+ :type: int
287
+ """
288
+ if self.local_vars_configuration.client_side_validation and avg_duration_ts_ns is None: # noqa: E501
289
+ raise ValueError("Invalid value for `avg_duration_ts_ns`, must not be `None`") # noqa: E501
290
+
291
+ self._avg_duration_ts_ns = avg_duration_ts_ns
292
+
293
+ def to_dict(self):
294
+ """Returns the model properties as a dict"""
295
+ result = {}
296
+
297
+ for attr, _ in six.iteritems(self.openapi_types):
298
+ value = getattr(self, attr)
299
+ if isinstance(value, list):
300
+ result[attr] = list(map(
301
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
302
+ value
303
+ ))
304
+ elif hasattr(value, "to_dict"):
305
+ result[attr] = value.to_dict()
306
+ elif isinstance(value, dict):
307
+ result[attr] = dict(map(
308
+ lambda item: (item[0], item[1].to_dict())
309
+ if hasattr(item[1], "to_dict") else item,
310
+ value.items()
311
+ ))
312
+ else:
313
+ result[attr] = value
314
+
315
+ return result
316
+
317
+ def to_str(self):
318
+ """Returns the string representation of the model"""
319
+ return pprint.pformat(self.to_dict())
320
+
321
+ def __repr__(self):
322
+ """For `print` and `pprint`"""
323
+ return self.to_str()
324
+
325
+ def __eq__(self, other):
326
+ """Returns true if both objects are equal"""
327
+ if not isinstance(other, TaskGroupedAggregateMetrics):
328
+ return False
329
+
330
+ return self.to_dict() == other.to_dict()
331
+
332
+ def __ne__(self, other):
333
+ """Returns true if both objects are not equal"""
334
+ if not isinstance(other, TaskGroupedAggregateMetrics):
335
+ return True
336
+
337
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,175 @@
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 TaskJobGroupAggregate(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
+ 'job_id': 'str',
37
+ 'ray_session_name': 'str',
38
+ 'metrics': 'TaskGroupedAggregateMetrics'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'job_id': 'job_id',
43
+ 'ray_session_name': 'ray_session_name',
44
+ 'metrics': 'metrics'
45
+ }
46
+
47
+ def __init__(self, job_id=None, ray_session_name=None, metrics=None, local_vars_configuration=None): # noqa: E501
48
+ """TaskJobGroupAggregate - a model defined in OpenAPI""" # noqa: E501
49
+ if local_vars_configuration is None:
50
+ local_vars_configuration = Configuration()
51
+ self.local_vars_configuration = local_vars_configuration
52
+
53
+ self._job_id = None
54
+ self._ray_session_name = None
55
+ self._metrics = None
56
+ self.discriminator = None
57
+
58
+ self.job_id = job_id
59
+ self.ray_session_name = ray_session_name
60
+ self.metrics = metrics
61
+
62
+ @property
63
+ def job_id(self):
64
+ """Gets the job_id of this TaskJobGroupAggregate. # noqa: E501
65
+
66
+
67
+ :return: The job_id of this TaskJobGroupAggregate. # noqa: E501
68
+ :rtype: str
69
+ """
70
+ return self._job_id
71
+
72
+ @job_id.setter
73
+ def job_id(self, job_id):
74
+ """Sets the job_id of this TaskJobGroupAggregate.
75
+
76
+
77
+ :param job_id: The job_id of this TaskJobGroupAggregate. # noqa: E501
78
+ :type: str
79
+ """
80
+ if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
81
+ raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
82
+
83
+ self._job_id = job_id
84
+
85
+ @property
86
+ def ray_session_name(self):
87
+ """Gets the ray_session_name of this TaskJobGroupAggregate. # noqa: E501
88
+
89
+
90
+ :return: The ray_session_name of this TaskJobGroupAggregate. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._ray_session_name
94
+
95
+ @ray_session_name.setter
96
+ def ray_session_name(self, ray_session_name):
97
+ """Sets the ray_session_name of this TaskJobGroupAggregate.
98
+
99
+
100
+ :param ray_session_name: The ray_session_name of this TaskJobGroupAggregate. # noqa: E501
101
+ :type: str
102
+ """
103
+ if self.local_vars_configuration.client_side_validation and ray_session_name is None: # noqa: E501
104
+ raise ValueError("Invalid value for `ray_session_name`, must not be `None`") # noqa: E501
105
+
106
+ self._ray_session_name = ray_session_name
107
+
108
+ @property
109
+ def metrics(self):
110
+ """Gets the metrics of this TaskJobGroupAggregate. # noqa: E501
111
+
112
+
113
+ :return: The metrics of this TaskJobGroupAggregate. # noqa: E501
114
+ :rtype: TaskGroupedAggregateMetrics
115
+ """
116
+ return self._metrics
117
+
118
+ @metrics.setter
119
+ def metrics(self, metrics):
120
+ """Sets the metrics of this TaskJobGroupAggregate.
121
+
122
+
123
+ :param metrics: The metrics of this TaskJobGroupAggregate. # noqa: E501
124
+ :type: TaskGroupedAggregateMetrics
125
+ """
126
+ if self.local_vars_configuration.client_side_validation and metrics is None: # noqa: E501
127
+ raise ValueError("Invalid value for `metrics`, must not be `None`") # noqa: E501
128
+
129
+ self._metrics = metrics
130
+
131
+ def to_dict(self):
132
+ """Returns the model properties as a dict"""
133
+ result = {}
134
+
135
+ for attr, _ in six.iteritems(self.openapi_types):
136
+ value = getattr(self, attr)
137
+ if isinstance(value, list):
138
+ result[attr] = list(map(
139
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
+ value
141
+ ))
142
+ elif hasattr(value, "to_dict"):
143
+ result[attr] = value.to_dict()
144
+ elif isinstance(value, dict):
145
+ result[attr] = dict(map(
146
+ lambda item: (item[0], item[1].to_dict())
147
+ if hasattr(item[1], "to_dict") else item,
148
+ value.items()
149
+ ))
150
+ else:
151
+ result[attr] = value
152
+
153
+ return result
154
+
155
+ def to_str(self):
156
+ """Returns the string representation of the model"""
157
+ return pprint.pformat(self.to_dict())
158
+
159
+ def __repr__(self):
160
+ """For `print` and `pprint`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, TaskJobGroupAggregate):
166
+ return False
167
+
168
+ return self.to_dict() == other.to_dict()
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ if not isinstance(other, TaskJobGroupAggregate):
173
+ return True
174
+
175
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,174 @@
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 TaskJobGroupAggregateResponse(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[TaskJobGroupAggregate]',
37
+ 'next_offset': 'str',
38
+ 'total': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'results': 'results',
43
+ 'next_offset': 'next_offset',
44
+ 'total': 'total'
45
+ }
46
+
47
+ def __init__(self, results=None, next_offset=None, total=None, local_vars_configuration=None): # noqa: E501
48
+ """TaskJobGroupAggregateResponse - a model defined in OpenAPI""" # noqa: E501
49
+ if local_vars_configuration is None:
50
+ local_vars_configuration = Configuration()
51
+ self.local_vars_configuration = local_vars_configuration
52
+
53
+ self._results = None
54
+ self._next_offset = None
55
+ self._total = None
56
+ self.discriminator = None
57
+
58
+ self.results = results
59
+ if next_offset is not None:
60
+ self.next_offset = next_offset
61
+ self.total = total
62
+
63
+ @property
64
+ def results(self):
65
+ """Gets the results of this TaskJobGroupAggregateResponse. # noqa: E501
66
+
67
+
68
+ :return: The results of this TaskJobGroupAggregateResponse. # noqa: E501
69
+ :rtype: list[TaskJobGroupAggregate]
70
+ """
71
+ return self._results
72
+
73
+ @results.setter
74
+ def results(self, results):
75
+ """Sets the results of this TaskJobGroupAggregateResponse.
76
+
77
+
78
+ :param results: The results of this TaskJobGroupAggregateResponse. # noqa: E501
79
+ :type: list[TaskJobGroupAggregate]
80
+ """
81
+ if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
82
+ raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
83
+
84
+ self._results = results
85
+
86
+ @property
87
+ def next_offset(self):
88
+ """Gets the next_offset of this TaskJobGroupAggregateResponse. # noqa: E501
89
+
90
+
91
+ :return: The next_offset of this TaskJobGroupAggregateResponse. # noqa: E501
92
+ :rtype: str
93
+ """
94
+ return self._next_offset
95
+
96
+ @next_offset.setter
97
+ def next_offset(self, next_offset):
98
+ """Sets the next_offset of this TaskJobGroupAggregateResponse.
99
+
100
+
101
+ :param next_offset: The next_offset of this TaskJobGroupAggregateResponse. # noqa: E501
102
+ :type: str
103
+ """
104
+
105
+ self._next_offset = next_offset
106
+
107
+ @property
108
+ def total(self):
109
+ """Gets the total of this TaskJobGroupAggregateResponse. # noqa: E501
110
+
111
+
112
+ :return: The total of this TaskJobGroupAggregateResponse. # noqa: E501
113
+ :rtype: int
114
+ """
115
+ return self._total
116
+
117
+ @total.setter
118
+ def total(self, total):
119
+ """Sets the total of this TaskJobGroupAggregateResponse.
120
+
121
+
122
+ :param total: The total of this TaskJobGroupAggregateResponse. # noqa: E501
123
+ :type: int
124
+ """
125
+ if self.local_vars_configuration.client_side_validation and total is None: # noqa: E501
126
+ raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501
127
+
128
+ self._total = total
129
+
130
+ def to_dict(self):
131
+ """Returns the model properties as a dict"""
132
+ result = {}
133
+
134
+ for attr, _ in six.iteritems(self.openapi_types):
135
+ value = getattr(self, attr)
136
+ if isinstance(value, list):
137
+ result[attr] = list(map(
138
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
139
+ value
140
+ ))
141
+ elif hasattr(value, "to_dict"):
142
+ result[attr] = value.to_dict()
143
+ elif isinstance(value, dict):
144
+ result[attr] = dict(map(
145
+ lambda item: (item[0], item[1].to_dict())
146
+ if hasattr(item[1], "to_dict") else item,
147
+ value.items()
148
+ ))
149
+ else:
150
+ result[attr] = value
151
+
152
+ return result
153
+
154
+ def to_str(self):
155
+ """Returns the string representation of the model"""
156
+ return pprint.pformat(self.to_dict())
157
+
158
+ def __repr__(self):
159
+ """For `print` and `pprint`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, TaskJobGroupAggregateResponse):
165
+ return False
166
+
167
+ return self.to_dict() == other.to_dict()
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ if not isinstance(other, TaskJobGroupAggregateResponse):
172
+ return True
173
+
174
+ return self.to_dict() != other.to_dict()