lightning-sdk 2025.10.31__py3-none-any.whl → 2025.11.13__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 (53) hide show
  1. lightning_sdk/__init__.py +6 -6
  2. lightning_sdk/__version__.py +3 -0
  3. lightning_sdk/agents.py +2 -1
  4. lightning_sdk/ai_hub.py +2 -1
  5. lightning_sdk/api/cloud_account_api.py +2 -2
  6. lightning_sdk/api/deployment_api.py +11 -1
  7. lightning_sdk/api/utils.py +58 -1
  8. lightning_sdk/cli/legacy/deploy/serve.py +16 -2
  9. lightning_sdk/cli/studio/__init__.py +2 -0
  10. lightning_sdk/cli/studio/cp.py +138 -0
  11. lightning_sdk/cli/utils/logging.py +2 -1
  12. lightning_sdk/cli/utils/studio_selection.py +3 -3
  13. lightning_sdk/deployment/__init__.py +2 -0
  14. lightning_sdk/deployment/deployment.py +33 -5
  15. lightning_sdk/helpers.py +1 -1
  16. lightning_sdk/job/base.py +2 -1
  17. lightning_sdk/job/job.py +7 -1
  18. lightning_sdk/lightning_cloud/openapi/__init__.py +5 -2
  19. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  20. lightning_sdk/lightning_cloud/openapi/api/incidents_service_api.py +1058 -0
  21. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +415 -1508
  22. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +105 -0
  23. lightning_sdk/lightning_cloud/openapi/models/__init__.py +4 -2
  24. lightning_sdk/lightning_cloud/openapi/models/{project_id_kubernetestemplates_body.py → cluster_id_kubernetestemplates_body.py} +23 -49
  25. lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +3 -29
  26. lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +1 -27
  27. lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +3 -29
  28. lightning_sdk/lightning_cloud/openapi/models/storagetransfers_validate_body.py +149 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +1 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +287 -1
  31. lightning_sdk/lightning_cloud/openapi/models/{project_id_incidents_body.py → v1_create_incident_request.py} +61 -35
  32. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +1 -27
  34. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -53
  36. lightning_sdk/lightning_cloud/openapi/models/v1_validate_storage_transfer_response.py +123 -0
  37. lightning_sdk/lit_container.py +9 -0
  38. lightning_sdk/machine.py +8 -0
  39. lightning_sdk/mmt/mmt.py +8 -4
  40. lightning_sdk/models.py +8 -0
  41. lightning_sdk/owner.py +2 -1
  42. lightning_sdk/pipeline/pipeline.py +3 -0
  43. lightning_sdk/plugin.py +2 -1
  44. lightning_sdk/serve.py +3 -1
  45. lightning_sdk/studio.py +10 -5
  46. lightning_sdk/teamspace.py +17 -1
  47. lightning_sdk/utils/logging.py +8 -1
  48. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/METADATA +1 -1
  49. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/RECORD +53 -48
  50. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/LICENSE +0 -0
  51. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/WHEEL +0 -0
  52. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/entry_points.txt +0 -0
  53. {lightning_sdk-2025.10.31.dist-info → lightning_sdk-2025.11.13.dist-info}/top_level.txt +0 -0
@@ -56,9 +56,11 @@ class V1ClusterMetrics(object):
56
56
  'gpus_temp_avg_running': 'float',
57
57
  'gpus_util': 'float',
58
58
  'gpus_util_over_allocable': 'float',
59
+ 'gpus_util_over_allocated': 'float',
59
60
  'gpus_util_over_requested': 'float',
60
61
  'max_gpu_temp_recorded': 'int',
61
62
  'max_power_per_gpu': 'int',
63
+ 'num_allocated_gpus': 'int',
62
64
  'num_cpus': 'int',
63
65
  'num_gpus': 'int',
64
66
  'num_gpus_allocable': 'int',
@@ -69,6 +71,15 @@ class V1ClusterMetrics(object):
69
71
  'num_pods': 'int',
70
72
  'num_requested_cpus': 'int',
71
73
  'num_requested_gpus': 'int',
74
+ 'num_throttled_gpus': 'int',
75
+ 'num_throttled_gpus_application_clock': 'int',
76
+ 'num_throttled_gpus_hardware_thermal_slowdown': 'int',
77
+ 'num_throttled_gpus_hw_power_brake': 'int',
78
+ 'num_throttled_gpus_hw_slowdown': 'int',
79
+ 'num_throttled_gpus_idle_workloads': 'int',
80
+ 'num_throttled_gpus_software_thermal_slowdown': 'int',
81
+ 'num_throttled_gpus_sw_power_limit': 'int',
82
+ 'num_throttled_gpus_sync_boost': 'int',
72
83
  'nvlink_rx_gib_avg': 'float',
73
84
  'nvlink_tx_gib_avg': 'float',
74
85
  'pcie_rx_gib_avg': 'float',
@@ -103,9 +114,11 @@ class V1ClusterMetrics(object):
103
114
  'gpus_temp_avg_running': 'gpusTempAvgRunning',
104
115
  'gpus_util': 'gpusUtil',
105
116
  'gpus_util_over_allocable': 'gpusUtilOverAllocable',
117
+ 'gpus_util_over_allocated': 'gpusUtilOverAllocated',
106
118
  'gpus_util_over_requested': 'gpusUtilOverRequested',
107
119
  'max_gpu_temp_recorded': 'maxGpuTempRecorded',
108
120
  'max_power_per_gpu': 'maxPowerPerGpu',
121
+ 'num_allocated_gpus': 'numAllocatedGpus',
109
122
  'num_cpus': 'numCpus',
110
123
  'num_gpus': 'numGpus',
111
124
  'num_gpus_allocable': 'numGpusAllocable',
@@ -116,6 +129,15 @@ class V1ClusterMetrics(object):
116
129
  'num_pods': 'numPods',
117
130
  'num_requested_cpus': 'numRequestedCpus',
118
131
  'num_requested_gpus': 'numRequestedGpus',
132
+ 'num_throttled_gpus': 'numThrottledGpus',
133
+ 'num_throttled_gpus_application_clock': 'numThrottledGpusApplicationClock',
134
+ 'num_throttled_gpus_hardware_thermal_slowdown': 'numThrottledGpusHardwareThermalSlowdown',
135
+ 'num_throttled_gpus_hw_power_brake': 'numThrottledGpusHwPowerBrake',
136
+ 'num_throttled_gpus_hw_slowdown': 'numThrottledGpusHwSlowdown',
137
+ 'num_throttled_gpus_idle_workloads': 'numThrottledGpusIdleWorkloads',
138
+ 'num_throttled_gpus_software_thermal_slowdown': 'numThrottledGpusSoftwareThermalSlowdown',
139
+ 'num_throttled_gpus_sw_power_limit': 'numThrottledGpusSwPowerLimit',
140
+ 'num_throttled_gpus_sync_boost': 'numThrottledGpusSyncBoost',
119
141
  'nvlink_rx_gib_avg': 'nvlinkRxGibAvg',
120
142
  'nvlink_tx_gib_avg': 'nvlinkTxGibAvg',
121
143
  'pcie_rx_gib_avg': 'pcieRxGibAvg',
@@ -134,7 +156,7 @@ class V1ClusterMetrics(object):
134
156
  'vram_util': 'vramUtil'
135
157
  }
136
158
 
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
159
+ 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_allocated: 'float' =None, gpus_util_over_requested: 'float' =None, max_gpu_temp_recorded: 'int' =None, max_power_per_gpu: 'int' =None, num_allocated_gpus: '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, num_throttled_gpus: 'int' =None, num_throttled_gpus_application_clock: 'int' =None, num_throttled_gpus_hardware_thermal_slowdown: 'int' =None, num_throttled_gpus_hw_power_brake: 'int' =None, num_throttled_gpus_hw_slowdown: 'int' =None, num_throttled_gpus_idle_workloads: 'int' =None, num_throttled_gpus_software_thermal_slowdown: 'int' =None, num_throttled_gpus_sw_power_limit: 'int' =None, num_throttled_gpus_sync_boost: '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
138
160
  """V1ClusterMetrics - a model defined in Swagger""" # noqa: E501
139
161
  self._cpus_util = None
140
162
  self._filesystem_inode_util = None
@@ -151,9 +173,11 @@ class V1ClusterMetrics(object):
151
173
  self._gpus_temp_avg_running = None
152
174
  self._gpus_util = None
153
175
  self._gpus_util_over_allocable = None
176
+ self._gpus_util_over_allocated = None
154
177
  self._gpus_util_over_requested = None
155
178
  self._max_gpu_temp_recorded = None
156
179
  self._max_power_per_gpu = None
180
+ self._num_allocated_gpus = None
157
181
  self._num_cpus = None
158
182
  self._num_gpus = None
159
183
  self._num_gpus_allocable = None
@@ -164,6 +188,15 @@ class V1ClusterMetrics(object):
164
188
  self._num_pods = None
165
189
  self._num_requested_cpus = None
166
190
  self._num_requested_gpus = None
191
+ self._num_throttled_gpus = None
192
+ self._num_throttled_gpus_application_clock = None
193
+ self._num_throttled_gpus_hardware_thermal_slowdown = None
194
+ self._num_throttled_gpus_hw_power_brake = None
195
+ self._num_throttled_gpus_hw_slowdown = None
196
+ self._num_throttled_gpus_idle_workloads = None
197
+ self._num_throttled_gpus_software_thermal_slowdown = None
198
+ self._num_throttled_gpus_sw_power_limit = None
199
+ self._num_throttled_gpus_sync_boost = None
167
200
  self._nvlink_rx_gib_avg = None
168
201
  self._nvlink_tx_gib_avg = None
169
202
  self._pcie_rx_gib_avg = None
@@ -211,12 +244,16 @@ class V1ClusterMetrics(object):
211
244
  self.gpus_util = gpus_util
212
245
  if gpus_util_over_allocable is not None:
213
246
  self.gpus_util_over_allocable = gpus_util_over_allocable
247
+ if gpus_util_over_allocated is not None:
248
+ self.gpus_util_over_allocated = gpus_util_over_allocated
214
249
  if gpus_util_over_requested is not None:
215
250
  self.gpus_util_over_requested = gpus_util_over_requested
216
251
  if max_gpu_temp_recorded is not None:
217
252
  self.max_gpu_temp_recorded = max_gpu_temp_recorded
218
253
  if max_power_per_gpu is not None:
219
254
  self.max_power_per_gpu = max_power_per_gpu
255
+ if num_allocated_gpus is not None:
256
+ self.num_allocated_gpus = num_allocated_gpus
220
257
  if num_cpus is not None:
221
258
  self.num_cpus = num_cpus
222
259
  if num_gpus is not None:
@@ -237,6 +274,24 @@ class V1ClusterMetrics(object):
237
274
  self.num_requested_cpus = num_requested_cpus
238
275
  if num_requested_gpus is not None:
239
276
  self.num_requested_gpus = num_requested_gpus
277
+ if num_throttled_gpus is not None:
278
+ self.num_throttled_gpus = num_throttled_gpus
279
+ if num_throttled_gpus_application_clock is not None:
280
+ self.num_throttled_gpus_application_clock = num_throttled_gpus_application_clock
281
+ if num_throttled_gpus_hardware_thermal_slowdown is not None:
282
+ self.num_throttled_gpus_hardware_thermal_slowdown = num_throttled_gpus_hardware_thermal_slowdown
283
+ if num_throttled_gpus_hw_power_brake is not None:
284
+ self.num_throttled_gpus_hw_power_brake = num_throttled_gpus_hw_power_brake
285
+ if num_throttled_gpus_hw_slowdown is not None:
286
+ self.num_throttled_gpus_hw_slowdown = num_throttled_gpus_hw_slowdown
287
+ if num_throttled_gpus_idle_workloads is not None:
288
+ self.num_throttled_gpus_idle_workloads = num_throttled_gpus_idle_workloads
289
+ if num_throttled_gpus_software_thermal_slowdown is not None:
290
+ self.num_throttled_gpus_software_thermal_slowdown = num_throttled_gpus_software_thermal_slowdown
291
+ if num_throttled_gpus_sw_power_limit is not None:
292
+ self.num_throttled_gpus_sw_power_limit = num_throttled_gpus_sw_power_limit
293
+ if num_throttled_gpus_sync_boost is not None:
294
+ self.num_throttled_gpus_sync_boost = num_throttled_gpus_sync_boost
240
295
  if nvlink_rx_gib_avg is not None:
241
296
  self.nvlink_rx_gib_avg = nvlink_rx_gib_avg
242
297
  if nvlink_tx_gib_avg is not None:
@@ -585,6 +640,27 @@ class V1ClusterMetrics(object):
585
640
 
586
641
  self._gpus_util_over_allocable = gpus_util_over_allocable
587
642
 
643
+ @property
644
+ def gpus_util_over_allocated(self) -> 'float':
645
+ """Gets the gpus_util_over_allocated of this V1ClusterMetrics. # noqa: E501
646
+
647
+
648
+ :return: The gpus_util_over_allocated of this V1ClusterMetrics. # noqa: E501
649
+ :rtype: float
650
+ """
651
+ return self._gpus_util_over_allocated
652
+
653
+ @gpus_util_over_allocated.setter
654
+ def gpus_util_over_allocated(self, gpus_util_over_allocated: 'float'):
655
+ """Sets the gpus_util_over_allocated of this V1ClusterMetrics.
656
+
657
+
658
+ :param gpus_util_over_allocated: The gpus_util_over_allocated of this V1ClusterMetrics. # noqa: E501
659
+ :type: float
660
+ """
661
+
662
+ self._gpus_util_over_allocated = gpus_util_over_allocated
663
+
588
664
  @property
589
665
  def gpus_util_over_requested(self) -> 'float':
590
666
  """Gets the gpus_util_over_requested of this V1ClusterMetrics. # noqa: E501
@@ -648,6 +724,27 @@ class V1ClusterMetrics(object):
648
724
 
649
725
  self._max_power_per_gpu = max_power_per_gpu
650
726
 
727
+ @property
728
+ def num_allocated_gpus(self) -> 'int':
729
+ """Gets the num_allocated_gpus of this V1ClusterMetrics. # noqa: E501
730
+
731
+
732
+ :return: The num_allocated_gpus of this V1ClusterMetrics. # noqa: E501
733
+ :rtype: int
734
+ """
735
+ return self._num_allocated_gpus
736
+
737
+ @num_allocated_gpus.setter
738
+ def num_allocated_gpus(self, num_allocated_gpus: 'int'):
739
+ """Sets the num_allocated_gpus of this V1ClusterMetrics.
740
+
741
+
742
+ :param num_allocated_gpus: The num_allocated_gpus of this V1ClusterMetrics. # noqa: E501
743
+ :type: int
744
+ """
745
+
746
+ self._num_allocated_gpus = num_allocated_gpus
747
+
651
748
  @property
652
749
  def num_cpus(self) -> 'int':
653
750
  """Gets the num_cpus of this V1ClusterMetrics. # noqa: E501
@@ -858,6 +955,195 @@ class V1ClusterMetrics(object):
858
955
 
859
956
  self._num_requested_gpus = num_requested_gpus
860
957
 
958
+ @property
959
+ def num_throttled_gpus(self) -> 'int':
960
+ """Gets the num_throttled_gpus of this V1ClusterMetrics. # noqa: E501
961
+
962
+
963
+ :return: The num_throttled_gpus of this V1ClusterMetrics. # noqa: E501
964
+ :rtype: int
965
+ """
966
+ return self._num_throttled_gpus
967
+
968
+ @num_throttled_gpus.setter
969
+ def num_throttled_gpus(self, num_throttled_gpus: 'int'):
970
+ """Sets the num_throttled_gpus of this V1ClusterMetrics.
971
+
972
+
973
+ :param num_throttled_gpus: The num_throttled_gpus of this V1ClusterMetrics. # noqa: E501
974
+ :type: int
975
+ """
976
+
977
+ self._num_throttled_gpus = num_throttled_gpus
978
+
979
+ @property
980
+ def num_throttled_gpus_application_clock(self) -> 'int':
981
+ """Gets the num_throttled_gpus_application_clock of this V1ClusterMetrics. # noqa: E501
982
+
983
+
984
+ :return: The num_throttled_gpus_application_clock of this V1ClusterMetrics. # noqa: E501
985
+ :rtype: int
986
+ """
987
+ return self._num_throttled_gpus_application_clock
988
+
989
+ @num_throttled_gpus_application_clock.setter
990
+ def num_throttled_gpus_application_clock(self, num_throttled_gpus_application_clock: 'int'):
991
+ """Sets the num_throttled_gpus_application_clock of this V1ClusterMetrics.
992
+
993
+
994
+ :param num_throttled_gpus_application_clock: The num_throttled_gpus_application_clock of this V1ClusterMetrics. # noqa: E501
995
+ :type: int
996
+ """
997
+
998
+ self._num_throttled_gpus_application_clock = num_throttled_gpus_application_clock
999
+
1000
+ @property
1001
+ def num_throttled_gpus_hardware_thermal_slowdown(self) -> 'int':
1002
+ """Gets the num_throttled_gpus_hardware_thermal_slowdown of this V1ClusterMetrics. # noqa: E501
1003
+
1004
+
1005
+ :return: The num_throttled_gpus_hardware_thermal_slowdown of this V1ClusterMetrics. # noqa: E501
1006
+ :rtype: int
1007
+ """
1008
+ return self._num_throttled_gpus_hardware_thermal_slowdown
1009
+
1010
+ @num_throttled_gpus_hardware_thermal_slowdown.setter
1011
+ def num_throttled_gpus_hardware_thermal_slowdown(self, num_throttled_gpus_hardware_thermal_slowdown: 'int'):
1012
+ """Sets the num_throttled_gpus_hardware_thermal_slowdown of this V1ClusterMetrics.
1013
+
1014
+
1015
+ :param num_throttled_gpus_hardware_thermal_slowdown: The num_throttled_gpus_hardware_thermal_slowdown of this V1ClusterMetrics. # noqa: E501
1016
+ :type: int
1017
+ """
1018
+
1019
+ self._num_throttled_gpus_hardware_thermal_slowdown = num_throttled_gpus_hardware_thermal_slowdown
1020
+
1021
+ @property
1022
+ def num_throttled_gpus_hw_power_brake(self) -> 'int':
1023
+ """Gets the num_throttled_gpus_hw_power_brake of this V1ClusterMetrics. # noqa: E501
1024
+
1025
+
1026
+ :return: The num_throttled_gpus_hw_power_brake of this V1ClusterMetrics. # noqa: E501
1027
+ :rtype: int
1028
+ """
1029
+ return self._num_throttled_gpus_hw_power_brake
1030
+
1031
+ @num_throttled_gpus_hw_power_brake.setter
1032
+ def num_throttled_gpus_hw_power_brake(self, num_throttled_gpus_hw_power_brake: 'int'):
1033
+ """Sets the num_throttled_gpus_hw_power_brake of this V1ClusterMetrics.
1034
+
1035
+
1036
+ :param num_throttled_gpus_hw_power_brake: The num_throttled_gpus_hw_power_brake of this V1ClusterMetrics. # noqa: E501
1037
+ :type: int
1038
+ """
1039
+
1040
+ self._num_throttled_gpus_hw_power_brake = num_throttled_gpus_hw_power_brake
1041
+
1042
+ @property
1043
+ def num_throttled_gpus_hw_slowdown(self) -> 'int':
1044
+ """Gets the num_throttled_gpus_hw_slowdown of this V1ClusterMetrics. # noqa: E501
1045
+
1046
+
1047
+ :return: The num_throttled_gpus_hw_slowdown of this V1ClusterMetrics. # noqa: E501
1048
+ :rtype: int
1049
+ """
1050
+ return self._num_throttled_gpus_hw_slowdown
1051
+
1052
+ @num_throttled_gpus_hw_slowdown.setter
1053
+ def num_throttled_gpus_hw_slowdown(self, num_throttled_gpus_hw_slowdown: 'int'):
1054
+ """Sets the num_throttled_gpus_hw_slowdown of this V1ClusterMetrics.
1055
+
1056
+
1057
+ :param num_throttled_gpus_hw_slowdown: The num_throttled_gpus_hw_slowdown of this V1ClusterMetrics. # noqa: E501
1058
+ :type: int
1059
+ """
1060
+
1061
+ self._num_throttled_gpus_hw_slowdown = num_throttled_gpus_hw_slowdown
1062
+
1063
+ @property
1064
+ def num_throttled_gpus_idle_workloads(self) -> 'int':
1065
+ """Gets the num_throttled_gpus_idle_workloads of this V1ClusterMetrics. # noqa: E501
1066
+
1067
+
1068
+ :return: The num_throttled_gpus_idle_workloads of this V1ClusterMetrics. # noqa: E501
1069
+ :rtype: int
1070
+ """
1071
+ return self._num_throttled_gpus_idle_workloads
1072
+
1073
+ @num_throttled_gpus_idle_workloads.setter
1074
+ def num_throttled_gpus_idle_workloads(self, num_throttled_gpus_idle_workloads: 'int'):
1075
+ """Sets the num_throttled_gpus_idle_workloads of this V1ClusterMetrics.
1076
+
1077
+
1078
+ :param num_throttled_gpus_idle_workloads: The num_throttled_gpus_idle_workloads of this V1ClusterMetrics. # noqa: E501
1079
+ :type: int
1080
+ """
1081
+
1082
+ self._num_throttled_gpus_idle_workloads = num_throttled_gpus_idle_workloads
1083
+
1084
+ @property
1085
+ def num_throttled_gpus_software_thermal_slowdown(self) -> 'int':
1086
+ """Gets the num_throttled_gpus_software_thermal_slowdown of this V1ClusterMetrics. # noqa: E501
1087
+
1088
+
1089
+ :return: The num_throttled_gpus_software_thermal_slowdown of this V1ClusterMetrics. # noqa: E501
1090
+ :rtype: int
1091
+ """
1092
+ return self._num_throttled_gpus_software_thermal_slowdown
1093
+
1094
+ @num_throttled_gpus_software_thermal_slowdown.setter
1095
+ def num_throttled_gpus_software_thermal_slowdown(self, num_throttled_gpus_software_thermal_slowdown: 'int'):
1096
+ """Sets the num_throttled_gpus_software_thermal_slowdown of this V1ClusterMetrics.
1097
+
1098
+
1099
+ :param num_throttled_gpus_software_thermal_slowdown: The num_throttled_gpus_software_thermal_slowdown of this V1ClusterMetrics. # noqa: E501
1100
+ :type: int
1101
+ """
1102
+
1103
+ self._num_throttled_gpus_software_thermal_slowdown = num_throttled_gpus_software_thermal_slowdown
1104
+
1105
+ @property
1106
+ def num_throttled_gpus_sw_power_limit(self) -> 'int':
1107
+ """Gets the num_throttled_gpus_sw_power_limit of this V1ClusterMetrics. # noqa: E501
1108
+
1109
+
1110
+ :return: The num_throttled_gpus_sw_power_limit of this V1ClusterMetrics. # noqa: E501
1111
+ :rtype: int
1112
+ """
1113
+ return self._num_throttled_gpus_sw_power_limit
1114
+
1115
+ @num_throttled_gpus_sw_power_limit.setter
1116
+ def num_throttled_gpus_sw_power_limit(self, num_throttled_gpus_sw_power_limit: 'int'):
1117
+ """Sets the num_throttled_gpus_sw_power_limit of this V1ClusterMetrics.
1118
+
1119
+
1120
+ :param num_throttled_gpus_sw_power_limit: The num_throttled_gpus_sw_power_limit of this V1ClusterMetrics. # noqa: E501
1121
+ :type: int
1122
+ """
1123
+
1124
+ self._num_throttled_gpus_sw_power_limit = num_throttled_gpus_sw_power_limit
1125
+
1126
+ @property
1127
+ def num_throttled_gpus_sync_boost(self) -> 'int':
1128
+ """Gets the num_throttled_gpus_sync_boost of this V1ClusterMetrics. # noqa: E501
1129
+
1130
+
1131
+ :return: The num_throttled_gpus_sync_boost of this V1ClusterMetrics. # noqa: E501
1132
+ :rtype: int
1133
+ """
1134
+ return self._num_throttled_gpus_sync_boost
1135
+
1136
+ @num_throttled_gpus_sync_boost.setter
1137
+ def num_throttled_gpus_sync_boost(self, num_throttled_gpus_sync_boost: 'int'):
1138
+ """Sets the num_throttled_gpus_sync_boost of this V1ClusterMetrics.
1139
+
1140
+
1141
+ :param num_throttled_gpus_sync_boost: The num_throttled_gpus_sync_boost of this V1ClusterMetrics. # noqa: E501
1142
+ :type: int
1143
+ """
1144
+
1145
+ self._num_throttled_gpus_sync_boost = num_throttled_gpus_sync_boost
1146
+
861
1147
  @property
862
1148
  def nvlink_rx_gib_avg(self) -> 'float':
863
1149
  """Gets the nvlink_rx_gib_avg of this V1ClusterMetrics. # noqa: E501
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class ProjectIdIncidentsBody(object):
31
+ class V1CreateIncidentRequest(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -43,6 +43,7 @@ class ProjectIdIncidentsBody(object):
43
43
  swagger_types = {
44
44
  'cluster_id': 'str',
45
45
  'message': 'str',
46
+ 'project_id': 'str',
46
47
  'resource': 'str',
47
48
  'resource_id': 'str',
48
49
  'severity': 'V1IncidentSeverity',
@@ -53,6 +54,7 @@ class ProjectIdIncidentsBody(object):
53
54
  attribute_map = {
54
55
  'cluster_id': 'clusterId',
55
56
  'message': 'message',
57
+ 'project_id': 'projectId',
56
58
  'resource': 'resource',
57
59
  'resource_id': 'resourceId',
58
60
  'severity': 'severity',
@@ -60,10 +62,11 @@ class ProjectIdIncidentsBody(object):
60
62
  'type': 'type'
61
63
  }
62
64
 
63
- def __init__(self, cluster_id: 'str' =None, message: 'str' =None, resource: 'str' =None, resource_id: 'str' =None, severity: 'V1IncidentSeverity' =None, title: 'str' =None, type: 'V1IncidentType' =None): # noqa: E501
64
- """ProjectIdIncidentsBody - a model defined in Swagger""" # noqa: E501
65
+ def __init__(self, cluster_id: 'str' =None, message: 'str' =None, project_id: 'str' =None, resource: 'str' =None, resource_id: 'str' =None, severity: 'V1IncidentSeverity' =None, title: 'str' =None, type: 'V1IncidentType' =None): # noqa: E501
66
+ """V1CreateIncidentRequest - a model defined in Swagger""" # noqa: E501
65
67
  self._cluster_id = None
66
68
  self._message = None
69
+ self._project_id = None
67
70
  self._resource = None
68
71
  self._resource_id = None
69
72
  self._severity = None
@@ -74,6 +77,8 @@ class ProjectIdIncidentsBody(object):
74
77
  self.cluster_id = cluster_id
75
78
  if message is not None:
76
79
  self.message = message
80
+ if project_id is not None:
81
+ self.project_id = project_id
77
82
  if resource is not None:
78
83
  self.resource = resource
79
84
  if resource_id is not None:
@@ -87,20 +92,20 @@ class ProjectIdIncidentsBody(object):
87
92
 
88
93
  @property
89
94
  def cluster_id(self) -> 'str':
90
- """Gets the cluster_id of this ProjectIdIncidentsBody. # noqa: E501
95
+ """Gets the cluster_id of this V1CreateIncidentRequest. # noqa: E501
91
96
 
92
97
 
93
- :return: The cluster_id of this ProjectIdIncidentsBody. # noqa: E501
98
+ :return: The cluster_id of this V1CreateIncidentRequest. # noqa: E501
94
99
  :rtype: str
95
100
  """
96
101
  return self._cluster_id
97
102
 
98
103
  @cluster_id.setter
99
104
  def cluster_id(self, cluster_id: 'str'):
100
- """Sets the cluster_id of this ProjectIdIncidentsBody.
105
+ """Sets the cluster_id of this V1CreateIncidentRequest.
101
106
 
102
107
 
103
- :param cluster_id: The cluster_id of this ProjectIdIncidentsBody. # noqa: E501
108
+ :param cluster_id: The cluster_id of this V1CreateIncidentRequest. # noqa: E501
104
109
  :type: str
105
110
  """
106
111
 
@@ -108,41 +113,62 @@ class ProjectIdIncidentsBody(object):
108
113
 
109
114
  @property
110
115
  def message(self) -> 'str':
111
- """Gets the message of this ProjectIdIncidentsBody. # noqa: E501
116
+ """Gets the message of this V1CreateIncidentRequest. # noqa: E501
112
117
 
113
118
 
114
- :return: The message of this ProjectIdIncidentsBody. # noqa: E501
119
+ :return: The message of this V1CreateIncidentRequest. # noqa: E501
115
120
  :rtype: str
116
121
  """
117
122
  return self._message
118
123
 
119
124
  @message.setter
120
125
  def message(self, message: 'str'):
121
- """Sets the message of this ProjectIdIncidentsBody.
126
+ """Sets the message of this V1CreateIncidentRequest.
122
127
 
123
128
 
124
- :param message: The message of this ProjectIdIncidentsBody. # noqa: E501
129
+ :param message: The message of this V1CreateIncidentRequest. # noqa: E501
125
130
  :type: str
126
131
  """
127
132
 
128
133
  self._message = message
129
134
 
135
+ @property
136
+ def project_id(self) -> 'str':
137
+ """Gets the project_id of this V1CreateIncidentRequest. # noqa: E501
138
+
139
+
140
+ :return: The project_id of this V1CreateIncidentRequest. # noqa: E501
141
+ :rtype: str
142
+ """
143
+ return self._project_id
144
+
145
+ @project_id.setter
146
+ def project_id(self, project_id: 'str'):
147
+ """Sets the project_id of this V1CreateIncidentRequest.
148
+
149
+
150
+ :param project_id: The project_id of this V1CreateIncidentRequest. # noqa: E501
151
+ :type: str
152
+ """
153
+
154
+ self._project_id = project_id
155
+
130
156
  @property
131
157
  def resource(self) -> 'str':
132
- """Gets the resource of this ProjectIdIncidentsBody. # noqa: E501
158
+ """Gets the resource of this V1CreateIncidentRequest. # noqa: E501
133
159
 
134
160
 
135
- :return: The resource of this ProjectIdIncidentsBody. # noqa: E501
161
+ :return: The resource of this V1CreateIncidentRequest. # noqa: E501
136
162
  :rtype: str
137
163
  """
138
164
  return self._resource
139
165
 
140
166
  @resource.setter
141
167
  def resource(self, resource: 'str'):
142
- """Sets the resource of this ProjectIdIncidentsBody.
168
+ """Sets the resource of this V1CreateIncidentRequest.
143
169
 
144
170
 
145
- :param resource: The resource of this ProjectIdIncidentsBody. # noqa: E501
171
+ :param resource: The resource of this V1CreateIncidentRequest. # noqa: E501
146
172
  :type: str
147
173
  """
148
174
 
@@ -150,20 +176,20 @@ class ProjectIdIncidentsBody(object):
150
176
 
151
177
  @property
152
178
  def resource_id(self) -> 'str':
153
- """Gets the resource_id of this ProjectIdIncidentsBody. # noqa: E501
179
+ """Gets the resource_id of this V1CreateIncidentRequest. # noqa: E501
154
180
 
155
181
 
156
- :return: The resource_id of this ProjectIdIncidentsBody. # noqa: E501
182
+ :return: The resource_id of this V1CreateIncidentRequest. # noqa: E501
157
183
  :rtype: str
158
184
  """
159
185
  return self._resource_id
160
186
 
161
187
  @resource_id.setter
162
188
  def resource_id(self, resource_id: 'str'):
163
- """Sets the resource_id of this ProjectIdIncidentsBody.
189
+ """Sets the resource_id of this V1CreateIncidentRequest.
164
190
 
165
191
 
166
- :param resource_id: The resource_id of this ProjectIdIncidentsBody. # noqa: E501
192
+ :param resource_id: The resource_id of this V1CreateIncidentRequest. # noqa: E501
167
193
  :type: str
168
194
  """
169
195
 
@@ -171,20 +197,20 @@ class ProjectIdIncidentsBody(object):
171
197
 
172
198
  @property
173
199
  def severity(self) -> 'V1IncidentSeverity':
174
- """Gets the severity of this ProjectIdIncidentsBody. # noqa: E501
200
+ """Gets the severity of this V1CreateIncidentRequest. # noqa: E501
175
201
 
176
202
 
177
- :return: The severity of this ProjectIdIncidentsBody. # noqa: E501
203
+ :return: The severity of this V1CreateIncidentRequest. # noqa: E501
178
204
  :rtype: V1IncidentSeverity
179
205
  """
180
206
  return self._severity
181
207
 
182
208
  @severity.setter
183
209
  def severity(self, severity: 'V1IncidentSeverity'):
184
- """Sets the severity of this ProjectIdIncidentsBody.
210
+ """Sets the severity of this V1CreateIncidentRequest.
185
211
 
186
212
 
187
- :param severity: The severity of this ProjectIdIncidentsBody. # noqa: E501
213
+ :param severity: The severity of this V1CreateIncidentRequest. # noqa: E501
188
214
  :type: V1IncidentSeverity
189
215
  """
190
216
 
@@ -192,20 +218,20 @@ class ProjectIdIncidentsBody(object):
192
218
 
193
219
  @property
194
220
  def title(self) -> 'str':
195
- """Gets the title of this ProjectIdIncidentsBody. # noqa: E501
221
+ """Gets the title of this V1CreateIncidentRequest. # noqa: E501
196
222
 
197
223
 
198
- :return: The title of this ProjectIdIncidentsBody. # noqa: E501
224
+ :return: The title of this V1CreateIncidentRequest. # noqa: E501
199
225
  :rtype: str
200
226
  """
201
227
  return self._title
202
228
 
203
229
  @title.setter
204
230
  def title(self, title: 'str'):
205
- """Sets the title of this ProjectIdIncidentsBody.
231
+ """Sets the title of this V1CreateIncidentRequest.
206
232
 
207
233
 
208
- :param title: The title of this ProjectIdIncidentsBody. # noqa: E501
234
+ :param title: The title of this V1CreateIncidentRequest. # noqa: E501
209
235
  :type: str
210
236
  """
211
237
 
@@ -213,20 +239,20 @@ class ProjectIdIncidentsBody(object):
213
239
 
214
240
  @property
215
241
  def type(self) -> 'V1IncidentType':
216
- """Gets the type of this ProjectIdIncidentsBody. # noqa: E501
242
+ """Gets the type of this V1CreateIncidentRequest. # noqa: E501
217
243
 
218
244
 
219
- :return: The type of this ProjectIdIncidentsBody. # noqa: E501
245
+ :return: The type of this V1CreateIncidentRequest. # noqa: E501
220
246
  :rtype: V1IncidentType
221
247
  """
222
248
  return self._type
223
249
 
224
250
  @type.setter
225
251
  def type(self, type: 'V1IncidentType'):
226
- """Sets the type of this ProjectIdIncidentsBody.
252
+ """Sets the type of this V1CreateIncidentRequest.
227
253
 
228
254
 
229
- :param type: The type of this ProjectIdIncidentsBody. # noqa: E501
255
+ :param type: The type of this V1CreateIncidentRequest. # noqa: E501
230
256
  :type: V1IncidentType
231
257
  """
232
258
 
@@ -253,7 +279,7 @@ class ProjectIdIncidentsBody(object):
253
279
  ))
254
280
  else:
255
281
  result[attr] = value
256
- if issubclass(ProjectIdIncidentsBody, dict):
282
+ if issubclass(V1CreateIncidentRequest, dict):
257
283
  for key, value in self.items():
258
284
  result[key] = value
259
285
 
@@ -267,13 +293,13 @@ class ProjectIdIncidentsBody(object):
267
293
  """For `print` and `pprint`"""
268
294
  return self.to_str()
269
295
 
270
- def __eq__(self, other: 'ProjectIdIncidentsBody') -> bool:
296
+ def __eq__(self, other: 'V1CreateIncidentRequest') -> bool:
271
297
  """Returns true if both objects are equal"""
272
- if not isinstance(other, ProjectIdIncidentsBody):
298
+ if not isinstance(other, V1CreateIncidentRequest):
273
299
  return False
274
300
 
275
301
  return self.__dict__ == other.__dict__
276
302
 
277
- def __ne__(self, other: 'ProjectIdIncidentsBody') -> bool:
303
+ def __ne__(self, other: 'V1CreateIncidentRequest') -> bool:
278
304
  """Returns true if both objects are not equal"""
279
305
  return not self == other