lightning-sdk 2025.10.8__py3-none-any.whl → 2025.10.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/cloud_account_api.py +0 -2
- lightning_sdk/api/studio_api.py +8 -0
- lightning_sdk/job/job.py +5 -0
- lightning_sdk/job/v1.py +8 -0
- lightning_sdk/job/v2.py +8 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +19 -19
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1463 -240
- lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
- lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/project_id_incidents_body.py +279 -0
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +15 -15
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +539 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/machine.py +0 -1
- lightning_sdk/studio.py +8 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/RECORD +60 -40
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,627 @@
|
|
|
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 V1KaiSchedulerQueueMetrics(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
|
+
'allocated_cpu_millicores': 'int',
|
|
45
|
+
'allocated_gpus': 'int',
|
|
46
|
+
'allocated_memory_bytes': 'str',
|
|
47
|
+
'allocated_non_preemptible_cpu_millicores': 'int',
|
|
48
|
+
'allocated_non_preemptible_gpus': 'int',
|
|
49
|
+
'allocated_non_preemptible_memory_bytes': 'str',
|
|
50
|
+
'allocated_non_preemptible_rdma_devices': 'int',
|
|
51
|
+
'allocated_rdma_devices': 'int',
|
|
52
|
+
'name': 'str',
|
|
53
|
+
'parent_queue': 'str',
|
|
54
|
+
'quota_cpu_millicores': 'int',
|
|
55
|
+
'quota_gpus': 'int',
|
|
56
|
+
'quota_memory_bytes': 'str',
|
|
57
|
+
'quota_rdma_devices': 'int',
|
|
58
|
+
'requested_cpu_millicores': 'int',
|
|
59
|
+
'requested_gpus': 'int',
|
|
60
|
+
'requested_memory_bytes': 'str',
|
|
61
|
+
'requested_rdma_devices': 'int',
|
|
62
|
+
'timestamp': 'datetime'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
attribute_map = {
|
|
66
|
+
'allocated_cpu_millicores': 'allocatedCpuMillicores',
|
|
67
|
+
'allocated_gpus': 'allocatedGpus',
|
|
68
|
+
'allocated_memory_bytes': 'allocatedMemoryBytes',
|
|
69
|
+
'allocated_non_preemptible_cpu_millicores': 'allocatedNonPreemptibleCpuMillicores',
|
|
70
|
+
'allocated_non_preemptible_gpus': 'allocatedNonPreemptibleGpus',
|
|
71
|
+
'allocated_non_preemptible_memory_bytes': 'allocatedNonPreemptibleMemoryBytes',
|
|
72
|
+
'allocated_non_preemptible_rdma_devices': 'allocatedNonPreemptibleRdmaDevices',
|
|
73
|
+
'allocated_rdma_devices': 'allocatedRdmaDevices',
|
|
74
|
+
'name': 'name',
|
|
75
|
+
'parent_queue': 'parentQueue',
|
|
76
|
+
'quota_cpu_millicores': 'quotaCpuMillicores',
|
|
77
|
+
'quota_gpus': 'quotaGpus',
|
|
78
|
+
'quota_memory_bytes': 'quotaMemoryBytes',
|
|
79
|
+
'quota_rdma_devices': 'quotaRdmaDevices',
|
|
80
|
+
'requested_cpu_millicores': 'requestedCpuMillicores',
|
|
81
|
+
'requested_gpus': 'requestedGpus',
|
|
82
|
+
'requested_memory_bytes': 'requestedMemoryBytes',
|
|
83
|
+
'requested_rdma_devices': 'requestedRdmaDevices',
|
|
84
|
+
'timestamp': 'timestamp'
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
def __init__(self, allocated_cpu_millicores: 'int' =None, allocated_gpus: 'int' =None, allocated_memory_bytes: 'str' =None, allocated_non_preemptible_cpu_millicores: 'int' =None, allocated_non_preemptible_gpus: 'int' =None, allocated_non_preemptible_memory_bytes: 'str' =None, allocated_non_preemptible_rdma_devices: 'int' =None, allocated_rdma_devices: 'int' =None, name: 'str' =None, parent_queue: 'str' =None, quota_cpu_millicores: 'int' =None, quota_gpus: 'int' =None, quota_memory_bytes: 'str' =None, quota_rdma_devices: 'int' =None, requested_cpu_millicores: 'int' =None, requested_gpus: 'int' =None, requested_memory_bytes: 'str' =None, requested_rdma_devices: 'int' =None, timestamp: 'datetime' =None): # noqa: E501
|
|
88
|
+
"""V1KaiSchedulerQueueMetrics - a model defined in Swagger""" # noqa: E501
|
|
89
|
+
self._allocated_cpu_millicores = None
|
|
90
|
+
self._allocated_gpus = None
|
|
91
|
+
self._allocated_memory_bytes = None
|
|
92
|
+
self._allocated_non_preemptible_cpu_millicores = None
|
|
93
|
+
self._allocated_non_preemptible_gpus = None
|
|
94
|
+
self._allocated_non_preemptible_memory_bytes = None
|
|
95
|
+
self._allocated_non_preemptible_rdma_devices = None
|
|
96
|
+
self._allocated_rdma_devices = None
|
|
97
|
+
self._name = None
|
|
98
|
+
self._parent_queue = None
|
|
99
|
+
self._quota_cpu_millicores = None
|
|
100
|
+
self._quota_gpus = None
|
|
101
|
+
self._quota_memory_bytes = None
|
|
102
|
+
self._quota_rdma_devices = None
|
|
103
|
+
self._requested_cpu_millicores = None
|
|
104
|
+
self._requested_gpus = None
|
|
105
|
+
self._requested_memory_bytes = None
|
|
106
|
+
self._requested_rdma_devices = None
|
|
107
|
+
self._timestamp = None
|
|
108
|
+
self.discriminator = None
|
|
109
|
+
if allocated_cpu_millicores is not None:
|
|
110
|
+
self.allocated_cpu_millicores = allocated_cpu_millicores
|
|
111
|
+
if allocated_gpus is not None:
|
|
112
|
+
self.allocated_gpus = allocated_gpus
|
|
113
|
+
if allocated_memory_bytes is not None:
|
|
114
|
+
self.allocated_memory_bytes = allocated_memory_bytes
|
|
115
|
+
if allocated_non_preemptible_cpu_millicores is not None:
|
|
116
|
+
self.allocated_non_preemptible_cpu_millicores = allocated_non_preemptible_cpu_millicores
|
|
117
|
+
if allocated_non_preemptible_gpus is not None:
|
|
118
|
+
self.allocated_non_preemptible_gpus = allocated_non_preemptible_gpus
|
|
119
|
+
if allocated_non_preemptible_memory_bytes is not None:
|
|
120
|
+
self.allocated_non_preemptible_memory_bytes = allocated_non_preemptible_memory_bytes
|
|
121
|
+
if allocated_non_preemptible_rdma_devices is not None:
|
|
122
|
+
self.allocated_non_preemptible_rdma_devices = allocated_non_preemptible_rdma_devices
|
|
123
|
+
if allocated_rdma_devices is not None:
|
|
124
|
+
self.allocated_rdma_devices = allocated_rdma_devices
|
|
125
|
+
if name is not None:
|
|
126
|
+
self.name = name
|
|
127
|
+
if parent_queue is not None:
|
|
128
|
+
self.parent_queue = parent_queue
|
|
129
|
+
if quota_cpu_millicores is not None:
|
|
130
|
+
self.quota_cpu_millicores = quota_cpu_millicores
|
|
131
|
+
if quota_gpus is not None:
|
|
132
|
+
self.quota_gpus = quota_gpus
|
|
133
|
+
if quota_memory_bytes is not None:
|
|
134
|
+
self.quota_memory_bytes = quota_memory_bytes
|
|
135
|
+
if quota_rdma_devices is not None:
|
|
136
|
+
self.quota_rdma_devices = quota_rdma_devices
|
|
137
|
+
if requested_cpu_millicores is not None:
|
|
138
|
+
self.requested_cpu_millicores = requested_cpu_millicores
|
|
139
|
+
if requested_gpus is not None:
|
|
140
|
+
self.requested_gpus = requested_gpus
|
|
141
|
+
if requested_memory_bytes is not None:
|
|
142
|
+
self.requested_memory_bytes = requested_memory_bytes
|
|
143
|
+
if requested_rdma_devices is not None:
|
|
144
|
+
self.requested_rdma_devices = requested_rdma_devices
|
|
145
|
+
if timestamp is not None:
|
|
146
|
+
self.timestamp = timestamp
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def allocated_cpu_millicores(self) -> 'int':
|
|
150
|
+
"""Gets the allocated_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
151
|
+
|
|
152
|
+
Total allocated CPU in millicores. # noqa: E501
|
|
153
|
+
|
|
154
|
+
:return: The allocated_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
155
|
+
:rtype: int
|
|
156
|
+
"""
|
|
157
|
+
return self._allocated_cpu_millicores
|
|
158
|
+
|
|
159
|
+
@allocated_cpu_millicores.setter
|
|
160
|
+
def allocated_cpu_millicores(self, allocated_cpu_millicores: 'int'):
|
|
161
|
+
"""Sets the allocated_cpu_millicores of this V1KaiSchedulerQueueMetrics.
|
|
162
|
+
|
|
163
|
+
Total allocated CPU in millicores. # noqa: E501
|
|
164
|
+
|
|
165
|
+
:param allocated_cpu_millicores: The allocated_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
166
|
+
:type: int
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._allocated_cpu_millicores = allocated_cpu_millicores
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def allocated_gpus(self) -> 'int':
|
|
173
|
+
"""Gets the allocated_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
174
|
+
|
|
175
|
+
Total allocated GPUs. # noqa: E501
|
|
176
|
+
|
|
177
|
+
:return: The allocated_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
178
|
+
:rtype: int
|
|
179
|
+
"""
|
|
180
|
+
return self._allocated_gpus
|
|
181
|
+
|
|
182
|
+
@allocated_gpus.setter
|
|
183
|
+
def allocated_gpus(self, allocated_gpus: 'int'):
|
|
184
|
+
"""Sets the allocated_gpus of this V1KaiSchedulerQueueMetrics.
|
|
185
|
+
|
|
186
|
+
Total allocated GPUs. # noqa: E501
|
|
187
|
+
|
|
188
|
+
:param allocated_gpus: The allocated_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
189
|
+
:type: int
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
self._allocated_gpus = allocated_gpus
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def allocated_memory_bytes(self) -> 'str':
|
|
196
|
+
"""Gets the allocated_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
197
|
+
|
|
198
|
+
Total allocated memory in bytes. # noqa: E501
|
|
199
|
+
|
|
200
|
+
:return: The allocated_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._allocated_memory_bytes
|
|
204
|
+
|
|
205
|
+
@allocated_memory_bytes.setter
|
|
206
|
+
def allocated_memory_bytes(self, allocated_memory_bytes: 'str'):
|
|
207
|
+
"""Sets the allocated_memory_bytes of this V1KaiSchedulerQueueMetrics.
|
|
208
|
+
|
|
209
|
+
Total allocated memory in bytes. # noqa: E501
|
|
210
|
+
|
|
211
|
+
:param allocated_memory_bytes: The allocated_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
212
|
+
:type: str
|
|
213
|
+
"""
|
|
214
|
+
|
|
215
|
+
self._allocated_memory_bytes = allocated_memory_bytes
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def allocated_non_preemptible_cpu_millicores(self) -> 'int':
|
|
219
|
+
"""Gets the allocated_non_preemptible_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
220
|
+
|
|
221
|
+
Non-preemptible allocated CPU in millicores. # noqa: E501
|
|
222
|
+
|
|
223
|
+
:return: The allocated_non_preemptible_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
224
|
+
:rtype: int
|
|
225
|
+
"""
|
|
226
|
+
return self._allocated_non_preemptible_cpu_millicores
|
|
227
|
+
|
|
228
|
+
@allocated_non_preemptible_cpu_millicores.setter
|
|
229
|
+
def allocated_non_preemptible_cpu_millicores(self, allocated_non_preemptible_cpu_millicores: 'int'):
|
|
230
|
+
"""Sets the allocated_non_preemptible_cpu_millicores of this V1KaiSchedulerQueueMetrics.
|
|
231
|
+
|
|
232
|
+
Non-preemptible allocated CPU in millicores. # noqa: E501
|
|
233
|
+
|
|
234
|
+
:param allocated_non_preemptible_cpu_millicores: The allocated_non_preemptible_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
235
|
+
:type: int
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._allocated_non_preemptible_cpu_millicores = allocated_non_preemptible_cpu_millicores
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def allocated_non_preemptible_gpus(self) -> 'int':
|
|
242
|
+
"""Gets the allocated_non_preemptible_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
243
|
+
|
|
244
|
+
Non-preemptible allocated GPUs. # noqa: E501
|
|
245
|
+
|
|
246
|
+
:return: The allocated_non_preemptible_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
247
|
+
:rtype: int
|
|
248
|
+
"""
|
|
249
|
+
return self._allocated_non_preemptible_gpus
|
|
250
|
+
|
|
251
|
+
@allocated_non_preemptible_gpus.setter
|
|
252
|
+
def allocated_non_preemptible_gpus(self, allocated_non_preemptible_gpus: 'int'):
|
|
253
|
+
"""Sets the allocated_non_preemptible_gpus of this V1KaiSchedulerQueueMetrics.
|
|
254
|
+
|
|
255
|
+
Non-preemptible allocated GPUs. # noqa: E501
|
|
256
|
+
|
|
257
|
+
:param allocated_non_preemptible_gpus: The allocated_non_preemptible_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
258
|
+
:type: int
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
self._allocated_non_preemptible_gpus = allocated_non_preemptible_gpus
|
|
262
|
+
|
|
263
|
+
@property
|
|
264
|
+
def allocated_non_preemptible_memory_bytes(self) -> 'str':
|
|
265
|
+
"""Gets the allocated_non_preemptible_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
266
|
+
|
|
267
|
+
Non-preemptible allocated memory in bytes. # noqa: E501
|
|
268
|
+
|
|
269
|
+
:return: The allocated_non_preemptible_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
270
|
+
:rtype: str
|
|
271
|
+
"""
|
|
272
|
+
return self._allocated_non_preemptible_memory_bytes
|
|
273
|
+
|
|
274
|
+
@allocated_non_preemptible_memory_bytes.setter
|
|
275
|
+
def allocated_non_preemptible_memory_bytes(self, allocated_non_preemptible_memory_bytes: 'str'):
|
|
276
|
+
"""Sets the allocated_non_preemptible_memory_bytes of this V1KaiSchedulerQueueMetrics.
|
|
277
|
+
|
|
278
|
+
Non-preemptible allocated memory in bytes. # noqa: E501
|
|
279
|
+
|
|
280
|
+
:param allocated_non_preemptible_memory_bytes: The allocated_non_preemptible_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
281
|
+
:type: str
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
self._allocated_non_preemptible_memory_bytes = allocated_non_preemptible_memory_bytes
|
|
285
|
+
|
|
286
|
+
@property
|
|
287
|
+
def allocated_non_preemptible_rdma_devices(self) -> 'int':
|
|
288
|
+
"""Gets the allocated_non_preemptible_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
289
|
+
|
|
290
|
+
Non-preemptible allocated RDMA devices. # noqa: E501
|
|
291
|
+
|
|
292
|
+
:return: The allocated_non_preemptible_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
293
|
+
:rtype: int
|
|
294
|
+
"""
|
|
295
|
+
return self._allocated_non_preemptible_rdma_devices
|
|
296
|
+
|
|
297
|
+
@allocated_non_preemptible_rdma_devices.setter
|
|
298
|
+
def allocated_non_preemptible_rdma_devices(self, allocated_non_preemptible_rdma_devices: 'int'):
|
|
299
|
+
"""Sets the allocated_non_preemptible_rdma_devices of this V1KaiSchedulerQueueMetrics.
|
|
300
|
+
|
|
301
|
+
Non-preemptible allocated RDMA devices. # noqa: E501
|
|
302
|
+
|
|
303
|
+
:param allocated_non_preemptible_rdma_devices: The allocated_non_preemptible_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
304
|
+
:type: int
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
self._allocated_non_preemptible_rdma_devices = allocated_non_preemptible_rdma_devices
|
|
308
|
+
|
|
309
|
+
@property
|
|
310
|
+
def allocated_rdma_devices(self) -> 'int':
|
|
311
|
+
"""Gets the allocated_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
312
|
+
|
|
313
|
+
Total allocated RDMA devices. # noqa: E501
|
|
314
|
+
|
|
315
|
+
:return: The allocated_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
316
|
+
:rtype: int
|
|
317
|
+
"""
|
|
318
|
+
return self._allocated_rdma_devices
|
|
319
|
+
|
|
320
|
+
@allocated_rdma_devices.setter
|
|
321
|
+
def allocated_rdma_devices(self, allocated_rdma_devices: 'int'):
|
|
322
|
+
"""Sets the allocated_rdma_devices of this V1KaiSchedulerQueueMetrics.
|
|
323
|
+
|
|
324
|
+
Total allocated RDMA devices. # noqa: E501
|
|
325
|
+
|
|
326
|
+
:param allocated_rdma_devices: The allocated_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
327
|
+
:type: int
|
|
328
|
+
"""
|
|
329
|
+
|
|
330
|
+
self._allocated_rdma_devices = allocated_rdma_devices
|
|
331
|
+
|
|
332
|
+
@property
|
|
333
|
+
def name(self) -> 'str':
|
|
334
|
+
"""Gets the name of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
335
|
+
|
|
336
|
+
The name of the queue (e.g., \"text-queue\"). # noqa: E501
|
|
337
|
+
|
|
338
|
+
:return: The name of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
339
|
+
:rtype: str
|
|
340
|
+
"""
|
|
341
|
+
return self._name
|
|
342
|
+
|
|
343
|
+
@name.setter
|
|
344
|
+
def name(self, name: 'str'):
|
|
345
|
+
"""Sets the name of this V1KaiSchedulerQueueMetrics.
|
|
346
|
+
|
|
347
|
+
The name of the queue (e.g., \"text-queue\"). # noqa: E501
|
|
348
|
+
|
|
349
|
+
:param name: The name of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
350
|
+
:type: str
|
|
351
|
+
"""
|
|
352
|
+
|
|
353
|
+
self._name = name
|
|
354
|
+
|
|
355
|
+
@property
|
|
356
|
+
def parent_queue(self) -> 'str':
|
|
357
|
+
"""Gets the parent_queue of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
358
|
+
|
|
359
|
+
The name of the parent queue (e.g., \"cluster-queue\"). Will be empty for root queues. # noqa: E501
|
|
360
|
+
|
|
361
|
+
:return: The parent_queue of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
362
|
+
:rtype: str
|
|
363
|
+
"""
|
|
364
|
+
return self._parent_queue
|
|
365
|
+
|
|
366
|
+
@parent_queue.setter
|
|
367
|
+
def parent_queue(self, parent_queue: 'str'):
|
|
368
|
+
"""Sets the parent_queue of this V1KaiSchedulerQueueMetrics.
|
|
369
|
+
|
|
370
|
+
The name of the parent queue (e.g., \"cluster-queue\"). Will be empty for root queues. # noqa: E501
|
|
371
|
+
|
|
372
|
+
:param parent_queue: The parent_queue of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
373
|
+
:type: str
|
|
374
|
+
"""
|
|
375
|
+
|
|
376
|
+
self._parent_queue = parent_queue
|
|
377
|
+
|
|
378
|
+
@property
|
|
379
|
+
def quota_cpu_millicores(self) -> 'int':
|
|
380
|
+
"""Gets the quota_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
381
|
+
|
|
382
|
+
CPU quota stored in millicores to avoid floats (e.g., 1.5 cores is stored as 1500). # noqa: E501
|
|
383
|
+
|
|
384
|
+
:return: The quota_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
385
|
+
:rtype: int
|
|
386
|
+
"""
|
|
387
|
+
return self._quota_cpu_millicores
|
|
388
|
+
|
|
389
|
+
@quota_cpu_millicores.setter
|
|
390
|
+
def quota_cpu_millicores(self, quota_cpu_millicores: 'int'):
|
|
391
|
+
"""Sets the quota_cpu_millicores of this V1KaiSchedulerQueueMetrics.
|
|
392
|
+
|
|
393
|
+
CPU quota stored in millicores to avoid floats (e.g., 1.5 cores is stored as 1500). # noqa: E501
|
|
394
|
+
|
|
395
|
+
:param quota_cpu_millicores: The quota_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
396
|
+
:type: int
|
|
397
|
+
"""
|
|
398
|
+
|
|
399
|
+
self._quota_cpu_millicores = quota_cpu_millicores
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
def quota_gpus(self) -> 'int':
|
|
403
|
+
"""Gets the quota_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
404
|
+
|
|
405
|
+
GPU quota is a whole number count. # noqa: E501
|
|
406
|
+
|
|
407
|
+
:return: The quota_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
408
|
+
:rtype: int
|
|
409
|
+
"""
|
|
410
|
+
return self._quota_gpus
|
|
411
|
+
|
|
412
|
+
@quota_gpus.setter
|
|
413
|
+
def quota_gpus(self, quota_gpus: 'int'):
|
|
414
|
+
"""Sets the quota_gpus of this V1KaiSchedulerQueueMetrics.
|
|
415
|
+
|
|
416
|
+
GPU quota is a whole number count. # noqa: E501
|
|
417
|
+
|
|
418
|
+
:param quota_gpus: The quota_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
419
|
+
:type: int
|
|
420
|
+
"""
|
|
421
|
+
|
|
422
|
+
self._quota_gpus = quota_gpus
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
def quota_memory_bytes(self) -> 'str':
|
|
426
|
+
"""Gets the quota_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
427
|
+
|
|
428
|
+
Memory quota stored in bytes. uint64 is required for large values (terabytes). # noqa: E501
|
|
429
|
+
|
|
430
|
+
:return: The quota_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
431
|
+
:rtype: str
|
|
432
|
+
"""
|
|
433
|
+
return self._quota_memory_bytes
|
|
434
|
+
|
|
435
|
+
@quota_memory_bytes.setter
|
|
436
|
+
def quota_memory_bytes(self, quota_memory_bytes: 'str'):
|
|
437
|
+
"""Sets the quota_memory_bytes of this V1KaiSchedulerQueueMetrics.
|
|
438
|
+
|
|
439
|
+
Memory quota stored in bytes. uint64 is required for large values (terabytes). # noqa: E501
|
|
440
|
+
|
|
441
|
+
:param quota_memory_bytes: The quota_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
442
|
+
:type: str
|
|
443
|
+
"""
|
|
444
|
+
|
|
445
|
+
self._quota_memory_bytes = quota_memory_bytes
|
|
446
|
+
|
|
447
|
+
@property
|
|
448
|
+
def quota_rdma_devices(self) -> 'int':
|
|
449
|
+
"""Gets the quota_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
450
|
+
|
|
451
|
+
RDMA device quota is a whole number count. # noqa: E501
|
|
452
|
+
|
|
453
|
+
:return: The quota_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
454
|
+
:rtype: int
|
|
455
|
+
"""
|
|
456
|
+
return self._quota_rdma_devices
|
|
457
|
+
|
|
458
|
+
@quota_rdma_devices.setter
|
|
459
|
+
def quota_rdma_devices(self, quota_rdma_devices: 'int'):
|
|
460
|
+
"""Sets the quota_rdma_devices of this V1KaiSchedulerQueueMetrics.
|
|
461
|
+
|
|
462
|
+
RDMA device quota is a whole number count. # noqa: E501
|
|
463
|
+
|
|
464
|
+
:param quota_rdma_devices: The quota_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
465
|
+
:type: int
|
|
466
|
+
"""
|
|
467
|
+
|
|
468
|
+
self._quota_rdma_devices = quota_rdma_devices
|
|
469
|
+
|
|
470
|
+
@property
|
|
471
|
+
def requested_cpu_millicores(self) -> 'int':
|
|
472
|
+
"""Gets the requested_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
473
|
+
|
|
474
|
+
Total requested CPU in millicores. # noqa: E501
|
|
475
|
+
|
|
476
|
+
:return: The requested_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
477
|
+
:rtype: int
|
|
478
|
+
"""
|
|
479
|
+
return self._requested_cpu_millicores
|
|
480
|
+
|
|
481
|
+
@requested_cpu_millicores.setter
|
|
482
|
+
def requested_cpu_millicores(self, requested_cpu_millicores: 'int'):
|
|
483
|
+
"""Sets the requested_cpu_millicores of this V1KaiSchedulerQueueMetrics.
|
|
484
|
+
|
|
485
|
+
Total requested CPU in millicores. # noqa: E501
|
|
486
|
+
|
|
487
|
+
:param requested_cpu_millicores: The requested_cpu_millicores of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
488
|
+
:type: int
|
|
489
|
+
"""
|
|
490
|
+
|
|
491
|
+
self._requested_cpu_millicores = requested_cpu_millicores
|
|
492
|
+
|
|
493
|
+
@property
|
|
494
|
+
def requested_gpus(self) -> 'int':
|
|
495
|
+
"""Gets the requested_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
496
|
+
|
|
497
|
+
Total requested GPUs. # noqa: E501
|
|
498
|
+
|
|
499
|
+
:return: The requested_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
500
|
+
:rtype: int
|
|
501
|
+
"""
|
|
502
|
+
return self._requested_gpus
|
|
503
|
+
|
|
504
|
+
@requested_gpus.setter
|
|
505
|
+
def requested_gpus(self, requested_gpus: 'int'):
|
|
506
|
+
"""Sets the requested_gpus of this V1KaiSchedulerQueueMetrics.
|
|
507
|
+
|
|
508
|
+
Total requested GPUs. # noqa: E501
|
|
509
|
+
|
|
510
|
+
:param requested_gpus: The requested_gpus of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
511
|
+
:type: int
|
|
512
|
+
"""
|
|
513
|
+
|
|
514
|
+
self._requested_gpus = requested_gpus
|
|
515
|
+
|
|
516
|
+
@property
|
|
517
|
+
def requested_memory_bytes(self) -> 'str':
|
|
518
|
+
"""Gets the requested_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
519
|
+
|
|
520
|
+
Total requested memory in bytes. # noqa: E501
|
|
521
|
+
|
|
522
|
+
:return: The requested_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
523
|
+
:rtype: str
|
|
524
|
+
"""
|
|
525
|
+
return self._requested_memory_bytes
|
|
526
|
+
|
|
527
|
+
@requested_memory_bytes.setter
|
|
528
|
+
def requested_memory_bytes(self, requested_memory_bytes: 'str'):
|
|
529
|
+
"""Sets the requested_memory_bytes of this V1KaiSchedulerQueueMetrics.
|
|
530
|
+
|
|
531
|
+
Total requested memory in bytes. # noqa: E501
|
|
532
|
+
|
|
533
|
+
:param requested_memory_bytes: The requested_memory_bytes of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
534
|
+
:type: str
|
|
535
|
+
"""
|
|
536
|
+
|
|
537
|
+
self._requested_memory_bytes = requested_memory_bytes
|
|
538
|
+
|
|
539
|
+
@property
|
|
540
|
+
def requested_rdma_devices(self) -> 'int':
|
|
541
|
+
"""Gets the requested_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
542
|
+
|
|
543
|
+
Total requested RDMA devices. # noqa: E501
|
|
544
|
+
|
|
545
|
+
:return: The requested_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
546
|
+
:rtype: int
|
|
547
|
+
"""
|
|
548
|
+
return self._requested_rdma_devices
|
|
549
|
+
|
|
550
|
+
@requested_rdma_devices.setter
|
|
551
|
+
def requested_rdma_devices(self, requested_rdma_devices: 'int'):
|
|
552
|
+
"""Sets the requested_rdma_devices of this V1KaiSchedulerQueueMetrics.
|
|
553
|
+
|
|
554
|
+
Total requested RDMA devices. # noqa: E501
|
|
555
|
+
|
|
556
|
+
:param requested_rdma_devices: The requested_rdma_devices of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
557
|
+
:type: int
|
|
558
|
+
"""
|
|
559
|
+
|
|
560
|
+
self._requested_rdma_devices = requested_rdma_devices
|
|
561
|
+
|
|
562
|
+
@property
|
|
563
|
+
def timestamp(self) -> 'datetime':
|
|
564
|
+
"""Gets the timestamp of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
:return: The timestamp of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
568
|
+
:rtype: datetime
|
|
569
|
+
"""
|
|
570
|
+
return self._timestamp
|
|
571
|
+
|
|
572
|
+
@timestamp.setter
|
|
573
|
+
def timestamp(self, timestamp: 'datetime'):
|
|
574
|
+
"""Sets the timestamp of this V1KaiSchedulerQueueMetrics.
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
:param timestamp: The timestamp of this V1KaiSchedulerQueueMetrics. # noqa: E501
|
|
578
|
+
:type: datetime
|
|
579
|
+
"""
|
|
580
|
+
|
|
581
|
+
self._timestamp = timestamp
|
|
582
|
+
|
|
583
|
+
def to_dict(self) -> dict:
|
|
584
|
+
"""Returns the model properties as a dict"""
|
|
585
|
+
result = {}
|
|
586
|
+
|
|
587
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
588
|
+
value = getattr(self, attr)
|
|
589
|
+
if isinstance(value, list):
|
|
590
|
+
result[attr] = list(map(
|
|
591
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
592
|
+
value
|
|
593
|
+
))
|
|
594
|
+
elif hasattr(value, "to_dict"):
|
|
595
|
+
result[attr] = value.to_dict()
|
|
596
|
+
elif isinstance(value, dict):
|
|
597
|
+
result[attr] = dict(map(
|
|
598
|
+
lambda item: (item[0], item[1].to_dict())
|
|
599
|
+
if hasattr(item[1], "to_dict") else item,
|
|
600
|
+
value.items()
|
|
601
|
+
))
|
|
602
|
+
else:
|
|
603
|
+
result[attr] = value
|
|
604
|
+
if issubclass(V1KaiSchedulerQueueMetrics, dict):
|
|
605
|
+
for key, value in self.items():
|
|
606
|
+
result[key] = value
|
|
607
|
+
|
|
608
|
+
return result
|
|
609
|
+
|
|
610
|
+
def to_str(self) -> str:
|
|
611
|
+
"""Returns the string representation of the model"""
|
|
612
|
+
return pprint.pformat(self.to_dict())
|
|
613
|
+
|
|
614
|
+
def __repr__(self) -> str:
|
|
615
|
+
"""For `print` and `pprint`"""
|
|
616
|
+
return self.to_str()
|
|
617
|
+
|
|
618
|
+
def __eq__(self, other: 'V1KaiSchedulerQueueMetrics') -> bool:
|
|
619
|
+
"""Returns true if both objects are equal"""
|
|
620
|
+
if not isinstance(other, V1KaiSchedulerQueueMetrics):
|
|
621
|
+
return False
|
|
622
|
+
|
|
623
|
+
return self.__dict__ == other.__dict__
|
|
624
|
+
|
|
625
|
+
def __ne__(self, other: 'V1KaiSchedulerQueueMetrics') -> bool:
|
|
626
|
+
"""Returns true if both objects are not equal"""
|
|
627
|
+
return not self == other
|