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.
Files changed (32) hide show
  1. anyscale/api.py +22 -0
  2. anyscale/aws_iam_policies.py +0 -3
  3. anyscale/client/README.md +15 -1
  4. anyscale/client/openapi_client/__init__.py +11 -0
  5. anyscale/client/openapi_client/api/default_api.py +454 -114
  6. anyscale/client/openapi_client/models/__init__.py +11 -0
  7. anyscale/client/openapi_client/models/cli_usage_payload.py +440 -0
  8. anyscale/client/openapi_client/models/commit_ledger_item_type.py +111 -0
  9. anyscale/client/openapi_client/models/commit_ledger_record_v2.py +207 -0
  10. anyscale/client/openapi_client/models/complexity_level.py +101 -0
  11. anyscale/client/openapi_client/models/credit_grant_record_v2.py +181 -0
  12. anyscale/client/openapi_client/models/credit_ledger_item_type.py +104 -0
  13. anyscale/client/openapi_client/models/credit_ledger_record_v2.py +207 -0
  14. anyscale/client/openapi_client/models/credit_record_commit_v2.py +410 -0
  15. anyscale/client/openapi_client/models/credit_record_credit_v2.py +410 -0
  16. anyscale/client/openapi_client/models/credit_type.py +100 -0
  17. anyscale/client/openapi_client/models/credits_v2.py +355 -0
  18. anyscale/client/openapi_client/models/workspace_template.py +115 -3
  19. anyscale/client/openapi_client/models/workspace_template_readme.py +59 -3
  20. anyscale/commands/list_util.py +100 -38
  21. anyscale/integrations.py +0 -20
  22. anyscale/scripts.py +1 -0
  23. anyscale/shared_anyscale_utils/headers.py +4 -0
  24. anyscale/telemetry.py +424 -0
  25. anyscale/version.py +1 -1
  26. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/METADATA +1 -1
  27. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/RECORD +32 -20
  28. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/LICENSE +0 -0
  29. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/NOTICE +0 -0
  30. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/WHEEL +0 -0
  31. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/entry_points.txt +0 -0
  32. {anyscale-0.26.32.dist-info → anyscale-0.26.33.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,440 @@
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 CLIUsagePayload(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
+ 'trace_id': 'str',
37
+ 'cmd_path': 'str',
38
+ 'options': 'list[str]',
39
+ 'flags_used': 'list[str]',
40
+ 'duration_ms': 'float',
41
+ 'exit_code': 'int',
42
+ 'exception_type': 'str',
43
+ 'cli_version': 'str',
44
+ 'python_version': 'str',
45
+ 'timestamp': 'int',
46
+ 'session_id': 'str',
47
+ 'event_type': 'str',
48
+ 'page_number': 'int'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'trace_id': 'trace_id',
53
+ 'cmd_path': 'cmd_path',
54
+ 'options': 'options',
55
+ 'flags_used': 'flags_used',
56
+ 'duration_ms': 'duration_ms',
57
+ 'exit_code': 'exit_code',
58
+ 'exception_type': 'exception_type',
59
+ 'cli_version': 'cli_version',
60
+ 'python_version': 'python_version',
61
+ 'timestamp': 'timestamp',
62
+ 'session_id': 'session_id',
63
+ 'event_type': 'event_type',
64
+ 'page_number': 'page_number'
65
+ }
66
+
67
+ def __init__(self, trace_id=None, cmd_path=None, options=None, flags_used=None, duration_ms=None, exit_code=None, exception_type=None, cli_version=None, python_version=None, timestamp=None, session_id=None, event_type='command', page_number=None, local_vars_configuration=None): # noqa: E501
68
+ """CLIUsagePayload - a model defined in OpenAPI""" # noqa: E501
69
+ if local_vars_configuration is None:
70
+ local_vars_configuration = Configuration()
71
+ self.local_vars_configuration = local_vars_configuration
72
+
73
+ self._trace_id = None
74
+ self._cmd_path = None
75
+ self._options = None
76
+ self._flags_used = None
77
+ self._duration_ms = None
78
+ self._exit_code = None
79
+ self._exception_type = None
80
+ self._cli_version = None
81
+ self._python_version = None
82
+ self._timestamp = None
83
+ self._session_id = None
84
+ self._event_type = None
85
+ self._page_number = None
86
+ self.discriminator = None
87
+
88
+ self.trace_id = trace_id
89
+ self.cmd_path = cmd_path
90
+ self.options = options
91
+ self.flags_used = flags_used
92
+ self.duration_ms = duration_ms
93
+ self.exit_code = exit_code
94
+ if exception_type is not None:
95
+ self.exception_type = exception_type
96
+ if cli_version is not None:
97
+ self.cli_version = cli_version
98
+ self.python_version = python_version
99
+ self.timestamp = timestamp
100
+ if session_id is not None:
101
+ self.session_id = session_id
102
+ if event_type is not None:
103
+ self.event_type = event_type
104
+ if page_number is not None:
105
+ self.page_number = page_number
106
+
107
+ @property
108
+ def trace_id(self):
109
+ """Gets the trace_id of this CLIUsagePayload. # noqa: E501
110
+
111
+
112
+ :return: The trace_id of this CLIUsagePayload. # noqa: E501
113
+ :rtype: str
114
+ """
115
+ return self._trace_id
116
+
117
+ @trace_id.setter
118
+ def trace_id(self, trace_id):
119
+ """Sets the trace_id of this CLIUsagePayload.
120
+
121
+
122
+ :param trace_id: The trace_id of this CLIUsagePayload. # noqa: E501
123
+ :type: str
124
+ """
125
+ if self.local_vars_configuration.client_side_validation and trace_id is None: # noqa: E501
126
+ raise ValueError("Invalid value for `trace_id`, must not be `None`") # noqa: E501
127
+
128
+ self._trace_id = trace_id
129
+
130
+ @property
131
+ def cmd_path(self):
132
+ """Gets the cmd_path of this CLIUsagePayload. # noqa: E501
133
+
134
+
135
+ :return: The cmd_path of this CLIUsagePayload. # noqa: E501
136
+ :rtype: str
137
+ """
138
+ return self._cmd_path
139
+
140
+ @cmd_path.setter
141
+ def cmd_path(self, cmd_path):
142
+ """Sets the cmd_path of this CLIUsagePayload.
143
+
144
+
145
+ :param cmd_path: The cmd_path of this CLIUsagePayload. # noqa: E501
146
+ :type: str
147
+ """
148
+ if self.local_vars_configuration.client_side_validation and cmd_path is None: # noqa: E501
149
+ raise ValueError("Invalid value for `cmd_path`, must not be `None`") # noqa: E501
150
+
151
+ self._cmd_path = cmd_path
152
+
153
+ @property
154
+ def options(self):
155
+ """Gets the options of this CLIUsagePayload. # noqa: E501
156
+
157
+
158
+ :return: The options of this CLIUsagePayload. # noqa: E501
159
+ :rtype: list[str]
160
+ """
161
+ return self._options
162
+
163
+ @options.setter
164
+ def options(self, options):
165
+ """Sets the options of this CLIUsagePayload.
166
+
167
+
168
+ :param options: The options of this CLIUsagePayload. # noqa: E501
169
+ :type: list[str]
170
+ """
171
+ if self.local_vars_configuration.client_side_validation and options is None: # noqa: E501
172
+ raise ValueError("Invalid value for `options`, must not be `None`") # noqa: E501
173
+
174
+ self._options = options
175
+
176
+ @property
177
+ def flags_used(self):
178
+ """Gets the flags_used of this CLIUsagePayload. # noqa: E501
179
+
180
+
181
+ :return: The flags_used of this CLIUsagePayload. # noqa: E501
182
+ :rtype: list[str]
183
+ """
184
+ return self._flags_used
185
+
186
+ @flags_used.setter
187
+ def flags_used(self, flags_used):
188
+ """Sets the flags_used of this CLIUsagePayload.
189
+
190
+
191
+ :param flags_used: The flags_used of this CLIUsagePayload. # noqa: E501
192
+ :type: list[str]
193
+ """
194
+ if self.local_vars_configuration.client_side_validation and flags_used is None: # noqa: E501
195
+ raise ValueError("Invalid value for `flags_used`, must not be `None`") # noqa: E501
196
+
197
+ self._flags_used = flags_used
198
+
199
+ @property
200
+ def duration_ms(self):
201
+ """Gets the duration_ms of this CLIUsagePayload. # noqa: E501
202
+
203
+
204
+ :return: The duration_ms of this CLIUsagePayload. # noqa: E501
205
+ :rtype: float
206
+ """
207
+ return self._duration_ms
208
+
209
+ @duration_ms.setter
210
+ def duration_ms(self, duration_ms):
211
+ """Sets the duration_ms of this CLIUsagePayload.
212
+
213
+
214
+ :param duration_ms: The duration_ms of this CLIUsagePayload. # noqa: E501
215
+ :type: float
216
+ """
217
+ if self.local_vars_configuration.client_side_validation and duration_ms is None: # noqa: E501
218
+ raise ValueError("Invalid value for `duration_ms`, must not be `None`") # noqa: E501
219
+
220
+ self._duration_ms = duration_ms
221
+
222
+ @property
223
+ def exit_code(self):
224
+ """Gets the exit_code of this CLIUsagePayload. # noqa: E501
225
+
226
+
227
+ :return: The exit_code of this CLIUsagePayload. # noqa: E501
228
+ :rtype: int
229
+ """
230
+ return self._exit_code
231
+
232
+ @exit_code.setter
233
+ def exit_code(self, exit_code):
234
+ """Sets the exit_code of this CLIUsagePayload.
235
+
236
+
237
+ :param exit_code: The exit_code of this CLIUsagePayload. # noqa: E501
238
+ :type: int
239
+ """
240
+ if self.local_vars_configuration.client_side_validation and exit_code is None: # noqa: E501
241
+ raise ValueError("Invalid value for `exit_code`, must not be `None`") # noqa: E501
242
+
243
+ self._exit_code = exit_code
244
+
245
+ @property
246
+ def exception_type(self):
247
+ """Gets the exception_type of this CLIUsagePayload. # noqa: E501
248
+
249
+
250
+ :return: The exception_type of this CLIUsagePayload. # noqa: E501
251
+ :rtype: str
252
+ """
253
+ return self._exception_type
254
+
255
+ @exception_type.setter
256
+ def exception_type(self, exception_type):
257
+ """Sets the exception_type of this CLIUsagePayload.
258
+
259
+
260
+ :param exception_type: The exception_type of this CLIUsagePayload. # noqa: E501
261
+ :type: str
262
+ """
263
+
264
+ self._exception_type = exception_type
265
+
266
+ @property
267
+ def cli_version(self):
268
+ """Gets the cli_version of this CLIUsagePayload. # noqa: E501
269
+
270
+
271
+ :return: The cli_version of this CLIUsagePayload. # noqa: E501
272
+ :rtype: str
273
+ """
274
+ return self._cli_version
275
+
276
+ @cli_version.setter
277
+ def cli_version(self, cli_version):
278
+ """Sets the cli_version of this CLIUsagePayload.
279
+
280
+
281
+ :param cli_version: The cli_version of this CLIUsagePayload. # noqa: E501
282
+ :type: str
283
+ """
284
+
285
+ self._cli_version = cli_version
286
+
287
+ @property
288
+ def python_version(self):
289
+ """Gets the python_version of this CLIUsagePayload. # noqa: E501
290
+
291
+
292
+ :return: The python_version of this CLIUsagePayload. # noqa: E501
293
+ :rtype: str
294
+ """
295
+ return self._python_version
296
+
297
+ @python_version.setter
298
+ def python_version(self, python_version):
299
+ """Sets the python_version of this CLIUsagePayload.
300
+
301
+
302
+ :param python_version: The python_version of this CLIUsagePayload. # noqa: E501
303
+ :type: str
304
+ """
305
+ if self.local_vars_configuration.client_side_validation and python_version is None: # noqa: E501
306
+ raise ValueError("Invalid value for `python_version`, must not be `None`") # noqa: E501
307
+
308
+ self._python_version = python_version
309
+
310
+ @property
311
+ def timestamp(self):
312
+ """Gets the timestamp of this CLIUsagePayload. # noqa: E501
313
+
314
+
315
+ :return: The timestamp of this CLIUsagePayload. # noqa: E501
316
+ :rtype: int
317
+ """
318
+ return self._timestamp
319
+
320
+ @timestamp.setter
321
+ def timestamp(self, timestamp):
322
+ """Sets the timestamp of this CLIUsagePayload.
323
+
324
+
325
+ :param timestamp: The timestamp of this CLIUsagePayload. # noqa: E501
326
+ :type: int
327
+ """
328
+ if self.local_vars_configuration.client_side_validation and timestamp is None: # noqa: E501
329
+ raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501
330
+
331
+ self._timestamp = timestamp
332
+
333
+ @property
334
+ def session_id(self):
335
+ """Gets the session_id of this CLIUsagePayload. # noqa: E501
336
+
337
+
338
+ :return: The session_id of this CLIUsagePayload. # noqa: E501
339
+ :rtype: str
340
+ """
341
+ return self._session_id
342
+
343
+ @session_id.setter
344
+ def session_id(self, session_id):
345
+ """Sets the session_id of this CLIUsagePayload.
346
+
347
+
348
+ :param session_id: The session_id of this CLIUsagePayload. # noqa: E501
349
+ :type: str
350
+ """
351
+
352
+ self._session_id = session_id
353
+
354
+ @property
355
+ def event_type(self):
356
+ """Gets the event_type of this CLIUsagePayload. # noqa: E501
357
+
358
+
359
+ :return: The event_type of this CLIUsagePayload. # noqa: E501
360
+ :rtype: str
361
+ """
362
+ return self._event_type
363
+
364
+ @event_type.setter
365
+ def event_type(self, event_type):
366
+ """Sets the event_type of this CLIUsagePayload.
367
+
368
+
369
+ :param event_type: The event_type of this CLIUsagePayload. # noqa: E501
370
+ :type: str
371
+ """
372
+
373
+ self._event_type = event_type
374
+
375
+ @property
376
+ def page_number(self):
377
+ """Gets the page_number of this CLIUsagePayload. # noqa: E501
378
+
379
+
380
+ :return: The page_number of this CLIUsagePayload. # noqa: E501
381
+ :rtype: int
382
+ """
383
+ return self._page_number
384
+
385
+ @page_number.setter
386
+ def page_number(self, page_number):
387
+ """Sets the page_number of this CLIUsagePayload.
388
+
389
+
390
+ :param page_number: The page_number of this CLIUsagePayload. # noqa: E501
391
+ :type: int
392
+ """
393
+
394
+ self._page_number = page_number
395
+
396
+ def to_dict(self):
397
+ """Returns the model properties as a dict"""
398
+ result = {}
399
+
400
+ for attr, _ in six.iteritems(self.openapi_types):
401
+ value = getattr(self, attr)
402
+ if isinstance(value, list):
403
+ result[attr] = list(map(
404
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
405
+ value
406
+ ))
407
+ elif hasattr(value, "to_dict"):
408
+ result[attr] = value.to_dict()
409
+ elif isinstance(value, dict):
410
+ result[attr] = dict(map(
411
+ lambda item: (item[0], item[1].to_dict())
412
+ if hasattr(item[1], "to_dict") else item,
413
+ value.items()
414
+ ))
415
+ else:
416
+ result[attr] = value
417
+
418
+ return result
419
+
420
+ def to_str(self):
421
+ """Returns the string representation of the model"""
422
+ return pprint.pformat(self.to_dict())
423
+
424
+ def __repr__(self):
425
+ """For `print` and `pprint`"""
426
+ return self.to_str()
427
+
428
+ def __eq__(self, other):
429
+ """Returns true if both objects are equal"""
430
+ if not isinstance(other, CLIUsagePayload):
431
+ return False
432
+
433
+ return self.to_dict() == other.to_dict()
434
+
435
+ def __ne__(self, other):
436
+ """Returns true if both objects are not equal"""
437
+ if not isinstance(other, CLIUsagePayload):
438
+ return True
439
+
440
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,111 @@
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 CommitLedgerItemType(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
+ PREPAID_COMMIT_SEGMENT_START = "PREPAID_COMMIT_SEGMENT_START"
32
+ PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION = "PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
33
+ PREPAID_COMMIT_ROLLOVER = "PREPAID_COMMIT_ROLLOVER"
34
+ PREPAID_COMMIT_EXPIRATION = "PREPAID_COMMIT_EXPIRATION"
35
+ PREPAID_COMMIT_CANCELED = "PREPAID_COMMIT_CANCELED"
36
+ PREPAID_COMMIT_CREDITED = "PREPAID_COMMIT_CREDITED"
37
+ POSTPAID_COMMIT_INITIAL_BALANCE = "POSTPAID_COMMIT_INITIAL_BALANCE"
38
+ POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION = "POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION"
39
+ POSTPAID_COMMIT_ROLLOVER = "POSTPAID_COMMIT_ROLLOVER"
40
+ POSTPAID_COMMIT_TRUEUP = "POSTPAID_COMMIT_TRUEUP"
41
+ PREPAID_COMMIT_MANUAL = "PREPAID_COMMIT_MANUAL"
42
+ POSTPAID_COMMIT_MANUAL = "POSTPAID_COMMIT_MANUAL"
43
+ POSTPAID_COMMIT_EXPIRATION = "POSTPAID_COMMIT_EXPIRATION"
44
+
45
+ allowable_values = [PREPAID_COMMIT_SEGMENT_START, PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION, PREPAID_COMMIT_ROLLOVER, PREPAID_COMMIT_EXPIRATION, PREPAID_COMMIT_CANCELED, PREPAID_COMMIT_CREDITED, POSTPAID_COMMIT_INITIAL_BALANCE, POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION, POSTPAID_COMMIT_ROLLOVER, POSTPAID_COMMIT_TRUEUP, PREPAID_COMMIT_MANUAL, POSTPAID_COMMIT_MANUAL, POSTPAID_COMMIT_EXPIRATION] # noqa: E501
46
+
47
+ """
48
+ Attributes:
49
+ openapi_types (dict): The key is attribute name
50
+ and the value is attribute type.
51
+ attribute_map (dict): The key is attribute name
52
+ and the value is json key in definition.
53
+ """
54
+ openapi_types = {
55
+ }
56
+
57
+ attribute_map = {
58
+ }
59
+
60
+ def __init__(self, local_vars_configuration=None): # noqa: E501
61
+ """CommitLedgerItemType - a model defined in OpenAPI""" # noqa: E501
62
+ if local_vars_configuration is None:
63
+ local_vars_configuration = Configuration()
64
+ self.local_vars_configuration = local_vars_configuration
65
+ self.discriminator = None
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ result[attr] = value
88
+
89
+ return result
90
+
91
+ def to_str(self):
92
+ """Returns the string representation of the model"""
93
+ return pprint.pformat(self.to_dict())
94
+
95
+ def __repr__(self):
96
+ """For `print` and `pprint`"""
97
+ return self.to_str()
98
+
99
+ def __eq__(self, other):
100
+ """Returns true if both objects are equal"""
101
+ if not isinstance(other, CommitLedgerItemType):
102
+ return False
103
+
104
+ return self.to_dict() == other.to_dict()
105
+
106
+ def __ne__(self, other):
107
+ """Returns true if both objects are not equal"""
108
+ if not isinstance(other, CommitLedgerItemType):
109
+ return True
110
+
111
+ return self.to_dict() != other.to_dict()