lightning-sdk 2025.8.6rc0__py3-none-any.whl → 2025.8.6rc2__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 +48 -0
- lightning_sdk/lightning_cloud/login.py +1 -0
- lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
- lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
- lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_complete_upload_service_execution_artifact_response.py → v1_complete_running_cloud_space_instance_transfer_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
- lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
- lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
- lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
- lightning_sdk/llm/llm.py +5 -15
- lightning_sdk/llm/public_assistants.py +17 -0
- lightning_sdk/services/file_endpoint.py +3 -4
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/RECORD +43 -51
- lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
- lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
- lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
- lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
- lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
- lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
- lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
- lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
- lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
- lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
- lightning_sdk/llm/public_assistants.json +0 -34
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.8.6rc0.dist-info → lightning_sdk-2025.8.6rc2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,357 @@
|
|
|
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 V1NodeMetrics(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_capacity_cores': 'float',
|
|
45
|
+
'cpu_util': 'float',
|
|
46
|
+
'filesystem': 'dict(str, V1FilesystemMetrics)',
|
|
47
|
+
'node_name': 'str',
|
|
48
|
+
'per_gpu_mem_free': 'dict(str, float)',
|
|
49
|
+
'per_gpu_mem_used': 'dict(str, float)',
|
|
50
|
+
'per_gpu_power_usage_watts': 'dict(str, float)',
|
|
51
|
+
'per_gpu_temperature_c': 'dict(str, float)',
|
|
52
|
+
'per_gpu_util': 'dict(str, float)',
|
|
53
|
+
'timestamp': 'datetime'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
attribute_map = {
|
|
57
|
+
'cpu_capacity_cores': 'cpuCapacityCores',
|
|
58
|
+
'cpu_util': 'cpuUtil',
|
|
59
|
+
'filesystem': 'filesystem',
|
|
60
|
+
'node_name': 'nodeName',
|
|
61
|
+
'per_gpu_mem_free': 'perGpuMemFree',
|
|
62
|
+
'per_gpu_mem_used': 'perGpuMemUsed',
|
|
63
|
+
'per_gpu_power_usage_watts': 'perGpuPowerUsageWatts',
|
|
64
|
+
'per_gpu_temperature_c': 'perGpuTemperatureC',
|
|
65
|
+
'per_gpu_util': 'perGpuUtil',
|
|
66
|
+
'timestamp': 'timestamp'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
def __init__(self, cpu_capacity_cores: 'float' =None, cpu_util: 'float' =None, filesystem: 'dict(str, V1FilesystemMetrics)' =None, node_name: 'str' =None, per_gpu_mem_free: 'dict(str, float)' =None, per_gpu_mem_used: 'dict(str, float)' =None, per_gpu_power_usage_watts: 'dict(str, float)' =None, per_gpu_temperature_c: 'dict(str, float)' =None, per_gpu_util: 'dict(str, float)' =None, timestamp: 'datetime' =None): # noqa: E501
|
|
70
|
+
"""V1NodeMetrics - a model defined in Swagger""" # noqa: E501
|
|
71
|
+
self._cpu_capacity_cores = None
|
|
72
|
+
self._cpu_util = None
|
|
73
|
+
self._filesystem = None
|
|
74
|
+
self._node_name = None
|
|
75
|
+
self._per_gpu_mem_free = None
|
|
76
|
+
self._per_gpu_mem_used = None
|
|
77
|
+
self._per_gpu_power_usage_watts = None
|
|
78
|
+
self._per_gpu_temperature_c = None
|
|
79
|
+
self._per_gpu_util = None
|
|
80
|
+
self._timestamp = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
if cpu_capacity_cores is not None:
|
|
83
|
+
self.cpu_capacity_cores = cpu_capacity_cores
|
|
84
|
+
if cpu_util is not None:
|
|
85
|
+
self.cpu_util = cpu_util
|
|
86
|
+
if filesystem is not None:
|
|
87
|
+
self.filesystem = filesystem
|
|
88
|
+
if node_name is not None:
|
|
89
|
+
self.node_name = node_name
|
|
90
|
+
if per_gpu_mem_free is not None:
|
|
91
|
+
self.per_gpu_mem_free = per_gpu_mem_free
|
|
92
|
+
if per_gpu_mem_used is not None:
|
|
93
|
+
self.per_gpu_mem_used = per_gpu_mem_used
|
|
94
|
+
if per_gpu_power_usage_watts is not None:
|
|
95
|
+
self.per_gpu_power_usage_watts = per_gpu_power_usage_watts
|
|
96
|
+
if per_gpu_temperature_c is not None:
|
|
97
|
+
self.per_gpu_temperature_c = per_gpu_temperature_c
|
|
98
|
+
if per_gpu_util is not None:
|
|
99
|
+
self.per_gpu_util = per_gpu_util
|
|
100
|
+
if timestamp is not None:
|
|
101
|
+
self.timestamp = timestamp
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def cpu_capacity_cores(self) -> 'float':
|
|
105
|
+
"""Gets the cpu_capacity_cores of this V1NodeMetrics. # noqa: E501
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:return: The cpu_capacity_cores of this V1NodeMetrics. # noqa: E501
|
|
109
|
+
:rtype: float
|
|
110
|
+
"""
|
|
111
|
+
return self._cpu_capacity_cores
|
|
112
|
+
|
|
113
|
+
@cpu_capacity_cores.setter
|
|
114
|
+
def cpu_capacity_cores(self, cpu_capacity_cores: 'float'):
|
|
115
|
+
"""Sets the cpu_capacity_cores of this V1NodeMetrics.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param cpu_capacity_cores: The cpu_capacity_cores of this V1NodeMetrics. # noqa: E501
|
|
119
|
+
:type: float
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
self._cpu_capacity_cores = cpu_capacity_cores
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def cpu_util(self) -> 'float':
|
|
126
|
+
"""Gets the cpu_util of this V1NodeMetrics. # noqa: E501
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:return: The cpu_util of this V1NodeMetrics. # noqa: E501
|
|
130
|
+
:rtype: float
|
|
131
|
+
"""
|
|
132
|
+
return self._cpu_util
|
|
133
|
+
|
|
134
|
+
@cpu_util.setter
|
|
135
|
+
def cpu_util(self, cpu_util: 'float'):
|
|
136
|
+
"""Sets the cpu_util of this V1NodeMetrics.
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:param cpu_util: The cpu_util of this V1NodeMetrics. # noqa: E501
|
|
140
|
+
:type: float
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._cpu_util = cpu_util
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def filesystem(self) -> 'dict(str, V1FilesystemMetrics)':
|
|
147
|
+
"""Gets the filesystem of this V1NodeMetrics. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The filesystem of this V1NodeMetrics. # noqa: E501
|
|
151
|
+
:rtype: dict(str, V1FilesystemMetrics)
|
|
152
|
+
"""
|
|
153
|
+
return self._filesystem
|
|
154
|
+
|
|
155
|
+
@filesystem.setter
|
|
156
|
+
def filesystem(self, filesystem: 'dict(str, V1FilesystemMetrics)'):
|
|
157
|
+
"""Sets the filesystem of this V1NodeMetrics.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param filesystem: The filesystem of this V1NodeMetrics. # noqa: E501
|
|
161
|
+
:type: dict(str, V1FilesystemMetrics)
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._filesystem = filesystem
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def node_name(self) -> 'str':
|
|
168
|
+
"""Gets the node_name of this V1NodeMetrics. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The node_name of this V1NodeMetrics. # noqa: E501
|
|
172
|
+
:rtype: str
|
|
173
|
+
"""
|
|
174
|
+
return self._node_name
|
|
175
|
+
|
|
176
|
+
@node_name.setter
|
|
177
|
+
def node_name(self, node_name: 'str'):
|
|
178
|
+
"""Sets the node_name of this V1NodeMetrics.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param node_name: The node_name of this V1NodeMetrics. # noqa: E501
|
|
182
|
+
:type: str
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._node_name = node_name
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def per_gpu_mem_free(self) -> 'dict(str, float)':
|
|
189
|
+
"""Gets the per_gpu_mem_free of this V1NodeMetrics. # noqa: E501
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:return: The per_gpu_mem_free of this V1NodeMetrics. # noqa: E501
|
|
193
|
+
:rtype: dict(str, float)
|
|
194
|
+
"""
|
|
195
|
+
return self._per_gpu_mem_free
|
|
196
|
+
|
|
197
|
+
@per_gpu_mem_free.setter
|
|
198
|
+
def per_gpu_mem_free(self, per_gpu_mem_free: 'dict(str, float)'):
|
|
199
|
+
"""Sets the per_gpu_mem_free of this V1NodeMetrics.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:param per_gpu_mem_free: The per_gpu_mem_free of this V1NodeMetrics. # noqa: E501
|
|
203
|
+
:type: dict(str, float)
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
self._per_gpu_mem_free = per_gpu_mem_free
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
def per_gpu_mem_used(self) -> 'dict(str, float)':
|
|
210
|
+
"""Gets the per_gpu_mem_used of this V1NodeMetrics. # noqa: E501
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:return: The per_gpu_mem_used of this V1NodeMetrics. # noqa: E501
|
|
214
|
+
:rtype: dict(str, float)
|
|
215
|
+
"""
|
|
216
|
+
return self._per_gpu_mem_used
|
|
217
|
+
|
|
218
|
+
@per_gpu_mem_used.setter
|
|
219
|
+
def per_gpu_mem_used(self, per_gpu_mem_used: 'dict(str, float)'):
|
|
220
|
+
"""Sets the per_gpu_mem_used of this V1NodeMetrics.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:param per_gpu_mem_used: The per_gpu_mem_used of this V1NodeMetrics. # noqa: E501
|
|
224
|
+
:type: dict(str, float)
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
self._per_gpu_mem_used = per_gpu_mem_used
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def per_gpu_power_usage_watts(self) -> 'dict(str, float)':
|
|
231
|
+
"""Gets the per_gpu_power_usage_watts of this V1NodeMetrics. # noqa: E501
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:return: The per_gpu_power_usage_watts of this V1NodeMetrics. # noqa: E501
|
|
235
|
+
:rtype: dict(str, float)
|
|
236
|
+
"""
|
|
237
|
+
return self._per_gpu_power_usage_watts
|
|
238
|
+
|
|
239
|
+
@per_gpu_power_usage_watts.setter
|
|
240
|
+
def per_gpu_power_usage_watts(self, per_gpu_power_usage_watts: 'dict(str, float)'):
|
|
241
|
+
"""Sets the per_gpu_power_usage_watts of this V1NodeMetrics.
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param per_gpu_power_usage_watts: The per_gpu_power_usage_watts of this V1NodeMetrics. # noqa: E501
|
|
245
|
+
:type: dict(str, float)
|
|
246
|
+
"""
|
|
247
|
+
|
|
248
|
+
self._per_gpu_power_usage_watts = per_gpu_power_usage_watts
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
def per_gpu_temperature_c(self) -> 'dict(str, float)':
|
|
252
|
+
"""Gets the per_gpu_temperature_c of this V1NodeMetrics. # noqa: E501
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:return: The per_gpu_temperature_c of this V1NodeMetrics. # noqa: E501
|
|
256
|
+
:rtype: dict(str, float)
|
|
257
|
+
"""
|
|
258
|
+
return self._per_gpu_temperature_c
|
|
259
|
+
|
|
260
|
+
@per_gpu_temperature_c.setter
|
|
261
|
+
def per_gpu_temperature_c(self, per_gpu_temperature_c: 'dict(str, float)'):
|
|
262
|
+
"""Sets the per_gpu_temperature_c of this V1NodeMetrics.
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:param per_gpu_temperature_c: The per_gpu_temperature_c of this V1NodeMetrics. # noqa: E501
|
|
266
|
+
:type: dict(str, float)
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._per_gpu_temperature_c = per_gpu_temperature_c
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def per_gpu_util(self) -> 'dict(str, float)':
|
|
273
|
+
"""Gets the per_gpu_util of this V1NodeMetrics. # noqa: E501
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
:return: The per_gpu_util of this V1NodeMetrics. # noqa: E501
|
|
277
|
+
:rtype: dict(str, float)
|
|
278
|
+
"""
|
|
279
|
+
return self._per_gpu_util
|
|
280
|
+
|
|
281
|
+
@per_gpu_util.setter
|
|
282
|
+
def per_gpu_util(self, per_gpu_util: 'dict(str, float)'):
|
|
283
|
+
"""Sets the per_gpu_util of this V1NodeMetrics.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:param per_gpu_util: The per_gpu_util of this V1NodeMetrics. # noqa: E501
|
|
287
|
+
:type: dict(str, float)
|
|
288
|
+
"""
|
|
289
|
+
|
|
290
|
+
self._per_gpu_util = per_gpu_util
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def timestamp(self) -> 'datetime':
|
|
294
|
+
"""Gets the timestamp of this V1NodeMetrics. # noqa: E501
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
:return: The timestamp of this V1NodeMetrics. # noqa: E501
|
|
298
|
+
:rtype: datetime
|
|
299
|
+
"""
|
|
300
|
+
return self._timestamp
|
|
301
|
+
|
|
302
|
+
@timestamp.setter
|
|
303
|
+
def timestamp(self, timestamp: 'datetime'):
|
|
304
|
+
"""Sets the timestamp of this V1NodeMetrics.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:param timestamp: The timestamp of this V1NodeMetrics. # noqa: E501
|
|
308
|
+
:type: datetime
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
self._timestamp = timestamp
|
|
312
|
+
|
|
313
|
+
def to_dict(self) -> dict:
|
|
314
|
+
"""Returns the model properties as a dict"""
|
|
315
|
+
result = {}
|
|
316
|
+
|
|
317
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
318
|
+
value = getattr(self, attr)
|
|
319
|
+
if isinstance(value, list):
|
|
320
|
+
result[attr] = list(map(
|
|
321
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
322
|
+
value
|
|
323
|
+
))
|
|
324
|
+
elif hasattr(value, "to_dict"):
|
|
325
|
+
result[attr] = value.to_dict()
|
|
326
|
+
elif isinstance(value, dict):
|
|
327
|
+
result[attr] = dict(map(
|
|
328
|
+
lambda item: (item[0], item[1].to_dict())
|
|
329
|
+
if hasattr(item[1], "to_dict") else item,
|
|
330
|
+
value.items()
|
|
331
|
+
))
|
|
332
|
+
else:
|
|
333
|
+
result[attr] = value
|
|
334
|
+
if issubclass(V1NodeMetrics, dict):
|
|
335
|
+
for key, value in self.items():
|
|
336
|
+
result[key] = value
|
|
337
|
+
|
|
338
|
+
return result
|
|
339
|
+
|
|
340
|
+
def to_str(self) -> str:
|
|
341
|
+
"""Returns the string representation of the model"""
|
|
342
|
+
return pprint.pformat(self.to_dict())
|
|
343
|
+
|
|
344
|
+
def __repr__(self) -> str:
|
|
345
|
+
"""For `print` and `pprint`"""
|
|
346
|
+
return self.to_str()
|
|
347
|
+
|
|
348
|
+
def __eq__(self, other: 'V1NodeMetrics') -> bool:
|
|
349
|
+
"""Returns true if both objects are equal"""
|
|
350
|
+
if not isinstance(other, V1NodeMetrics):
|
|
351
|
+
return False
|
|
352
|
+
|
|
353
|
+
return self.__dict__ == other.__dict__
|
|
354
|
+
|
|
355
|
+
def __ne__(self, other: 'V1NodeMetrics') -> bool:
|
|
356
|
+
"""Returns true if both objects are not equal"""
|
|
357
|
+
return not self == other
|
|
@@ -65,6 +65,8 @@ class V1Organization(object):
|
|
|
65
65
|
'disallow_gcp_saas': 'bool',
|
|
66
66
|
'disallow_lambda_saas': 'bool',
|
|
67
67
|
'disallow_lightning_saas': 'bool',
|
|
68
|
+
'disallow_nebius_saas': 'bool',
|
|
69
|
+
'disallow_voltage_park_saas': 'bool',
|
|
68
70
|
'disallow_vultr_saas': 'bool',
|
|
69
71
|
'display_name': 'str',
|
|
70
72
|
'domain': 'str',
|
|
@@ -116,6 +118,8 @@ class V1Organization(object):
|
|
|
116
118
|
'disallow_gcp_saas': 'disallowGcpSaas',
|
|
117
119
|
'disallow_lambda_saas': 'disallowLambdaSaas',
|
|
118
120
|
'disallow_lightning_saas': 'disallowLightningSaas',
|
|
121
|
+
'disallow_nebius_saas': 'disallowNebiusSaas',
|
|
122
|
+
'disallow_voltage_park_saas': 'disallowVoltageParkSaas',
|
|
119
123
|
'disallow_vultr_saas': 'disallowVultrSaas',
|
|
120
124
|
'display_name': 'displayName',
|
|
121
125
|
'domain': 'domain',
|
|
@@ -142,7 +146,7 @@ class V1Organization(object):
|
|
|
142
146
|
'workload_max_run_duration': 'workloadMaxRunDuration'
|
|
143
147
|
}
|
|
144
148
|
|
|
145
|
-
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, default_project_id: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_vultr_saas: 'bool' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, last_storage_overuse_notification_sent_at: 'datetime' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
149
|
+
def __init__(self, alerts_config: 'V1AlertsConfig' =None, allow_budgeting: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, allow_external_project_duplication: 'bool' =None, allow_guest: 'bool' =None, allow_marketplace: 'bool' =None, allow_member_invitations: 'bool' =None, allow_member_teamspace_creation: 'bool' =None, auto_invite_by_domain: 'bool' =None, auto_join_domain_validations: 'dict(str, V1AutoJoinDomainValidation)' =None, auto_join_domains: 'list[str]' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, auto_switch_machine: 'bool' =None, created_at: 'datetime' =None, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, default_project_id: 'str' =None, description: 'str' =None, disallow_aws_saas: 'bool' =None, disallow_dgx_saas: 'bool' =None, disallow_gcp_saas: 'bool' =None, disallow_lambda_saas: 'bool' =None, disallow_lightning_saas: 'bool' =None, disallow_nebius_saas: 'bool' =None, disallow_voltage_park_saas: 'bool' =None, disallow_vultr_saas: 'bool' =None, display_name: 'str' =None, domain: 'str' =None, email: 'str' =None, featured_gallery: 'bool' =None, full_story_end_date: 'datetime' =None, full_story_start_date: 'datetime' =None, general_teamspace: 'bool' =None, id: 'str' =None, last_storage_overuse_notification_sent_at: 'datetime' =None, location: 'str' =None, name: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, start_studios_on_spot_instance: 'bool' =None, storage_overuse_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, storage_overuse_notification_count: 'int' =None, switch_to_default_machine_on_idle: 'bool' =None, teamspace_default_credits: 'float' =None, twitter_username: 'str' =None, updated_at: 'datetime' =None, workload_max_run_duration: 'str' =None): # noqa: E501
|
|
146
150
|
"""V1Organization - a model defined in Swagger""" # noqa: E501
|
|
147
151
|
self._alerts_config = None
|
|
148
152
|
self._allow_budgeting = None
|
|
@@ -168,6 +172,8 @@ class V1Organization(object):
|
|
|
168
172
|
self._disallow_gcp_saas = None
|
|
169
173
|
self._disallow_lambda_saas = None
|
|
170
174
|
self._disallow_lightning_saas = None
|
|
175
|
+
self._disallow_nebius_saas = None
|
|
176
|
+
self._disallow_voltage_park_saas = None
|
|
171
177
|
self._disallow_vultr_saas = None
|
|
172
178
|
self._display_name = None
|
|
173
179
|
self._domain = None
|
|
@@ -241,6 +247,10 @@ class V1Organization(object):
|
|
|
241
247
|
self.disallow_lambda_saas = disallow_lambda_saas
|
|
242
248
|
if disallow_lightning_saas is not None:
|
|
243
249
|
self.disallow_lightning_saas = disallow_lightning_saas
|
|
250
|
+
if disallow_nebius_saas is not None:
|
|
251
|
+
self.disallow_nebius_saas = disallow_nebius_saas
|
|
252
|
+
if disallow_voltage_park_saas is not None:
|
|
253
|
+
self.disallow_voltage_park_saas = disallow_voltage_park_saas
|
|
244
254
|
if disallow_vultr_saas is not None:
|
|
245
255
|
self.disallow_vultr_saas = disallow_vultr_saas
|
|
246
256
|
if display_name is not None:
|
|
@@ -796,6 +806,48 @@ class V1Organization(object):
|
|
|
796
806
|
|
|
797
807
|
self._disallow_lightning_saas = disallow_lightning_saas
|
|
798
808
|
|
|
809
|
+
@property
|
|
810
|
+
def disallow_nebius_saas(self) -> 'bool':
|
|
811
|
+
"""Gets the disallow_nebius_saas of this V1Organization. # noqa: E501
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
:return: The disallow_nebius_saas of this V1Organization. # noqa: E501
|
|
815
|
+
:rtype: bool
|
|
816
|
+
"""
|
|
817
|
+
return self._disallow_nebius_saas
|
|
818
|
+
|
|
819
|
+
@disallow_nebius_saas.setter
|
|
820
|
+
def disallow_nebius_saas(self, disallow_nebius_saas: 'bool'):
|
|
821
|
+
"""Sets the disallow_nebius_saas of this V1Organization.
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
:param disallow_nebius_saas: The disallow_nebius_saas of this V1Organization. # noqa: E501
|
|
825
|
+
:type: bool
|
|
826
|
+
"""
|
|
827
|
+
|
|
828
|
+
self._disallow_nebius_saas = disallow_nebius_saas
|
|
829
|
+
|
|
830
|
+
@property
|
|
831
|
+
def disallow_voltage_park_saas(self) -> 'bool':
|
|
832
|
+
"""Gets the disallow_voltage_park_saas of this V1Organization. # noqa: E501
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
:return: The disallow_voltage_park_saas of this V1Organization. # noqa: E501
|
|
836
|
+
:rtype: bool
|
|
837
|
+
"""
|
|
838
|
+
return self._disallow_voltage_park_saas
|
|
839
|
+
|
|
840
|
+
@disallow_voltage_park_saas.setter
|
|
841
|
+
def disallow_voltage_park_saas(self, disallow_voltage_park_saas: 'bool'):
|
|
842
|
+
"""Sets the disallow_voltage_park_saas of this V1Organization.
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
:param disallow_voltage_park_saas: The disallow_voltage_park_saas of this V1Organization. # noqa: E501
|
|
846
|
+
:type: bool
|
|
847
|
+
"""
|
|
848
|
+
|
|
849
|
+
self._disallow_voltage_park_saas = disallow_voltage_park_saas
|
|
850
|
+
|
|
799
851
|
@property
|
|
800
852
|
def disallow_vultr_saas(self) -> 'bool':
|
|
801
853
|
"""Gets the disallow_vultr_saas of this V1Organization. # noqa: E501
|