lightning-sdk 2025.8.21__py3-none-any.whl → 2025.8.28__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 (54) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/studio_api.py +69 -2
  3. lightning_sdk/api/teamspace_api.py +60 -30
  4. lightning_sdk/api/user_api.py +49 -1
  5. lightning_sdk/api/utils.py +1 -1
  6. lightning_sdk/cli/config/set.py +6 -18
  7. lightning_sdk/cli/legacy/create.py +3 -3
  8. lightning_sdk/cli/legacy/delete.py +3 -3
  9. lightning_sdk/cli/legacy/deploy/_auth.py +4 -4
  10. lightning_sdk/cli/legacy/download.py +7 -7
  11. lightning_sdk/cli/legacy/job_and_mmt_action.py +4 -4
  12. lightning_sdk/cli/legacy/list.py +9 -9
  13. lightning_sdk/cli/legacy/open.py +3 -3
  14. lightning_sdk/cli/legacy/upload.py +3 -3
  15. lightning_sdk/cli/studio/create.py +16 -24
  16. lightning_sdk/cli/studio/delete.py +28 -27
  17. lightning_sdk/cli/studio/list.py +29 -15
  18. lightning_sdk/cli/studio/ssh.py +19 -22
  19. lightning_sdk/cli/studio/start.py +25 -25
  20. lightning_sdk/cli/studio/stop.py +25 -28
  21. lightning_sdk/cli/studio/switch.py +21 -24
  22. lightning_sdk/cli/utils/resolve.py +1 -1
  23. lightning_sdk/cli/utils/richt_print.py +24 -0
  24. lightning_sdk/cli/utils/save_to_config.py +27 -0
  25. lightning_sdk/cli/utils/studio_selection.py +106 -0
  26. lightning_sdk/cli/utils/teamspace_selection.py +125 -0
  27. lightning_sdk/lightning_cloud/openapi/__init__.py +2 -0
  28. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +85 -0
  29. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +101 -0
  30. lightning_sdk/lightning_cloud/openapi/models/__init__.py +2 -0
  31. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +270 -36
  33. lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +21 -21
  34. lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +11 -11
  36. lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +16 -16
  37. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +156 -26
  38. lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +145 -41
  39. lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +107 -3
  41. lightning_sdk/llm/public_assistants.py +4 -0
  42. lightning_sdk/studio.py +54 -22
  43. lightning_sdk/teamspace.py +25 -2
  44. lightning_sdk/user.py +19 -1
  45. lightning_sdk/utils/config.py +6 -0
  46. lightning_sdk/utils/names.py +1179 -0
  47. lightning_sdk/utils/progress.py +2 -2
  48. lightning_sdk/utils/resolve.py +17 -6
  49. {lightning_sdk-2025.8.21.dist-info → lightning_sdk-2025.8.28.dist-info}/METADATA +1 -1
  50. {lightning_sdk-2025.8.21.dist-info → lightning_sdk-2025.8.28.dist-info}/RECORD +54 -48
  51. {lightning_sdk-2025.8.21.dist-info → lightning_sdk-2025.8.28.dist-info}/LICENSE +0 -0
  52. {lightning_sdk-2025.8.21.dist-info → lightning_sdk-2025.8.28.dist-info}/WHEEL +0 -0
  53. {lightning_sdk-2025.8.21.dist-info → lightning_sdk-2025.8.28.dist-info}/entry_points.txt +0 -0
  54. {lightning_sdk-2025.8.21.dist-info → lightning_sdk-2025.8.28.dist-info}/top_level.txt +0 -0
@@ -44,16 +44,21 @@ class V1ClusterMetrics(object):
44
44
  'cpus_util': 'float',
45
45
  'filesystem_inode_util': 'float',
46
46
  'filesystem_read_rate': 'float',
47
- 'filesystem_total': 'float',
47
+ 'filesystem_total': 'str',
48
48
  'filesystem_util': 'float',
49
49
  'filesystem_write_rate': 'float',
50
+ 'gpu_sm_active': 'float',
51
+ 'gpu_sm_occupancy': 'float',
50
52
  'gpus_energy_avg': 'float',
53
+ 'gpus_energy_avg_running': 'float',
51
54
  'gpus_energy_total': 'float',
52
55
  'gpus_temp_avg': 'float',
56
+ 'gpus_temp_avg_running': 'float',
53
57
  'gpus_util': 'float',
54
58
  'gpus_util_over_allocable': 'float',
55
59
  'gpus_util_over_requested': 'float',
56
- 'max_power_per_gpu': 'float',
60
+ 'max_gpu_temp_recorded': 'int',
61
+ 'max_power_per_gpu': 'int',
57
62
  'num_cpus': 'int',
58
63
  'num_gpus': 'int',
59
64
  'num_gpus_allocable': 'int',
@@ -64,17 +69,21 @@ class V1ClusterMetrics(object):
64
69
  'num_pods': 'int',
65
70
  'num_requested_cpus': 'int',
66
71
  'num_requested_gpus': 'int',
72
+ 'nvlink_rx_gib_avg': 'float',
73
+ 'nvlink_tx_gib_avg': 'float',
74
+ 'pcie_rx_gib_avg': 'float',
75
+ 'pcie_tx_gib_avg': 'float',
67
76
  'ram_limit': 'str',
68
77
  'ram_requested': 'str',
69
78
  'ram_total': 'str',
70
79
  'ram_util': 'float',
71
80
  'timestamp': 'datetime',
72
- 'vram_limit': 'float',
81
+ 'vram_limit': 'int',
73
82
  'vram_read_write_util': 'float',
74
- 'vram_requested': 'float',
75
- 'vram_total': 'str',
76
- 'vram_used_avg': 'float',
77
- 'vram_used_total': 'float',
83
+ 'vram_requested': 'int',
84
+ 'vram_total': 'int',
85
+ 'vram_used_avg': 'int',
86
+ 'vram_used_total': 'int',
78
87
  'vram_util': 'float'
79
88
  }
80
89
 
@@ -85,12 +94,17 @@ class V1ClusterMetrics(object):
85
94
  'filesystem_total': 'filesystemTotal',
86
95
  'filesystem_util': 'filesystemUtil',
87
96
  'filesystem_write_rate': 'filesystemWriteRate',
97
+ 'gpu_sm_active': 'gpuSmActive',
98
+ 'gpu_sm_occupancy': 'gpuSmOccupancy',
88
99
  'gpus_energy_avg': 'gpusEnergyAvg',
100
+ 'gpus_energy_avg_running': 'gpusEnergyAvgRunning',
89
101
  'gpus_energy_total': 'gpusEnergyTotal',
90
102
  'gpus_temp_avg': 'gpusTempAvg',
103
+ 'gpus_temp_avg_running': 'gpusTempAvgRunning',
91
104
  'gpus_util': 'gpusUtil',
92
105
  'gpus_util_over_allocable': 'gpusUtilOverAllocable',
93
106
  'gpus_util_over_requested': 'gpusUtilOverRequested',
107
+ 'max_gpu_temp_recorded': 'maxGpuTempRecorded',
94
108
  'max_power_per_gpu': 'maxPowerPerGpu',
95
109
  'num_cpus': 'numCpus',
96
110
  'num_gpus': 'numGpus',
@@ -102,6 +116,10 @@ class V1ClusterMetrics(object):
102
116
  'num_pods': 'numPods',
103
117
  'num_requested_cpus': 'numRequestedCpus',
104
118
  'num_requested_gpus': 'numRequestedGpus',
119
+ 'nvlink_rx_gib_avg': 'nvlinkRxGibAvg',
120
+ 'nvlink_tx_gib_avg': 'nvlinkTxGibAvg',
121
+ 'pcie_rx_gib_avg': 'pcieRxGibAvg',
122
+ 'pcie_tx_gib_avg': 'pcieTxGibAvg',
105
123
  'ram_limit': 'ramLimit',
106
124
  'ram_requested': 'ramRequested',
107
125
  'ram_total': 'ramTotal',
@@ -116,7 +134,7 @@ class V1ClusterMetrics(object):
116
134
  'vram_util': 'vramUtil'
117
135
  }
118
136
 
119
- def __init__(self, cpus_util: 'float' =None, filesystem_inode_util: 'float' =None, filesystem_read_rate: 'float' =None, filesystem_total: '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, gpus_util_over_allocable: 'float' =None, gpus_util_over_requested: 'float' =None, max_power_per_gpu: 'float' =None, num_cpus: 'int' =None, num_gpus: 'int' =None, num_gpus_allocable: '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
137
+ def __init__(self, cpus_util: 'float' =None, filesystem_inode_util: 'float' =None, filesystem_read_rate: 'float' =None, filesystem_total: 'str' =None, filesystem_util: 'float' =None, filesystem_write_rate: 'float' =None, gpu_sm_active: 'float' =None, gpu_sm_occupancy: 'float' =None, gpus_energy_avg: 'float' =None, gpus_energy_avg_running: 'float' =None, gpus_energy_total: 'float' =None, gpus_temp_avg: 'float' =None, gpus_temp_avg_running: 'float' =None, gpus_util: 'float' =None, gpus_util_over_allocable: 'float' =None, gpus_util_over_requested: 'float' =None, max_gpu_temp_recorded: 'int' =None, max_power_per_gpu: 'int' =None, num_cpus: 'int' =None, num_gpus: 'int' =None, num_gpus_allocable: '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, nvlink_rx_gib_avg: 'float' =None, nvlink_tx_gib_avg: 'float' =None, pcie_rx_gib_avg: 'float' =None, pcie_tx_gib_avg: 'float' =None, ram_limit: 'str' =None, ram_requested: 'str' =None, ram_total: 'str' =None, ram_util: 'float' =None, timestamp: 'datetime' =None, vram_limit: 'int' =None, vram_read_write_util: 'float' =None, vram_requested: 'int' =None, vram_total: 'int' =None, vram_used_avg: 'int' =None, vram_used_total: 'int' =None, vram_util: 'float' =None): # noqa: E501
120
138
  """V1ClusterMetrics - a model defined in Swagger""" # noqa: E501
121
139
  self._cpus_util = None
122
140
  self._filesystem_inode_util = None
@@ -124,12 +142,17 @@ class V1ClusterMetrics(object):
124
142
  self._filesystem_total = None
125
143
  self._filesystem_util = None
126
144
  self._filesystem_write_rate = None
145
+ self._gpu_sm_active = None
146
+ self._gpu_sm_occupancy = None
127
147
  self._gpus_energy_avg = None
148
+ self._gpus_energy_avg_running = None
128
149
  self._gpus_energy_total = None
129
150
  self._gpus_temp_avg = None
151
+ self._gpus_temp_avg_running = None
130
152
  self._gpus_util = None
131
153
  self._gpus_util_over_allocable = None
132
154
  self._gpus_util_over_requested = None
155
+ self._max_gpu_temp_recorded = None
133
156
  self._max_power_per_gpu = None
134
157
  self._num_cpus = None
135
158
  self._num_gpus = None
@@ -141,6 +164,10 @@ class V1ClusterMetrics(object):
141
164
  self._num_pods = None
142
165
  self._num_requested_cpus = None
143
166
  self._num_requested_gpus = None
167
+ self._nvlink_rx_gib_avg = None
168
+ self._nvlink_tx_gib_avg = None
169
+ self._pcie_rx_gib_avg = None
170
+ self._pcie_tx_gib_avg = None
144
171
  self._ram_limit = None
145
172
  self._ram_requested = None
146
173
  self._ram_total = None
@@ -166,18 +193,28 @@ class V1ClusterMetrics(object):
166
193
  self.filesystem_util = filesystem_util
167
194
  if filesystem_write_rate is not None:
168
195
  self.filesystem_write_rate = filesystem_write_rate
196
+ if gpu_sm_active is not None:
197
+ self.gpu_sm_active = gpu_sm_active
198
+ if gpu_sm_occupancy is not None:
199
+ self.gpu_sm_occupancy = gpu_sm_occupancy
169
200
  if gpus_energy_avg is not None:
170
201
  self.gpus_energy_avg = gpus_energy_avg
202
+ if gpus_energy_avg_running is not None:
203
+ self.gpus_energy_avg_running = gpus_energy_avg_running
171
204
  if gpus_energy_total is not None:
172
205
  self.gpus_energy_total = gpus_energy_total
173
206
  if gpus_temp_avg is not None:
174
207
  self.gpus_temp_avg = gpus_temp_avg
208
+ if gpus_temp_avg_running is not None:
209
+ self.gpus_temp_avg_running = gpus_temp_avg_running
175
210
  if gpus_util is not None:
176
211
  self.gpus_util = gpus_util
177
212
  if gpus_util_over_allocable is not None:
178
213
  self.gpus_util_over_allocable = gpus_util_over_allocable
179
214
  if gpus_util_over_requested is not None:
180
215
  self.gpus_util_over_requested = gpus_util_over_requested
216
+ if max_gpu_temp_recorded is not None:
217
+ self.max_gpu_temp_recorded = max_gpu_temp_recorded
181
218
  if max_power_per_gpu is not None:
182
219
  self.max_power_per_gpu = max_power_per_gpu
183
220
  if num_cpus is not None:
@@ -200,6 +237,14 @@ class V1ClusterMetrics(object):
200
237
  self.num_requested_cpus = num_requested_cpus
201
238
  if num_requested_gpus is not None:
202
239
  self.num_requested_gpus = num_requested_gpus
240
+ if nvlink_rx_gib_avg is not None:
241
+ self.nvlink_rx_gib_avg = nvlink_rx_gib_avg
242
+ if nvlink_tx_gib_avg is not None:
243
+ self.nvlink_tx_gib_avg = nvlink_tx_gib_avg
244
+ if pcie_rx_gib_avg is not None:
245
+ self.pcie_rx_gib_avg = pcie_rx_gib_avg
246
+ if pcie_tx_gib_avg is not None:
247
+ self.pcie_tx_gib_avg = pcie_tx_gib_avg
203
248
  if ram_limit is not None:
204
249
  self.ram_limit = ram_limit
205
250
  if ram_requested is not None:
@@ -289,22 +334,22 @@ class V1ClusterMetrics(object):
289
334
  self._filesystem_read_rate = filesystem_read_rate
290
335
 
291
336
  @property
292
- def filesystem_total(self) -> 'float':
337
+ def filesystem_total(self) -> 'str':
293
338
  """Gets the filesystem_total of this V1ClusterMetrics. # noqa: E501
294
339
 
295
340
 
296
341
  :return: The filesystem_total of this V1ClusterMetrics. # noqa: E501
297
- :rtype: float
342
+ :rtype: str
298
343
  """
299
344
  return self._filesystem_total
300
345
 
301
346
  @filesystem_total.setter
302
- def filesystem_total(self, filesystem_total: 'float'):
347
+ def filesystem_total(self, filesystem_total: 'str'):
303
348
  """Sets the filesystem_total of this V1ClusterMetrics.
304
349
 
305
350
 
306
351
  :param filesystem_total: The filesystem_total of this V1ClusterMetrics. # noqa: E501
307
- :type: float
352
+ :type: str
308
353
  """
309
354
 
310
355
  self._filesystem_total = filesystem_total
@@ -351,6 +396,48 @@ class V1ClusterMetrics(object):
351
396
 
352
397
  self._filesystem_write_rate = filesystem_write_rate
353
398
 
399
+ @property
400
+ def gpu_sm_active(self) -> 'float':
401
+ """Gets the gpu_sm_active of this V1ClusterMetrics. # noqa: E501
402
+
403
+
404
+ :return: The gpu_sm_active of this V1ClusterMetrics. # noqa: E501
405
+ :rtype: float
406
+ """
407
+ return self._gpu_sm_active
408
+
409
+ @gpu_sm_active.setter
410
+ def gpu_sm_active(self, gpu_sm_active: 'float'):
411
+ """Sets the gpu_sm_active of this V1ClusterMetrics.
412
+
413
+
414
+ :param gpu_sm_active: The gpu_sm_active of this V1ClusterMetrics. # noqa: E501
415
+ :type: float
416
+ """
417
+
418
+ self._gpu_sm_active = gpu_sm_active
419
+
420
+ @property
421
+ def gpu_sm_occupancy(self) -> 'float':
422
+ """Gets the gpu_sm_occupancy of this V1ClusterMetrics. # noqa: E501
423
+
424
+
425
+ :return: The gpu_sm_occupancy of this V1ClusterMetrics. # noqa: E501
426
+ :rtype: float
427
+ """
428
+ return self._gpu_sm_occupancy
429
+
430
+ @gpu_sm_occupancy.setter
431
+ def gpu_sm_occupancy(self, gpu_sm_occupancy: 'float'):
432
+ """Sets the gpu_sm_occupancy of this V1ClusterMetrics.
433
+
434
+
435
+ :param gpu_sm_occupancy: The gpu_sm_occupancy of this V1ClusterMetrics. # noqa: E501
436
+ :type: float
437
+ """
438
+
439
+ self._gpu_sm_occupancy = gpu_sm_occupancy
440
+
354
441
  @property
355
442
  def gpus_energy_avg(self) -> 'float':
356
443
  """Gets the gpus_energy_avg of this V1ClusterMetrics. # noqa: E501
@@ -372,6 +459,27 @@ class V1ClusterMetrics(object):
372
459
 
373
460
  self._gpus_energy_avg = gpus_energy_avg
374
461
 
462
+ @property
463
+ def gpus_energy_avg_running(self) -> 'float':
464
+ """Gets the gpus_energy_avg_running of this V1ClusterMetrics. # noqa: E501
465
+
466
+
467
+ :return: The gpus_energy_avg_running of this V1ClusterMetrics. # noqa: E501
468
+ :rtype: float
469
+ """
470
+ return self._gpus_energy_avg_running
471
+
472
+ @gpus_energy_avg_running.setter
473
+ def gpus_energy_avg_running(self, gpus_energy_avg_running: 'float'):
474
+ """Sets the gpus_energy_avg_running of this V1ClusterMetrics.
475
+
476
+
477
+ :param gpus_energy_avg_running: The gpus_energy_avg_running of this V1ClusterMetrics. # noqa: E501
478
+ :type: float
479
+ """
480
+
481
+ self._gpus_energy_avg_running = gpus_energy_avg_running
482
+
375
483
  @property
376
484
  def gpus_energy_total(self) -> 'float':
377
485
  """Gets the gpus_energy_total of this V1ClusterMetrics. # noqa: E501
@@ -414,6 +522,27 @@ class V1ClusterMetrics(object):
414
522
 
415
523
  self._gpus_temp_avg = gpus_temp_avg
416
524
 
525
+ @property
526
+ def gpus_temp_avg_running(self) -> 'float':
527
+ """Gets the gpus_temp_avg_running of this V1ClusterMetrics. # noqa: E501
528
+
529
+
530
+ :return: The gpus_temp_avg_running of this V1ClusterMetrics. # noqa: E501
531
+ :rtype: float
532
+ """
533
+ return self._gpus_temp_avg_running
534
+
535
+ @gpus_temp_avg_running.setter
536
+ def gpus_temp_avg_running(self, gpus_temp_avg_running: 'float'):
537
+ """Sets the gpus_temp_avg_running of this V1ClusterMetrics.
538
+
539
+
540
+ :param gpus_temp_avg_running: The gpus_temp_avg_running of this V1ClusterMetrics. # noqa: E501
541
+ :type: float
542
+ """
543
+
544
+ self._gpus_temp_avg_running = gpus_temp_avg_running
545
+
417
546
  @property
418
547
  def gpus_util(self) -> 'float':
419
548
  """Gets the gpus_util of this V1ClusterMetrics. # noqa: E501
@@ -478,22 +607,43 @@ class V1ClusterMetrics(object):
478
607
  self._gpus_util_over_requested = gpus_util_over_requested
479
608
 
480
609
  @property
481
- def max_power_per_gpu(self) -> 'float':
610
+ def max_gpu_temp_recorded(self) -> 'int':
611
+ """Gets the max_gpu_temp_recorded of this V1ClusterMetrics. # noqa: E501
612
+
613
+
614
+ :return: The max_gpu_temp_recorded of this V1ClusterMetrics. # noqa: E501
615
+ :rtype: int
616
+ """
617
+ return self._max_gpu_temp_recorded
618
+
619
+ @max_gpu_temp_recorded.setter
620
+ def max_gpu_temp_recorded(self, max_gpu_temp_recorded: 'int'):
621
+ """Sets the max_gpu_temp_recorded of this V1ClusterMetrics.
622
+
623
+
624
+ :param max_gpu_temp_recorded: The max_gpu_temp_recorded of this V1ClusterMetrics. # noqa: E501
625
+ :type: int
626
+ """
627
+
628
+ self._max_gpu_temp_recorded = max_gpu_temp_recorded
629
+
630
+ @property
631
+ def max_power_per_gpu(self) -> 'int':
482
632
  """Gets the max_power_per_gpu of this V1ClusterMetrics. # noqa: E501
483
633
 
484
634
 
485
635
  :return: The max_power_per_gpu of this V1ClusterMetrics. # noqa: E501
486
- :rtype: float
636
+ :rtype: int
487
637
  """
488
638
  return self._max_power_per_gpu
489
639
 
490
640
  @max_power_per_gpu.setter
491
- def max_power_per_gpu(self, max_power_per_gpu: 'float'):
641
+ def max_power_per_gpu(self, max_power_per_gpu: 'int'):
492
642
  """Sets the max_power_per_gpu of this V1ClusterMetrics.
493
643
 
494
644
 
495
645
  :param max_power_per_gpu: The max_power_per_gpu of this V1ClusterMetrics. # noqa: E501
496
- :type: float
646
+ :type: int
497
647
  """
498
648
 
499
649
  self._max_power_per_gpu = max_power_per_gpu
@@ -708,6 +858,90 @@ class V1ClusterMetrics(object):
708
858
 
709
859
  self._num_requested_gpus = num_requested_gpus
710
860
 
861
+ @property
862
+ def nvlink_rx_gib_avg(self) -> 'float':
863
+ """Gets the nvlink_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
864
+
865
+
866
+ :return: The nvlink_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
867
+ :rtype: float
868
+ """
869
+ return self._nvlink_rx_gib_avg
870
+
871
+ @nvlink_rx_gib_avg.setter
872
+ def nvlink_rx_gib_avg(self, nvlink_rx_gib_avg: 'float'):
873
+ """Sets the nvlink_rx_gib_avg of this V1ClusterMetrics.
874
+
875
+
876
+ :param nvlink_rx_gib_avg: The nvlink_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
877
+ :type: float
878
+ """
879
+
880
+ self._nvlink_rx_gib_avg = nvlink_rx_gib_avg
881
+
882
+ @property
883
+ def nvlink_tx_gib_avg(self) -> 'float':
884
+ """Gets the nvlink_tx_gib_avg of this V1ClusterMetrics. # noqa: E501
885
+
886
+
887
+ :return: The nvlink_tx_gib_avg of this V1ClusterMetrics. # noqa: E501
888
+ :rtype: float
889
+ """
890
+ return self._nvlink_tx_gib_avg
891
+
892
+ @nvlink_tx_gib_avg.setter
893
+ def nvlink_tx_gib_avg(self, nvlink_tx_gib_avg: 'float'):
894
+ """Sets the nvlink_tx_gib_avg of this V1ClusterMetrics.
895
+
896
+
897
+ :param nvlink_tx_gib_avg: The nvlink_tx_gib_avg of this V1ClusterMetrics. # noqa: E501
898
+ :type: float
899
+ """
900
+
901
+ self._nvlink_tx_gib_avg = nvlink_tx_gib_avg
902
+
903
+ @property
904
+ def pcie_rx_gib_avg(self) -> 'float':
905
+ """Gets the pcie_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
906
+
907
+
908
+ :return: The pcie_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
909
+ :rtype: float
910
+ """
911
+ return self._pcie_rx_gib_avg
912
+
913
+ @pcie_rx_gib_avg.setter
914
+ def pcie_rx_gib_avg(self, pcie_rx_gib_avg: 'float'):
915
+ """Sets the pcie_rx_gib_avg of this V1ClusterMetrics.
916
+
917
+
918
+ :param pcie_rx_gib_avg: The pcie_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
919
+ :type: float
920
+ """
921
+
922
+ self._pcie_rx_gib_avg = pcie_rx_gib_avg
923
+
924
+ @property
925
+ def pcie_tx_gib_avg(self) -> 'float':
926
+ """Gets the pcie_tx_gib_avg of this V1ClusterMetrics. # noqa: E501
927
+
928
+
929
+ :return: The pcie_tx_gib_avg of this V1ClusterMetrics. # noqa: E501
930
+ :rtype: float
931
+ """
932
+ return self._pcie_tx_gib_avg
933
+
934
+ @pcie_tx_gib_avg.setter
935
+ def pcie_tx_gib_avg(self, pcie_tx_gib_avg: 'float'):
936
+ """Sets the pcie_tx_gib_avg of this V1ClusterMetrics.
937
+
938
+
939
+ :param pcie_tx_gib_avg: The pcie_tx_gib_avg of this V1ClusterMetrics. # noqa: E501
940
+ :type: float
941
+ """
942
+
943
+ self._pcie_tx_gib_avg = pcie_tx_gib_avg
944
+
711
945
  @property
712
946
  def ram_limit(self) -> 'str':
713
947
  """Gets the ram_limit of this V1ClusterMetrics. # noqa: E501
@@ -814,22 +1048,22 @@ class V1ClusterMetrics(object):
814
1048
  self._timestamp = timestamp
815
1049
 
816
1050
  @property
817
- def vram_limit(self) -> 'float':
1051
+ def vram_limit(self) -> 'int':
818
1052
  """Gets the vram_limit of this V1ClusterMetrics. # noqa: E501
819
1053
 
820
1054
 
821
1055
  :return: The vram_limit of this V1ClusterMetrics. # noqa: E501
822
- :rtype: float
1056
+ :rtype: int
823
1057
  """
824
1058
  return self._vram_limit
825
1059
 
826
1060
  @vram_limit.setter
827
- def vram_limit(self, vram_limit: 'float'):
1061
+ def vram_limit(self, vram_limit: 'int'):
828
1062
  """Sets the vram_limit of this V1ClusterMetrics.
829
1063
 
830
1064
 
831
1065
  :param vram_limit: The vram_limit of this V1ClusterMetrics. # noqa: E501
832
- :type: float
1066
+ :type: int
833
1067
  """
834
1068
 
835
1069
  self._vram_limit = vram_limit
@@ -856,85 +1090,85 @@ class V1ClusterMetrics(object):
856
1090
  self._vram_read_write_util = vram_read_write_util
857
1091
 
858
1092
  @property
859
- def vram_requested(self) -> 'float':
1093
+ def vram_requested(self) -> 'int':
860
1094
  """Gets the vram_requested of this V1ClusterMetrics. # noqa: E501
861
1095
 
862
1096
 
863
1097
  :return: The vram_requested of this V1ClusterMetrics. # noqa: E501
864
- :rtype: float
1098
+ :rtype: int
865
1099
  """
866
1100
  return self._vram_requested
867
1101
 
868
1102
  @vram_requested.setter
869
- def vram_requested(self, vram_requested: 'float'):
1103
+ def vram_requested(self, vram_requested: 'int'):
870
1104
  """Sets the vram_requested of this V1ClusterMetrics.
871
1105
 
872
1106
 
873
1107
  :param vram_requested: The vram_requested of this V1ClusterMetrics. # noqa: E501
874
- :type: float
1108
+ :type: int
875
1109
  """
876
1110
 
877
1111
  self._vram_requested = vram_requested
878
1112
 
879
1113
  @property
880
- def vram_total(self) -> 'str':
1114
+ def vram_total(self) -> 'int':
881
1115
  """Gets the vram_total of this V1ClusterMetrics. # noqa: E501
882
1116
 
883
1117
 
884
1118
  :return: The vram_total of this V1ClusterMetrics. # noqa: E501
885
- :rtype: str
1119
+ :rtype: int
886
1120
  """
887
1121
  return self._vram_total
888
1122
 
889
1123
  @vram_total.setter
890
- def vram_total(self, vram_total: 'str'):
1124
+ def vram_total(self, vram_total: 'int'):
891
1125
  """Sets the vram_total of this V1ClusterMetrics.
892
1126
 
893
1127
 
894
1128
  :param vram_total: The vram_total of this V1ClusterMetrics. # noqa: E501
895
- :type: str
1129
+ :type: int
896
1130
  """
897
1131
 
898
1132
  self._vram_total = vram_total
899
1133
 
900
1134
  @property
901
- def vram_used_avg(self) -> 'float':
1135
+ def vram_used_avg(self) -> 'int':
902
1136
  """Gets the vram_used_avg of this V1ClusterMetrics. # noqa: E501
903
1137
 
904
1138
 
905
1139
  :return: The vram_used_avg of this V1ClusterMetrics. # noqa: E501
906
- :rtype: float
1140
+ :rtype: int
907
1141
  """
908
1142
  return self._vram_used_avg
909
1143
 
910
1144
  @vram_used_avg.setter
911
- def vram_used_avg(self, vram_used_avg: 'float'):
1145
+ def vram_used_avg(self, vram_used_avg: 'int'):
912
1146
  """Sets the vram_used_avg of this V1ClusterMetrics.
913
1147
 
914
1148
 
915
1149
  :param vram_used_avg: The vram_used_avg of this V1ClusterMetrics. # noqa: E501
916
- :type: float
1150
+ :type: int
917
1151
  """
918
1152
 
919
1153
  self._vram_used_avg = vram_used_avg
920
1154
 
921
1155
  @property
922
- def vram_used_total(self) -> 'float':
1156
+ def vram_used_total(self) -> 'int':
923
1157
  """Gets the vram_used_total of this V1ClusterMetrics. # noqa: E501
924
1158
 
925
1159
 
926
1160
  :return: The vram_used_total of this V1ClusterMetrics. # noqa: E501
927
- :rtype: float
1161
+ :rtype: int
928
1162
  """
929
1163
  return self._vram_used_total
930
1164
 
931
1165
  @vram_used_total.setter
932
- def vram_used_total(self, vram_used_total: 'float'):
1166
+ def vram_used_total(self, vram_used_total: 'int'):
933
1167
  """Sets the vram_used_total of this V1ClusterMetrics.
934
1168
 
935
1169
 
936
1170
  :param vram_used_total: The vram_used_total of this V1ClusterMetrics. # noqa: E501
937
- :type: float
1171
+ :type: int
938
1172
  """
939
1173
 
940
1174
  self._vram_used_total = vram_used_total
@@ -47,10 +47,10 @@ class V1ContainerMetrics(object):
47
47
  'mem_usage': 'float',
48
48
  'namespace': 'str',
49
49
  'node_name': 'str',
50
- 'num_cpus_limit': 'float',
51
- 'num_cpus_request': 'float',
52
- 'num_gpus': 'float',
53
- 'per_gpu_mem_used': 'dict(str, float)',
50
+ 'num_cpus_limit': 'int',
51
+ 'num_cpus_request': 'int',
52
+ 'num_gpus': 'int',
53
+ 'per_gpu_mem_used': 'dict(str, int)',
54
54
  'per_gpu_util': 'dict(str, float)',
55
55
  'pod_id': 'str',
56
56
  'pod_name': 'str',
@@ -74,7 +74,7 @@ class V1ContainerMetrics(object):
74
74
  'timestamp': 'timestamp'
75
75
  }
76
76
 
77
- def __init__(self, container_id: 'str' =None, container_name: 'str' =None, cpu_usage: 'float' =None, mem_usage: 'float' =None, namespace: 'str' =None, node_name: 'str' =None, num_cpus_limit: 'float' =None, num_cpus_request: 'float' =None, num_gpus: 'float' =None, per_gpu_mem_used: 'dict(str, float)' =None, per_gpu_util: 'dict(str, float)' =None, pod_id: 'str' =None, pod_name: 'str' =None, timestamp: 'datetime' =None): # noqa: E501
77
+ def __init__(self, container_id: 'str' =None, container_name: 'str' =None, cpu_usage: 'float' =None, mem_usage: 'float' =None, namespace: 'str' =None, node_name: 'str' =None, num_cpus_limit: 'int' =None, num_cpus_request: 'int' =None, num_gpus: 'int' =None, per_gpu_mem_used: 'dict(str, int)' =None, per_gpu_util: 'dict(str, float)' =None, pod_id: 'str' =None, pod_name: 'str' =None, timestamp: 'datetime' =None): # noqa: E501
78
78
  """V1ContainerMetrics - a model defined in Swagger""" # noqa: E501
79
79
  self._container_id = None
80
80
  self._container_name = None
@@ -247,85 +247,85 @@ class V1ContainerMetrics(object):
247
247
  self._node_name = node_name
248
248
 
249
249
  @property
250
- def num_cpus_limit(self) -> 'float':
250
+ def num_cpus_limit(self) -> 'int':
251
251
  """Gets the num_cpus_limit of this V1ContainerMetrics. # noqa: E501
252
252
 
253
253
 
254
254
  :return: The num_cpus_limit of this V1ContainerMetrics. # noqa: E501
255
- :rtype: float
255
+ :rtype: int
256
256
  """
257
257
  return self._num_cpus_limit
258
258
 
259
259
  @num_cpus_limit.setter
260
- def num_cpus_limit(self, num_cpus_limit: 'float'):
260
+ def num_cpus_limit(self, num_cpus_limit: 'int'):
261
261
  """Sets the num_cpus_limit of this V1ContainerMetrics.
262
262
 
263
263
 
264
264
  :param num_cpus_limit: The num_cpus_limit of this V1ContainerMetrics. # noqa: E501
265
- :type: float
265
+ :type: int
266
266
  """
267
267
 
268
268
  self._num_cpus_limit = num_cpus_limit
269
269
 
270
270
  @property
271
- def num_cpus_request(self) -> 'float':
271
+ def num_cpus_request(self) -> 'int':
272
272
  """Gets the num_cpus_request of this V1ContainerMetrics. # noqa: E501
273
273
 
274
274
 
275
275
  :return: The num_cpus_request of this V1ContainerMetrics. # noqa: E501
276
- :rtype: float
276
+ :rtype: int
277
277
  """
278
278
  return self._num_cpus_request
279
279
 
280
280
  @num_cpus_request.setter
281
- def num_cpus_request(self, num_cpus_request: 'float'):
281
+ def num_cpus_request(self, num_cpus_request: 'int'):
282
282
  """Sets the num_cpus_request of this V1ContainerMetrics.
283
283
 
284
284
 
285
285
  :param num_cpus_request: The num_cpus_request of this V1ContainerMetrics. # noqa: E501
286
- :type: float
286
+ :type: int
287
287
  """
288
288
 
289
289
  self._num_cpus_request = num_cpus_request
290
290
 
291
291
  @property
292
- def num_gpus(self) -> 'float':
292
+ def num_gpus(self) -> 'int':
293
293
  """Gets the num_gpus of this V1ContainerMetrics. # noqa: E501
294
294
 
295
295
 
296
296
  :return: The num_gpus of this V1ContainerMetrics. # noqa: E501
297
- :rtype: float
297
+ :rtype: int
298
298
  """
299
299
  return self._num_gpus
300
300
 
301
301
  @num_gpus.setter
302
- def num_gpus(self, num_gpus: 'float'):
302
+ def num_gpus(self, num_gpus: 'int'):
303
303
  """Sets the num_gpus of this V1ContainerMetrics.
304
304
 
305
305
 
306
306
  :param num_gpus: The num_gpus of this V1ContainerMetrics. # noqa: E501
307
- :type: float
307
+ :type: int
308
308
  """
309
309
 
310
310
  self._num_gpus = num_gpus
311
311
 
312
312
  @property
313
- def per_gpu_mem_used(self) -> 'dict(str, float)':
313
+ def per_gpu_mem_used(self) -> 'dict(str, int)':
314
314
  """Gets the per_gpu_mem_used of this V1ContainerMetrics. # noqa: E501
315
315
 
316
316
 
317
317
  :return: The per_gpu_mem_used of this V1ContainerMetrics. # noqa: E501
318
- :rtype: dict(str, float)
318
+ :rtype: dict(str, int)
319
319
  """
320
320
  return self._per_gpu_mem_used
321
321
 
322
322
  @per_gpu_mem_used.setter
323
- def per_gpu_mem_used(self, per_gpu_mem_used: 'dict(str, float)'):
323
+ def per_gpu_mem_used(self, per_gpu_mem_used: 'dict(str, int)'):
324
324
  """Sets the per_gpu_mem_used of this V1ContainerMetrics.
325
325
 
326
326
 
327
327
  :param per_gpu_mem_used: The per_gpu_mem_used of this V1ContainerMetrics. # noqa: E501
328
- :type: dict(str, float)
328
+ :type: dict(str, int)
329
329
  """
330
330
 
331
331
  self._per_gpu_mem_used = per_gpu_mem_used