lightning-sdk 2025.8.8.post1__py3-none-any.whl → 2025.8.14__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/studio_api.py +26 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +7 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +0 -97
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +339 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +7 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/create.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/id_sleepconfig_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +69 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_metrics.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_cluster_namespace_user_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lustre_data_connection.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_metrics.py +591 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_namespace_user_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -53
- lightning_sdk/studio.py +9 -2
- {lightning_sdk-2025.8.8.post1.dist-info → lightning_sdk-2025.8.14.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.8.post1.dist-info → lightning_sdk-2025.8.14.dist-info}/RECORD +37 -30
- {lightning_sdk-2025.8.8.post1.dist-info → lightning_sdk-2025.8.14.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.8.post1.dist-info → lightning_sdk-2025.8.14.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.8.post1.dist-info → lightning_sdk-2025.8.14.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.8.post1.dist-info → lightning_sdk-2025.8.14.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,591 @@
|
|
|
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 V1NamespaceMetrics(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
|
+
'cpu_util_over_cluster': 'float',
|
|
45
|
+
'cpu_util_over_requested': 'float',
|
|
46
|
+
'cpus_requested': 'float',
|
|
47
|
+
'gpu_util_over_cluster': 'float',
|
|
48
|
+
'gpu_util_over_requested': 'float',
|
|
49
|
+
'gpus_requested': 'float',
|
|
50
|
+
'name': 'str',
|
|
51
|
+
'num_failed_pods': 'int',
|
|
52
|
+
'num_pending_pods': 'int',
|
|
53
|
+
'num_running_pods': 'int',
|
|
54
|
+
'num_succeeded_pods': 'int',
|
|
55
|
+
'num_unknown_pods': 'int',
|
|
56
|
+
'ram_util_over_cluster': 'float',
|
|
57
|
+
'ram_util_over_requested': 'float',
|
|
58
|
+
'rams_requested': 'float',
|
|
59
|
+
'timestamp': 'datetime',
|
|
60
|
+
'vram_requested': 'float',
|
|
61
|
+
'vram_util_over_cluster': 'float',
|
|
62
|
+
'vram_util_over_requested': 'float'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
attribute_map = {
|
|
66
|
+
'cpu_util_over_cluster': 'cpuUtilOverCluster',
|
|
67
|
+
'cpu_util_over_requested': 'cpuUtilOverRequested',
|
|
68
|
+
'cpus_requested': 'cpusRequested',
|
|
69
|
+
'gpu_util_over_cluster': 'gpuUtilOverCluster',
|
|
70
|
+
'gpu_util_over_requested': 'gpuUtilOverRequested',
|
|
71
|
+
'gpus_requested': 'gpusRequested',
|
|
72
|
+
'name': 'name',
|
|
73
|
+
'num_failed_pods': 'numFailedPods',
|
|
74
|
+
'num_pending_pods': 'numPendingPods',
|
|
75
|
+
'num_running_pods': 'numRunningPods',
|
|
76
|
+
'num_succeeded_pods': 'numSucceededPods',
|
|
77
|
+
'num_unknown_pods': 'numUnknownPods',
|
|
78
|
+
'ram_util_over_cluster': 'ramUtilOverCluster',
|
|
79
|
+
'ram_util_over_requested': 'ramUtilOverRequested',
|
|
80
|
+
'rams_requested': 'ramsRequested',
|
|
81
|
+
'timestamp': 'timestamp',
|
|
82
|
+
'vram_requested': 'vramRequested',
|
|
83
|
+
'vram_util_over_cluster': 'vramUtilOverCluster',
|
|
84
|
+
'vram_util_over_requested': 'vramUtilOverRequested'
|
|
85
|
+
}
|
|
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: 'float' =None, timestamp: 'datetime' =None, vram_requested: 'float' =None, vram_util_over_cluster: 'float' =None, vram_util_over_requested: 'float' =None): # noqa: E501
|
|
88
|
+
"""V1NamespaceMetrics - a model defined in Swagger""" # noqa: E501
|
|
89
|
+
self._cpu_util_over_cluster = None
|
|
90
|
+
self._cpu_util_over_requested = None
|
|
91
|
+
self._cpus_requested = None
|
|
92
|
+
self._gpu_util_over_cluster = None
|
|
93
|
+
self._gpu_util_over_requested = None
|
|
94
|
+
self._gpus_requested = None
|
|
95
|
+
self._name = None
|
|
96
|
+
self._num_failed_pods = None
|
|
97
|
+
self._num_pending_pods = None
|
|
98
|
+
self._num_running_pods = None
|
|
99
|
+
self._num_succeeded_pods = None
|
|
100
|
+
self._num_unknown_pods = None
|
|
101
|
+
self._ram_util_over_cluster = None
|
|
102
|
+
self._ram_util_over_requested = None
|
|
103
|
+
self._rams_requested = None
|
|
104
|
+
self._timestamp = None
|
|
105
|
+
self._vram_requested = None
|
|
106
|
+
self._vram_util_over_cluster = None
|
|
107
|
+
self._vram_util_over_requested = None
|
|
108
|
+
self.discriminator = None
|
|
109
|
+
if cpu_util_over_cluster is not None:
|
|
110
|
+
self.cpu_util_over_cluster = cpu_util_over_cluster
|
|
111
|
+
if cpu_util_over_requested is not None:
|
|
112
|
+
self.cpu_util_over_requested = cpu_util_over_requested
|
|
113
|
+
if cpus_requested is not None:
|
|
114
|
+
self.cpus_requested = cpus_requested
|
|
115
|
+
if gpu_util_over_cluster is not None:
|
|
116
|
+
self.gpu_util_over_cluster = gpu_util_over_cluster
|
|
117
|
+
if gpu_util_over_requested is not None:
|
|
118
|
+
self.gpu_util_over_requested = gpu_util_over_requested
|
|
119
|
+
if gpus_requested is not None:
|
|
120
|
+
self.gpus_requested = gpus_requested
|
|
121
|
+
if name is not None:
|
|
122
|
+
self.name = name
|
|
123
|
+
if num_failed_pods is not None:
|
|
124
|
+
self.num_failed_pods = num_failed_pods
|
|
125
|
+
if num_pending_pods is not None:
|
|
126
|
+
self.num_pending_pods = num_pending_pods
|
|
127
|
+
if num_running_pods is not None:
|
|
128
|
+
self.num_running_pods = num_running_pods
|
|
129
|
+
if num_succeeded_pods is not None:
|
|
130
|
+
self.num_succeeded_pods = num_succeeded_pods
|
|
131
|
+
if num_unknown_pods is not None:
|
|
132
|
+
self.num_unknown_pods = num_unknown_pods
|
|
133
|
+
if ram_util_over_cluster is not None:
|
|
134
|
+
self.ram_util_over_cluster = ram_util_over_cluster
|
|
135
|
+
if ram_util_over_requested is not None:
|
|
136
|
+
self.ram_util_over_requested = ram_util_over_requested
|
|
137
|
+
if rams_requested is not None:
|
|
138
|
+
self.rams_requested = rams_requested
|
|
139
|
+
if timestamp is not None:
|
|
140
|
+
self.timestamp = timestamp
|
|
141
|
+
if vram_requested is not None:
|
|
142
|
+
self.vram_requested = vram_requested
|
|
143
|
+
if vram_util_over_cluster is not None:
|
|
144
|
+
self.vram_util_over_cluster = vram_util_over_cluster
|
|
145
|
+
if vram_util_over_requested is not None:
|
|
146
|
+
self.vram_util_over_requested = vram_util_over_requested
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def cpu_util_over_cluster(self) -> 'float':
|
|
150
|
+
"""Gets the cpu_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:return: The cpu_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
154
|
+
:rtype: float
|
|
155
|
+
"""
|
|
156
|
+
return self._cpu_util_over_cluster
|
|
157
|
+
|
|
158
|
+
@cpu_util_over_cluster.setter
|
|
159
|
+
def cpu_util_over_cluster(self, cpu_util_over_cluster: 'float'):
|
|
160
|
+
"""Sets the cpu_util_over_cluster of this V1NamespaceMetrics.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:param cpu_util_over_cluster: The cpu_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
164
|
+
:type: float
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
self._cpu_util_over_cluster = cpu_util_over_cluster
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
def cpu_util_over_requested(self) -> 'float':
|
|
171
|
+
"""Gets the cpu_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:return: The cpu_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
175
|
+
:rtype: float
|
|
176
|
+
"""
|
|
177
|
+
return self._cpu_util_over_requested
|
|
178
|
+
|
|
179
|
+
@cpu_util_over_requested.setter
|
|
180
|
+
def cpu_util_over_requested(self, cpu_util_over_requested: 'float'):
|
|
181
|
+
"""Sets the cpu_util_over_requested of this V1NamespaceMetrics.
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param cpu_util_over_requested: The cpu_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
185
|
+
:type: float
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
self._cpu_util_over_requested = cpu_util_over_requested
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def cpus_requested(self) -> 'float':
|
|
192
|
+
"""Gets the cpus_requested of this V1NamespaceMetrics. # noqa: E501
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:return: The cpus_requested of this V1NamespaceMetrics. # noqa: E501
|
|
196
|
+
:rtype: float
|
|
197
|
+
"""
|
|
198
|
+
return self._cpus_requested
|
|
199
|
+
|
|
200
|
+
@cpus_requested.setter
|
|
201
|
+
def cpus_requested(self, cpus_requested: 'float'):
|
|
202
|
+
"""Sets the cpus_requested of this V1NamespaceMetrics.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:param cpus_requested: The cpus_requested of this V1NamespaceMetrics. # noqa: E501
|
|
206
|
+
:type: float
|
|
207
|
+
"""
|
|
208
|
+
|
|
209
|
+
self._cpus_requested = cpus_requested
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def gpu_util_over_cluster(self) -> 'float':
|
|
213
|
+
"""Gets the gpu_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
:return: The gpu_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
217
|
+
:rtype: float
|
|
218
|
+
"""
|
|
219
|
+
return self._gpu_util_over_cluster
|
|
220
|
+
|
|
221
|
+
@gpu_util_over_cluster.setter
|
|
222
|
+
def gpu_util_over_cluster(self, gpu_util_over_cluster: 'float'):
|
|
223
|
+
"""Sets the gpu_util_over_cluster of this V1NamespaceMetrics.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
:param gpu_util_over_cluster: The gpu_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
227
|
+
:type: float
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
self._gpu_util_over_cluster = gpu_util_over_cluster
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def gpu_util_over_requested(self) -> 'float':
|
|
234
|
+
"""Gets the gpu_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
:return: The gpu_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
238
|
+
:rtype: float
|
|
239
|
+
"""
|
|
240
|
+
return self._gpu_util_over_requested
|
|
241
|
+
|
|
242
|
+
@gpu_util_over_requested.setter
|
|
243
|
+
def gpu_util_over_requested(self, gpu_util_over_requested: 'float'):
|
|
244
|
+
"""Sets the gpu_util_over_requested of this V1NamespaceMetrics.
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
:param gpu_util_over_requested: The gpu_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
248
|
+
:type: float
|
|
249
|
+
"""
|
|
250
|
+
|
|
251
|
+
self._gpu_util_over_requested = gpu_util_over_requested
|
|
252
|
+
|
|
253
|
+
@property
|
|
254
|
+
def gpus_requested(self) -> 'float':
|
|
255
|
+
"""Gets the gpus_requested of this V1NamespaceMetrics. # noqa: E501
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
:return: The gpus_requested of this V1NamespaceMetrics. # noqa: E501
|
|
259
|
+
:rtype: float
|
|
260
|
+
"""
|
|
261
|
+
return self._gpus_requested
|
|
262
|
+
|
|
263
|
+
@gpus_requested.setter
|
|
264
|
+
def gpus_requested(self, gpus_requested: 'float'):
|
|
265
|
+
"""Sets the gpus_requested of this V1NamespaceMetrics.
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:param gpus_requested: The gpus_requested of this V1NamespaceMetrics. # noqa: E501
|
|
269
|
+
:type: float
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
self._gpus_requested = gpus_requested
|
|
273
|
+
|
|
274
|
+
@property
|
|
275
|
+
def name(self) -> 'str':
|
|
276
|
+
"""Gets the name of this V1NamespaceMetrics. # noqa: E501
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
:return: The name of this V1NamespaceMetrics. # noqa: E501
|
|
280
|
+
:rtype: str
|
|
281
|
+
"""
|
|
282
|
+
return self._name
|
|
283
|
+
|
|
284
|
+
@name.setter
|
|
285
|
+
def name(self, name: 'str'):
|
|
286
|
+
"""Sets the name of this V1NamespaceMetrics.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
:param name: The name of this V1NamespaceMetrics. # noqa: E501
|
|
290
|
+
:type: str
|
|
291
|
+
"""
|
|
292
|
+
|
|
293
|
+
self._name = name
|
|
294
|
+
|
|
295
|
+
@property
|
|
296
|
+
def num_failed_pods(self) -> 'int':
|
|
297
|
+
"""Gets the num_failed_pods of this V1NamespaceMetrics. # noqa: E501
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
:return: The num_failed_pods of this V1NamespaceMetrics. # noqa: E501
|
|
301
|
+
:rtype: int
|
|
302
|
+
"""
|
|
303
|
+
return self._num_failed_pods
|
|
304
|
+
|
|
305
|
+
@num_failed_pods.setter
|
|
306
|
+
def num_failed_pods(self, num_failed_pods: 'int'):
|
|
307
|
+
"""Sets the num_failed_pods of this V1NamespaceMetrics.
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
:param num_failed_pods: The num_failed_pods of this V1NamespaceMetrics. # noqa: E501
|
|
311
|
+
:type: int
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
self._num_failed_pods = num_failed_pods
|
|
315
|
+
|
|
316
|
+
@property
|
|
317
|
+
def num_pending_pods(self) -> 'int':
|
|
318
|
+
"""Gets the num_pending_pods of this V1NamespaceMetrics. # noqa: E501
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
:return: The num_pending_pods of this V1NamespaceMetrics. # noqa: E501
|
|
322
|
+
:rtype: int
|
|
323
|
+
"""
|
|
324
|
+
return self._num_pending_pods
|
|
325
|
+
|
|
326
|
+
@num_pending_pods.setter
|
|
327
|
+
def num_pending_pods(self, num_pending_pods: 'int'):
|
|
328
|
+
"""Sets the num_pending_pods of this V1NamespaceMetrics.
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
:param num_pending_pods: The num_pending_pods of this V1NamespaceMetrics. # noqa: E501
|
|
332
|
+
:type: int
|
|
333
|
+
"""
|
|
334
|
+
|
|
335
|
+
self._num_pending_pods = num_pending_pods
|
|
336
|
+
|
|
337
|
+
@property
|
|
338
|
+
def num_running_pods(self) -> 'int':
|
|
339
|
+
"""Gets the num_running_pods of this V1NamespaceMetrics. # noqa: E501
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
:return: The num_running_pods of this V1NamespaceMetrics. # noqa: E501
|
|
343
|
+
:rtype: int
|
|
344
|
+
"""
|
|
345
|
+
return self._num_running_pods
|
|
346
|
+
|
|
347
|
+
@num_running_pods.setter
|
|
348
|
+
def num_running_pods(self, num_running_pods: 'int'):
|
|
349
|
+
"""Sets the num_running_pods of this V1NamespaceMetrics.
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
:param num_running_pods: The num_running_pods of this V1NamespaceMetrics. # noqa: E501
|
|
353
|
+
:type: int
|
|
354
|
+
"""
|
|
355
|
+
|
|
356
|
+
self._num_running_pods = num_running_pods
|
|
357
|
+
|
|
358
|
+
@property
|
|
359
|
+
def num_succeeded_pods(self) -> 'int':
|
|
360
|
+
"""Gets the num_succeeded_pods of this V1NamespaceMetrics. # noqa: E501
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
:return: The num_succeeded_pods of this V1NamespaceMetrics. # noqa: E501
|
|
364
|
+
:rtype: int
|
|
365
|
+
"""
|
|
366
|
+
return self._num_succeeded_pods
|
|
367
|
+
|
|
368
|
+
@num_succeeded_pods.setter
|
|
369
|
+
def num_succeeded_pods(self, num_succeeded_pods: 'int'):
|
|
370
|
+
"""Sets the num_succeeded_pods of this V1NamespaceMetrics.
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
:param num_succeeded_pods: The num_succeeded_pods of this V1NamespaceMetrics. # noqa: E501
|
|
374
|
+
:type: int
|
|
375
|
+
"""
|
|
376
|
+
|
|
377
|
+
self._num_succeeded_pods = num_succeeded_pods
|
|
378
|
+
|
|
379
|
+
@property
|
|
380
|
+
def num_unknown_pods(self) -> 'int':
|
|
381
|
+
"""Gets the num_unknown_pods of this V1NamespaceMetrics. # noqa: E501
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
:return: The num_unknown_pods of this V1NamespaceMetrics. # noqa: E501
|
|
385
|
+
:rtype: int
|
|
386
|
+
"""
|
|
387
|
+
return self._num_unknown_pods
|
|
388
|
+
|
|
389
|
+
@num_unknown_pods.setter
|
|
390
|
+
def num_unknown_pods(self, num_unknown_pods: 'int'):
|
|
391
|
+
"""Sets the num_unknown_pods of this V1NamespaceMetrics.
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
:param num_unknown_pods: The num_unknown_pods of this V1NamespaceMetrics. # noqa: E501
|
|
395
|
+
:type: int
|
|
396
|
+
"""
|
|
397
|
+
|
|
398
|
+
self._num_unknown_pods = num_unknown_pods
|
|
399
|
+
|
|
400
|
+
@property
|
|
401
|
+
def ram_util_over_cluster(self) -> 'float':
|
|
402
|
+
"""Gets the ram_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
:return: The ram_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
406
|
+
:rtype: float
|
|
407
|
+
"""
|
|
408
|
+
return self._ram_util_over_cluster
|
|
409
|
+
|
|
410
|
+
@ram_util_over_cluster.setter
|
|
411
|
+
def ram_util_over_cluster(self, ram_util_over_cluster: 'float'):
|
|
412
|
+
"""Sets the ram_util_over_cluster of this V1NamespaceMetrics.
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
:param ram_util_over_cluster: The ram_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
416
|
+
:type: float
|
|
417
|
+
"""
|
|
418
|
+
|
|
419
|
+
self._ram_util_over_cluster = ram_util_over_cluster
|
|
420
|
+
|
|
421
|
+
@property
|
|
422
|
+
def ram_util_over_requested(self) -> 'float':
|
|
423
|
+
"""Gets the ram_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
:return: The ram_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
427
|
+
:rtype: float
|
|
428
|
+
"""
|
|
429
|
+
return self._ram_util_over_requested
|
|
430
|
+
|
|
431
|
+
@ram_util_over_requested.setter
|
|
432
|
+
def ram_util_over_requested(self, ram_util_over_requested: 'float'):
|
|
433
|
+
"""Sets the ram_util_over_requested of this V1NamespaceMetrics.
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
:param ram_util_over_requested: The ram_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
437
|
+
:type: float
|
|
438
|
+
"""
|
|
439
|
+
|
|
440
|
+
self._ram_util_over_requested = ram_util_over_requested
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
def rams_requested(self) -> 'float':
|
|
444
|
+
"""Gets the rams_requested of this V1NamespaceMetrics. # noqa: E501
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
:return: The rams_requested of this V1NamespaceMetrics. # noqa: E501
|
|
448
|
+
:rtype: float
|
|
449
|
+
"""
|
|
450
|
+
return self._rams_requested
|
|
451
|
+
|
|
452
|
+
@rams_requested.setter
|
|
453
|
+
def rams_requested(self, rams_requested: 'float'):
|
|
454
|
+
"""Sets the rams_requested of this V1NamespaceMetrics.
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
:param rams_requested: The rams_requested of this V1NamespaceMetrics. # noqa: E501
|
|
458
|
+
:type: float
|
|
459
|
+
"""
|
|
460
|
+
|
|
461
|
+
self._rams_requested = rams_requested
|
|
462
|
+
|
|
463
|
+
@property
|
|
464
|
+
def timestamp(self) -> 'datetime':
|
|
465
|
+
"""Gets the timestamp of this V1NamespaceMetrics. # noqa: E501
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
:return: The timestamp of this V1NamespaceMetrics. # noqa: E501
|
|
469
|
+
:rtype: datetime
|
|
470
|
+
"""
|
|
471
|
+
return self._timestamp
|
|
472
|
+
|
|
473
|
+
@timestamp.setter
|
|
474
|
+
def timestamp(self, timestamp: 'datetime'):
|
|
475
|
+
"""Sets the timestamp of this V1NamespaceMetrics.
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
:param timestamp: The timestamp of this V1NamespaceMetrics. # noqa: E501
|
|
479
|
+
:type: datetime
|
|
480
|
+
"""
|
|
481
|
+
|
|
482
|
+
self._timestamp = timestamp
|
|
483
|
+
|
|
484
|
+
@property
|
|
485
|
+
def vram_requested(self) -> 'float':
|
|
486
|
+
"""Gets the vram_requested of this V1NamespaceMetrics. # noqa: E501
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
:return: The vram_requested of this V1NamespaceMetrics. # noqa: E501
|
|
490
|
+
:rtype: float
|
|
491
|
+
"""
|
|
492
|
+
return self._vram_requested
|
|
493
|
+
|
|
494
|
+
@vram_requested.setter
|
|
495
|
+
def vram_requested(self, vram_requested: 'float'):
|
|
496
|
+
"""Sets the vram_requested of this V1NamespaceMetrics.
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
:param vram_requested: The vram_requested of this V1NamespaceMetrics. # noqa: E501
|
|
500
|
+
:type: float
|
|
501
|
+
"""
|
|
502
|
+
|
|
503
|
+
self._vram_requested = vram_requested
|
|
504
|
+
|
|
505
|
+
@property
|
|
506
|
+
def vram_util_over_cluster(self) -> 'float':
|
|
507
|
+
"""Gets the vram_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
:return: The vram_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
511
|
+
:rtype: float
|
|
512
|
+
"""
|
|
513
|
+
return self._vram_util_over_cluster
|
|
514
|
+
|
|
515
|
+
@vram_util_over_cluster.setter
|
|
516
|
+
def vram_util_over_cluster(self, vram_util_over_cluster: 'float'):
|
|
517
|
+
"""Sets the vram_util_over_cluster of this V1NamespaceMetrics.
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
:param vram_util_over_cluster: The vram_util_over_cluster of this V1NamespaceMetrics. # noqa: E501
|
|
521
|
+
:type: float
|
|
522
|
+
"""
|
|
523
|
+
|
|
524
|
+
self._vram_util_over_cluster = vram_util_over_cluster
|
|
525
|
+
|
|
526
|
+
@property
|
|
527
|
+
def vram_util_over_requested(self) -> 'float':
|
|
528
|
+
"""Gets the vram_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
:return: The vram_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
532
|
+
:rtype: float
|
|
533
|
+
"""
|
|
534
|
+
return self._vram_util_over_requested
|
|
535
|
+
|
|
536
|
+
@vram_util_over_requested.setter
|
|
537
|
+
def vram_util_over_requested(self, vram_util_over_requested: 'float'):
|
|
538
|
+
"""Sets the vram_util_over_requested of this V1NamespaceMetrics.
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
:param vram_util_over_requested: The vram_util_over_requested of this V1NamespaceMetrics. # noqa: E501
|
|
542
|
+
:type: float
|
|
543
|
+
"""
|
|
544
|
+
|
|
545
|
+
self._vram_util_over_requested = vram_util_over_requested
|
|
546
|
+
|
|
547
|
+
def to_dict(self) -> dict:
|
|
548
|
+
"""Returns the model properties as a dict"""
|
|
549
|
+
result = {}
|
|
550
|
+
|
|
551
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
552
|
+
value = getattr(self, attr)
|
|
553
|
+
if isinstance(value, list):
|
|
554
|
+
result[attr] = list(map(
|
|
555
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
556
|
+
value
|
|
557
|
+
))
|
|
558
|
+
elif hasattr(value, "to_dict"):
|
|
559
|
+
result[attr] = value.to_dict()
|
|
560
|
+
elif isinstance(value, dict):
|
|
561
|
+
result[attr] = dict(map(
|
|
562
|
+
lambda item: (item[0], item[1].to_dict())
|
|
563
|
+
if hasattr(item[1], "to_dict") else item,
|
|
564
|
+
value.items()
|
|
565
|
+
))
|
|
566
|
+
else:
|
|
567
|
+
result[attr] = value
|
|
568
|
+
if issubclass(V1NamespaceMetrics, dict):
|
|
569
|
+
for key, value in self.items():
|
|
570
|
+
result[key] = value
|
|
571
|
+
|
|
572
|
+
return result
|
|
573
|
+
|
|
574
|
+
def to_str(self) -> str:
|
|
575
|
+
"""Returns the string representation of the model"""
|
|
576
|
+
return pprint.pformat(self.to_dict())
|
|
577
|
+
|
|
578
|
+
def __repr__(self) -> str:
|
|
579
|
+
"""For `print` and `pprint`"""
|
|
580
|
+
return self.to_str()
|
|
581
|
+
|
|
582
|
+
def __eq__(self, other: 'V1NamespaceMetrics') -> bool:
|
|
583
|
+
"""Returns true if both objects are equal"""
|
|
584
|
+
if not isinstance(other, V1NamespaceMetrics):
|
|
585
|
+
return False
|
|
586
|
+
|
|
587
|
+
return self.__dict__ == other.__dict__
|
|
588
|
+
|
|
589
|
+
def __ne__(self, other: 'V1NamespaceMetrics') -> bool:
|
|
590
|
+
"""Returns true if both objects are not equal"""
|
|
591
|
+
return not self == other
|