anyscale 0.26.30__py3-none-any.whl → 0.26.32__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/anyscale_client/anyscale_client.py +22 -60
- anyscale/_private/anyscale_client/common.py +12 -1
- anyscale/_private/anyscale_client/fake_anyscale_client.py +24 -0
- anyscale/_private/docgen/__main__.py +2 -0
- anyscale/_private/docgen/models.md +2 -2
- anyscale/client/README.md +9 -0
- anyscale/client/openapi_client/__init__.py +7 -0
- anyscale/client/openapi_client/api/default_api.py +232 -0
- anyscale/client/openapi_client/models/__init__.py +7 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +135 -1
- anyscale/client/openapi_client/models/cluster_operation.py +266 -0
- anyscale/client/openapi_client/models/cluster_operation_type.py +101 -0
- anyscale/client/openapi_client/models/clusteroperation_response.py +121 -0
- anyscale/client/openapi_client/models/get_or_create_build_from_image_uri_request.py +207 -0
- anyscale/client/openapi_client/models/operation_error.py +123 -0
- anyscale/client/openapi_client/models/operation_progress.py +123 -0
- anyscale/client/openapi_client/models/operation_result.py +150 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +135 -1
- anyscale/cloud/__init__.py +16 -0
- anyscale/cloud/_private/cloud_sdk.py +33 -0
- anyscale/cloud/commands.py +35 -0
- anyscale/cluster_compute.py +3 -8
- anyscale/commands/cloud_commands.py +35 -0
- anyscale/commands/command_examples.py +6 -0
- anyscale/controllers/compute_config_controller.py +3 -19
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +135 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +135 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/METADATA +1 -1
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/RECORD +36 -29
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/LICENSE +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/NOTICE +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/WHEEL +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.30.dist-info → anyscale-0.26.32.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,266 @@
|
|
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 ClusterOperation(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
|
+
'completed': 'bool',
|
38
|
+
'progress': 'OperationProgress',
|
39
|
+
'result': 'OperationResult',
|
40
|
+
'cluster_id': 'str',
|
41
|
+
'cluster_operation_type': 'ClusterOperationType'
|
42
|
+
}
|
43
|
+
|
44
|
+
attribute_map = {
|
45
|
+
'id': 'id',
|
46
|
+
'completed': 'completed',
|
47
|
+
'progress': 'progress',
|
48
|
+
'result': 'result',
|
49
|
+
'cluster_id': 'cluster_id',
|
50
|
+
'cluster_operation_type': 'cluster_operation_type'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, id=None, completed=None, progress=None, result=None, cluster_id=None, cluster_operation_type=None, local_vars_configuration=None): # noqa: E501
|
54
|
+
"""ClusterOperation - 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._id = None
|
60
|
+
self._completed = None
|
61
|
+
self._progress = None
|
62
|
+
self._result = None
|
63
|
+
self._cluster_id = None
|
64
|
+
self._cluster_operation_type = None
|
65
|
+
self.discriminator = None
|
66
|
+
|
67
|
+
self.id = id
|
68
|
+
self.completed = completed
|
69
|
+
if progress is not None:
|
70
|
+
self.progress = progress
|
71
|
+
if result is not None:
|
72
|
+
self.result = result
|
73
|
+
self.cluster_id = cluster_id
|
74
|
+
self.cluster_operation_type = cluster_operation_type
|
75
|
+
|
76
|
+
@property
|
77
|
+
def id(self):
|
78
|
+
"""Gets the id of this ClusterOperation. # noqa: E501
|
79
|
+
|
80
|
+
ID of this operation. # noqa: E501
|
81
|
+
|
82
|
+
:return: The id of this ClusterOperation. # noqa: E501
|
83
|
+
:rtype: str
|
84
|
+
"""
|
85
|
+
return self._id
|
86
|
+
|
87
|
+
@id.setter
|
88
|
+
def id(self, id):
|
89
|
+
"""Sets the id of this ClusterOperation.
|
90
|
+
|
91
|
+
ID of this operation. # noqa: E501
|
92
|
+
|
93
|
+
:param id: The id of this ClusterOperation. # noqa: E501
|
94
|
+
:type: str
|
95
|
+
"""
|
96
|
+
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
97
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
98
|
+
|
99
|
+
self._id = id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def completed(self):
|
103
|
+
"""Gets the completed of this ClusterOperation. # noqa: E501
|
104
|
+
|
105
|
+
Boolean indicating if this operation is completed. # noqa: E501
|
106
|
+
|
107
|
+
:return: The completed of this ClusterOperation. # noqa: E501
|
108
|
+
:rtype: bool
|
109
|
+
"""
|
110
|
+
return self._completed
|
111
|
+
|
112
|
+
@completed.setter
|
113
|
+
def completed(self, completed):
|
114
|
+
"""Sets the completed of this ClusterOperation.
|
115
|
+
|
116
|
+
Boolean indicating if this operation is completed. # noqa: E501
|
117
|
+
|
118
|
+
:param completed: The completed of this ClusterOperation. # noqa: E501
|
119
|
+
:type: bool
|
120
|
+
"""
|
121
|
+
if self.local_vars_configuration.client_side_validation and completed is None: # noqa: E501
|
122
|
+
raise ValueError("Invalid value for `completed`, must not be `None`") # noqa: E501
|
123
|
+
|
124
|
+
self._completed = completed
|
125
|
+
|
126
|
+
@property
|
127
|
+
def progress(self):
|
128
|
+
"""Gets the progress of this ClusterOperation. # noqa: E501
|
129
|
+
|
130
|
+
Details about the progress of this operation at the time of the request. This will be absent for completed operations. # noqa: E501
|
131
|
+
|
132
|
+
:return: The progress of this ClusterOperation. # noqa: E501
|
133
|
+
:rtype: OperationProgress
|
134
|
+
"""
|
135
|
+
return self._progress
|
136
|
+
|
137
|
+
@progress.setter
|
138
|
+
def progress(self, progress):
|
139
|
+
"""Sets the progress of this ClusterOperation.
|
140
|
+
|
141
|
+
Details about the progress of this operation at the time of the request. This will be absent for completed operations. # noqa: E501
|
142
|
+
|
143
|
+
:param progress: The progress of this ClusterOperation. # noqa: E501
|
144
|
+
:type: OperationProgress
|
145
|
+
"""
|
146
|
+
|
147
|
+
self._progress = progress
|
148
|
+
|
149
|
+
@property
|
150
|
+
def result(self):
|
151
|
+
"""Gets the result of this ClusterOperation. # noqa: E501
|
152
|
+
|
153
|
+
The result of this operation after it has completed. This is always provided when the operation is complete. # noqa: E501
|
154
|
+
|
155
|
+
:return: The result of this ClusterOperation. # noqa: E501
|
156
|
+
:rtype: OperationResult
|
157
|
+
"""
|
158
|
+
return self._result
|
159
|
+
|
160
|
+
@result.setter
|
161
|
+
def result(self, result):
|
162
|
+
"""Sets the result of this ClusterOperation.
|
163
|
+
|
164
|
+
The result of this operation after it has completed. This is always provided when the operation is complete. # noqa: E501
|
165
|
+
|
166
|
+
:param result: The result of this ClusterOperation. # noqa: E501
|
167
|
+
:type: OperationResult
|
168
|
+
"""
|
169
|
+
|
170
|
+
self._result = result
|
171
|
+
|
172
|
+
@property
|
173
|
+
def cluster_id(self):
|
174
|
+
"""Gets the cluster_id of this ClusterOperation. # noqa: E501
|
175
|
+
|
176
|
+
ID of the Cluster that is being updated. # noqa: E501
|
177
|
+
|
178
|
+
:return: The cluster_id of this ClusterOperation. # noqa: E501
|
179
|
+
:rtype: str
|
180
|
+
"""
|
181
|
+
return self._cluster_id
|
182
|
+
|
183
|
+
@cluster_id.setter
|
184
|
+
def cluster_id(self, cluster_id):
|
185
|
+
"""Sets the cluster_id of this ClusterOperation.
|
186
|
+
|
187
|
+
ID of the Cluster that is being updated. # noqa: E501
|
188
|
+
|
189
|
+
:param cluster_id: The cluster_id of this ClusterOperation. # noqa: E501
|
190
|
+
:type: str
|
191
|
+
"""
|
192
|
+
if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
|
193
|
+
raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
|
194
|
+
|
195
|
+
self._cluster_id = cluster_id
|
196
|
+
|
197
|
+
@property
|
198
|
+
def cluster_operation_type(self):
|
199
|
+
"""Gets the cluster_operation_type of this ClusterOperation. # noqa: E501
|
200
|
+
|
201
|
+
The variety of operation being performed: start sets the Cluster's goal state to Running, terminate sets the Cluster's goal state to Terminated # noqa: E501
|
202
|
+
|
203
|
+
:return: The cluster_operation_type of this ClusterOperation. # noqa: E501
|
204
|
+
:rtype: ClusterOperationType
|
205
|
+
"""
|
206
|
+
return self._cluster_operation_type
|
207
|
+
|
208
|
+
@cluster_operation_type.setter
|
209
|
+
def cluster_operation_type(self, cluster_operation_type):
|
210
|
+
"""Sets the cluster_operation_type of this ClusterOperation.
|
211
|
+
|
212
|
+
The variety of operation being performed: start sets the Cluster's goal state to Running, terminate sets the Cluster's goal state to Terminated # noqa: E501
|
213
|
+
|
214
|
+
:param cluster_operation_type: The cluster_operation_type of this ClusterOperation. # noqa: E501
|
215
|
+
:type: ClusterOperationType
|
216
|
+
"""
|
217
|
+
if self.local_vars_configuration.client_side_validation and cluster_operation_type is None: # noqa: E501
|
218
|
+
raise ValueError("Invalid value for `cluster_operation_type`, must not be `None`") # noqa: E501
|
219
|
+
|
220
|
+
self._cluster_operation_type = cluster_operation_type
|
221
|
+
|
222
|
+
def to_dict(self):
|
223
|
+
"""Returns the model properties as a dict"""
|
224
|
+
result = {}
|
225
|
+
|
226
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
227
|
+
value = getattr(self, attr)
|
228
|
+
if isinstance(value, list):
|
229
|
+
result[attr] = list(map(
|
230
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
231
|
+
value
|
232
|
+
))
|
233
|
+
elif hasattr(value, "to_dict"):
|
234
|
+
result[attr] = value.to_dict()
|
235
|
+
elif isinstance(value, dict):
|
236
|
+
result[attr] = dict(map(
|
237
|
+
lambda item: (item[0], item[1].to_dict())
|
238
|
+
if hasattr(item[1], "to_dict") else item,
|
239
|
+
value.items()
|
240
|
+
))
|
241
|
+
else:
|
242
|
+
result[attr] = value
|
243
|
+
|
244
|
+
return result
|
245
|
+
|
246
|
+
def to_str(self):
|
247
|
+
"""Returns the string representation of the model"""
|
248
|
+
return pprint.pformat(self.to_dict())
|
249
|
+
|
250
|
+
def __repr__(self):
|
251
|
+
"""For `print` and `pprint`"""
|
252
|
+
return self.to_str()
|
253
|
+
|
254
|
+
def __eq__(self, other):
|
255
|
+
"""Returns true if both objects are equal"""
|
256
|
+
if not isinstance(other, ClusterOperation):
|
257
|
+
return False
|
258
|
+
|
259
|
+
return self.to_dict() == other.to_dict()
|
260
|
+
|
261
|
+
def __ne__(self, other):
|
262
|
+
"""Returns true if both objects are not equal"""
|
263
|
+
if not isinstance(other, ClusterOperation):
|
264
|
+
return True
|
265
|
+
|
266
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,101 @@
|
|
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 ClusterOperationType(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
|
+
START = "start"
|
32
|
+
TERMINATE = "terminate"
|
33
|
+
UNKNOWN = "unknown"
|
34
|
+
|
35
|
+
allowable_values = [START, TERMINATE, UNKNOWN] # noqa: E501
|
36
|
+
|
37
|
+
"""
|
38
|
+
Attributes:
|
39
|
+
openapi_types (dict): The key is attribute name
|
40
|
+
and the value is attribute type.
|
41
|
+
attribute_map (dict): The key is attribute name
|
42
|
+
and the value is json key in definition.
|
43
|
+
"""
|
44
|
+
openapi_types = {
|
45
|
+
}
|
46
|
+
|
47
|
+
attribute_map = {
|
48
|
+
}
|
49
|
+
|
50
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
51
|
+
"""ClusterOperationType - a model defined in OpenAPI""" # noqa: E501
|
52
|
+
if local_vars_configuration is None:
|
53
|
+
local_vars_configuration = Configuration()
|
54
|
+
self.local_vars_configuration = local_vars_configuration
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the model properties as a dict"""
|
59
|
+
result = {}
|
60
|
+
|
61
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
62
|
+
value = getattr(self, attr)
|
63
|
+
if isinstance(value, list):
|
64
|
+
result[attr] = list(map(
|
65
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
66
|
+
value
|
67
|
+
))
|
68
|
+
elif hasattr(value, "to_dict"):
|
69
|
+
result[attr] = value.to_dict()
|
70
|
+
elif isinstance(value, dict):
|
71
|
+
result[attr] = dict(map(
|
72
|
+
lambda item: (item[0], item[1].to_dict())
|
73
|
+
if hasattr(item[1], "to_dict") else item,
|
74
|
+
value.items()
|
75
|
+
))
|
76
|
+
else:
|
77
|
+
result[attr] = value
|
78
|
+
|
79
|
+
return result
|
80
|
+
|
81
|
+
def to_str(self):
|
82
|
+
"""Returns the string representation of the model"""
|
83
|
+
return pprint.pformat(self.to_dict())
|
84
|
+
|
85
|
+
def __repr__(self):
|
86
|
+
"""For `print` and `pprint`"""
|
87
|
+
return self.to_str()
|
88
|
+
|
89
|
+
def __eq__(self, other):
|
90
|
+
"""Returns true if both objects are equal"""
|
91
|
+
if not isinstance(other, ClusterOperationType):
|
92
|
+
return False
|
93
|
+
|
94
|
+
return self.to_dict() == other.to_dict()
|
95
|
+
|
96
|
+
def __ne__(self, other):
|
97
|
+
"""Returns true if both objects are not equal"""
|
98
|
+
if not isinstance(other, ClusterOperationType):
|
99
|
+
return True
|
100
|
+
|
101
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,121 @@
|
|
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 ClusteroperationResponse(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
|
+
'result': 'ClusterOperation'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""ClusteroperationResponse - 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._result = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.result = result
|
53
|
+
|
54
|
+
@property
|
55
|
+
def result(self):
|
56
|
+
"""Gets the result of this ClusteroperationResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this ClusteroperationResponse. # noqa: E501
|
60
|
+
:rtype: ClusterOperation
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this ClusteroperationResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this ClusteroperationResponse. # noqa: E501
|
70
|
+
:type: ClusterOperation
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
def to_dict(self):
|
78
|
+
"""Returns the model properties as a dict"""
|
79
|
+
result = {}
|
80
|
+
|
81
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
+
value = getattr(self, attr)
|
83
|
+
if isinstance(value, list):
|
84
|
+
result[attr] = list(map(
|
85
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
+
value
|
87
|
+
))
|
88
|
+
elif hasattr(value, "to_dict"):
|
89
|
+
result[attr] = value.to_dict()
|
90
|
+
elif isinstance(value, dict):
|
91
|
+
result[attr] = dict(map(
|
92
|
+
lambda item: (item[0], item[1].to_dict())
|
93
|
+
if hasattr(item[1], "to_dict") else item,
|
94
|
+
value.items()
|
95
|
+
))
|
96
|
+
else:
|
97
|
+
result[attr] = value
|
98
|
+
|
99
|
+
return result
|
100
|
+
|
101
|
+
def to_str(self):
|
102
|
+
"""Returns the string representation of the model"""
|
103
|
+
return pprint.pformat(self.to_dict())
|
104
|
+
|
105
|
+
def __repr__(self):
|
106
|
+
"""For `print` and `pprint`"""
|
107
|
+
return self.to_str()
|
108
|
+
|
109
|
+
def __eq__(self, other):
|
110
|
+
"""Returns true if both objects are equal"""
|
111
|
+
if not isinstance(other, ClusteroperationResponse):
|
112
|
+
return False
|
113
|
+
|
114
|
+
return self.to_dict() == other.to_dict()
|
115
|
+
|
116
|
+
def __ne__(self, other):
|
117
|
+
"""Returns true if both objects are not equal"""
|
118
|
+
if not isinstance(other, ClusteroperationResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,207 @@
|
|
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 GetOrCreateBuildFromImageUriRequest(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
|
+
'image_uri': 'str',
|
37
|
+
'ray_version': 'str',
|
38
|
+
'registry_login_secret': 'str',
|
39
|
+
'cluster_env_name': 'str'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'image_uri': 'image_uri',
|
44
|
+
'ray_version': 'ray_version',
|
45
|
+
'registry_login_secret': 'registry_login_secret',
|
46
|
+
'cluster_env_name': 'cluster_env_name'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, image_uri=None, ray_version=None, registry_login_secret=None, cluster_env_name=None, local_vars_configuration=None): # noqa: E501
|
50
|
+
"""GetOrCreateBuildFromImageUriRequest - 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._image_uri = None
|
56
|
+
self._ray_version = None
|
57
|
+
self._registry_login_secret = None
|
58
|
+
self._cluster_env_name = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.image_uri = image_uri
|
62
|
+
if ray_version is not None:
|
63
|
+
self.ray_version = ray_version
|
64
|
+
if registry_login_secret is not None:
|
65
|
+
self.registry_login_secret = registry_login_secret
|
66
|
+
if cluster_env_name is not None:
|
67
|
+
self.cluster_env_name = cluster_env_name
|
68
|
+
|
69
|
+
@property
|
70
|
+
def image_uri(self):
|
71
|
+
"""Gets the image_uri of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
72
|
+
|
73
|
+
The image uri to get or create a build from. # noqa: E501
|
74
|
+
|
75
|
+
:return: The image_uri of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
76
|
+
:rtype: str
|
77
|
+
"""
|
78
|
+
return self._image_uri
|
79
|
+
|
80
|
+
@image_uri.setter
|
81
|
+
def image_uri(self, image_uri):
|
82
|
+
"""Sets the image_uri of this GetOrCreateBuildFromImageUriRequest.
|
83
|
+
|
84
|
+
The image uri to get or create a build from. # noqa: E501
|
85
|
+
|
86
|
+
:param image_uri: The image_uri of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
87
|
+
:type: str
|
88
|
+
"""
|
89
|
+
if self.local_vars_configuration.client_side_validation and image_uri is None: # noqa: E501
|
90
|
+
raise ValueError("Invalid value for `image_uri`, must not be `None`") # noqa: E501
|
91
|
+
|
92
|
+
self._image_uri = image_uri
|
93
|
+
|
94
|
+
@property
|
95
|
+
def ray_version(self):
|
96
|
+
"""Gets the ray_version of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
97
|
+
|
98
|
+
The Ray version to use for the build. # noqa: E501
|
99
|
+
|
100
|
+
:return: The ray_version of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._ray_version
|
104
|
+
|
105
|
+
@ray_version.setter
|
106
|
+
def ray_version(self, ray_version):
|
107
|
+
"""Sets the ray_version of this GetOrCreateBuildFromImageUriRequest.
|
108
|
+
|
109
|
+
The Ray version to use for the build. # noqa: E501
|
110
|
+
|
111
|
+
:param ray_version: The ray_version of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
112
|
+
:type: str
|
113
|
+
"""
|
114
|
+
|
115
|
+
self._ray_version = ray_version
|
116
|
+
|
117
|
+
@property
|
118
|
+
def registry_login_secret(self):
|
119
|
+
"""Gets the registry_login_secret of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
120
|
+
|
121
|
+
The registry login secret to use for the build. # noqa: E501
|
122
|
+
|
123
|
+
:return: The registry_login_secret of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._registry_login_secret
|
127
|
+
|
128
|
+
@registry_login_secret.setter
|
129
|
+
def registry_login_secret(self, registry_login_secret):
|
130
|
+
"""Sets the registry_login_secret of this GetOrCreateBuildFromImageUriRequest.
|
131
|
+
|
132
|
+
The registry login secret to use for the build. # noqa: E501
|
133
|
+
|
134
|
+
:param registry_login_secret: The registry_login_secret of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
135
|
+
:type: str
|
136
|
+
"""
|
137
|
+
|
138
|
+
self._registry_login_secret = registry_login_secret
|
139
|
+
|
140
|
+
@property
|
141
|
+
def cluster_env_name(self):
|
142
|
+
"""Gets the cluster_env_name of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
143
|
+
|
144
|
+
The name of the cluster environment to use for the build. Only used if the image uri is from external registry. # noqa: E501
|
145
|
+
|
146
|
+
:return: The cluster_env_name of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
147
|
+
:rtype: str
|
148
|
+
"""
|
149
|
+
return self._cluster_env_name
|
150
|
+
|
151
|
+
@cluster_env_name.setter
|
152
|
+
def cluster_env_name(self, cluster_env_name):
|
153
|
+
"""Sets the cluster_env_name of this GetOrCreateBuildFromImageUriRequest.
|
154
|
+
|
155
|
+
The name of the cluster environment to use for the build. Only used if the image uri is from external registry. # noqa: E501
|
156
|
+
|
157
|
+
:param cluster_env_name: The cluster_env_name of this GetOrCreateBuildFromImageUriRequest. # noqa: E501
|
158
|
+
:type: str
|
159
|
+
"""
|
160
|
+
|
161
|
+
self._cluster_env_name = cluster_env_name
|
162
|
+
|
163
|
+
def to_dict(self):
|
164
|
+
"""Returns the model properties as a dict"""
|
165
|
+
result = {}
|
166
|
+
|
167
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
168
|
+
value = getattr(self, attr)
|
169
|
+
if isinstance(value, list):
|
170
|
+
result[attr] = list(map(
|
171
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
172
|
+
value
|
173
|
+
))
|
174
|
+
elif hasattr(value, "to_dict"):
|
175
|
+
result[attr] = value.to_dict()
|
176
|
+
elif isinstance(value, dict):
|
177
|
+
result[attr] = dict(map(
|
178
|
+
lambda item: (item[0], item[1].to_dict())
|
179
|
+
if hasattr(item[1], "to_dict") else item,
|
180
|
+
value.items()
|
181
|
+
))
|
182
|
+
else:
|
183
|
+
result[attr] = value
|
184
|
+
|
185
|
+
return result
|
186
|
+
|
187
|
+
def to_str(self):
|
188
|
+
"""Returns the string representation of the model"""
|
189
|
+
return pprint.pformat(self.to_dict())
|
190
|
+
|
191
|
+
def __repr__(self):
|
192
|
+
"""For `print` and `pprint`"""
|
193
|
+
return self.to_str()
|
194
|
+
|
195
|
+
def __eq__(self, other):
|
196
|
+
"""Returns true if both objects are equal"""
|
197
|
+
if not isinstance(other, GetOrCreateBuildFromImageUriRequest):
|
198
|
+
return False
|
199
|
+
|
200
|
+
return self.to_dict() == other.to_dict()
|
201
|
+
|
202
|
+
def __ne__(self, other):
|
203
|
+
"""Returns true if both objects are not equal"""
|
204
|
+
if not isinstance(other, GetOrCreateBuildFromImageUriRequest):
|
205
|
+
return True
|
206
|
+
|
207
|
+
return self.to_dict() != other.to_dict()
|