anyscale 0.26.61__py3-none-any.whl → 0.26.63__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 (42) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +4 -1
  2. anyscale/_private/docgen/__main__.py +0 -2
  3. anyscale/_private/docgen/models.md +2 -0
  4. anyscale/client/README.md +17 -3
  5. anyscale/client/openapi_client/__init__.py +10 -3
  6. anyscale/client/openapi_client/api/default_api.py +3229 -2400
  7. anyscale/client/openapi_client/models/__init__.py +10 -3
  8. anyscale/client/openapi_client/models/api_key_info.py +280 -0
  9. anyscale/client/openapi_client/models/api_key_parameters.py +29 -3
  10. anyscale/client/openapi_client/models/{aggregatedinstanceusagecsv_list_response.py → apikeyinfo_list_response.py} +15 -15
  11. anyscale/client/openapi_client/models/compute_node_type.py +29 -1
  12. anyscale/client/openapi_client/models/gpu_usage.py +236 -0
  13. anyscale/client/openapi_client/models/node_metrics.py +404 -0
  14. anyscale/client/openapi_client/models/node_metrics_response.py +123 -0
  15. anyscale/client/openapi_client/models/nodemetricsresponse_response.py +121 -0
  16. anyscale/client/openapi_client/models/operator_metrics.py +27 -1
  17. anyscale/client/openapi_client/models/revoke_api_keys_request.py +123 -0
  18. anyscale/client/openapi_client/models/revoke_api_keys_response.py +202 -0
  19. anyscale/client/openapi_client/models/revokeapikeysresponse_response.py +121 -0
  20. anyscale/client/openapi_client/models/{cloud_hosting_type.py → task_summary_config.py} +33 -13
  21. anyscale/client/openapi_client/models/task_table_config.py +29 -3
  22. anyscale/client/openapi_client/models/task_table_row.py +29 -3
  23. anyscale/client/openapi_client/models/worker_node_type.py +29 -1
  24. anyscale/commands/cloud_commands.py +146 -61
  25. anyscale/commands/command_examples.py +12 -0
  26. anyscale/commands/service_account_commands.py +0 -21
  27. anyscale/compute_config/_private/compute_config_sdk.py +4 -0
  28. anyscale/compute_config/models.py +24 -0
  29. anyscale/controllers/cloud_controller.py +94 -20
  30. anyscale/sdk/anyscale_client/models/compute_node_type.py +29 -1
  31. anyscale/sdk/anyscale_client/models/worker_node_type.py +29 -1
  32. anyscale/service_account/_private/service_account_sdk.py +10 -1
  33. anyscale/version.py +1 -1
  34. anyscale/workspace/commands.py +23 -114
  35. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/METADATA +1 -1
  36. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/RECORD +41 -34
  37. anyscale/client/openapi_client/models/aggregated_instance_usage_csv.py +0 -889
  38. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/WHEEL +0 -0
  39. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/entry_points.txt +0 -0
  40. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/licenses/LICENSE +0 -0
  41. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/licenses/NOTICE +0 -0
  42. {anyscale-0.26.61.dist-info → anyscale-0.26.63.dist-info}/top_level.txt +0 -0
@@ -1,889 +0,0 @@
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 AggregatedInstanceUsageCSV(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
- 'date': 'date',
37
- 'organization_id': 'str',
38
- 'organization_name': 'str',
39
- 'cloud_hosting_type': 'CloudHostingType',
40
- 'cloud_id': 'str',
41
- 'cloud_name': 'str',
42
- 'project_id': 'str',
43
- 'project_name': 'str',
44
- 'user_id': 'str',
45
- 'user_email': 'str',
46
- 'cluster_id': 'str',
47
- 'workspace_id': 'str',
48
- 'job_id': 'str',
49
- 'job_queue_id': 'str',
50
- 'service_id': 'str',
51
- 'instance_type': 'str',
52
- 'instance_seconds': 'float',
53
- 'cloud_provider': 'CloudProviders',
54
- 'anyscale_credits': 'float',
55
- 'compute_stack': 'str',
56
- 'gpu_type': 'str',
57
- 'memory_mib': 'int',
58
- 'cpu_count': 'int',
59
- 'gpu_count': 'int',
60
- 'anyscale_managed_machine_pool_id': 'str',
61
- 'anyscale_managed_machine_pool_name': 'str',
62
- 'user_defined_machine_type': 'str',
63
- 'workspace_name': 'str',
64
- 'job_name': 'str',
65
- 'service_name': 'str'
66
- }
67
-
68
- attribute_map = {
69
- 'date': 'date',
70
- 'organization_id': 'organization_id',
71
- 'organization_name': 'organization_name',
72
- 'cloud_hosting_type': 'cloud_hosting_type',
73
- 'cloud_id': 'cloud_id',
74
- 'cloud_name': 'cloud_name',
75
- 'project_id': 'project_id',
76
- 'project_name': 'project_name',
77
- 'user_id': 'user_id',
78
- 'user_email': 'user_email',
79
- 'cluster_id': 'cluster_id',
80
- 'workspace_id': 'workspace_id',
81
- 'job_id': 'job_id',
82
- 'job_queue_id': 'job_queue_id',
83
- 'service_id': 'service_id',
84
- 'instance_type': 'instance_type',
85
- 'instance_seconds': 'instance_seconds',
86
- 'cloud_provider': 'cloud_provider',
87
- 'anyscale_credits': 'anyscale_credits',
88
- 'compute_stack': 'compute_stack',
89
- 'gpu_type': 'gpu_type',
90
- 'memory_mib': 'memory_mib',
91
- 'cpu_count': 'cpu_count',
92
- 'gpu_count': 'gpu_count',
93
- 'anyscale_managed_machine_pool_id': 'anyscale_managed_machine_pool_id',
94
- 'anyscale_managed_machine_pool_name': 'anyscale_managed_machine_pool_name',
95
- 'user_defined_machine_type': 'user_defined_machine_type',
96
- 'workspace_name': 'workspace_name',
97
- 'job_name': 'job_name',
98
- 'service_name': 'service_name'
99
- }
100
-
101
- def __init__(self, date=None, organization_id=None, organization_name=None, cloud_hosting_type=None, cloud_id=None, cloud_name=None, project_id=None, project_name=None, user_id=None, user_email=None, cluster_id=None, workspace_id=None, job_id=None, job_queue_id=None, service_id=None, instance_type=None, instance_seconds=None, cloud_provider=None, anyscale_credits=None, compute_stack=None, gpu_type=None, memory_mib=None, cpu_count=None, gpu_count=None, anyscale_managed_machine_pool_id=None, anyscale_managed_machine_pool_name=None, user_defined_machine_type=None, workspace_name=None, job_name=None, service_name=None, local_vars_configuration=None): # noqa: E501
102
- """AggregatedInstanceUsageCSV - a model defined in OpenAPI""" # noqa: E501
103
- if local_vars_configuration is None:
104
- local_vars_configuration = Configuration()
105
- self.local_vars_configuration = local_vars_configuration
106
-
107
- self._date = None
108
- self._organization_id = None
109
- self._organization_name = None
110
- self._cloud_hosting_type = None
111
- self._cloud_id = None
112
- self._cloud_name = None
113
- self._project_id = None
114
- self._project_name = None
115
- self._user_id = None
116
- self._user_email = None
117
- self._cluster_id = None
118
- self._workspace_id = None
119
- self._job_id = None
120
- self._job_queue_id = None
121
- self._service_id = None
122
- self._instance_type = None
123
- self._instance_seconds = None
124
- self._cloud_provider = None
125
- self._anyscale_credits = None
126
- self._compute_stack = None
127
- self._gpu_type = None
128
- self._memory_mib = None
129
- self._cpu_count = None
130
- self._gpu_count = None
131
- self._anyscale_managed_machine_pool_id = None
132
- self._anyscale_managed_machine_pool_name = None
133
- self._user_defined_machine_type = None
134
- self._workspace_name = None
135
- self._job_name = None
136
- self._service_name = None
137
- self.discriminator = None
138
-
139
- self.date = date
140
- self.organization_id = organization_id
141
- self.organization_name = organization_name
142
- self.cloud_hosting_type = cloud_hosting_type
143
- self.cloud_id = cloud_id
144
- self.cloud_name = cloud_name
145
- self.project_id = project_id
146
- self.project_name = project_name
147
- self.user_id = user_id
148
- self.user_email = user_email
149
- self.cluster_id = cluster_id
150
- if workspace_id is not None:
151
- self.workspace_id = workspace_id
152
- if job_id is not None:
153
- self.job_id = job_id
154
- if job_queue_id is not None:
155
- self.job_queue_id = job_queue_id
156
- if service_id is not None:
157
- self.service_id = service_id
158
- self.instance_type = instance_type
159
- self.instance_seconds = instance_seconds
160
- self.cloud_provider = cloud_provider
161
- self.anyscale_credits = anyscale_credits
162
- if compute_stack is not None:
163
- self.compute_stack = compute_stack
164
- if gpu_type is not None:
165
- self.gpu_type = gpu_type
166
- if memory_mib is not None:
167
- self.memory_mib = memory_mib
168
- if cpu_count is not None:
169
- self.cpu_count = cpu_count
170
- if gpu_count is not None:
171
- self.gpu_count = gpu_count
172
- if anyscale_managed_machine_pool_id is not None:
173
- self.anyscale_managed_machine_pool_id = anyscale_managed_machine_pool_id
174
- if anyscale_managed_machine_pool_name is not None:
175
- self.anyscale_managed_machine_pool_name = anyscale_managed_machine_pool_name
176
- if user_defined_machine_type is not None:
177
- self.user_defined_machine_type = user_defined_machine_type
178
- if workspace_name is not None:
179
- self.workspace_name = workspace_name
180
- if job_name is not None:
181
- self.job_name = job_name
182
- if service_name is not None:
183
- self.service_name = service_name
184
-
185
- @property
186
- def date(self):
187
- """Gets the date of this AggregatedInstanceUsageCSV. # noqa: E501
188
-
189
-
190
- :return: The date of this AggregatedInstanceUsageCSV. # noqa: E501
191
- :rtype: date
192
- """
193
- return self._date
194
-
195
- @date.setter
196
- def date(self, date):
197
- """Sets the date of this AggregatedInstanceUsageCSV.
198
-
199
-
200
- :param date: The date of this AggregatedInstanceUsageCSV. # noqa: E501
201
- :type: date
202
- """
203
- if self.local_vars_configuration.client_side_validation and date is None: # noqa: E501
204
- raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501
205
-
206
- self._date = date
207
-
208
- @property
209
- def organization_id(self):
210
- """Gets the organization_id of this AggregatedInstanceUsageCSV. # noqa: E501
211
-
212
-
213
- :return: The organization_id of this AggregatedInstanceUsageCSV. # noqa: E501
214
- :rtype: str
215
- """
216
- return self._organization_id
217
-
218
- @organization_id.setter
219
- def organization_id(self, organization_id):
220
- """Sets the organization_id of this AggregatedInstanceUsageCSV.
221
-
222
-
223
- :param organization_id: The organization_id of this AggregatedInstanceUsageCSV. # noqa: E501
224
- :type: str
225
- """
226
- if self.local_vars_configuration.client_side_validation and organization_id is None: # noqa: E501
227
- raise ValueError("Invalid value for `organization_id`, must not be `None`") # noqa: E501
228
-
229
- self._organization_id = organization_id
230
-
231
- @property
232
- def organization_name(self):
233
- """Gets the organization_name of this AggregatedInstanceUsageCSV. # noqa: E501
234
-
235
-
236
- :return: The organization_name of this AggregatedInstanceUsageCSV. # noqa: E501
237
- :rtype: str
238
- """
239
- return self._organization_name
240
-
241
- @organization_name.setter
242
- def organization_name(self, organization_name):
243
- """Sets the organization_name of this AggregatedInstanceUsageCSV.
244
-
245
-
246
- :param organization_name: The organization_name of this AggregatedInstanceUsageCSV. # noqa: E501
247
- :type: str
248
- """
249
- if self.local_vars_configuration.client_side_validation and organization_name is None: # noqa: E501
250
- raise ValueError("Invalid value for `organization_name`, must not be `None`") # noqa: E501
251
-
252
- self._organization_name = organization_name
253
-
254
- @property
255
- def cloud_hosting_type(self):
256
- """Gets the cloud_hosting_type of this AggregatedInstanceUsageCSV. # noqa: E501
257
-
258
-
259
- :return: The cloud_hosting_type of this AggregatedInstanceUsageCSV. # noqa: E501
260
- :rtype: CloudHostingType
261
- """
262
- return self._cloud_hosting_type
263
-
264
- @cloud_hosting_type.setter
265
- def cloud_hosting_type(self, cloud_hosting_type):
266
- """Sets the cloud_hosting_type of this AggregatedInstanceUsageCSV.
267
-
268
-
269
- :param cloud_hosting_type: The cloud_hosting_type of this AggregatedInstanceUsageCSV. # noqa: E501
270
- :type: CloudHostingType
271
- """
272
- if self.local_vars_configuration.client_side_validation and cloud_hosting_type is None: # noqa: E501
273
- raise ValueError("Invalid value for `cloud_hosting_type`, must not be `None`") # noqa: E501
274
-
275
- self._cloud_hosting_type = cloud_hosting_type
276
-
277
- @property
278
- def cloud_id(self):
279
- """Gets the cloud_id of this AggregatedInstanceUsageCSV. # noqa: E501
280
-
281
-
282
- :return: The cloud_id of this AggregatedInstanceUsageCSV. # noqa: E501
283
- :rtype: str
284
- """
285
- return self._cloud_id
286
-
287
- @cloud_id.setter
288
- def cloud_id(self, cloud_id):
289
- """Sets the cloud_id of this AggregatedInstanceUsageCSV.
290
-
291
-
292
- :param cloud_id: The cloud_id of this AggregatedInstanceUsageCSV. # noqa: E501
293
- :type: str
294
- """
295
- if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
296
- raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
297
-
298
- self._cloud_id = cloud_id
299
-
300
- @property
301
- def cloud_name(self):
302
- """Gets the cloud_name of this AggregatedInstanceUsageCSV. # noqa: E501
303
-
304
-
305
- :return: The cloud_name of this AggregatedInstanceUsageCSV. # noqa: E501
306
- :rtype: str
307
- """
308
- return self._cloud_name
309
-
310
- @cloud_name.setter
311
- def cloud_name(self, cloud_name):
312
- """Sets the cloud_name of this AggregatedInstanceUsageCSV.
313
-
314
-
315
- :param cloud_name: The cloud_name of this AggregatedInstanceUsageCSV. # noqa: E501
316
- :type: str
317
- """
318
- if self.local_vars_configuration.client_side_validation and cloud_name is None: # noqa: E501
319
- raise ValueError("Invalid value for `cloud_name`, must not be `None`") # noqa: E501
320
-
321
- self._cloud_name = cloud_name
322
-
323
- @property
324
- def project_id(self):
325
- """Gets the project_id of this AggregatedInstanceUsageCSV. # noqa: E501
326
-
327
-
328
- :return: The project_id of this AggregatedInstanceUsageCSV. # noqa: E501
329
- :rtype: str
330
- """
331
- return self._project_id
332
-
333
- @project_id.setter
334
- def project_id(self, project_id):
335
- """Sets the project_id of this AggregatedInstanceUsageCSV.
336
-
337
-
338
- :param project_id: The project_id of this AggregatedInstanceUsageCSV. # noqa: E501
339
- :type: str
340
- """
341
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
342
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
343
-
344
- self._project_id = project_id
345
-
346
- @property
347
- def project_name(self):
348
- """Gets the project_name of this AggregatedInstanceUsageCSV. # noqa: E501
349
-
350
-
351
- :return: The project_name of this AggregatedInstanceUsageCSV. # noqa: E501
352
- :rtype: str
353
- """
354
- return self._project_name
355
-
356
- @project_name.setter
357
- def project_name(self, project_name):
358
- """Sets the project_name of this AggregatedInstanceUsageCSV.
359
-
360
-
361
- :param project_name: The project_name of this AggregatedInstanceUsageCSV. # noqa: E501
362
- :type: str
363
- """
364
- if self.local_vars_configuration.client_side_validation and project_name is None: # noqa: E501
365
- raise ValueError("Invalid value for `project_name`, must not be `None`") # noqa: E501
366
-
367
- self._project_name = project_name
368
-
369
- @property
370
- def user_id(self):
371
- """Gets the user_id of this AggregatedInstanceUsageCSV. # noqa: E501
372
-
373
-
374
- :return: The user_id of this AggregatedInstanceUsageCSV. # noqa: E501
375
- :rtype: str
376
- """
377
- return self._user_id
378
-
379
- @user_id.setter
380
- def user_id(self, user_id):
381
- """Sets the user_id of this AggregatedInstanceUsageCSV.
382
-
383
-
384
- :param user_id: The user_id of this AggregatedInstanceUsageCSV. # noqa: E501
385
- :type: str
386
- """
387
- if self.local_vars_configuration.client_side_validation and user_id is None: # noqa: E501
388
- raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501
389
-
390
- self._user_id = user_id
391
-
392
- @property
393
- def user_email(self):
394
- """Gets the user_email of this AggregatedInstanceUsageCSV. # noqa: E501
395
-
396
-
397
- :return: The user_email of this AggregatedInstanceUsageCSV. # noqa: E501
398
- :rtype: str
399
- """
400
- return self._user_email
401
-
402
- @user_email.setter
403
- def user_email(self, user_email):
404
- """Sets the user_email of this AggregatedInstanceUsageCSV.
405
-
406
-
407
- :param user_email: The user_email of this AggregatedInstanceUsageCSV. # noqa: E501
408
- :type: str
409
- """
410
- if self.local_vars_configuration.client_side_validation and user_email is None: # noqa: E501
411
- raise ValueError("Invalid value for `user_email`, must not be `None`") # noqa: E501
412
-
413
- self._user_email = user_email
414
-
415
- @property
416
- def cluster_id(self):
417
- """Gets the cluster_id of this AggregatedInstanceUsageCSV. # noqa: E501
418
-
419
-
420
- :return: The cluster_id of this AggregatedInstanceUsageCSV. # noqa: E501
421
- :rtype: str
422
- """
423
- return self._cluster_id
424
-
425
- @cluster_id.setter
426
- def cluster_id(self, cluster_id):
427
- """Sets the cluster_id of this AggregatedInstanceUsageCSV.
428
-
429
-
430
- :param cluster_id: The cluster_id of this AggregatedInstanceUsageCSV. # noqa: E501
431
- :type: str
432
- """
433
- if self.local_vars_configuration.client_side_validation and cluster_id is None: # noqa: E501
434
- raise ValueError("Invalid value for `cluster_id`, must not be `None`") # noqa: E501
435
-
436
- self._cluster_id = cluster_id
437
-
438
- @property
439
- def workspace_id(self):
440
- """Gets the workspace_id of this AggregatedInstanceUsageCSV. # noqa: E501
441
-
442
-
443
- :return: The workspace_id of this AggregatedInstanceUsageCSV. # noqa: E501
444
- :rtype: str
445
- """
446
- return self._workspace_id
447
-
448
- @workspace_id.setter
449
- def workspace_id(self, workspace_id):
450
- """Sets the workspace_id of this AggregatedInstanceUsageCSV.
451
-
452
-
453
- :param workspace_id: The workspace_id of this AggregatedInstanceUsageCSV. # noqa: E501
454
- :type: str
455
- """
456
-
457
- self._workspace_id = workspace_id
458
-
459
- @property
460
- def job_id(self):
461
- """Gets the job_id of this AggregatedInstanceUsageCSV. # noqa: E501
462
-
463
-
464
- :return: The job_id of this AggregatedInstanceUsageCSV. # noqa: E501
465
- :rtype: str
466
- """
467
- return self._job_id
468
-
469
- @job_id.setter
470
- def job_id(self, job_id):
471
- """Sets the job_id of this AggregatedInstanceUsageCSV.
472
-
473
-
474
- :param job_id: The job_id of this AggregatedInstanceUsageCSV. # noqa: E501
475
- :type: str
476
- """
477
-
478
- self._job_id = job_id
479
-
480
- @property
481
- def job_queue_id(self):
482
- """Gets the job_queue_id of this AggregatedInstanceUsageCSV. # noqa: E501
483
-
484
-
485
- :return: The job_queue_id of this AggregatedInstanceUsageCSV. # noqa: E501
486
- :rtype: str
487
- """
488
- return self._job_queue_id
489
-
490
- @job_queue_id.setter
491
- def job_queue_id(self, job_queue_id):
492
- """Sets the job_queue_id of this AggregatedInstanceUsageCSV.
493
-
494
-
495
- :param job_queue_id: The job_queue_id of this AggregatedInstanceUsageCSV. # noqa: E501
496
- :type: str
497
- """
498
-
499
- self._job_queue_id = job_queue_id
500
-
501
- @property
502
- def service_id(self):
503
- """Gets the service_id of this AggregatedInstanceUsageCSV. # noqa: E501
504
-
505
-
506
- :return: The service_id of this AggregatedInstanceUsageCSV. # noqa: E501
507
- :rtype: str
508
- """
509
- return self._service_id
510
-
511
- @service_id.setter
512
- def service_id(self, service_id):
513
- """Sets the service_id of this AggregatedInstanceUsageCSV.
514
-
515
-
516
- :param service_id: The service_id of this AggregatedInstanceUsageCSV. # noqa: E501
517
- :type: str
518
- """
519
-
520
- self._service_id = service_id
521
-
522
- @property
523
- def instance_type(self):
524
- """Gets the instance_type of this AggregatedInstanceUsageCSV. # noqa: E501
525
-
526
-
527
- :return: The instance_type of this AggregatedInstanceUsageCSV. # noqa: E501
528
- :rtype: str
529
- """
530
- return self._instance_type
531
-
532
- @instance_type.setter
533
- def instance_type(self, instance_type):
534
- """Sets the instance_type of this AggregatedInstanceUsageCSV.
535
-
536
-
537
- :param instance_type: The instance_type of this AggregatedInstanceUsageCSV. # noqa: E501
538
- :type: str
539
- """
540
- if self.local_vars_configuration.client_side_validation and instance_type is None: # noqa: E501
541
- raise ValueError("Invalid value for `instance_type`, must not be `None`") # noqa: E501
542
-
543
- self._instance_type = instance_type
544
-
545
- @property
546
- def instance_seconds(self):
547
- """Gets the instance_seconds of this AggregatedInstanceUsageCSV. # noqa: E501
548
-
549
-
550
- :return: The instance_seconds of this AggregatedInstanceUsageCSV. # noqa: E501
551
- :rtype: float
552
- """
553
- return self._instance_seconds
554
-
555
- @instance_seconds.setter
556
- def instance_seconds(self, instance_seconds):
557
- """Sets the instance_seconds of this AggregatedInstanceUsageCSV.
558
-
559
-
560
- :param instance_seconds: The instance_seconds of this AggregatedInstanceUsageCSV. # noqa: E501
561
- :type: float
562
- """
563
- if self.local_vars_configuration.client_side_validation and instance_seconds is None: # noqa: E501
564
- raise ValueError("Invalid value for `instance_seconds`, must not be `None`") # noqa: E501
565
-
566
- self._instance_seconds = instance_seconds
567
-
568
- @property
569
- def cloud_provider(self):
570
- """Gets the cloud_provider of this AggregatedInstanceUsageCSV. # noqa: E501
571
-
572
-
573
- :return: The cloud_provider of this AggregatedInstanceUsageCSV. # noqa: E501
574
- :rtype: CloudProviders
575
- """
576
- return self._cloud_provider
577
-
578
- @cloud_provider.setter
579
- def cloud_provider(self, cloud_provider):
580
- """Sets the cloud_provider of this AggregatedInstanceUsageCSV.
581
-
582
-
583
- :param cloud_provider: The cloud_provider of this AggregatedInstanceUsageCSV. # noqa: E501
584
- :type: CloudProviders
585
- """
586
- if self.local_vars_configuration.client_side_validation and cloud_provider is None: # noqa: E501
587
- raise ValueError("Invalid value for `cloud_provider`, must not be `None`") # noqa: E501
588
-
589
- self._cloud_provider = cloud_provider
590
-
591
- @property
592
- def anyscale_credits(self):
593
- """Gets the anyscale_credits of this AggregatedInstanceUsageCSV. # noqa: E501
594
-
595
-
596
- :return: The anyscale_credits of this AggregatedInstanceUsageCSV. # noqa: E501
597
- :rtype: float
598
- """
599
- return self._anyscale_credits
600
-
601
- @anyscale_credits.setter
602
- def anyscale_credits(self, anyscale_credits):
603
- """Sets the anyscale_credits of this AggregatedInstanceUsageCSV.
604
-
605
-
606
- :param anyscale_credits: The anyscale_credits of this AggregatedInstanceUsageCSV. # noqa: E501
607
- :type: float
608
- """
609
- if self.local_vars_configuration.client_side_validation and anyscale_credits is None: # noqa: E501
610
- raise ValueError("Invalid value for `anyscale_credits`, must not be `None`") # noqa: E501
611
-
612
- self._anyscale_credits = anyscale_credits
613
-
614
- @property
615
- def compute_stack(self):
616
- """Gets the compute_stack of this AggregatedInstanceUsageCSV. # noqa: E501
617
-
618
-
619
- :return: The compute_stack of this AggregatedInstanceUsageCSV. # noqa: E501
620
- :rtype: str
621
- """
622
- return self._compute_stack
623
-
624
- @compute_stack.setter
625
- def compute_stack(self, compute_stack):
626
- """Sets the compute_stack of this AggregatedInstanceUsageCSV.
627
-
628
-
629
- :param compute_stack: The compute_stack of this AggregatedInstanceUsageCSV. # noqa: E501
630
- :type: str
631
- """
632
-
633
- self._compute_stack = compute_stack
634
-
635
- @property
636
- def gpu_type(self):
637
- """Gets the gpu_type of this AggregatedInstanceUsageCSV. # noqa: E501
638
-
639
-
640
- :return: The gpu_type of this AggregatedInstanceUsageCSV. # noqa: E501
641
- :rtype: str
642
- """
643
- return self._gpu_type
644
-
645
- @gpu_type.setter
646
- def gpu_type(self, gpu_type):
647
- """Sets the gpu_type of this AggregatedInstanceUsageCSV.
648
-
649
-
650
- :param gpu_type: The gpu_type of this AggregatedInstanceUsageCSV. # noqa: E501
651
- :type: str
652
- """
653
-
654
- self._gpu_type = gpu_type
655
-
656
- @property
657
- def memory_mib(self):
658
- """Gets the memory_mib of this AggregatedInstanceUsageCSV. # noqa: E501
659
-
660
-
661
- :return: The memory_mib of this AggregatedInstanceUsageCSV. # noqa: E501
662
- :rtype: int
663
- """
664
- return self._memory_mib
665
-
666
- @memory_mib.setter
667
- def memory_mib(self, memory_mib):
668
- """Sets the memory_mib of this AggregatedInstanceUsageCSV.
669
-
670
-
671
- :param memory_mib: The memory_mib of this AggregatedInstanceUsageCSV. # noqa: E501
672
- :type: int
673
- """
674
-
675
- self._memory_mib = memory_mib
676
-
677
- @property
678
- def cpu_count(self):
679
- """Gets the cpu_count of this AggregatedInstanceUsageCSV. # noqa: E501
680
-
681
-
682
- :return: The cpu_count of this AggregatedInstanceUsageCSV. # noqa: E501
683
- :rtype: int
684
- """
685
- return self._cpu_count
686
-
687
- @cpu_count.setter
688
- def cpu_count(self, cpu_count):
689
- """Sets the cpu_count of this AggregatedInstanceUsageCSV.
690
-
691
-
692
- :param cpu_count: The cpu_count of this AggregatedInstanceUsageCSV. # noqa: E501
693
- :type: int
694
- """
695
-
696
- self._cpu_count = cpu_count
697
-
698
- @property
699
- def gpu_count(self):
700
- """Gets the gpu_count of this AggregatedInstanceUsageCSV. # noqa: E501
701
-
702
-
703
- :return: The gpu_count of this AggregatedInstanceUsageCSV. # noqa: E501
704
- :rtype: int
705
- """
706
- return self._gpu_count
707
-
708
- @gpu_count.setter
709
- def gpu_count(self, gpu_count):
710
- """Sets the gpu_count of this AggregatedInstanceUsageCSV.
711
-
712
-
713
- :param gpu_count: The gpu_count of this AggregatedInstanceUsageCSV. # noqa: E501
714
- :type: int
715
- """
716
-
717
- self._gpu_count = gpu_count
718
-
719
- @property
720
- def anyscale_managed_machine_pool_id(self):
721
- """Gets the anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV. # noqa: E501
722
-
723
-
724
- :return: The anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV. # noqa: E501
725
- :rtype: str
726
- """
727
- return self._anyscale_managed_machine_pool_id
728
-
729
- @anyscale_managed_machine_pool_id.setter
730
- def anyscale_managed_machine_pool_id(self, anyscale_managed_machine_pool_id):
731
- """Sets the anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV.
732
-
733
-
734
- :param anyscale_managed_machine_pool_id: The anyscale_managed_machine_pool_id of this AggregatedInstanceUsageCSV. # noqa: E501
735
- :type: str
736
- """
737
-
738
- self._anyscale_managed_machine_pool_id = anyscale_managed_machine_pool_id
739
-
740
- @property
741
- def anyscale_managed_machine_pool_name(self):
742
- """Gets the anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV. # noqa: E501
743
-
744
-
745
- :return: The anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV. # noqa: E501
746
- :rtype: str
747
- """
748
- return self._anyscale_managed_machine_pool_name
749
-
750
- @anyscale_managed_machine_pool_name.setter
751
- def anyscale_managed_machine_pool_name(self, anyscale_managed_machine_pool_name):
752
- """Sets the anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV.
753
-
754
-
755
- :param anyscale_managed_machine_pool_name: The anyscale_managed_machine_pool_name of this AggregatedInstanceUsageCSV. # noqa: E501
756
- :type: str
757
- """
758
-
759
- self._anyscale_managed_machine_pool_name = anyscale_managed_machine_pool_name
760
-
761
- @property
762
- def user_defined_machine_type(self):
763
- """Gets the user_defined_machine_type of this AggregatedInstanceUsageCSV. # noqa: E501
764
-
765
-
766
- :return: The user_defined_machine_type of this AggregatedInstanceUsageCSV. # noqa: E501
767
- :rtype: str
768
- """
769
- return self._user_defined_machine_type
770
-
771
- @user_defined_machine_type.setter
772
- def user_defined_machine_type(self, user_defined_machine_type):
773
- """Sets the user_defined_machine_type of this AggregatedInstanceUsageCSV.
774
-
775
-
776
- :param user_defined_machine_type: The user_defined_machine_type of this AggregatedInstanceUsageCSV. # noqa: E501
777
- :type: str
778
- """
779
-
780
- self._user_defined_machine_type = user_defined_machine_type
781
-
782
- @property
783
- def workspace_name(self):
784
- """Gets the workspace_name of this AggregatedInstanceUsageCSV. # noqa: E501
785
-
786
-
787
- :return: The workspace_name of this AggregatedInstanceUsageCSV. # noqa: E501
788
- :rtype: str
789
- """
790
- return self._workspace_name
791
-
792
- @workspace_name.setter
793
- def workspace_name(self, workspace_name):
794
- """Sets the workspace_name of this AggregatedInstanceUsageCSV.
795
-
796
-
797
- :param workspace_name: The workspace_name of this AggregatedInstanceUsageCSV. # noqa: E501
798
- :type: str
799
- """
800
-
801
- self._workspace_name = workspace_name
802
-
803
- @property
804
- def job_name(self):
805
- """Gets the job_name of this AggregatedInstanceUsageCSV. # noqa: E501
806
-
807
-
808
- :return: The job_name of this AggregatedInstanceUsageCSV. # noqa: E501
809
- :rtype: str
810
- """
811
- return self._job_name
812
-
813
- @job_name.setter
814
- def job_name(self, job_name):
815
- """Sets the job_name of this AggregatedInstanceUsageCSV.
816
-
817
-
818
- :param job_name: The job_name of this AggregatedInstanceUsageCSV. # noqa: E501
819
- :type: str
820
- """
821
-
822
- self._job_name = job_name
823
-
824
- @property
825
- def service_name(self):
826
- """Gets the service_name of this AggregatedInstanceUsageCSV. # noqa: E501
827
-
828
-
829
- :return: The service_name of this AggregatedInstanceUsageCSV. # noqa: E501
830
- :rtype: str
831
- """
832
- return self._service_name
833
-
834
- @service_name.setter
835
- def service_name(self, service_name):
836
- """Sets the service_name of this AggregatedInstanceUsageCSV.
837
-
838
-
839
- :param service_name: The service_name of this AggregatedInstanceUsageCSV. # noqa: E501
840
- :type: str
841
- """
842
-
843
- self._service_name = service_name
844
-
845
- def to_dict(self):
846
- """Returns the model properties as a dict"""
847
- result = {}
848
-
849
- for attr, _ in six.iteritems(self.openapi_types):
850
- value = getattr(self, attr)
851
- if isinstance(value, list):
852
- result[attr] = list(map(
853
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
854
- value
855
- ))
856
- elif hasattr(value, "to_dict"):
857
- result[attr] = value.to_dict()
858
- elif isinstance(value, dict):
859
- result[attr] = dict(map(
860
- lambda item: (item[0], item[1].to_dict())
861
- if hasattr(item[1], "to_dict") else item,
862
- value.items()
863
- ))
864
- else:
865
- result[attr] = value
866
-
867
- return result
868
-
869
- def to_str(self):
870
- """Returns the string representation of the model"""
871
- return pprint.pformat(self.to_dict())
872
-
873
- def __repr__(self):
874
- """For `print` and `pprint`"""
875
- return self.to_str()
876
-
877
- def __eq__(self, other):
878
- """Returns true if both objects are equal"""
879
- if not isinstance(other, AggregatedInstanceUsageCSV):
880
- return False
881
-
882
- return self.to_dict() == other.to_dict()
883
-
884
- def __ne__(self, other):
885
- """Returns true if both objects are not equal"""
886
- if not isinstance(other, AggregatedInstanceUsageCSV):
887
- return True
888
-
889
- return self.to_dict() != other.to_dict()