lightning-sdk 2025.8.19.post0__py3-none-any.whl → 2025.8.26__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/llm_api.py +6 -2
- lightning_sdk/api/studio_api.py +168 -2
- lightning_sdk/api/teamspace_api.py +60 -30
- lightning_sdk/api/user_api.py +49 -1
- lightning_sdk/api/utils.py +1 -1
- lightning_sdk/cli/config/set.py +6 -18
- lightning_sdk/cli/legacy/create.py +12 -14
- lightning_sdk/cli/legacy/delete.py +3 -3
- lightning_sdk/cli/legacy/deploy/_auth.py +4 -4
- lightning_sdk/cli/legacy/download.py +7 -7
- lightning_sdk/cli/legacy/job_and_mmt_action.py +4 -4
- lightning_sdk/cli/legacy/list.py +9 -9
- lightning_sdk/cli/legacy/open.py +3 -3
- lightning_sdk/cli/legacy/start.py +1 -0
- lightning_sdk/cli/legacy/switch.py +1 -0
- lightning_sdk/cli/legacy/upload.py +3 -3
- lightning_sdk/cli/studio/create.py +14 -23
- lightning_sdk/cli/studio/delete.py +28 -27
- lightning_sdk/cli/studio/list.py +5 -6
- lightning_sdk/cli/studio/ssh.py +19 -22
- lightning_sdk/cli/studio/start.py +23 -23
- lightning_sdk/cli/studio/stop.py +22 -26
- lightning_sdk/cli/studio/switch.py +20 -23
- lightning_sdk/cli/utils/resolve.py +1 -1
- lightning_sdk/cli/utils/save_to_config.py +27 -0
- lightning_sdk/cli/utils/studio_selection.py +106 -0
- lightning_sdk/cli/utils/teamspace_selection.py +125 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +3 -0
- lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +170 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +101 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +3 -0
- lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +270 -36
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +21 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metric_timestamps_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +11 -11
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +156 -26
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +281 -21
- lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_purchase_annual_upsell_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +1 -27
- lightning_sdk/llm/llm.py +2 -2
- lightning_sdk/llm/public_assistants.py +4 -0
- lightning_sdk/studio.py +92 -28
- lightning_sdk/teamspace.py +25 -2
- lightning_sdk/user.py +19 -1
- lightning_sdk/utils/config.py +6 -0
- lightning_sdk/utils/names.py +1179 -0
- lightning_sdk/utils/progress.py +284 -0
- lightning_sdk/utils/resolve.py +6 -6
- {lightning_sdk-2025.8.19.post0.dist-info → lightning_sdk-2025.8.26.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.19.post0.dist-info → lightning_sdk-2025.8.26.dist-info}/RECORD +61 -53
- {lightning_sdk-2025.8.19.post0.dist-info → lightning_sdk-2025.8.26.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.19.post0.dist-info → lightning_sdk-2025.8.26.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.19.post0.dist-info → lightning_sdk-2025.8.26.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.19.post0.dist-info → lightning_sdk-2025.8.26.dist-info}/top_level.txt +0 -0
|
@@ -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': '
|
|
51
|
-
'num_cpus_request': '
|
|
52
|
-
'num_gpus': '
|
|
53
|
-
'per_gpu_mem_used': 'dict(str,
|
|
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: '
|
|
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) -> '
|
|
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:
|
|
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: '
|
|
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:
|
|
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) -> '
|
|
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:
|
|
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: '
|
|
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:
|
|
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) -> '
|
|
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:
|
|
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: '
|
|
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:
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
328
|
+
:type: dict(str, int)
|
|
329
329
|
"""
|
|
330
330
|
|
|
331
331
|
self._per_gpu_mem_used = per_gpu_mem_used
|
|
@@ -0,0 +1,123 @@
|
|
|
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 V1ListClusterMetricTimestampsResponse(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
|
+
'timestamps': 'list[datetime]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'timestamps': 'timestamps'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, timestamps: 'list[datetime]' =None): # noqa: E501
|
|
52
|
+
"""V1ListClusterMetricTimestampsResponse - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._timestamps = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if timestamps is not None:
|
|
56
|
+
self.timestamps = timestamps
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def timestamps(self) -> 'list[datetime]':
|
|
60
|
+
"""Gets the timestamps of this V1ListClusterMetricTimestampsResponse. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The timestamps of this V1ListClusterMetricTimestampsResponse. # noqa: E501
|
|
64
|
+
:rtype: list[datetime]
|
|
65
|
+
"""
|
|
66
|
+
return self._timestamps
|
|
67
|
+
|
|
68
|
+
@timestamps.setter
|
|
69
|
+
def timestamps(self, timestamps: 'list[datetime]'):
|
|
70
|
+
"""Sets the timestamps of this V1ListClusterMetricTimestampsResponse.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param timestamps: The timestamps of this V1ListClusterMetricTimestampsResponse. # noqa: E501
|
|
74
|
+
:type: list[datetime]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._timestamps = timestamps
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(V1ListClusterMetricTimestampsResponse, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'V1ListClusterMetricTimestampsResponse') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, V1ListClusterMetricTimestampsResponse):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'V1ListClusterMetricTimestampsResponse') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -55,9 +55,9 @@ class V1NamespaceMetrics(object):
|
|
|
55
55
|
'num_unknown_pods': 'int',
|
|
56
56
|
'ram_util_over_cluster': 'float',
|
|
57
57
|
'ram_util_over_requested': 'float',
|
|
58
|
-
'rams_requested': '
|
|
58
|
+
'rams_requested': 'str',
|
|
59
59
|
'timestamp': 'datetime',
|
|
60
|
-
'vram_requested': '
|
|
60
|
+
'vram_requested': 'int',
|
|
61
61
|
'vram_util_over_cluster': 'float',
|
|
62
62
|
'vram_util_over_requested': 'float'
|
|
63
63
|
}
|
|
@@ -84,7 +84,7 @@ class V1NamespaceMetrics(object):
|
|
|
84
84
|
'vram_util_over_requested': 'vramUtilOverRequested'
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
def __init__(self, cpu_util_over_cluster: 'float' =None, cpu_util_over_requested: 'float' =None, cpus_requested: 'float' =None, gpu_util_over_cluster: 'float' =None, gpu_util_over_requested: 'float' =None, gpus_requested: 'float' =None, name: 'str' =None, num_failed_pods: 'int' =None, num_pending_pods: 'int' =None, num_running_pods: 'int' =None, num_succeeded_pods: 'int' =None, num_unknown_pods: 'int' =None, ram_util_over_cluster: 'float' =None, ram_util_over_requested: 'float' =None, rams_requested: '
|
|
87
|
+
def __init__(self, cpu_util_over_cluster: 'float' =None, cpu_util_over_requested: 'float' =None, cpus_requested: 'float' =None, gpu_util_over_cluster: 'float' =None, gpu_util_over_requested: 'float' =None, gpus_requested: 'float' =None, name: 'str' =None, num_failed_pods: 'int' =None, num_pending_pods: 'int' =None, num_running_pods: 'int' =None, num_succeeded_pods: 'int' =None, num_unknown_pods: 'int' =None, ram_util_over_cluster: 'float' =None, ram_util_over_requested: 'float' =None, rams_requested: 'str' =None, timestamp: 'datetime' =None, vram_requested: 'int' =None, vram_util_over_cluster: 'float' =None, vram_util_over_requested: 'float' =None): # noqa: E501
|
|
88
88
|
"""V1NamespaceMetrics - a model defined in Swagger""" # noqa: E501
|
|
89
89
|
self._cpu_util_over_cluster = None
|
|
90
90
|
self._cpu_util_over_requested = None
|
|
@@ -440,22 +440,22 @@ class V1NamespaceMetrics(object):
|
|
|
440
440
|
self._ram_util_over_requested = ram_util_over_requested
|
|
441
441
|
|
|
442
442
|
@property
|
|
443
|
-
def rams_requested(self) -> '
|
|
443
|
+
def rams_requested(self) -> 'str':
|
|
444
444
|
"""Gets the rams_requested of this V1NamespaceMetrics. # noqa: E501
|
|
445
445
|
|
|
446
446
|
|
|
447
447
|
:return: The rams_requested of this V1NamespaceMetrics. # noqa: E501
|
|
448
|
-
:rtype:
|
|
448
|
+
:rtype: str
|
|
449
449
|
"""
|
|
450
450
|
return self._rams_requested
|
|
451
451
|
|
|
452
452
|
@rams_requested.setter
|
|
453
|
-
def rams_requested(self, rams_requested: '
|
|
453
|
+
def rams_requested(self, rams_requested: 'str'):
|
|
454
454
|
"""Sets the rams_requested of this V1NamespaceMetrics.
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
:param rams_requested: The rams_requested of this V1NamespaceMetrics. # noqa: E501
|
|
458
|
-
:type:
|
|
458
|
+
:type: str
|
|
459
459
|
"""
|
|
460
460
|
|
|
461
461
|
self._rams_requested = rams_requested
|
|
@@ -482,22 +482,22 @@ class V1NamespaceMetrics(object):
|
|
|
482
482
|
self._timestamp = timestamp
|
|
483
483
|
|
|
484
484
|
@property
|
|
485
|
-
def vram_requested(self) -> '
|
|
485
|
+
def vram_requested(self) -> 'int':
|
|
486
486
|
"""Gets the vram_requested of this V1NamespaceMetrics. # noqa: E501
|
|
487
487
|
|
|
488
488
|
|
|
489
489
|
:return: The vram_requested of this V1NamespaceMetrics. # noqa: E501
|
|
490
|
-
:rtype:
|
|
490
|
+
:rtype: int
|
|
491
491
|
"""
|
|
492
492
|
return self._vram_requested
|
|
493
493
|
|
|
494
494
|
@vram_requested.setter
|
|
495
|
-
def vram_requested(self, vram_requested: '
|
|
495
|
+
def vram_requested(self, vram_requested: 'int'):
|
|
496
496
|
"""Sets the vram_requested of this V1NamespaceMetrics.
|
|
497
497
|
|
|
498
498
|
|
|
499
499
|
:param vram_requested: The vram_requested of this V1NamespaceMetrics. # noqa: E501
|
|
500
|
-
:type:
|
|
500
|
+
:type: int
|
|
501
501
|
"""
|
|
502
502
|
|
|
503
503
|
self._vram_requested = vram_requested
|
|
@@ -44,16 +44,16 @@ class V1NamespaceUserMetrics(object):
|
|
|
44
44
|
'cpu_utilisation': 'float',
|
|
45
45
|
'failed_pods': 'int',
|
|
46
46
|
'gpu_utilisation': 'float',
|
|
47
|
-
'num_cpus': '
|
|
47
|
+
'num_cpus': 'int',
|
|
48
48
|
'num_gpus': 'int',
|
|
49
49
|
'pending_pods': 'int',
|
|
50
|
-
'ram_used': '
|
|
50
|
+
'ram_used': 'int',
|
|
51
51
|
'running_pods': 'int',
|
|
52
52
|
'succeeded_pods': 'int',
|
|
53
53
|
'timestamp': 'datetime',
|
|
54
54
|
'total_pods': 'int',
|
|
55
55
|
'unknown_pods': 'int',
|
|
56
|
-
'vram_used': '
|
|
56
|
+
'vram_used': 'int'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
attribute_map = {
|
|
@@ -72,7 +72,7 @@ class V1NamespaceUserMetrics(object):
|
|
|
72
72
|
'vram_used': 'vramUsed'
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
def __init__(self, cpu_utilisation: 'float' =None, failed_pods: 'int' =None, gpu_utilisation: 'float' =None, num_cpus: '
|
|
75
|
+
def __init__(self, cpu_utilisation: 'float' =None, failed_pods: 'int' =None, gpu_utilisation: 'float' =None, num_cpus: 'int' =None, num_gpus: 'int' =None, pending_pods: 'int' =None, ram_used: 'int' =None, running_pods: 'int' =None, succeeded_pods: 'int' =None, timestamp: 'datetime' =None, total_pods: 'int' =None, unknown_pods: 'int' =None, vram_used: 'int' =None): # noqa: E501
|
|
76
76
|
"""V1NamespaceUserMetrics - a model defined in Swagger""" # noqa: E501
|
|
77
77
|
self._cpu_utilisation = None
|
|
78
78
|
self._failed_pods = None
|
|
@@ -179,22 +179,22 @@ class V1NamespaceUserMetrics(object):
|
|
|
179
179
|
self._gpu_utilisation = gpu_utilisation
|
|
180
180
|
|
|
181
181
|
@property
|
|
182
|
-
def num_cpus(self) -> '
|
|
182
|
+
def num_cpus(self) -> 'int':
|
|
183
183
|
"""Gets the num_cpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
:return: The num_cpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
187
|
-
:rtype:
|
|
187
|
+
:rtype: int
|
|
188
188
|
"""
|
|
189
189
|
return self._num_cpus
|
|
190
190
|
|
|
191
191
|
@num_cpus.setter
|
|
192
|
-
def num_cpus(self, num_cpus: '
|
|
192
|
+
def num_cpus(self, num_cpus: 'int'):
|
|
193
193
|
"""Sets the num_cpus of this V1NamespaceUserMetrics.
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
:param num_cpus: The num_cpus of this V1NamespaceUserMetrics. # noqa: E501
|
|
197
|
-
:type:
|
|
197
|
+
:type: int
|
|
198
198
|
"""
|
|
199
199
|
|
|
200
200
|
self._num_cpus = num_cpus
|
|
@@ -242,22 +242,22 @@ class V1NamespaceUserMetrics(object):
|
|
|
242
242
|
self._pending_pods = pending_pods
|
|
243
243
|
|
|
244
244
|
@property
|
|
245
|
-
def ram_used(self) -> '
|
|
245
|
+
def ram_used(self) -> 'int':
|
|
246
246
|
"""Gets the ram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
247
247
|
|
|
248
248
|
|
|
249
249
|
:return: The ram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
250
|
-
:rtype:
|
|
250
|
+
:rtype: int
|
|
251
251
|
"""
|
|
252
252
|
return self._ram_used
|
|
253
253
|
|
|
254
254
|
@ram_used.setter
|
|
255
|
-
def ram_used(self, ram_used: '
|
|
255
|
+
def ram_used(self, ram_used: 'int'):
|
|
256
256
|
"""Sets the ram_used of this V1NamespaceUserMetrics.
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
:param ram_used: The ram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
260
|
-
:type:
|
|
260
|
+
:type: int
|
|
261
261
|
"""
|
|
262
262
|
|
|
263
263
|
self._ram_used = ram_used
|
|
@@ -368,22 +368,22 @@ class V1NamespaceUserMetrics(object):
|
|
|
368
368
|
self._unknown_pods = unknown_pods
|
|
369
369
|
|
|
370
370
|
@property
|
|
371
|
-
def vram_used(self) -> '
|
|
371
|
+
def vram_used(self) -> 'int':
|
|
372
372
|
"""Gets the vram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
373
373
|
|
|
374
374
|
|
|
375
375
|
:return: The vram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
376
|
-
:rtype:
|
|
376
|
+
:rtype: int
|
|
377
377
|
"""
|
|
378
378
|
return self._vram_used
|
|
379
379
|
|
|
380
380
|
@vram_used.setter
|
|
381
|
-
def vram_used(self, vram_used: '
|
|
381
|
+
def vram_used(self, vram_used: 'int'):
|
|
382
382
|
"""Sets the vram_used of this V1NamespaceUserMetrics.
|
|
383
383
|
|
|
384
384
|
|
|
385
385
|
:param vram_used: The vram_used of this V1NamespaceUserMetrics. # noqa: E501
|
|
386
|
-
:type:
|
|
386
|
+
:type: int
|
|
387
387
|
"""
|
|
388
388
|
|
|
389
389
|
self._vram_used = vram_used
|