anyscale 0.26.16__py3-none-any.whl → 0.26.17__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/anyscale-cloud-setup-gcp.yaml +2 -0
- anyscale/client/README.md +7 -0
- anyscale/client/openapi_client/__init__.py +5 -0
- anyscale/client/openapi_client/api/default_api.py +248 -0
- anyscale/client/openapi_client/models/__init__.py +5 -0
- anyscale/client/openapi_client/models/i_know_response.py +174 -0
- anyscale/client/openapi_client/models/i_know_time_series_event.py +148 -0
- anyscale/client/openapi_client/models/job_report.py +199 -0
- anyscale/client/openapi_client/models/job_with_report.py +254 -0
- anyscale/client/openapi_client/models/jobwithreport_list_response.py +147 -0
- anyscale/commands/cloud_commands.py +43 -0
- anyscale/controllers/cloud_controller.py +144 -1
- anyscale/job/_private/job_sdk.py +22 -24
- anyscale/version.py +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/METADATA +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/RECORD +21 -16
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/LICENSE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/NOTICE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/WHEEL +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.17.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,148 @@
|
|
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 IKnowTimeSeriesEvent(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
|
+
'timestamp': 'str',
|
37
|
+
'event': 'str'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'timestamp': 'timestamp',
|
42
|
+
'event': 'event'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, timestamp=None, event=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""IKnowTimeSeriesEvent - 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._timestamp = None
|
52
|
+
self._event = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
self.timestamp = timestamp
|
56
|
+
self.event = event
|
57
|
+
|
58
|
+
@property
|
59
|
+
def timestamp(self):
|
60
|
+
"""Gets the timestamp of this IKnowTimeSeriesEvent. # noqa: E501
|
61
|
+
|
62
|
+
|
63
|
+
:return: The timestamp of this IKnowTimeSeriesEvent. # noqa: E501
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._timestamp
|
67
|
+
|
68
|
+
@timestamp.setter
|
69
|
+
def timestamp(self, timestamp):
|
70
|
+
"""Sets the timestamp of this IKnowTimeSeriesEvent.
|
71
|
+
|
72
|
+
|
73
|
+
:param timestamp: The timestamp of this IKnowTimeSeriesEvent. # noqa: E501
|
74
|
+
:type: str
|
75
|
+
"""
|
76
|
+
if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
|
77
|
+
raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
|
78
|
+
|
79
|
+
self._timestamp = timestamp
|
80
|
+
|
81
|
+
@property
|
82
|
+
def event(self):
|
83
|
+
"""Gets the event of this IKnowTimeSeriesEvent. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The event of this IKnowTimeSeriesEvent. # noqa: E501
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._event
|
90
|
+
|
91
|
+
@event.setter
|
92
|
+
def event(self, event):
|
93
|
+
"""Sets the event of this IKnowTimeSeriesEvent.
|
94
|
+
|
95
|
+
|
96
|
+
:param event: The event of this IKnowTimeSeriesEvent. # noqa: E501
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
if self.local_vars_configuration.client_side_validation and event is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501
|
101
|
+
|
102
|
+
self._event = event
|
103
|
+
|
104
|
+
def to_dict(self):
|
105
|
+
"""Returns the model properties as a dict"""
|
106
|
+
result = {}
|
107
|
+
|
108
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
109
|
+
value = getattr(self, attr)
|
110
|
+
if isinstance(value, list):
|
111
|
+
result[attr] = list(map(
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
113
|
+
value
|
114
|
+
))
|
115
|
+
elif hasattr(value, "to_dict"):
|
116
|
+
result[attr] = value.to_dict()
|
117
|
+
elif isinstance(value, dict):
|
118
|
+
result[attr] = dict(map(
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
121
|
+
value.items()
|
122
|
+
))
|
123
|
+
else:
|
124
|
+
result[attr] = value
|
125
|
+
|
126
|
+
return result
|
127
|
+
|
128
|
+
def to_str(self):
|
129
|
+
"""Returns the string representation of the model"""
|
130
|
+
return pprint.pformat(self.to_dict())
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print` and `pprint`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, IKnowTimeSeriesEvent):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.to_dict() == other.to_dict()
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
if not isinstance(other, IKnowTimeSeriesEvent):
|
146
|
+
return True
|
147
|
+
|
148
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,199 @@
|
|
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 JobReport(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
|
+
'unused_cpu_hours': 'float',
|
38
|
+
'unused_gpu_hours': 'float',
|
39
|
+
'max_instances_launched': 'int'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'job_id': 'job_id',
|
44
|
+
'unused_cpu_hours': 'unused_cpu_hours',
|
45
|
+
'unused_gpu_hours': 'unused_gpu_hours',
|
46
|
+
'max_instances_launched': 'max_instances_launched'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, job_id=None, unused_cpu_hours=None, unused_gpu_hours=None, max_instances_launched=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""JobReport - a model defined in OpenAPI""" # noqa: E501
|
51
|
+
if local_vars_configuration is None:
|
52
|
+
local_vars_configuration = Configuration()
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
54
|
+
|
55
|
+
self._job_id = None
|
56
|
+
self._unused_cpu_hours = None
|
57
|
+
self._unused_gpu_hours = None
|
58
|
+
self._max_instances_launched = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.job_id = job_id
|
62
|
+
if unused_cpu_hours is not None:
|
63
|
+
self.unused_cpu_hours = unused_cpu_hours
|
64
|
+
if unused_gpu_hours is not None:
|
65
|
+
self.unused_gpu_hours = unused_gpu_hours
|
66
|
+
if max_instances_launched is not None:
|
67
|
+
self.max_instances_launched = max_instances_launched
|
68
|
+
|
69
|
+
@property
|
70
|
+
def job_id(self):
|
71
|
+
"""Gets the job_id of this JobReport. # noqa: E501
|
72
|
+
|
73
|
+
|
74
|
+
:return: The job_id of this JobReport. # noqa: E501
|
75
|
+
:rtype: str
|
76
|
+
"""
|
77
|
+
return self._job_id
|
78
|
+
|
79
|
+
@job_id.setter
|
80
|
+
def job_id(self, job_id):
|
81
|
+
"""Sets the job_id of this JobReport.
|
82
|
+
|
83
|
+
|
84
|
+
:param job_id: The job_id of this JobReport. # noqa: E501
|
85
|
+
:type: str
|
86
|
+
"""
|
87
|
+
if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
|
88
|
+
raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
|
89
|
+
|
90
|
+
self._job_id = job_id
|
91
|
+
|
92
|
+
@property
|
93
|
+
def unused_cpu_hours(self):
|
94
|
+
"""Gets the unused_cpu_hours of this JobReport. # noqa: E501
|
95
|
+
|
96
|
+
|
97
|
+
:return: The unused_cpu_hours of this JobReport. # noqa: E501
|
98
|
+
:rtype: float
|
99
|
+
"""
|
100
|
+
return self._unused_cpu_hours
|
101
|
+
|
102
|
+
@unused_cpu_hours.setter
|
103
|
+
def unused_cpu_hours(self, unused_cpu_hours):
|
104
|
+
"""Sets the unused_cpu_hours of this JobReport.
|
105
|
+
|
106
|
+
|
107
|
+
:param unused_cpu_hours: The unused_cpu_hours of this JobReport. # noqa: E501
|
108
|
+
:type: float
|
109
|
+
"""
|
110
|
+
|
111
|
+
self._unused_cpu_hours = unused_cpu_hours
|
112
|
+
|
113
|
+
@property
|
114
|
+
def unused_gpu_hours(self):
|
115
|
+
"""Gets the unused_gpu_hours of this JobReport. # noqa: E501
|
116
|
+
|
117
|
+
|
118
|
+
:return: The unused_gpu_hours of this JobReport. # noqa: E501
|
119
|
+
:rtype: float
|
120
|
+
"""
|
121
|
+
return self._unused_gpu_hours
|
122
|
+
|
123
|
+
@unused_gpu_hours.setter
|
124
|
+
def unused_gpu_hours(self, unused_gpu_hours):
|
125
|
+
"""Sets the unused_gpu_hours of this JobReport.
|
126
|
+
|
127
|
+
|
128
|
+
:param unused_gpu_hours: The unused_gpu_hours of this JobReport. # noqa: E501
|
129
|
+
:type: float
|
130
|
+
"""
|
131
|
+
|
132
|
+
self._unused_gpu_hours = unused_gpu_hours
|
133
|
+
|
134
|
+
@property
|
135
|
+
def max_instances_launched(self):
|
136
|
+
"""Gets the max_instances_launched of this JobReport. # noqa: E501
|
137
|
+
|
138
|
+
|
139
|
+
:return: The max_instances_launched of this JobReport. # noqa: E501
|
140
|
+
:rtype: int
|
141
|
+
"""
|
142
|
+
return self._max_instances_launched
|
143
|
+
|
144
|
+
@max_instances_launched.setter
|
145
|
+
def max_instances_launched(self, max_instances_launched):
|
146
|
+
"""Sets the max_instances_launched of this JobReport.
|
147
|
+
|
148
|
+
|
149
|
+
:param max_instances_launched: The max_instances_launched of this JobReport. # noqa: E501
|
150
|
+
:type: int
|
151
|
+
"""
|
152
|
+
|
153
|
+
self._max_instances_launched = max_instances_launched
|
154
|
+
|
155
|
+
def to_dict(self):
|
156
|
+
"""Returns the model properties as a dict"""
|
157
|
+
result = {}
|
158
|
+
|
159
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
160
|
+
value = getattr(self, attr)
|
161
|
+
if isinstance(value, list):
|
162
|
+
result[attr] = list(map(
|
163
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
164
|
+
value
|
165
|
+
))
|
166
|
+
elif hasattr(value, "to_dict"):
|
167
|
+
result[attr] = value.to_dict()
|
168
|
+
elif isinstance(value, dict):
|
169
|
+
result[attr] = dict(map(
|
170
|
+
lambda item: (item[0], item[1].to_dict())
|
171
|
+
if hasattr(item[1], "to_dict") else item,
|
172
|
+
value.items()
|
173
|
+
))
|
174
|
+
else:
|
175
|
+
result[attr] = value
|
176
|
+
|
177
|
+
return result
|
178
|
+
|
179
|
+
def to_str(self):
|
180
|
+
"""Returns the string representation of the model"""
|
181
|
+
return pprint.pformat(self.to_dict())
|
182
|
+
|
183
|
+
def __repr__(self):
|
184
|
+
"""For `print` and `pprint`"""
|
185
|
+
return self.to_str()
|
186
|
+
|
187
|
+
def __eq__(self, other):
|
188
|
+
"""Returns true if both objects are equal"""
|
189
|
+
if not isinstance(other, JobReport):
|
190
|
+
return False
|
191
|
+
|
192
|
+
return self.to_dict() == other.to_dict()
|
193
|
+
|
194
|
+
def __ne__(self, other):
|
195
|
+
"""Returns true if both objects are not equal"""
|
196
|
+
if not isinstance(other, JobReport):
|
197
|
+
return True
|
198
|
+
|
199
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,254 @@
|
|
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 JobWithReport(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
|
+
'job_name': 'str',
|
38
|
+
'job_state': 'HaJobStates',
|
39
|
+
'job_report': 'JobReport',
|
40
|
+
'created_at': 'datetime',
|
41
|
+
'finished_at': 'datetime'
|
42
|
+
}
|
43
|
+
|
44
|
+
attribute_map = {
|
45
|
+
'job_id': 'job_id',
|
46
|
+
'job_name': 'job_name',
|
47
|
+
'job_state': 'job_state',
|
48
|
+
'job_report': 'job_report',
|
49
|
+
'created_at': 'created_at',
|
50
|
+
'finished_at': 'finished_at'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, job_id=None, job_name=None, job_state=None, job_report=None, created_at=None, finished_at=None, local_vars_configuration=None): # noqa: E501
|
54
|
+
"""JobWithReport - 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._job_id = None
|
60
|
+
self._job_name = None
|
61
|
+
self._job_state = None
|
62
|
+
self._job_report = None
|
63
|
+
self._created_at = None
|
64
|
+
self._finished_at = None
|
65
|
+
self.discriminator = None
|
66
|
+
|
67
|
+
self.job_id = job_id
|
68
|
+
self.job_name = job_name
|
69
|
+
self.job_state = job_state
|
70
|
+
if job_report is not None:
|
71
|
+
self.job_report = job_report
|
72
|
+
self.created_at = created_at
|
73
|
+
if finished_at is not None:
|
74
|
+
self.finished_at = finished_at
|
75
|
+
|
76
|
+
@property
|
77
|
+
def job_id(self):
|
78
|
+
"""Gets the job_id of this JobWithReport. # noqa: E501
|
79
|
+
|
80
|
+
|
81
|
+
:return: The job_id of this JobWithReport. # noqa: E501
|
82
|
+
:rtype: str
|
83
|
+
"""
|
84
|
+
return self._job_id
|
85
|
+
|
86
|
+
@job_id.setter
|
87
|
+
def job_id(self, job_id):
|
88
|
+
"""Sets the job_id of this JobWithReport.
|
89
|
+
|
90
|
+
|
91
|
+
:param job_id: The job_id of this JobWithReport. # noqa: E501
|
92
|
+
:type: str
|
93
|
+
"""
|
94
|
+
if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
|
95
|
+
raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
|
96
|
+
|
97
|
+
self._job_id = job_id
|
98
|
+
|
99
|
+
@property
|
100
|
+
def job_name(self):
|
101
|
+
"""Gets the job_name of this JobWithReport. # noqa: E501
|
102
|
+
|
103
|
+
|
104
|
+
:return: The job_name of this JobWithReport. # noqa: E501
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._job_name
|
108
|
+
|
109
|
+
@job_name.setter
|
110
|
+
def job_name(self, job_name):
|
111
|
+
"""Sets the job_name of this JobWithReport.
|
112
|
+
|
113
|
+
|
114
|
+
:param job_name: The job_name of this JobWithReport. # noqa: E501
|
115
|
+
:type: str
|
116
|
+
"""
|
117
|
+
if self.local_vars_configuration.client_side_validation and job_name is None: # noqa: E501
|
118
|
+
raise ValueError("Invalid value for `job_name`, must not be `None`") # noqa: E501
|
119
|
+
|
120
|
+
self._job_name = job_name
|
121
|
+
|
122
|
+
@property
|
123
|
+
def job_state(self):
|
124
|
+
"""Gets the job_state of this JobWithReport. # noqa: E501
|
125
|
+
|
126
|
+
|
127
|
+
:return: The job_state of this JobWithReport. # noqa: E501
|
128
|
+
:rtype: HaJobStates
|
129
|
+
"""
|
130
|
+
return self._job_state
|
131
|
+
|
132
|
+
@job_state.setter
|
133
|
+
def job_state(self, job_state):
|
134
|
+
"""Sets the job_state of this JobWithReport.
|
135
|
+
|
136
|
+
|
137
|
+
:param job_state: The job_state of this JobWithReport. # noqa: E501
|
138
|
+
:type: HaJobStates
|
139
|
+
"""
|
140
|
+
if self.local_vars_configuration.client_side_validation and job_state is None: # noqa: E501
|
141
|
+
raise ValueError("Invalid value for `job_state`, must not be `None`") # noqa: E501
|
142
|
+
|
143
|
+
self._job_state = job_state
|
144
|
+
|
145
|
+
@property
|
146
|
+
def job_report(self):
|
147
|
+
"""Gets the job_report of this JobWithReport. # noqa: E501
|
148
|
+
|
149
|
+
|
150
|
+
:return: The job_report of this JobWithReport. # noqa: E501
|
151
|
+
:rtype: JobReport
|
152
|
+
"""
|
153
|
+
return self._job_report
|
154
|
+
|
155
|
+
@job_report.setter
|
156
|
+
def job_report(self, job_report):
|
157
|
+
"""Sets the job_report of this JobWithReport.
|
158
|
+
|
159
|
+
|
160
|
+
:param job_report: The job_report of this JobWithReport. # noqa: E501
|
161
|
+
:type: JobReport
|
162
|
+
"""
|
163
|
+
|
164
|
+
self._job_report = job_report
|
165
|
+
|
166
|
+
@property
|
167
|
+
def created_at(self):
|
168
|
+
"""Gets the created_at of this JobWithReport. # noqa: E501
|
169
|
+
|
170
|
+
|
171
|
+
:return: The created_at of this JobWithReport. # noqa: E501
|
172
|
+
:rtype: datetime
|
173
|
+
"""
|
174
|
+
return self._created_at
|
175
|
+
|
176
|
+
@created_at.setter
|
177
|
+
def created_at(self, created_at):
|
178
|
+
"""Sets the created_at of this JobWithReport.
|
179
|
+
|
180
|
+
|
181
|
+
:param created_at: The created_at of this JobWithReport. # noqa: E501
|
182
|
+
:type: datetime
|
183
|
+
"""
|
184
|
+
if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
|
185
|
+
raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
|
186
|
+
|
187
|
+
self._created_at = created_at
|
188
|
+
|
189
|
+
@property
|
190
|
+
def finished_at(self):
|
191
|
+
"""Gets the finished_at of this JobWithReport. # noqa: E501
|
192
|
+
|
193
|
+
|
194
|
+
:return: The finished_at of this JobWithReport. # noqa: E501
|
195
|
+
:rtype: datetime
|
196
|
+
"""
|
197
|
+
return self._finished_at
|
198
|
+
|
199
|
+
@finished_at.setter
|
200
|
+
def finished_at(self, finished_at):
|
201
|
+
"""Sets the finished_at of this JobWithReport.
|
202
|
+
|
203
|
+
|
204
|
+
:param finished_at: The finished_at of this JobWithReport. # noqa: E501
|
205
|
+
:type: datetime
|
206
|
+
"""
|
207
|
+
|
208
|
+
self._finished_at = finished_at
|
209
|
+
|
210
|
+
def to_dict(self):
|
211
|
+
"""Returns the model properties as a dict"""
|
212
|
+
result = {}
|
213
|
+
|
214
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
215
|
+
value = getattr(self, attr)
|
216
|
+
if isinstance(value, list):
|
217
|
+
result[attr] = list(map(
|
218
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
219
|
+
value
|
220
|
+
))
|
221
|
+
elif hasattr(value, "to_dict"):
|
222
|
+
result[attr] = value.to_dict()
|
223
|
+
elif isinstance(value, dict):
|
224
|
+
result[attr] = dict(map(
|
225
|
+
lambda item: (item[0], item[1].to_dict())
|
226
|
+
if hasattr(item[1], "to_dict") else item,
|
227
|
+
value.items()
|
228
|
+
))
|
229
|
+
else:
|
230
|
+
result[attr] = value
|
231
|
+
|
232
|
+
return result
|
233
|
+
|
234
|
+
def to_str(self):
|
235
|
+
"""Returns the string representation of the model"""
|
236
|
+
return pprint.pformat(self.to_dict())
|
237
|
+
|
238
|
+
def __repr__(self):
|
239
|
+
"""For `print` and `pprint`"""
|
240
|
+
return self.to_str()
|
241
|
+
|
242
|
+
def __eq__(self, other):
|
243
|
+
"""Returns true if both objects are equal"""
|
244
|
+
if not isinstance(other, JobWithReport):
|
245
|
+
return False
|
246
|
+
|
247
|
+
return self.to_dict() == other.to_dict()
|
248
|
+
|
249
|
+
def __ne__(self, other):
|
250
|
+
"""Returns true if both objects are not equal"""
|
251
|
+
if not isinstance(other, JobWithReport):
|
252
|
+
return True
|
253
|
+
|
254
|
+
return self.to_dict() != other.to_dict()
|