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