anyscale 0.26.64__py3-none-any.whl → 0.26.65__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/docgen/__main__.py +23 -4
- anyscale/_private/docgen/generator.py +127 -34
- anyscale/_private/docgen/generator_legacy.py +35 -12
- anyscale/client/README.md +37 -0
- anyscale/client/openapi_client/__init__.py +26 -0
- anyscale/client/openapi_client/api/default_api.py +1423 -97
- anyscale/client/openapi_client/models/__init__.py +26 -0
- anyscale/client/openapi_client/models/connection_type.py +99 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/data_catalog.py +281 -0
- anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
- anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
- anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
- anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
- anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
- anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
- anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
- anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
- anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
- anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
- anyscale/client/openapi_client/models/decorated_session.py +29 -1
- anyscale/client/openapi_client/models/domain_verification.py +181 -0
- anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
- anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
- anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
- anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
- anyscale/client/openapi_client/models/sso_config.py +148 -0
- anyscale/client/openapi_client/models/sso_connection.py +148 -0
- anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
- anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
- anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
- anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
- anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
- anyscale/client/openapi_client/models/validation_status.py +101 -0
- anyscale/commands/cloud_commands.py +310 -206
- anyscale/controllers/cloud_controller.py +174 -240
- anyscale/controllers/cloud_functional_verification_controller.py +6 -3
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/util.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/METADATA +1 -1
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/RECORD +48 -23
- anyscale/commands/cloud_commands_util.py +0 -10
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/WHEEL +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.65.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,346 @@
|
|
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 UpdateWorkspaceTemplate(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
|
+
'name': 'str',
|
37
|
+
'description': 'str',
|
38
|
+
'mins_to_complete': 'int',
|
39
|
+
'icon_type': 'WorkspaceTemplateIconType',
|
40
|
+
'icon_bg_color': 'WorkspaceTemplateIconBackgroundColor',
|
41
|
+
'complexity': 'WorkspaceTemplateComplexity',
|
42
|
+
'category': 'WorkspaceTemplateCategory',
|
43
|
+
'labels': 'list[str]',
|
44
|
+
'published_version_id': 'str'
|
45
|
+
}
|
46
|
+
|
47
|
+
attribute_map = {
|
48
|
+
'name': 'name',
|
49
|
+
'description': 'description',
|
50
|
+
'mins_to_complete': 'mins_to_complete',
|
51
|
+
'icon_type': 'icon_type',
|
52
|
+
'icon_bg_color': 'icon_bg_color',
|
53
|
+
'complexity': 'complexity',
|
54
|
+
'category': 'category',
|
55
|
+
'labels': 'labels',
|
56
|
+
'published_version_id': 'published_version_id'
|
57
|
+
}
|
58
|
+
|
59
|
+
def __init__(self, name=None, description=None, mins_to_complete=None, icon_type=None, icon_bg_color=None, complexity=None, category=None, labels=None, published_version_id=None, local_vars_configuration=None): # noqa: E501
|
60
|
+
"""UpdateWorkspaceTemplate - 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._name = None
|
66
|
+
self._description = None
|
67
|
+
self._mins_to_complete = None
|
68
|
+
self._icon_type = None
|
69
|
+
self._icon_bg_color = None
|
70
|
+
self._complexity = None
|
71
|
+
self._category = None
|
72
|
+
self._labels = None
|
73
|
+
self._published_version_id = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if name is not None:
|
77
|
+
self.name = name
|
78
|
+
if description is not None:
|
79
|
+
self.description = description
|
80
|
+
if mins_to_complete is not None:
|
81
|
+
self.mins_to_complete = mins_to_complete
|
82
|
+
if icon_type is not None:
|
83
|
+
self.icon_type = icon_type
|
84
|
+
if icon_bg_color is not None:
|
85
|
+
self.icon_bg_color = icon_bg_color
|
86
|
+
if complexity is not None:
|
87
|
+
self.complexity = complexity
|
88
|
+
if category is not None:
|
89
|
+
self.category = category
|
90
|
+
if labels is not None:
|
91
|
+
self.labels = labels
|
92
|
+
if published_version_id is not None:
|
93
|
+
self.published_version_id = published_version_id
|
94
|
+
|
95
|
+
@property
|
96
|
+
def name(self):
|
97
|
+
"""Gets the name of this UpdateWorkspaceTemplate. # noqa: E501
|
98
|
+
|
99
|
+
Name of the template # noqa: E501
|
100
|
+
|
101
|
+
:return: The name of this UpdateWorkspaceTemplate. # noqa: E501
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._name
|
105
|
+
|
106
|
+
@name.setter
|
107
|
+
def name(self, name):
|
108
|
+
"""Sets the name of this UpdateWorkspaceTemplate.
|
109
|
+
|
110
|
+
Name of the template # noqa: E501
|
111
|
+
|
112
|
+
:param name: The name of this UpdateWorkspaceTemplate. # noqa: E501
|
113
|
+
:type: str
|
114
|
+
"""
|
115
|
+
|
116
|
+
self._name = name
|
117
|
+
|
118
|
+
@property
|
119
|
+
def description(self):
|
120
|
+
"""Gets the description of this UpdateWorkspaceTemplate. # noqa: E501
|
121
|
+
|
122
|
+
Description of the template # noqa: E501
|
123
|
+
|
124
|
+
:return: The description of this UpdateWorkspaceTemplate. # noqa: E501
|
125
|
+
:rtype: str
|
126
|
+
"""
|
127
|
+
return self._description
|
128
|
+
|
129
|
+
@description.setter
|
130
|
+
def description(self, description):
|
131
|
+
"""Sets the description of this UpdateWorkspaceTemplate.
|
132
|
+
|
133
|
+
Description of the template # noqa: E501
|
134
|
+
|
135
|
+
:param description: The description of this UpdateWorkspaceTemplate. # noqa: E501
|
136
|
+
:type: str
|
137
|
+
"""
|
138
|
+
|
139
|
+
self._description = description
|
140
|
+
|
141
|
+
@property
|
142
|
+
def mins_to_complete(self):
|
143
|
+
"""Gets the mins_to_complete of this UpdateWorkspaceTemplate. # noqa: E501
|
144
|
+
|
145
|
+
Estimated minutes to complete this template # noqa: E501
|
146
|
+
|
147
|
+
:return: The mins_to_complete of this UpdateWorkspaceTemplate. # noqa: E501
|
148
|
+
:rtype: int
|
149
|
+
"""
|
150
|
+
return self._mins_to_complete
|
151
|
+
|
152
|
+
@mins_to_complete.setter
|
153
|
+
def mins_to_complete(self, mins_to_complete):
|
154
|
+
"""Sets the mins_to_complete of this UpdateWorkspaceTemplate.
|
155
|
+
|
156
|
+
Estimated minutes to complete this template # noqa: E501
|
157
|
+
|
158
|
+
:param mins_to_complete: The mins_to_complete of this UpdateWorkspaceTemplate. # noqa: E501
|
159
|
+
:type: int
|
160
|
+
"""
|
161
|
+
|
162
|
+
self._mins_to_complete = mins_to_complete
|
163
|
+
|
164
|
+
@property
|
165
|
+
def icon_type(self):
|
166
|
+
"""Gets the icon_type of this UpdateWorkspaceTemplate. # noqa: E501
|
167
|
+
|
168
|
+
Icon type for the template # noqa: E501
|
169
|
+
|
170
|
+
:return: The icon_type of this UpdateWorkspaceTemplate. # noqa: E501
|
171
|
+
:rtype: WorkspaceTemplateIconType
|
172
|
+
"""
|
173
|
+
return self._icon_type
|
174
|
+
|
175
|
+
@icon_type.setter
|
176
|
+
def icon_type(self, icon_type):
|
177
|
+
"""Sets the icon_type of this UpdateWorkspaceTemplate.
|
178
|
+
|
179
|
+
Icon type for the template # noqa: E501
|
180
|
+
|
181
|
+
:param icon_type: The icon_type of this UpdateWorkspaceTemplate. # noqa: E501
|
182
|
+
:type: WorkspaceTemplateIconType
|
183
|
+
"""
|
184
|
+
|
185
|
+
self._icon_type = icon_type
|
186
|
+
|
187
|
+
@property
|
188
|
+
def icon_bg_color(self):
|
189
|
+
"""Gets the icon_bg_color of this UpdateWorkspaceTemplate. # noqa: E501
|
190
|
+
|
191
|
+
Background color for the icon # noqa: E501
|
192
|
+
|
193
|
+
:return: The icon_bg_color of this UpdateWorkspaceTemplate. # noqa: E501
|
194
|
+
:rtype: WorkspaceTemplateIconBackgroundColor
|
195
|
+
"""
|
196
|
+
return self._icon_bg_color
|
197
|
+
|
198
|
+
@icon_bg_color.setter
|
199
|
+
def icon_bg_color(self, icon_bg_color):
|
200
|
+
"""Sets the icon_bg_color of this UpdateWorkspaceTemplate.
|
201
|
+
|
202
|
+
Background color for the icon # noqa: E501
|
203
|
+
|
204
|
+
:param icon_bg_color: The icon_bg_color of this UpdateWorkspaceTemplate. # noqa: E501
|
205
|
+
:type: WorkspaceTemplateIconBackgroundColor
|
206
|
+
"""
|
207
|
+
|
208
|
+
self._icon_bg_color = icon_bg_color
|
209
|
+
|
210
|
+
@property
|
211
|
+
def complexity(self):
|
212
|
+
"""Gets the complexity of this UpdateWorkspaceTemplate. # noqa: E501
|
213
|
+
|
214
|
+
Complexity level of the template # noqa: E501
|
215
|
+
|
216
|
+
:return: The complexity of this UpdateWorkspaceTemplate. # noqa: E501
|
217
|
+
:rtype: WorkspaceTemplateComplexity
|
218
|
+
"""
|
219
|
+
return self._complexity
|
220
|
+
|
221
|
+
@complexity.setter
|
222
|
+
def complexity(self, complexity):
|
223
|
+
"""Sets the complexity of this UpdateWorkspaceTemplate.
|
224
|
+
|
225
|
+
Complexity level of the template # noqa: E501
|
226
|
+
|
227
|
+
:param complexity: The complexity of this UpdateWorkspaceTemplate. # noqa: E501
|
228
|
+
:type: WorkspaceTemplateComplexity
|
229
|
+
"""
|
230
|
+
|
231
|
+
self._complexity = complexity
|
232
|
+
|
233
|
+
@property
|
234
|
+
def category(self):
|
235
|
+
"""Gets the category of this UpdateWorkspaceTemplate. # noqa: E501
|
236
|
+
|
237
|
+
Category of the template # noqa: E501
|
238
|
+
|
239
|
+
:return: The category of this UpdateWorkspaceTemplate. # noqa: E501
|
240
|
+
:rtype: WorkspaceTemplateCategory
|
241
|
+
"""
|
242
|
+
return self._category
|
243
|
+
|
244
|
+
@category.setter
|
245
|
+
def category(self, category):
|
246
|
+
"""Sets the category of this UpdateWorkspaceTemplate.
|
247
|
+
|
248
|
+
Category of the template # noqa: E501
|
249
|
+
|
250
|
+
:param category: The category of this UpdateWorkspaceTemplate. # noqa: E501
|
251
|
+
:type: WorkspaceTemplateCategory
|
252
|
+
"""
|
253
|
+
|
254
|
+
self._category = category
|
255
|
+
|
256
|
+
@property
|
257
|
+
def labels(self):
|
258
|
+
"""Gets the labels of this UpdateWorkspaceTemplate. # noqa: E501
|
259
|
+
|
260
|
+
Searchable labels for the template # noqa: E501
|
261
|
+
|
262
|
+
:return: The labels of this UpdateWorkspaceTemplate. # noqa: E501
|
263
|
+
:rtype: list[str]
|
264
|
+
"""
|
265
|
+
return self._labels
|
266
|
+
|
267
|
+
@labels.setter
|
268
|
+
def labels(self, labels):
|
269
|
+
"""Sets the labels of this UpdateWorkspaceTemplate.
|
270
|
+
|
271
|
+
Searchable labels for the template # noqa: E501
|
272
|
+
|
273
|
+
:param labels: The labels of this UpdateWorkspaceTemplate. # noqa: E501
|
274
|
+
:type: list[str]
|
275
|
+
"""
|
276
|
+
|
277
|
+
self._labels = labels
|
278
|
+
|
279
|
+
@property
|
280
|
+
def published_version_id(self):
|
281
|
+
"""Gets the published_version_id of this UpdateWorkspaceTemplate. # noqa: E501
|
282
|
+
|
283
|
+
ID of the published version # noqa: E501
|
284
|
+
|
285
|
+
:return: The published_version_id of this UpdateWorkspaceTemplate. # noqa: E501
|
286
|
+
:rtype: str
|
287
|
+
"""
|
288
|
+
return self._published_version_id
|
289
|
+
|
290
|
+
@published_version_id.setter
|
291
|
+
def published_version_id(self, published_version_id):
|
292
|
+
"""Sets the published_version_id of this UpdateWorkspaceTemplate.
|
293
|
+
|
294
|
+
ID of the published version # noqa: E501
|
295
|
+
|
296
|
+
:param published_version_id: The published_version_id of this UpdateWorkspaceTemplate. # noqa: E501
|
297
|
+
:type: str
|
298
|
+
"""
|
299
|
+
|
300
|
+
self._published_version_id = published_version_id
|
301
|
+
|
302
|
+
def to_dict(self):
|
303
|
+
"""Returns the model properties as a dict"""
|
304
|
+
result = {}
|
305
|
+
|
306
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
307
|
+
value = getattr(self, attr)
|
308
|
+
if isinstance(value, list):
|
309
|
+
result[attr] = list(map(
|
310
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
311
|
+
value
|
312
|
+
))
|
313
|
+
elif hasattr(value, "to_dict"):
|
314
|
+
result[attr] = value.to_dict()
|
315
|
+
elif isinstance(value, dict):
|
316
|
+
result[attr] = dict(map(
|
317
|
+
lambda item: (item[0], item[1].to_dict())
|
318
|
+
if hasattr(item[1], "to_dict") else item,
|
319
|
+
value.items()
|
320
|
+
))
|
321
|
+
else:
|
322
|
+
result[attr] = value
|
323
|
+
|
324
|
+
return result
|
325
|
+
|
326
|
+
def to_str(self):
|
327
|
+
"""Returns the string representation of the model"""
|
328
|
+
return pprint.pformat(self.to_dict())
|
329
|
+
|
330
|
+
def __repr__(self):
|
331
|
+
"""For `print` and `pprint`"""
|
332
|
+
return self.to_str()
|
333
|
+
|
334
|
+
def __eq__(self, other):
|
335
|
+
"""Returns true if both objects are equal"""
|
336
|
+
if not isinstance(other, UpdateWorkspaceTemplate):
|
337
|
+
return False
|
338
|
+
|
339
|
+
return self.to_dict() == other.to_dict()
|
340
|
+
|
341
|
+
def __ne__(self, other):
|
342
|
+
"""Returns true if both objects are not equal"""
|
343
|
+
if not isinstance(other, UpdateWorkspaceTemplate):
|
344
|
+
return True
|
345
|
+
|
346
|
+
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 UsageByClusterType(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
|
+
'anyscale_credits': 'float',
|
37
|
+
'date': 'date',
|
38
|
+
'cluster_type': 'str'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'anyscale_credits': 'anyscale_credits',
|
43
|
+
'date': 'date',
|
44
|
+
'cluster_type': 'cluster_type'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, anyscale_credits=None, date=None, cluster_type=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""UsageByClusterType - 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._anyscale_credits = None
|
54
|
+
self._date = None
|
55
|
+
self._cluster_type = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
self.anyscale_credits = anyscale_credits
|
59
|
+
if date is not None:
|
60
|
+
self.date = date
|
61
|
+
self.cluster_type = cluster_type
|
62
|
+
|
63
|
+
@property
|
64
|
+
def anyscale_credits(self):
|
65
|
+
"""Gets the anyscale_credits of this UsageByClusterType. # noqa: E501
|
66
|
+
|
67
|
+
|
68
|
+
:return: The anyscale_credits of this UsageByClusterType. # noqa: E501
|
69
|
+
:rtype: float
|
70
|
+
"""
|
71
|
+
return self._anyscale_credits
|
72
|
+
|
73
|
+
@anyscale_credits.setter
|
74
|
+
def anyscale_credits(self, anyscale_credits):
|
75
|
+
"""Sets the anyscale_credits of this UsageByClusterType.
|
76
|
+
|
77
|
+
|
78
|
+
:param anyscale_credits: The anyscale_credits of this UsageByClusterType. # noqa: E501
|
79
|
+
:type: float
|
80
|
+
"""
|
81
|
+
if self.local_vars_configuration.client_side_validation and anyscale_credits is None: # noqa: E501
|
82
|
+
raise ValueError("Invalid value for `anyscale_credits`, must not be `None`") # noqa: E501
|
83
|
+
|
84
|
+
self._anyscale_credits = anyscale_credits
|
85
|
+
|
86
|
+
@property
|
87
|
+
def date(self):
|
88
|
+
"""Gets the date of this UsageByClusterType. # noqa: E501
|
89
|
+
|
90
|
+
|
91
|
+
:return: The date of this UsageByClusterType. # noqa: E501
|
92
|
+
:rtype: date
|
93
|
+
"""
|
94
|
+
return self._date
|
95
|
+
|
96
|
+
@date.setter
|
97
|
+
def date(self, date):
|
98
|
+
"""Sets the date of this UsageByClusterType.
|
99
|
+
|
100
|
+
|
101
|
+
:param date: The date of this UsageByClusterType. # noqa: E501
|
102
|
+
:type: date
|
103
|
+
"""
|
104
|
+
|
105
|
+
self._date = date
|
106
|
+
|
107
|
+
@property
|
108
|
+
def cluster_type(self):
|
109
|
+
"""Gets the cluster_type of this UsageByClusterType. # noqa: E501
|
110
|
+
|
111
|
+
|
112
|
+
:return: The cluster_type of this UsageByClusterType. # noqa: E501
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._cluster_type
|
116
|
+
|
117
|
+
@cluster_type.setter
|
118
|
+
def cluster_type(self, cluster_type):
|
119
|
+
"""Sets the cluster_type of this UsageByClusterType.
|
120
|
+
|
121
|
+
|
122
|
+
:param cluster_type: The cluster_type of this UsageByClusterType. # noqa: E501
|
123
|
+
:type: str
|
124
|
+
"""
|
125
|
+
if self.local_vars_configuration.client_side_validation and cluster_type is None: # noqa: E501
|
126
|
+
raise ValueError("Invalid value for `cluster_type`, must not be `None`") # noqa: E501
|
127
|
+
|
128
|
+
self._cluster_type = cluster_type
|
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, UsageByClusterType):
|
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, UsageByClusterType):
|
172
|
+
return True
|
173
|
+
|
174
|
+
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 UsagebyclustertypeListResponse(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[UsageByClusterType]',
|
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
|
+
"""UsagebyclustertypeListResponse - 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 UsagebyclustertypeListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this UsagebyclustertypeListResponse. # noqa: E501
|
65
|
+
:rtype: list[UsageByClusterType]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this UsagebyclustertypeListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this UsagebyclustertypeListResponse. # noqa: E501
|
75
|
+
:type: list[UsageByClusterType]
|
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 UsagebyclustertypeListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this UsagebyclustertypeListResponse. # 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 UsagebyclustertypeListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this UsagebyclustertypeListResponse. # 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, UsagebyclustertypeListResponse):
|
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, UsagebyclustertypeListResponse):
|
145
|
+
return True
|
146
|
+
|
147
|
+
return self.to_dict() != other.to_dict()
|