anyscale 0.26.32__py3-none-any.whl → 0.26.33__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/api.py +22 -0
- anyscale/aws_iam_policies.py +0 -3
- anyscale/client/README.md +15 -1
- anyscale/client/openapi_client/__init__.py +11 -0
- anyscale/client/openapi_client/api/default_api.py +454 -114
- anyscale/client/openapi_client/models/__init__.py +11 -0
- anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
- anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
- anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
- anyscale/client/openapi_client/models/complexity_level.py +101 -0
- anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
- anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
- anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
- anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
- anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
- anyscale/client/openapi_client/models/credit_type.py +100 -0
- anyscale/client/openapi_client/models/credits_v2.py +355 -0
- anyscale/client/openapi_client/models/workspace_template.py +115 -3
- anyscale/client/openapi_client/models/workspace_template_readme.py +59 -3
- anyscale/commands/list_util.py +100 -38
- anyscale/integrations.py +0 -20
- anyscale/scripts.py +1 -0
- anyscale/shared_anyscale_utils/headers.py +4 -0
- anyscale/telemetry.py +424 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/METADATA +1 -1
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/RECORD +32 -20
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/LICENSE +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/NOTICE +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/WHEEL +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,355 @@
|
|
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 CreditsV2(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
|
+
'in_use_credits': 'list[CreditRecordCreditV2]',
|
37
|
+
'pending_credits': 'list[CreditRecordCreditV2]',
|
38
|
+
'expired_credits': 'list[CreditRecordCreditV2]',
|
39
|
+
'in_use_commits': 'list[CreditRecordCommitV2]',
|
40
|
+
'pending_commits': 'list[CreditRecordCommitV2]',
|
41
|
+
'expired_commits': 'list[CreditRecordCommitV2]',
|
42
|
+
'current_balance_usd': 'float',
|
43
|
+
'amount_spent_usd': 'float',
|
44
|
+
'total_granted_usd': 'float'
|
45
|
+
}
|
46
|
+
|
47
|
+
attribute_map = {
|
48
|
+
'in_use_credits': 'in_use_credits',
|
49
|
+
'pending_credits': 'pending_credits',
|
50
|
+
'expired_credits': 'expired_credits',
|
51
|
+
'in_use_commits': 'in_use_commits',
|
52
|
+
'pending_commits': 'pending_commits',
|
53
|
+
'expired_commits': 'expired_commits',
|
54
|
+
'current_balance_usd': 'current_balance_usd',
|
55
|
+
'amount_spent_usd': 'amount_spent_usd',
|
56
|
+
'total_granted_usd': 'total_granted_usd'
|
57
|
+
}
|
58
|
+
|
59
|
+
def __init__(self, in_use_credits=None, pending_credits=None, expired_credits=None, in_use_commits=None, pending_commits=None, expired_commits=None, current_balance_usd=None, amount_spent_usd=None, total_granted_usd=None, local_vars_configuration=None): # noqa: E501
|
60
|
+
"""CreditsV2 - 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._in_use_credits = None
|
66
|
+
self._pending_credits = None
|
67
|
+
self._expired_credits = None
|
68
|
+
self._in_use_commits = None
|
69
|
+
self._pending_commits = None
|
70
|
+
self._expired_commits = None
|
71
|
+
self._current_balance_usd = None
|
72
|
+
self._amount_spent_usd = None
|
73
|
+
self._total_granted_usd = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.in_use_credits = in_use_credits
|
77
|
+
self.pending_credits = pending_credits
|
78
|
+
self.expired_credits = expired_credits
|
79
|
+
self.in_use_commits = in_use_commits
|
80
|
+
self.pending_commits = pending_commits
|
81
|
+
self.expired_commits = expired_commits
|
82
|
+
self.current_balance_usd = current_balance_usd
|
83
|
+
self.amount_spent_usd = amount_spent_usd
|
84
|
+
self.total_granted_usd = total_granted_usd
|
85
|
+
|
86
|
+
@property
|
87
|
+
def in_use_credits(self):
|
88
|
+
"""Gets the in_use_credits of this CreditsV2. # noqa: E501
|
89
|
+
|
90
|
+
List of in-use credits. # noqa: E501
|
91
|
+
|
92
|
+
:return: The in_use_credits of this CreditsV2. # noqa: E501
|
93
|
+
:rtype: list[CreditRecordCreditV2]
|
94
|
+
"""
|
95
|
+
return self._in_use_credits
|
96
|
+
|
97
|
+
@in_use_credits.setter
|
98
|
+
def in_use_credits(self, in_use_credits):
|
99
|
+
"""Sets the in_use_credits of this CreditsV2.
|
100
|
+
|
101
|
+
List of in-use credits. # noqa: E501
|
102
|
+
|
103
|
+
:param in_use_credits: The in_use_credits of this CreditsV2. # noqa: E501
|
104
|
+
:type: list[CreditRecordCreditV2]
|
105
|
+
"""
|
106
|
+
if self.local_vars_configuration.client_side_validation and in_use_credits is None: # noqa: E501
|
107
|
+
raise ValueError("Invalid value for `in_use_credits`, must not be `None`") # noqa: E501
|
108
|
+
|
109
|
+
self._in_use_credits = in_use_credits
|
110
|
+
|
111
|
+
@property
|
112
|
+
def pending_credits(self):
|
113
|
+
"""Gets the pending_credits of this CreditsV2. # noqa: E501
|
114
|
+
|
115
|
+
List of pending credits. # noqa: E501
|
116
|
+
|
117
|
+
:return: The pending_credits of this CreditsV2. # noqa: E501
|
118
|
+
:rtype: list[CreditRecordCreditV2]
|
119
|
+
"""
|
120
|
+
return self._pending_credits
|
121
|
+
|
122
|
+
@pending_credits.setter
|
123
|
+
def pending_credits(self, pending_credits):
|
124
|
+
"""Sets the pending_credits of this CreditsV2.
|
125
|
+
|
126
|
+
List of pending credits. # noqa: E501
|
127
|
+
|
128
|
+
:param pending_credits: The pending_credits of this CreditsV2. # noqa: E501
|
129
|
+
:type: list[CreditRecordCreditV2]
|
130
|
+
"""
|
131
|
+
if self.local_vars_configuration.client_side_validation and pending_credits is None: # noqa: E501
|
132
|
+
raise ValueError("Invalid value for `pending_credits`, must not be `None`") # noqa: E501
|
133
|
+
|
134
|
+
self._pending_credits = pending_credits
|
135
|
+
|
136
|
+
@property
|
137
|
+
def expired_credits(self):
|
138
|
+
"""Gets the expired_credits of this CreditsV2. # noqa: E501
|
139
|
+
|
140
|
+
List of expired credits. # noqa: E501
|
141
|
+
|
142
|
+
:return: The expired_credits of this CreditsV2. # noqa: E501
|
143
|
+
:rtype: list[CreditRecordCreditV2]
|
144
|
+
"""
|
145
|
+
return self._expired_credits
|
146
|
+
|
147
|
+
@expired_credits.setter
|
148
|
+
def expired_credits(self, expired_credits):
|
149
|
+
"""Sets the expired_credits of this CreditsV2.
|
150
|
+
|
151
|
+
List of expired credits. # noqa: E501
|
152
|
+
|
153
|
+
:param expired_credits: The expired_credits of this CreditsV2. # noqa: E501
|
154
|
+
:type: list[CreditRecordCreditV2]
|
155
|
+
"""
|
156
|
+
if self.local_vars_configuration.client_side_validation and expired_credits is None: # noqa: E501
|
157
|
+
raise ValueError("Invalid value for `expired_credits`, must not be `None`") # noqa: E501
|
158
|
+
|
159
|
+
self._expired_credits = expired_credits
|
160
|
+
|
161
|
+
@property
|
162
|
+
def in_use_commits(self):
|
163
|
+
"""Gets the in_use_commits of this CreditsV2. # noqa: E501
|
164
|
+
|
165
|
+
List of in-use commits. # noqa: E501
|
166
|
+
|
167
|
+
:return: The in_use_commits of this CreditsV2. # noqa: E501
|
168
|
+
:rtype: list[CreditRecordCommitV2]
|
169
|
+
"""
|
170
|
+
return self._in_use_commits
|
171
|
+
|
172
|
+
@in_use_commits.setter
|
173
|
+
def in_use_commits(self, in_use_commits):
|
174
|
+
"""Sets the in_use_commits of this CreditsV2.
|
175
|
+
|
176
|
+
List of in-use commits. # noqa: E501
|
177
|
+
|
178
|
+
:param in_use_commits: The in_use_commits of this CreditsV2. # noqa: E501
|
179
|
+
:type: list[CreditRecordCommitV2]
|
180
|
+
"""
|
181
|
+
if self.local_vars_configuration.client_side_validation and in_use_commits is None: # noqa: E501
|
182
|
+
raise ValueError("Invalid value for `in_use_commits`, must not be `None`") # noqa: E501
|
183
|
+
|
184
|
+
self._in_use_commits = in_use_commits
|
185
|
+
|
186
|
+
@property
|
187
|
+
def pending_commits(self):
|
188
|
+
"""Gets the pending_commits of this CreditsV2. # noqa: E501
|
189
|
+
|
190
|
+
List of pending commits. # noqa: E501
|
191
|
+
|
192
|
+
:return: The pending_commits of this CreditsV2. # noqa: E501
|
193
|
+
:rtype: list[CreditRecordCommitV2]
|
194
|
+
"""
|
195
|
+
return self._pending_commits
|
196
|
+
|
197
|
+
@pending_commits.setter
|
198
|
+
def pending_commits(self, pending_commits):
|
199
|
+
"""Sets the pending_commits of this CreditsV2.
|
200
|
+
|
201
|
+
List of pending commits. # noqa: E501
|
202
|
+
|
203
|
+
:param pending_commits: The pending_commits of this CreditsV2. # noqa: E501
|
204
|
+
:type: list[CreditRecordCommitV2]
|
205
|
+
"""
|
206
|
+
if self.local_vars_configuration.client_side_validation and pending_commits is None: # noqa: E501
|
207
|
+
raise ValueError("Invalid value for `pending_commits`, must not be `None`") # noqa: E501
|
208
|
+
|
209
|
+
self._pending_commits = pending_commits
|
210
|
+
|
211
|
+
@property
|
212
|
+
def expired_commits(self):
|
213
|
+
"""Gets the expired_commits of this CreditsV2. # noqa: E501
|
214
|
+
|
215
|
+
List of expired commits. # noqa: E501
|
216
|
+
|
217
|
+
:return: The expired_commits of this CreditsV2. # noqa: E501
|
218
|
+
:rtype: list[CreditRecordCommitV2]
|
219
|
+
"""
|
220
|
+
return self._expired_commits
|
221
|
+
|
222
|
+
@expired_commits.setter
|
223
|
+
def expired_commits(self, expired_commits):
|
224
|
+
"""Sets the expired_commits of this CreditsV2.
|
225
|
+
|
226
|
+
List of expired commits. # noqa: E501
|
227
|
+
|
228
|
+
:param expired_commits: The expired_commits of this CreditsV2. # noqa: E501
|
229
|
+
:type: list[CreditRecordCommitV2]
|
230
|
+
"""
|
231
|
+
if self.local_vars_configuration.client_side_validation and expired_commits is None: # noqa: E501
|
232
|
+
raise ValueError("Invalid value for `expired_commits`, must not be `None`") # noqa: E501
|
233
|
+
|
234
|
+
self._expired_commits = expired_commits
|
235
|
+
|
236
|
+
@property
|
237
|
+
def current_balance_usd(self):
|
238
|
+
"""Gets the current_balance_usd of this CreditsV2. # noqa: E501
|
239
|
+
|
240
|
+
Summary of current balance of all credits and commits. # noqa: E501
|
241
|
+
|
242
|
+
:return: The current_balance_usd of this CreditsV2. # noqa: E501
|
243
|
+
:rtype: float
|
244
|
+
"""
|
245
|
+
return self._current_balance_usd
|
246
|
+
|
247
|
+
@current_balance_usd.setter
|
248
|
+
def current_balance_usd(self, current_balance_usd):
|
249
|
+
"""Sets the current_balance_usd of this CreditsV2.
|
250
|
+
|
251
|
+
Summary of current balance of all credits and commits. # noqa: E501
|
252
|
+
|
253
|
+
:param current_balance_usd: The current_balance_usd of this CreditsV2. # noqa: E501
|
254
|
+
:type: float
|
255
|
+
"""
|
256
|
+
if self.local_vars_configuration.client_side_validation and current_balance_usd is None: # noqa: E501
|
257
|
+
raise ValueError("Invalid value for `current_balance_usd`, must not be `None`") # noqa: E501
|
258
|
+
|
259
|
+
self._current_balance_usd = current_balance_usd
|
260
|
+
|
261
|
+
@property
|
262
|
+
def amount_spent_usd(self):
|
263
|
+
"""Gets the amount_spent_usd of this CreditsV2. # noqa: E501
|
264
|
+
|
265
|
+
Summary of total amount spent across all credits and commits. # noqa: E501
|
266
|
+
|
267
|
+
:return: The amount_spent_usd of this CreditsV2. # noqa: E501
|
268
|
+
:rtype: float
|
269
|
+
"""
|
270
|
+
return self._amount_spent_usd
|
271
|
+
|
272
|
+
@amount_spent_usd.setter
|
273
|
+
def amount_spent_usd(self, amount_spent_usd):
|
274
|
+
"""Sets the amount_spent_usd of this CreditsV2.
|
275
|
+
|
276
|
+
Summary of total amount spent across all credits and commits. # noqa: E501
|
277
|
+
|
278
|
+
:param amount_spent_usd: The amount_spent_usd of this CreditsV2. # noqa: E501
|
279
|
+
:type: float
|
280
|
+
"""
|
281
|
+
if self.local_vars_configuration.client_side_validation and amount_spent_usd is None: # noqa: E501
|
282
|
+
raise ValueError("Invalid value for `amount_spent_usd`, must not be `None`") # noqa: E501
|
283
|
+
|
284
|
+
self._amount_spent_usd = amount_spent_usd
|
285
|
+
|
286
|
+
@property
|
287
|
+
def total_granted_usd(self):
|
288
|
+
"""Gets the total_granted_usd of this CreditsV2. # noqa: E501
|
289
|
+
|
290
|
+
Summary of total granted across all credits and commits. # noqa: E501
|
291
|
+
|
292
|
+
:return: The total_granted_usd of this CreditsV2. # noqa: E501
|
293
|
+
:rtype: float
|
294
|
+
"""
|
295
|
+
return self._total_granted_usd
|
296
|
+
|
297
|
+
@total_granted_usd.setter
|
298
|
+
def total_granted_usd(self, total_granted_usd):
|
299
|
+
"""Sets the total_granted_usd of this CreditsV2.
|
300
|
+
|
301
|
+
Summary of total granted across all credits and commits. # noqa: E501
|
302
|
+
|
303
|
+
:param total_granted_usd: The total_granted_usd of this CreditsV2. # noqa: E501
|
304
|
+
:type: float
|
305
|
+
"""
|
306
|
+
if self.local_vars_configuration.client_side_validation and total_granted_usd is None: # noqa: E501
|
307
|
+
raise ValueError("Invalid value for `total_granted_usd`, must not be `None`") # noqa: E501
|
308
|
+
|
309
|
+
self._total_granted_usd = total_granted_usd
|
310
|
+
|
311
|
+
def to_dict(self):
|
312
|
+
"""Returns the model properties as a dict"""
|
313
|
+
result = {}
|
314
|
+
|
315
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
316
|
+
value = getattr(self, attr)
|
317
|
+
if isinstance(value, list):
|
318
|
+
result[attr] = list(map(
|
319
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
320
|
+
value
|
321
|
+
))
|
322
|
+
elif hasattr(value, "to_dict"):
|
323
|
+
result[attr] = value.to_dict()
|
324
|
+
elif isinstance(value, dict):
|
325
|
+
result[attr] = dict(map(
|
326
|
+
lambda item: (item[0], item[1].to_dict())
|
327
|
+
if hasattr(item[1], "to_dict") else item,
|
328
|
+
value.items()
|
329
|
+
))
|
330
|
+
else:
|
331
|
+
result[attr] = value
|
332
|
+
|
333
|
+
return result
|
334
|
+
|
335
|
+
def to_str(self):
|
336
|
+
"""Returns the string representation of the model"""
|
337
|
+
return pprint.pformat(self.to_dict())
|
338
|
+
|
339
|
+
def __repr__(self):
|
340
|
+
"""For `print` and `pprint`"""
|
341
|
+
return self.to_str()
|
342
|
+
|
343
|
+
def __eq__(self, other):
|
344
|
+
"""Returns true if both objects are equal"""
|
345
|
+
if not isinstance(other, CreditsV2):
|
346
|
+
return False
|
347
|
+
|
348
|
+
return self.to_dict() == other.to_dict()
|
349
|
+
|
350
|
+
def __ne__(self, other):
|
351
|
+
"""Returns true if both objects are not equal"""
|
352
|
+
if not isinstance(other, CreditsV2):
|
353
|
+
return True
|
354
|
+
|
355
|
+
return self.to_dict() != other.to_dict()
|
@@ -41,7 +41,11 @@ class WorkspaceTemplate(object):
|
|
41
41
|
'url': 'str',
|
42
42
|
'maximum_uptime_minutes': 'int',
|
43
43
|
'logo_ids': 'list[str]',
|
44
|
-
'oa_group_name': 'str'
|
44
|
+
'oa_group_name': 'str',
|
45
|
+
'icon_type': 'str',
|
46
|
+
'icon_bg_color': 'str',
|
47
|
+
'mins_to_complete': 'int',
|
48
|
+
'complexity': 'ComplexityLevel'
|
45
49
|
}
|
46
50
|
|
47
51
|
attribute_map = {
|
@@ -53,10 +57,14 @@ class WorkspaceTemplate(object):
|
|
53
57
|
'url': 'url',
|
54
58
|
'maximum_uptime_minutes': 'maximum_uptime_minutes',
|
55
59
|
'logo_ids': 'logo_ids',
|
56
|
-
'oa_group_name': 'oa_group_name'
|
60
|
+
'oa_group_name': 'oa_group_name',
|
61
|
+
'icon_type': 'icon_type',
|
62
|
+
'icon_bg_color': 'icon_bg_color',
|
63
|
+
'mins_to_complete': 'mins_to_complete',
|
64
|
+
'complexity': 'complexity'
|
57
65
|
}
|
58
66
|
|
59
|
-
def __init__(self, id=None, title=None, description=None, emoji=None, labels=None, url=None, maximum_uptime_minutes=None, logo_ids=None, oa_group_name=None, local_vars_configuration=None): # noqa: E501
|
67
|
+
def __init__(self, id=None, title=None, description=None, emoji=None, labels=None, url=None, maximum_uptime_minutes=None, logo_ids=None, oa_group_name=None, icon_type=None, icon_bg_color=None, mins_to_complete=None, complexity=None, local_vars_configuration=None): # noqa: E501
|
60
68
|
"""WorkspaceTemplate - a model defined in OpenAPI""" # noqa: E501
|
61
69
|
if local_vars_configuration is None:
|
62
70
|
local_vars_configuration = Configuration()
|
@@ -71,6 +79,10 @@ class WorkspaceTemplate(object):
|
|
71
79
|
self._maximum_uptime_minutes = None
|
72
80
|
self._logo_ids = None
|
73
81
|
self._oa_group_name = None
|
82
|
+
self._icon_type = None
|
83
|
+
self._icon_bg_color = None
|
84
|
+
self._mins_to_complete = None
|
85
|
+
self._complexity = None
|
74
86
|
self.discriminator = None
|
75
87
|
|
76
88
|
self.id = id
|
@@ -84,6 +96,14 @@ class WorkspaceTemplate(object):
|
|
84
96
|
self.logo_ids = logo_ids
|
85
97
|
if oa_group_name is not None:
|
86
98
|
self.oa_group_name = oa_group_name
|
99
|
+
if icon_type is not None:
|
100
|
+
self.icon_type = icon_type
|
101
|
+
if icon_bg_color is not None:
|
102
|
+
self.icon_bg_color = icon_bg_color
|
103
|
+
if mins_to_complete is not None:
|
104
|
+
self.mins_to_complete = mins_to_complete
|
105
|
+
if complexity is not None:
|
106
|
+
self.complexity = complexity
|
87
107
|
|
88
108
|
@property
|
89
109
|
def id(self):
|
@@ -306,6 +326,98 @@ class WorkspaceTemplate(object):
|
|
306
326
|
|
307
327
|
self._oa_group_name = oa_group_name
|
308
328
|
|
329
|
+
@property
|
330
|
+
def icon_type(self):
|
331
|
+
"""Gets the icon_type of this WorkspaceTemplate. # noqa: E501
|
332
|
+
|
333
|
+
The type of the icon for the workspace template # noqa: E501
|
334
|
+
|
335
|
+
:return: The icon_type of this WorkspaceTemplate. # noqa: E501
|
336
|
+
:rtype: str
|
337
|
+
"""
|
338
|
+
return self._icon_type
|
339
|
+
|
340
|
+
@icon_type.setter
|
341
|
+
def icon_type(self, icon_type):
|
342
|
+
"""Sets the icon_type of this WorkspaceTemplate.
|
343
|
+
|
344
|
+
The type of the icon for the workspace template # noqa: E501
|
345
|
+
|
346
|
+
:param icon_type: The icon_type of this WorkspaceTemplate. # noqa: E501
|
347
|
+
:type: str
|
348
|
+
"""
|
349
|
+
|
350
|
+
self._icon_type = icon_type
|
351
|
+
|
352
|
+
@property
|
353
|
+
def icon_bg_color(self):
|
354
|
+
"""Gets the icon_bg_color of this WorkspaceTemplate. # noqa: E501
|
355
|
+
|
356
|
+
The background color of the icon for the workspace template # noqa: E501
|
357
|
+
|
358
|
+
:return: The icon_bg_color of this WorkspaceTemplate. # noqa: E501
|
359
|
+
:rtype: str
|
360
|
+
"""
|
361
|
+
return self._icon_bg_color
|
362
|
+
|
363
|
+
@icon_bg_color.setter
|
364
|
+
def icon_bg_color(self, icon_bg_color):
|
365
|
+
"""Sets the icon_bg_color of this WorkspaceTemplate.
|
366
|
+
|
367
|
+
The background color of the icon for the workspace template # noqa: E501
|
368
|
+
|
369
|
+
:param icon_bg_color: The icon_bg_color of this WorkspaceTemplate. # noqa: E501
|
370
|
+
:type: str
|
371
|
+
"""
|
372
|
+
|
373
|
+
self._icon_bg_color = icon_bg_color
|
374
|
+
|
375
|
+
@property
|
376
|
+
def mins_to_complete(self):
|
377
|
+
"""Gets the mins_to_complete of this WorkspaceTemplate. # noqa: E501
|
378
|
+
|
379
|
+
The number of minutes expected to complete the template # noqa: E501
|
380
|
+
|
381
|
+
:return: The mins_to_complete of this WorkspaceTemplate. # noqa: E501
|
382
|
+
:rtype: int
|
383
|
+
"""
|
384
|
+
return self._mins_to_complete
|
385
|
+
|
386
|
+
@mins_to_complete.setter
|
387
|
+
def mins_to_complete(self, mins_to_complete):
|
388
|
+
"""Sets the mins_to_complete of this WorkspaceTemplate.
|
389
|
+
|
390
|
+
The number of minutes expected to complete the template # noqa: E501
|
391
|
+
|
392
|
+
:param mins_to_complete: The mins_to_complete of this WorkspaceTemplate. # noqa: E501
|
393
|
+
:type: int
|
394
|
+
"""
|
395
|
+
|
396
|
+
self._mins_to_complete = mins_to_complete
|
397
|
+
|
398
|
+
@property
|
399
|
+
def complexity(self):
|
400
|
+
"""Gets the complexity of this WorkspaceTemplate. # noqa: E501
|
401
|
+
|
402
|
+
The complexity of the workspace template # noqa: E501
|
403
|
+
|
404
|
+
:return: The complexity of this WorkspaceTemplate. # noqa: E501
|
405
|
+
:rtype: ComplexityLevel
|
406
|
+
"""
|
407
|
+
return self._complexity
|
408
|
+
|
409
|
+
@complexity.setter
|
410
|
+
def complexity(self, complexity):
|
411
|
+
"""Sets the complexity of this WorkspaceTemplate.
|
412
|
+
|
413
|
+
The complexity of the workspace template # noqa: E501
|
414
|
+
|
415
|
+
:param complexity: The complexity of this WorkspaceTemplate. # noqa: E501
|
416
|
+
:type: ComplexityLevel
|
417
|
+
"""
|
418
|
+
|
419
|
+
self._complexity = complexity
|
420
|
+
|
309
421
|
def to_dict(self):
|
310
422
|
"""Returns the model properties as a dict"""
|
311
423
|
result = {}
|
@@ -35,16 +35,20 @@ class WorkspaceTemplateReadme(object):
|
|
35
35
|
openapi_types = {
|
36
36
|
'content': 'str',
|
37
37
|
'title': 'str',
|
38
|
-
'description': 'str'
|
38
|
+
'description': 'str',
|
39
|
+
'icon_type': 'str',
|
40
|
+
'icon_bg_color': 'str'
|
39
41
|
}
|
40
42
|
|
41
43
|
attribute_map = {
|
42
44
|
'content': 'content',
|
43
45
|
'title': 'title',
|
44
|
-
'description': 'description'
|
46
|
+
'description': 'description',
|
47
|
+
'icon_type': 'icon_type',
|
48
|
+
'icon_bg_color': 'icon_bg_color'
|
45
49
|
}
|
46
50
|
|
47
|
-
def __init__(self, content=None, title=None, description=None, local_vars_configuration=None): # noqa: E501
|
51
|
+
def __init__(self, content=None, title=None, description=None, icon_type=None, icon_bg_color=None, local_vars_configuration=None): # noqa: E501
|
48
52
|
"""WorkspaceTemplateReadme - a model defined in OpenAPI""" # noqa: E501
|
49
53
|
if local_vars_configuration is None:
|
50
54
|
local_vars_configuration = Configuration()
|
@@ -53,11 +57,17 @@ class WorkspaceTemplateReadme(object):
|
|
53
57
|
self._content = None
|
54
58
|
self._title = None
|
55
59
|
self._description = None
|
60
|
+
self._icon_type = None
|
61
|
+
self._icon_bg_color = None
|
56
62
|
self.discriminator = None
|
57
63
|
|
58
64
|
self.content = content
|
59
65
|
self.title = title
|
60
66
|
self.description = description
|
67
|
+
if icon_type is not None:
|
68
|
+
self.icon_type = icon_type
|
69
|
+
if icon_bg_color is not None:
|
70
|
+
self.icon_bg_color = icon_bg_color
|
61
71
|
|
62
72
|
@property
|
63
73
|
def content(self):
|
@@ -134,6 +144,52 @@ class WorkspaceTemplateReadme(object):
|
|
134
144
|
|
135
145
|
self._description = description
|
136
146
|
|
147
|
+
@property
|
148
|
+
def icon_type(self):
|
149
|
+
"""Gets the icon_type of this WorkspaceTemplateReadme. # noqa: E501
|
150
|
+
|
151
|
+
The remix icon name of the icon for the workspace template # noqa: E501
|
152
|
+
|
153
|
+
:return: The icon_type of this WorkspaceTemplateReadme. # noqa: E501
|
154
|
+
:rtype: str
|
155
|
+
"""
|
156
|
+
return self._icon_type
|
157
|
+
|
158
|
+
@icon_type.setter
|
159
|
+
def icon_type(self, icon_type):
|
160
|
+
"""Sets the icon_type of this WorkspaceTemplateReadme.
|
161
|
+
|
162
|
+
The remix icon name of the icon for the workspace template # noqa: E501
|
163
|
+
|
164
|
+
:param icon_type: The icon_type of this WorkspaceTemplateReadme. # noqa: E501
|
165
|
+
:type: str
|
166
|
+
"""
|
167
|
+
|
168
|
+
self._icon_type = icon_type
|
169
|
+
|
170
|
+
@property
|
171
|
+
def icon_bg_color(self):
|
172
|
+
"""Gets the icon_bg_color of this WorkspaceTemplateReadme. # noqa: E501
|
173
|
+
|
174
|
+
The background color of the icon for the workspace template # noqa: E501
|
175
|
+
|
176
|
+
:return: The icon_bg_color of this WorkspaceTemplateReadme. # noqa: E501
|
177
|
+
:rtype: str
|
178
|
+
"""
|
179
|
+
return self._icon_bg_color
|
180
|
+
|
181
|
+
@icon_bg_color.setter
|
182
|
+
def icon_bg_color(self, icon_bg_color):
|
183
|
+
"""Sets the icon_bg_color of this WorkspaceTemplateReadme.
|
184
|
+
|
185
|
+
The background color of the icon for the workspace template # noqa: E501
|
186
|
+
|
187
|
+
:param icon_bg_color: The icon_bg_color of this WorkspaceTemplateReadme. # noqa: E501
|
188
|
+
:type: str
|
189
|
+
"""
|
190
|
+
|
191
|
+
self._icon_bg_color = icon_bg_color
|
192
|
+
|
137
193
|
def to_dict(self):
|
138
194
|
"""Returns the model properties as a dict"""
|
139
195
|
result = {}
|