lightning-sdk 2025.8.7__py3-none-any.whl → 2025.8.8__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.
@@ -0,0 +1,877 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ClusterMetrics(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'cpus_util': 'float',
45
+ 'filesystem_inode_util': 'float',
46
+ 'filesystem_read_rate': 'float',
47
+ 'filesystem_util': 'float',
48
+ 'filesystem_write_rate': 'float',
49
+ 'gpus_energy_avg': 'float',
50
+ 'gpus_energy_total': 'float',
51
+ 'gpus_temp_avg': 'float',
52
+ 'gpus_util': 'float',
53
+ 'num_cpus': 'int',
54
+ 'num_gpus': 'int',
55
+ 'num_limit_cpus': 'int',
56
+ 'num_limit_gpus': 'int',
57
+ 'num_namespaces': 'int',
58
+ 'num_nodes': 'int',
59
+ 'num_pods': 'int',
60
+ 'num_requested_cpus': 'int',
61
+ 'num_requested_gpus': 'int',
62
+ 'ram_limit': 'str',
63
+ 'ram_requested': 'str',
64
+ 'ram_total': 'str',
65
+ 'ram_util': 'float',
66
+ 'timestamp': 'datetime',
67
+ 'vram_limit': 'float',
68
+ 'vram_read_write_util': 'float',
69
+ 'vram_requested': 'float',
70
+ 'vram_total': 'str',
71
+ 'vram_used_avg': 'float',
72
+ 'vram_used_total': 'float',
73
+ 'vram_util': 'float'
74
+ }
75
+
76
+ attribute_map = {
77
+ 'cpus_util': 'cpusUtil',
78
+ 'filesystem_inode_util': 'filesystemInodeUtil',
79
+ 'filesystem_read_rate': 'filesystemReadRate',
80
+ 'filesystem_util': 'filesystemUtil',
81
+ 'filesystem_write_rate': 'filesystemWriteRate',
82
+ 'gpus_energy_avg': 'gpusEnergyAvg',
83
+ 'gpus_energy_total': 'gpusEnergyTotal',
84
+ 'gpus_temp_avg': 'gpusTempAvg',
85
+ 'gpus_util': 'gpusUtil',
86
+ 'num_cpus': 'numCpus',
87
+ 'num_gpus': 'numGpus',
88
+ 'num_limit_cpus': 'numLimitCpus',
89
+ 'num_limit_gpus': 'numLimitGpus',
90
+ 'num_namespaces': 'numNamespaces',
91
+ 'num_nodes': 'numNodes',
92
+ 'num_pods': 'numPods',
93
+ 'num_requested_cpus': 'numRequestedCpus',
94
+ 'num_requested_gpus': 'numRequestedGpus',
95
+ 'ram_limit': 'ramLimit',
96
+ 'ram_requested': 'ramRequested',
97
+ 'ram_total': 'ramTotal',
98
+ 'ram_util': 'ramUtil',
99
+ 'timestamp': 'timestamp',
100
+ 'vram_limit': 'vramLimit',
101
+ 'vram_read_write_util': 'vramReadWriteUtil',
102
+ 'vram_requested': 'vramRequested',
103
+ 'vram_total': 'vramTotal',
104
+ 'vram_used_avg': 'vramUsedAvg',
105
+ 'vram_used_total': 'vramUsedTotal',
106
+ 'vram_util': 'vramUtil'
107
+ }
108
+
109
+ def __init__(self, cpus_util: 'float' =None, filesystem_inode_util: 'float' =None, filesystem_read_rate: 'float' =None, filesystem_util: 'float' =None, filesystem_write_rate: 'float' =None, gpus_energy_avg: 'float' =None, gpus_energy_total: 'float' =None, gpus_temp_avg: 'float' =None, gpus_util: 'float' =None, num_cpus: 'int' =None, num_gpus: 'int' =None, num_limit_cpus: 'int' =None, num_limit_gpus: 'int' =None, num_namespaces: 'int' =None, num_nodes: 'int' =None, num_pods: 'int' =None, num_requested_cpus: 'int' =None, num_requested_gpus: 'int' =None, ram_limit: 'str' =None, ram_requested: 'str' =None, ram_total: 'str' =None, ram_util: 'float' =None, timestamp: 'datetime' =None, vram_limit: 'float' =None, vram_read_write_util: 'float' =None, vram_requested: 'float' =None, vram_total: 'str' =None, vram_used_avg: 'float' =None, vram_used_total: 'float' =None, vram_util: 'float' =None): # noqa: E501
110
+ """V1ClusterMetrics - a model defined in Swagger""" # noqa: E501
111
+ self._cpus_util = None
112
+ self._filesystem_inode_util = None
113
+ self._filesystem_read_rate = None
114
+ self._filesystem_util = None
115
+ self._filesystem_write_rate = None
116
+ self._gpus_energy_avg = None
117
+ self._gpus_energy_total = None
118
+ self._gpus_temp_avg = None
119
+ self._gpus_util = None
120
+ self._num_cpus = None
121
+ self._num_gpus = None
122
+ self._num_limit_cpus = None
123
+ self._num_limit_gpus = None
124
+ self._num_namespaces = None
125
+ self._num_nodes = None
126
+ self._num_pods = None
127
+ self._num_requested_cpus = None
128
+ self._num_requested_gpus = None
129
+ self._ram_limit = None
130
+ self._ram_requested = None
131
+ self._ram_total = None
132
+ self._ram_util = None
133
+ self._timestamp = None
134
+ self._vram_limit = None
135
+ self._vram_read_write_util = None
136
+ self._vram_requested = None
137
+ self._vram_total = None
138
+ self._vram_used_avg = None
139
+ self._vram_used_total = None
140
+ self._vram_util = None
141
+ self.discriminator = None
142
+ if cpus_util is not None:
143
+ self.cpus_util = cpus_util
144
+ if filesystem_inode_util is not None:
145
+ self.filesystem_inode_util = filesystem_inode_util
146
+ if filesystem_read_rate is not None:
147
+ self.filesystem_read_rate = filesystem_read_rate
148
+ if filesystem_util is not None:
149
+ self.filesystem_util = filesystem_util
150
+ if filesystem_write_rate is not None:
151
+ self.filesystem_write_rate = filesystem_write_rate
152
+ if gpus_energy_avg is not None:
153
+ self.gpus_energy_avg = gpus_energy_avg
154
+ if gpus_energy_total is not None:
155
+ self.gpus_energy_total = gpus_energy_total
156
+ if gpus_temp_avg is not None:
157
+ self.gpus_temp_avg = gpus_temp_avg
158
+ if gpus_util is not None:
159
+ self.gpus_util = gpus_util
160
+ if num_cpus is not None:
161
+ self.num_cpus = num_cpus
162
+ if num_gpus is not None:
163
+ self.num_gpus = num_gpus
164
+ if num_limit_cpus is not None:
165
+ self.num_limit_cpus = num_limit_cpus
166
+ if num_limit_gpus is not None:
167
+ self.num_limit_gpus = num_limit_gpus
168
+ if num_namespaces is not None:
169
+ self.num_namespaces = num_namespaces
170
+ if num_nodes is not None:
171
+ self.num_nodes = num_nodes
172
+ if num_pods is not None:
173
+ self.num_pods = num_pods
174
+ if num_requested_cpus is not None:
175
+ self.num_requested_cpus = num_requested_cpus
176
+ if num_requested_gpus is not None:
177
+ self.num_requested_gpus = num_requested_gpus
178
+ if ram_limit is not None:
179
+ self.ram_limit = ram_limit
180
+ if ram_requested is not None:
181
+ self.ram_requested = ram_requested
182
+ if ram_total is not None:
183
+ self.ram_total = ram_total
184
+ if ram_util is not None:
185
+ self.ram_util = ram_util
186
+ if timestamp is not None:
187
+ self.timestamp = timestamp
188
+ if vram_limit is not None:
189
+ self.vram_limit = vram_limit
190
+ if vram_read_write_util is not None:
191
+ self.vram_read_write_util = vram_read_write_util
192
+ if vram_requested is not None:
193
+ self.vram_requested = vram_requested
194
+ if vram_total is not None:
195
+ self.vram_total = vram_total
196
+ if vram_used_avg is not None:
197
+ self.vram_used_avg = vram_used_avg
198
+ if vram_used_total is not None:
199
+ self.vram_used_total = vram_used_total
200
+ if vram_util is not None:
201
+ self.vram_util = vram_util
202
+
203
+ @property
204
+ def cpus_util(self) -> 'float':
205
+ """Gets the cpus_util of this V1ClusterMetrics. # noqa: E501
206
+
207
+
208
+ :return: The cpus_util of this V1ClusterMetrics. # noqa: E501
209
+ :rtype: float
210
+ """
211
+ return self._cpus_util
212
+
213
+ @cpus_util.setter
214
+ def cpus_util(self, cpus_util: 'float'):
215
+ """Sets the cpus_util of this V1ClusterMetrics.
216
+
217
+
218
+ :param cpus_util: The cpus_util of this V1ClusterMetrics. # noqa: E501
219
+ :type: float
220
+ """
221
+
222
+ self._cpus_util = cpus_util
223
+
224
+ @property
225
+ def filesystem_inode_util(self) -> 'float':
226
+ """Gets the filesystem_inode_util of this V1ClusterMetrics. # noqa: E501
227
+
228
+
229
+ :return: The filesystem_inode_util of this V1ClusterMetrics. # noqa: E501
230
+ :rtype: float
231
+ """
232
+ return self._filesystem_inode_util
233
+
234
+ @filesystem_inode_util.setter
235
+ def filesystem_inode_util(self, filesystem_inode_util: 'float'):
236
+ """Sets the filesystem_inode_util of this V1ClusterMetrics.
237
+
238
+
239
+ :param filesystem_inode_util: The filesystem_inode_util of this V1ClusterMetrics. # noqa: E501
240
+ :type: float
241
+ """
242
+
243
+ self._filesystem_inode_util = filesystem_inode_util
244
+
245
+ @property
246
+ def filesystem_read_rate(self) -> 'float':
247
+ """Gets the filesystem_read_rate of this V1ClusterMetrics. # noqa: E501
248
+
249
+
250
+ :return: The filesystem_read_rate of this V1ClusterMetrics. # noqa: E501
251
+ :rtype: float
252
+ """
253
+ return self._filesystem_read_rate
254
+
255
+ @filesystem_read_rate.setter
256
+ def filesystem_read_rate(self, filesystem_read_rate: 'float'):
257
+ """Sets the filesystem_read_rate of this V1ClusterMetrics.
258
+
259
+
260
+ :param filesystem_read_rate: The filesystem_read_rate of this V1ClusterMetrics. # noqa: E501
261
+ :type: float
262
+ """
263
+
264
+ self._filesystem_read_rate = filesystem_read_rate
265
+
266
+ @property
267
+ def filesystem_util(self) -> 'float':
268
+ """Gets the filesystem_util of this V1ClusterMetrics. # noqa: E501
269
+
270
+
271
+ :return: The filesystem_util of this V1ClusterMetrics. # noqa: E501
272
+ :rtype: float
273
+ """
274
+ return self._filesystem_util
275
+
276
+ @filesystem_util.setter
277
+ def filesystem_util(self, filesystem_util: 'float'):
278
+ """Sets the filesystem_util of this V1ClusterMetrics.
279
+
280
+
281
+ :param filesystem_util: The filesystem_util of this V1ClusterMetrics. # noqa: E501
282
+ :type: float
283
+ """
284
+
285
+ self._filesystem_util = filesystem_util
286
+
287
+ @property
288
+ def filesystem_write_rate(self) -> 'float':
289
+ """Gets the filesystem_write_rate of this V1ClusterMetrics. # noqa: E501
290
+
291
+
292
+ :return: The filesystem_write_rate of this V1ClusterMetrics. # noqa: E501
293
+ :rtype: float
294
+ """
295
+ return self._filesystem_write_rate
296
+
297
+ @filesystem_write_rate.setter
298
+ def filesystem_write_rate(self, filesystem_write_rate: 'float'):
299
+ """Sets the filesystem_write_rate of this V1ClusterMetrics.
300
+
301
+
302
+ :param filesystem_write_rate: The filesystem_write_rate of this V1ClusterMetrics. # noqa: E501
303
+ :type: float
304
+ """
305
+
306
+ self._filesystem_write_rate = filesystem_write_rate
307
+
308
+ @property
309
+ def gpus_energy_avg(self) -> 'float':
310
+ """Gets the gpus_energy_avg of this V1ClusterMetrics. # noqa: E501
311
+
312
+
313
+ :return: The gpus_energy_avg of this V1ClusterMetrics. # noqa: E501
314
+ :rtype: float
315
+ """
316
+ return self._gpus_energy_avg
317
+
318
+ @gpus_energy_avg.setter
319
+ def gpus_energy_avg(self, gpus_energy_avg: 'float'):
320
+ """Sets the gpus_energy_avg of this V1ClusterMetrics.
321
+
322
+
323
+ :param gpus_energy_avg: The gpus_energy_avg of this V1ClusterMetrics. # noqa: E501
324
+ :type: float
325
+ """
326
+
327
+ self._gpus_energy_avg = gpus_energy_avg
328
+
329
+ @property
330
+ def gpus_energy_total(self) -> 'float':
331
+ """Gets the gpus_energy_total of this V1ClusterMetrics. # noqa: E501
332
+
333
+
334
+ :return: The gpus_energy_total of this V1ClusterMetrics. # noqa: E501
335
+ :rtype: float
336
+ """
337
+ return self._gpus_energy_total
338
+
339
+ @gpus_energy_total.setter
340
+ def gpus_energy_total(self, gpus_energy_total: 'float'):
341
+ """Sets the gpus_energy_total of this V1ClusterMetrics.
342
+
343
+
344
+ :param gpus_energy_total: The gpus_energy_total of this V1ClusterMetrics. # noqa: E501
345
+ :type: float
346
+ """
347
+
348
+ self._gpus_energy_total = gpus_energy_total
349
+
350
+ @property
351
+ def gpus_temp_avg(self) -> 'float':
352
+ """Gets the gpus_temp_avg of this V1ClusterMetrics. # noqa: E501
353
+
354
+
355
+ :return: The gpus_temp_avg of this V1ClusterMetrics. # noqa: E501
356
+ :rtype: float
357
+ """
358
+ return self._gpus_temp_avg
359
+
360
+ @gpus_temp_avg.setter
361
+ def gpus_temp_avg(self, gpus_temp_avg: 'float'):
362
+ """Sets the gpus_temp_avg of this V1ClusterMetrics.
363
+
364
+
365
+ :param gpus_temp_avg: The gpus_temp_avg of this V1ClusterMetrics. # noqa: E501
366
+ :type: float
367
+ """
368
+
369
+ self._gpus_temp_avg = gpus_temp_avg
370
+
371
+ @property
372
+ def gpus_util(self) -> 'float':
373
+ """Gets the gpus_util of this V1ClusterMetrics. # noqa: E501
374
+
375
+
376
+ :return: The gpus_util of this V1ClusterMetrics. # noqa: E501
377
+ :rtype: float
378
+ """
379
+ return self._gpus_util
380
+
381
+ @gpus_util.setter
382
+ def gpus_util(self, gpus_util: 'float'):
383
+ """Sets the gpus_util of this V1ClusterMetrics.
384
+
385
+
386
+ :param gpus_util: The gpus_util of this V1ClusterMetrics. # noqa: E501
387
+ :type: float
388
+ """
389
+
390
+ self._gpus_util = gpus_util
391
+
392
+ @property
393
+ def num_cpus(self) -> 'int':
394
+ """Gets the num_cpus of this V1ClusterMetrics. # noqa: E501
395
+
396
+
397
+ :return: The num_cpus of this V1ClusterMetrics. # noqa: E501
398
+ :rtype: int
399
+ """
400
+ return self._num_cpus
401
+
402
+ @num_cpus.setter
403
+ def num_cpus(self, num_cpus: 'int'):
404
+ """Sets the num_cpus of this V1ClusterMetrics.
405
+
406
+
407
+ :param num_cpus: The num_cpus of this V1ClusterMetrics. # noqa: E501
408
+ :type: int
409
+ """
410
+
411
+ self._num_cpus = num_cpus
412
+
413
+ @property
414
+ def num_gpus(self) -> 'int':
415
+ """Gets the num_gpus of this V1ClusterMetrics. # noqa: E501
416
+
417
+
418
+ :return: The num_gpus of this V1ClusterMetrics. # noqa: E501
419
+ :rtype: int
420
+ """
421
+ return self._num_gpus
422
+
423
+ @num_gpus.setter
424
+ def num_gpus(self, num_gpus: 'int'):
425
+ """Sets the num_gpus of this V1ClusterMetrics.
426
+
427
+
428
+ :param num_gpus: The num_gpus of this V1ClusterMetrics. # noqa: E501
429
+ :type: int
430
+ """
431
+
432
+ self._num_gpus = num_gpus
433
+
434
+ @property
435
+ def num_limit_cpus(self) -> 'int':
436
+ """Gets the num_limit_cpus of this V1ClusterMetrics. # noqa: E501
437
+
438
+
439
+ :return: The num_limit_cpus of this V1ClusterMetrics. # noqa: E501
440
+ :rtype: int
441
+ """
442
+ return self._num_limit_cpus
443
+
444
+ @num_limit_cpus.setter
445
+ def num_limit_cpus(self, num_limit_cpus: 'int'):
446
+ """Sets the num_limit_cpus of this V1ClusterMetrics.
447
+
448
+
449
+ :param num_limit_cpus: The num_limit_cpus of this V1ClusterMetrics. # noqa: E501
450
+ :type: int
451
+ """
452
+
453
+ self._num_limit_cpus = num_limit_cpus
454
+
455
+ @property
456
+ def num_limit_gpus(self) -> 'int':
457
+ """Gets the num_limit_gpus of this V1ClusterMetrics. # noqa: E501
458
+
459
+
460
+ :return: The num_limit_gpus of this V1ClusterMetrics. # noqa: E501
461
+ :rtype: int
462
+ """
463
+ return self._num_limit_gpus
464
+
465
+ @num_limit_gpus.setter
466
+ def num_limit_gpus(self, num_limit_gpus: 'int'):
467
+ """Sets the num_limit_gpus of this V1ClusterMetrics.
468
+
469
+
470
+ :param num_limit_gpus: The num_limit_gpus of this V1ClusterMetrics. # noqa: E501
471
+ :type: int
472
+ """
473
+
474
+ self._num_limit_gpus = num_limit_gpus
475
+
476
+ @property
477
+ def num_namespaces(self) -> 'int':
478
+ """Gets the num_namespaces of this V1ClusterMetrics. # noqa: E501
479
+
480
+
481
+ :return: The num_namespaces of this V1ClusterMetrics. # noqa: E501
482
+ :rtype: int
483
+ """
484
+ return self._num_namespaces
485
+
486
+ @num_namespaces.setter
487
+ def num_namespaces(self, num_namespaces: 'int'):
488
+ """Sets the num_namespaces of this V1ClusterMetrics.
489
+
490
+
491
+ :param num_namespaces: The num_namespaces of this V1ClusterMetrics. # noqa: E501
492
+ :type: int
493
+ """
494
+
495
+ self._num_namespaces = num_namespaces
496
+
497
+ @property
498
+ def num_nodes(self) -> 'int':
499
+ """Gets the num_nodes of this V1ClusterMetrics. # noqa: E501
500
+
501
+
502
+ :return: The num_nodes of this V1ClusterMetrics. # noqa: E501
503
+ :rtype: int
504
+ """
505
+ return self._num_nodes
506
+
507
+ @num_nodes.setter
508
+ def num_nodes(self, num_nodes: 'int'):
509
+ """Sets the num_nodes of this V1ClusterMetrics.
510
+
511
+
512
+ :param num_nodes: The num_nodes of this V1ClusterMetrics. # noqa: E501
513
+ :type: int
514
+ """
515
+
516
+ self._num_nodes = num_nodes
517
+
518
+ @property
519
+ def num_pods(self) -> 'int':
520
+ """Gets the num_pods of this V1ClusterMetrics. # noqa: E501
521
+
522
+
523
+ :return: The num_pods of this V1ClusterMetrics. # noqa: E501
524
+ :rtype: int
525
+ """
526
+ return self._num_pods
527
+
528
+ @num_pods.setter
529
+ def num_pods(self, num_pods: 'int'):
530
+ """Sets the num_pods of this V1ClusterMetrics.
531
+
532
+
533
+ :param num_pods: The num_pods of this V1ClusterMetrics. # noqa: E501
534
+ :type: int
535
+ """
536
+
537
+ self._num_pods = num_pods
538
+
539
+ @property
540
+ def num_requested_cpus(self) -> 'int':
541
+ """Gets the num_requested_cpus of this V1ClusterMetrics. # noqa: E501
542
+
543
+
544
+ :return: The num_requested_cpus of this V1ClusterMetrics. # noqa: E501
545
+ :rtype: int
546
+ """
547
+ return self._num_requested_cpus
548
+
549
+ @num_requested_cpus.setter
550
+ def num_requested_cpus(self, num_requested_cpus: 'int'):
551
+ """Sets the num_requested_cpus of this V1ClusterMetrics.
552
+
553
+
554
+ :param num_requested_cpus: The num_requested_cpus of this V1ClusterMetrics. # noqa: E501
555
+ :type: int
556
+ """
557
+
558
+ self._num_requested_cpus = num_requested_cpus
559
+
560
+ @property
561
+ def num_requested_gpus(self) -> 'int':
562
+ """Gets the num_requested_gpus of this V1ClusterMetrics. # noqa: E501
563
+
564
+
565
+ :return: The num_requested_gpus of this V1ClusterMetrics. # noqa: E501
566
+ :rtype: int
567
+ """
568
+ return self._num_requested_gpus
569
+
570
+ @num_requested_gpus.setter
571
+ def num_requested_gpus(self, num_requested_gpus: 'int'):
572
+ """Sets the num_requested_gpus of this V1ClusterMetrics.
573
+
574
+
575
+ :param num_requested_gpus: The num_requested_gpus of this V1ClusterMetrics. # noqa: E501
576
+ :type: int
577
+ """
578
+
579
+ self._num_requested_gpus = num_requested_gpus
580
+
581
+ @property
582
+ def ram_limit(self) -> 'str':
583
+ """Gets the ram_limit of this V1ClusterMetrics. # noqa: E501
584
+
585
+
586
+ :return: The ram_limit of this V1ClusterMetrics. # noqa: E501
587
+ :rtype: str
588
+ """
589
+ return self._ram_limit
590
+
591
+ @ram_limit.setter
592
+ def ram_limit(self, ram_limit: 'str'):
593
+ """Sets the ram_limit of this V1ClusterMetrics.
594
+
595
+
596
+ :param ram_limit: The ram_limit of this V1ClusterMetrics. # noqa: E501
597
+ :type: str
598
+ """
599
+
600
+ self._ram_limit = ram_limit
601
+
602
+ @property
603
+ def ram_requested(self) -> 'str':
604
+ """Gets the ram_requested of this V1ClusterMetrics. # noqa: E501
605
+
606
+
607
+ :return: The ram_requested of this V1ClusterMetrics. # noqa: E501
608
+ :rtype: str
609
+ """
610
+ return self._ram_requested
611
+
612
+ @ram_requested.setter
613
+ def ram_requested(self, ram_requested: 'str'):
614
+ """Sets the ram_requested of this V1ClusterMetrics.
615
+
616
+
617
+ :param ram_requested: The ram_requested of this V1ClusterMetrics. # noqa: E501
618
+ :type: str
619
+ """
620
+
621
+ self._ram_requested = ram_requested
622
+
623
+ @property
624
+ def ram_total(self) -> 'str':
625
+ """Gets the ram_total of this V1ClusterMetrics. # noqa: E501
626
+
627
+
628
+ :return: The ram_total of this V1ClusterMetrics. # noqa: E501
629
+ :rtype: str
630
+ """
631
+ return self._ram_total
632
+
633
+ @ram_total.setter
634
+ def ram_total(self, ram_total: 'str'):
635
+ """Sets the ram_total of this V1ClusterMetrics.
636
+
637
+
638
+ :param ram_total: The ram_total of this V1ClusterMetrics. # noqa: E501
639
+ :type: str
640
+ """
641
+
642
+ self._ram_total = ram_total
643
+
644
+ @property
645
+ def ram_util(self) -> 'float':
646
+ """Gets the ram_util of this V1ClusterMetrics. # noqa: E501
647
+
648
+
649
+ :return: The ram_util of this V1ClusterMetrics. # noqa: E501
650
+ :rtype: float
651
+ """
652
+ return self._ram_util
653
+
654
+ @ram_util.setter
655
+ def ram_util(self, ram_util: 'float'):
656
+ """Sets the ram_util of this V1ClusterMetrics.
657
+
658
+
659
+ :param ram_util: The ram_util of this V1ClusterMetrics. # noqa: E501
660
+ :type: float
661
+ """
662
+
663
+ self._ram_util = ram_util
664
+
665
+ @property
666
+ def timestamp(self) -> 'datetime':
667
+ """Gets the timestamp of this V1ClusterMetrics. # noqa: E501
668
+
669
+
670
+ :return: The timestamp of this V1ClusterMetrics. # noqa: E501
671
+ :rtype: datetime
672
+ """
673
+ return self._timestamp
674
+
675
+ @timestamp.setter
676
+ def timestamp(self, timestamp: 'datetime'):
677
+ """Sets the timestamp of this V1ClusterMetrics.
678
+
679
+
680
+ :param timestamp: The timestamp of this V1ClusterMetrics. # noqa: E501
681
+ :type: datetime
682
+ """
683
+
684
+ self._timestamp = timestamp
685
+
686
+ @property
687
+ def vram_limit(self) -> 'float':
688
+ """Gets the vram_limit of this V1ClusterMetrics. # noqa: E501
689
+
690
+
691
+ :return: The vram_limit of this V1ClusterMetrics. # noqa: E501
692
+ :rtype: float
693
+ """
694
+ return self._vram_limit
695
+
696
+ @vram_limit.setter
697
+ def vram_limit(self, vram_limit: 'float'):
698
+ """Sets the vram_limit of this V1ClusterMetrics.
699
+
700
+
701
+ :param vram_limit: The vram_limit of this V1ClusterMetrics. # noqa: E501
702
+ :type: float
703
+ """
704
+
705
+ self._vram_limit = vram_limit
706
+
707
+ @property
708
+ def vram_read_write_util(self) -> 'float':
709
+ """Gets the vram_read_write_util of this V1ClusterMetrics. # noqa: E501
710
+
711
+
712
+ :return: The vram_read_write_util of this V1ClusterMetrics. # noqa: E501
713
+ :rtype: float
714
+ """
715
+ return self._vram_read_write_util
716
+
717
+ @vram_read_write_util.setter
718
+ def vram_read_write_util(self, vram_read_write_util: 'float'):
719
+ """Sets the vram_read_write_util of this V1ClusterMetrics.
720
+
721
+
722
+ :param vram_read_write_util: The vram_read_write_util of this V1ClusterMetrics. # noqa: E501
723
+ :type: float
724
+ """
725
+
726
+ self._vram_read_write_util = vram_read_write_util
727
+
728
+ @property
729
+ def vram_requested(self) -> 'float':
730
+ """Gets the vram_requested of this V1ClusterMetrics. # noqa: E501
731
+
732
+
733
+ :return: The vram_requested of this V1ClusterMetrics. # noqa: E501
734
+ :rtype: float
735
+ """
736
+ return self._vram_requested
737
+
738
+ @vram_requested.setter
739
+ def vram_requested(self, vram_requested: 'float'):
740
+ """Sets the vram_requested of this V1ClusterMetrics.
741
+
742
+
743
+ :param vram_requested: The vram_requested of this V1ClusterMetrics. # noqa: E501
744
+ :type: float
745
+ """
746
+
747
+ self._vram_requested = vram_requested
748
+
749
+ @property
750
+ def vram_total(self) -> 'str':
751
+ """Gets the vram_total of this V1ClusterMetrics. # noqa: E501
752
+
753
+
754
+ :return: The vram_total of this V1ClusterMetrics. # noqa: E501
755
+ :rtype: str
756
+ """
757
+ return self._vram_total
758
+
759
+ @vram_total.setter
760
+ def vram_total(self, vram_total: 'str'):
761
+ """Sets the vram_total of this V1ClusterMetrics.
762
+
763
+
764
+ :param vram_total: The vram_total of this V1ClusterMetrics. # noqa: E501
765
+ :type: str
766
+ """
767
+
768
+ self._vram_total = vram_total
769
+
770
+ @property
771
+ def vram_used_avg(self) -> 'float':
772
+ """Gets the vram_used_avg of this V1ClusterMetrics. # noqa: E501
773
+
774
+
775
+ :return: The vram_used_avg of this V1ClusterMetrics. # noqa: E501
776
+ :rtype: float
777
+ """
778
+ return self._vram_used_avg
779
+
780
+ @vram_used_avg.setter
781
+ def vram_used_avg(self, vram_used_avg: 'float'):
782
+ """Sets the vram_used_avg of this V1ClusterMetrics.
783
+
784
+
785
+ :param vram_used_avg: The vram_used_avg of this V1ClusterMetrics. # noqa: E501
786
+ :type: float
787
+ """
788
+
789
+ self._vram_used_avg = vram_used_avg
790
+
791
+ @property
792
+ def vram_used_total(self) -> 'float':
793
+ """Gets the vram_used_total of this V1ClusterMetrics. # noqa: E501
794
+
795
+
796
+ :return: The vram_used_total of this V1ClusterMetrics. # noqa: E501
797
+ :rtype: float
798
+ """
799
+ return self._vram_used_total
800
+
801
+ @vram_used_total.setter
802
+ def vram_used_total(self, vram_used_total: 'float'):
803
+ """Sets the vram_used_total of this V1ClusterMetrics.
804
+
805
+
806
+ :param vram_used_total: The vram_used_total of this V1ClusterMetrics. # noqa: E501
807
+ :type: float
808
+ """
809
+
810
+ self._vram_used_total = vram_used_total
811
+
812
+ @property
813
+ def vram_util(self) -> 'float':
814
+ """Gets the vram_util of this V1ClusterMetrics. # noqa: E501
815
+
816
+
817
+ :return: The vram_util of this V1ClusterMetrics. # noqa: E501
818
+ :rtype: float
819
+ """
820
+ return self._vram_util
821
+
822
+ @vram_util.setter
823
+ def vram_util(self, vram_util: 'float'):
824
+ """Sets the vram_util of this V1ClusterMetrics.
825
+
826
+
827
+ :param vram_util: The vram_util of this V1ClusterMetrics. # noqa: E501
828
+ :type: float
829
+ """
830
+
831
+ self._vram_util = vram_util
832
+
833
+ def to_dict(self) -> dict:
834
+ """Returns the model properties as a dict"""
835
+ result = {}
836
+
837
+ for attr, _ in six.iteritems(self.swagger_types):
838
+ value = getattr(self, attr)
839
+ if isinstance(value, list):
840
+ result[attr] = list(map(
841
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
842
+ value
843
+ ))
844
+ elif hasattr(value, "to_dict"):
845
+ result[attr] = value.to_dict()
846
+ elif isinstance(value, dict):
847
+ result[attr] = dict(map(
848
+ lambda item: (item[0], item[1].to_dict())
849
+ if hasattr(item[1], "to_dict") else item,
850
+ value.items()
851
+ ))
852
+ else:
853
+ result[attr] = value
854
+ if issubclass(V1ClusterMetrics, dict):
855
+ for key, value in self.items():
856
+ result[key] = value
857
+
858
+ return result
859
+
860
+ def to_str(self) -> str:
861
+ """Returns the string representation of the model"""
862
+ return pprint.pformat(self.to_dict())
863
+
864
+ def __repr__(self) -> str:
865
+ """For `print` and `pprint`"""
866
+ return self.to_str()
867
+
868
+ def __eq__(self, other: 'V1ClusterMetrics') -> bool:
869
+ """Returns true if both objects are equal"""
870
+ if not isinstance(other, V1ClusterMetrics):
871
+ return False
872
+
873
+ return self.__dict__ == other.__dict__
874
+
875
+ def __ne__(self, other: 'V1ClusterMetrics') -> bool:
876
+ """Returns true if both objects are not equal"""
877
+ return not self == other