lightning-sdk 2025.8.1__py3-none-any.whl → 2025.8.6rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +6 -4
  3. lightning_sdk/api/job_api.py +2 -0
  4. lightning_sdk/api/mmt_api.py +2 -0
  5. lightning_sdk/deployment/deployment.py +5 -0
  6. lightning_sdk/lightning_cloud/login.py +1 -7
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +15 -23
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  9. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +5 -1
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +228 -1
  11. lightning_sdk/lightning_cloud/openapi/api/endpoint_service_api.py +126 -2129
  12. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +625 -0
  13. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  14. lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -23
  15. lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +175 -0
  16. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
  17. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +53 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +201 -0
  20. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +29 -3
  21. 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
  22. lightning_sdk/lightning_cloud/openapi/models/v1_container_metrics.py +461 -0
  23. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_metrics.py +227 -0
  24. lightning_sdk/lightning_cloud/openapi/models/{v1_list_file_endpoints_response.py → v1_list_container_metrics_response.py} +23 -23
  25. lightning_sdk/lightning_cloud/openapi/models/{service_artifact_artifact_kind.py → v1_list_node_file_system_metrics_response.py} +6 -13
  26. lightning_sdk/lightning_cloud/openapi/models/{v1_upload_service_execution_artifact_parts_response.py → v1_list_node_metrics_response.py} +23 -23
  27. lightning_sdk/lightning_cloud/openapi/models/v1_list_pod_metrics_response.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_node_metrics.py +357 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_pod_metrics.py +435 -0
  32. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +53 -1
  33. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_service_execution_response.py → v1_report_k8s_cluster_metrics_response.py} +6 -6
  34. lightning_sdk/lightning_cloud/openapi/models/{command_argument_command_argument_type.py → v1_request_cloud_space_access_response.py} +6 -12
  35. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_instance_config_request.py +331 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
  37. lightning_sdk/lightning_cloud/utils/data_connection.py +56 -1
  38. lightning_sdk/llm/llm.py +2 -13
  39. lightning_sdk/llm/public_assistants.py +17 -0
  40. lightning_sdk/pipeline/steps.py +30 -1
  41. lightning_sdk/services/file_endpoint.py +3 -4
  42. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/METADATA +1 -1
  43. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/RECORD +47 -55
  44. lightning_sdk/lightning_cloud/openapi/models/fileendpoints_id_body.py +0 -409
  45. lightning_sdk/lightning_cloud/openapi/models/id_complete_body.py +0 -175
  46. lightning_sdk/lightning_cloud/openapi/models/id_storage_body.py +0 -175
  47. lightning_sdk/lightning_cloud/openapi/models/id_uploads_body1.py +0 -175
  48. lightning_sdk/lightning_cloud/openapi/models/project_id_fileendpoints_body.py +0 -357
  49. lightning_sdk/lightning_cloud/openapi/models/project_id_serviceexecution_body.py +0 -175
  50. lightning_sdk/lightning_cloud/openapi/models/serviceexecution_id_body.py +0 -331
  51. lightning_sdk/lightning_cloud/openapi/models/v1_command_argument.py +0 -305
  52. lightning_sdk/lightning_cloud/openapi/models/v1_delete_file_endpoint_response.py +0 -149
  53. lightning_sdk/lightning_cloud/openapi/models/v1_download_service_execution_artifact_response.py +0 -175
  54. lightning_sdk/lightning_cloud/openapi/models/v1_file_endpoint.py +0 -461
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_service_execution_status_response.py +0 -175
  56. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_execution_lightningapp_instances_response.py +0 -175
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_service_executions_response.py +0 -123
  58. lightning_sdk/lightning_cloud/openapi/models/v1_service_artifact.py +0 -201
  59. lightning_sdk/lightning_cloud/openapi/models/v1_service_execution.py +0 -383
  60. lightning_sdk/lightning_cloud/openapi/models/v1_upload_service_execution_artifact_response.py +0 -149
  61. lightning_sdk/llm/public_assistants.json +0 -34
  62. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/LICENSE +0 -0
  63. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/WHEEL +0 -0
  64. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/entry_points.txt +0 -0
  65. {lightning_sdk-2025.8.1.dist-info → lightning_sdk-2025.8.6rc1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,461 @@
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 V1ContainerMetrics(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
+ 'container_id': 'str',
45
+ 'container_name': 'str',
46
+ 'cpu_usage': 'float',
47
+ 'mem_usage': 'float',
48
+ 'namespace': 'str',
49
+ 'node_name': 'str',
50
+ 'num_cpus_limit': 'float',
51
+ 'num_cpus_request': 'float',
52
+ 'num_gpus': 'float',
53
+ 'per_gpu_mem_used': 'dict(str, float)',
54
+ 'per_gpu_util': 'dict(str, float)',
55
+ 'pod_id': 'str',
56
+ 'pod_name': 'str',
57
+ 'timestamp': 'datetime'
58
+ }
59
+
60
+ attribute_map = {
61
+ 'container_id': 'containerId',
62
+ 'container_name': 'containerName',
63
+ 'cpu_usage': 'cpuUsage',
64
+ 'mem_usage': 'memUsage',
65
+ 'namespace': 'namespace',
66
+ 'node_name': 'nodeName',
67
+ 'num_cpus_limit': 'numCpusLimit',
68
+ 'num_cpus_request': 'numCpusRequest',
69
+ 'num_gpus': 'numGpus',
70
+ 'per_gpu_mem_used': 'perGpuMemUsed',
71
+ 'per_gpu_util': 'perGpuUtil',
72
+ 'pod_id': 'podId',
73
+ 'pod_name': 'podName',
74
+ 'timestamp': 'timestamp'
75
+ }
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: 'float' =None, num_cpus_request: 'float' =None, num_gpus: 'float' =None, per_gpu_mem_used: 'dict(str, float)' =None, per_gpu_util: 'dict(str, float)' =None, pod_id: 'str' =None, pod_name: 'str' =None, timestamp: 'datetime' =None): # noqa: E501
78
+ """V1ContainerMetrics - a model defined in Swagger""" # noqa: E501
79
+ self._container_id = None
80
+ self._container_name = None
81
+ self._cpu_usage = None
82
+ self._mem_usage = None
83
+ self._namespace = None
84
+ self._node_name = None
85
+ self._num_cpus_limit = None
86
+ self._num_cpus_request = None
87
+ self._num_gpus = None
88
+ self._per_gpu_mem_used = None
89
+ self._per_gpu_util = None
90
+ self._pod_id = None
91
+ self._pod_name = None
92
+ self._timestamp = None
93
+ self.discriminator = None
94
+ if container_id is not None:
95
+ self.container_id = container_id
96
+ if container_name is not None:
97
+ self.container_name = container_name
98
+ if cpu_usage is not None:
99
+ self.cpu_usage = cpu_usage
100
+ if mem_usage is not None:
101
+ self.mem_usage = mem_usage
102
+ if namespace is not None:
103
+ self.namespace = namespace
104
+ if node_name is not None:
105
+ self.node_name = node_name
106
+ if num_cpus_limit is not None:
107
+ self.num_cpus_limit = num_cpus_limit
108
+ if num_cpus_request is not None:
109
+ self.num_cpus_request = num_cpus_request
110
+ if num_gpus is not None:
111
+ self.num_gpus = num_gpus
112
+ if per_gpu_mem_used is not None:
113
+ self.per_gpu_mem_used = per_gpu_mem_used
114
+ if per_gpu_util is not None:
115
+ self.per_gpu_util = per_gpu_util
116
+ if pod_id is not None:
117
+ self.pod_id = pod_id
118
+ if pod_name is not None:
119
+ self.pod_name = pod_name
120
+ if timestamp is not None:
121
+ self.timestamp = timestamp
122
+
123
+ @property
124
+ def container_id(self) -> 'str':
125
+ """Gets the container_id of this V1ContainerMetrics. # noqa: E501
126
+
127
+
128
+ :return: The container_id of this V1ContainerMetrics. # noqa: E501
129
+ :rtype: str
130
+ """
131
+ return self._container_id
132
+
133
+ @container_id.setter
134
+ def container_id(self, container_id: 'str'):
135
+ """Sets the container_id of this V1ContainerMetrics.
136
+
137
+
138
+ :param container_id: The container_id of this V1ContainerMetrics. # noqa: E501
139
+ :type: str
140
+ """
141
+
142
+ self._container_id = container_id
143
+
144
+ @property
145
+ def container_name(self) -> 'str':
146
+ """Gets the container_name of this V1ContainerMetrics. # noqa: E501
147
+
148
+
149
+ :return: The container_name of this V1ContainerMetrics. # noqa: E501
150
+ :rtype: str
151
+ """
152
+ return self._container_name
153
+
154
+ @container_name.setter
155
+ def container_name(self, container_name: 'str'):
156
+ """Sets the container_name of this V1ContainerMetrics.
157
+
158
+
159
+ :param container_name: The container_name of this V1ContainerMetrics. # noqa: E501
160
+ :type: str
161
+ """
162
+
163
+ self._container_name = container_name
164
+
165
+ @property
166
+ def cpu_usage(self) -> 'float':
167
+ """Gets the cpu_usage of this V1ContainerMetrics. # noqa: E501
168
+
169
+
170
+ :return: The cpu_usage of this V1ContainerMetrics. # noqa: E501
171
+ :rtype: float
172
+ """
173
+ return self._cpu_usage
174
+
175
+ @cpu_usage.setter
176
+ def cpu_usage(self, cpu_usage: 'float'):
177
+ """Sets the cpu_usage of this V1ContainerMetrics.
178
+
179
+
180
+ :param cpu_usage: The cpu_usage of this V1ContainerMetrics. # noqa: E501
181
+ :type: float
182
+ """
183
+
184
+ self._cpu_usage = cpu_usage
185
+
186
+ @property
187
+ def mem_usage(self) -> 'float':
188
+ """Gets the mem_usage of this V1ContainerMetrics. # noqa: E501
189
+
190
+
191
+ :return: The mem_usage of this V1ContainerMetrics. # noqa: E501
192
+ :rtype: float
193
+ """
194
+ return self._mem_usage
195
+
196
+ @mem_usage.setter
197
+ def mem_usage(self, mem_usage: 'float'):
198
+ """Sets the mem_usage of this V1ContainerMetrics.
199
+
200
+
201
+ :param mem_usage: The mem_usage of this V1ContainerMetrics. # noqa: E501
202
+ :type: float
203
+ """
204
+
205
+ self._mem_usage = mem_usage
206
+
207
+ @property
208
+ def namespace(self) -> 'str':
209
+ """Gets the namespace of this V1ContainerMetrics. # noqa: E501
210
+
211
+
212
+ :return: The namespace of this V1ContainerMetrics. # noqa: E501
213
+ :rtype: str
214
+ """
215
+ return self._namespace
216
+
217
+ @namespace.setter
218
+ def namespace(self, namespace: 'str'):
219
+ """Sets the namespace of this V1ContainerMetrics.
220
+
221
+
222
+ :param namespace: The namespace of this V1ContainerMetrics. # noqa: E501
223
+ :type: str
224
+ """
225
+
226
+ self._namespace = namespace
227
+
228
+ @property
229
+ def node_name(self) -> 'str':
230
+ """Gets the node_name of this V1ContainerMetrics. # noqa: E501
231
+
232
+
233
+ :return: The node_name of this V1ContainerMetrics. # noqa: E501
234
+ :rtype: str
235
+ """
236
+ return self._node_name
237
+
238
+ @node_name.setter
239
+ def node_name(self, node_name: 'str'):
240
+ """Sets the node_name of this V1ContainerMetrics.
241
+
242
+
243
+ :param node_name: The node_name of this V1ContainerMetrics. # noqa: E501
244
+ :type: str
245
+ """
246
+
247
+ self._node_name = node_name
248
+
249
+ @property
250
+ def num_cpus_limit(self) -> 'float':
251
+ """Gets the num_cpus_limit of this V1ContainerMetrics. # noqa: E501
252
+
253
+
254
+ :return: The num_cpus_limit of this V1ContainerMetrics. # noqa: E501
255
+ :rtype: float
256
+ """
257
+ return self._num_cpus_limit
258
+
259
+ @num_cpus_limit.setter
260
+ def num_cpus_limit(self, num_cpus_limit: 'float'):
261
+ """Sets the num_cpus_limit of this V1ContainerMetrics.
262
+
263
+
264
+ :param num_cpus_limit: The num_cpus_limit of this V1ContainerMetrics. # noqa: E501
265
+ :type: float
266
+ """
267
+
268
+ self._num_cpus_limit = num_cpus_limit
269
+
270
+ @property
271
+ def num_cpus_request(self) -> 'float':
272
+ """Gets the num_cpus_request of this V1ContainerMetrics. # noqa: E501
273
+
274
+
275
+ :return: The num_cpus_request of this V1ContainerMetrics. # noqa: E501
276
+ :rtype: float
277
+ """
278
+ return self._num_cpus_request
279
+
280
+ @num_cpus_request.setter
281
+ def num_cpus_request(self, num_cpus_request: 'float'):
282
+ """Sets the num_cpus_request of this V1ContainerMetrics.
283
+
284
+
285
+ :param num_cpus_request: The num_cpus_request of this V1ContainerMetrics. # noqa: E501
286
+ :type: float
287
+ """
288
+
289
+ self._num_cpus_request = num_cpus_request
290
+
291
+ @property
292
+ def num_gpus(self) -> 'float':
293
+ """Gets the num_gpus of this V1ContainerMetrics. # noqa: E501
294
+
295
+
296
+ :return: The num_gpus of this V1ContainerMetrics. # noqa: E501
297
+ :rtype: float
298
+ """
299
+ return self._num_gpus
300
+
301
+ @num_gpus.setter
302
+ def num_gpus(self, num_gpus: 'float'):
303
+ """Sets the num_gpus of this V1ContainerMetrics.
304
+
305
+
306
+ :param num_gpus: The num_gpus of this V1ContainerMetrics. # noqa: E501
307
+ :type: float
308
+ """
309
+
310
+ self._num_gpus = num_gpus
311
+
312
+ @property
313
+ def per_gpu_mem_used(self) -> 'dict(str, float)':
314
+ """Gets the per_gpu_mem_used of this V1ContainerMetrics. # noqa: E501
315
+
316
+
317
+ :return: The per_gpu_mem_used of this V1ContainerMetrics. # noqa: E501
318
+ :rtype: dict(str, float)
319
+ """
320
+ return self._per_gpu_mem_used
321
+
322
+ @per_gpu_mem_used.setter
323
+ def per_gpu_mem_used(self, per_gpu_mem_used: 'dict(str, float)'):
324
+ """Sets the per_gpu_mem_used of this V1ContainerMetrics.
325
+
326
+
327
+ :param per_gpu_mem_used: The per_gpu_mem_used of this V1ContainerMetrics. # noqa: E501
328
+ :type: dict(str, float)
329
+ """
330
+
331
+ self._per_gpu_mem_used = per_gpu_mem_used
332
+
333
+ @property
334
+ def per_gpu_util(self) -> 'dict(str, float)':
335
+ """Gets the per_gpu_util of this V1ContainerMetrics. # noqa: E501
336
+
337
+
338
+ :return: The per_gpu_util of this V1ContainerMetrics. # noqa: E501
339
+ :rtype: dict(str, float)
340
+ """
341
+ return self._per_gpu_util
342
+
343
+ @per_gpu_util.setter
344
+ def per_gpu_util(self, per_gpu_util: 'dict(str, float)'):
345
+ """Sets the per_gpu_util of this V1ContainerMetrics.
346
+
347
+
348
+ :param per_gpu_util: The per_gpu_util of this V1ContainerMetrics. # noqa: E501
349
+ :type: dict(str, float)
350
+ """
351
+
352
+ self._per_gpu_util = per_gpu_util
353
+
354
+ @property
355
+ def pod_id(self) -> 'str':
356
+ """Gets the pod_id of this V1ContainerMetrics. # noqa: E501
357
+
358
+
359
+ :return: The pod_id of this V1ContainerMetrics. # noqa: E501
360
+ :rtype: str
361
+ """
362
+ return self._pod_id
363
+
364
+ @pod_id.setter
365
+ def pod_id(self, pod_id: 'str'):
366
+ """Sets the pod_id of this V1ContainerMetrics.
367
+
368
+
369
+ :param pod_id: The pod_id of this V1ContainerMetrics. # noqa: E501
370
+ :type: str
371
+ """
372
+
373
+ self._pod_id = pod_id
374
+
375
+ @property
376
+ def pod_name(self) -> 'str':
377
+ """Gets the pod_name of this V1ContainerMetrics. # noqa: E501
378
+
379
+
380
+ :return: The pod_name of this V1ContainerMetrics. # noqa: E501
381
+ :rtype: str
382
+ """
383
+ return self._pod_name
384
+
385
+ @pod_name.setter
386
+ def pod_name(self, pod_name: 'str'):
387
+ """Sets the pod_name of this V1ContainerMetrics.
388
+
389
+
390
+ :param pod_name: The pod_name of this V1ContainerMetrics. # noqa: E501
391
+ :type: str
392
+ """
393
+
394
+ self._pod_name = pod_name
395
+
396
+ @property
397
+ def timestamp(self) -> 'datetime':
398
+ """Gets the timestamp of this V1ContainerMetrics. # noqa: E501
399
+
400
+
401
+ :return: The timestamp of this V1ContainerMetrics. # noqa: E501
402
+ :rtype: datetime
403
+ """
404
+ return self._timestamp
405
+
406
+ @timestamp.setter
407
+ def timestamp(self, timestamp: 'datetime'):
408
+ """Sets the timestamp of this V1ContainerMetrics.
409
+
410
+
411
+ :param timestamp: The timestamp of this V1ContainerMetrics. # noqa: E501
412
+ :type: datetime
413
+ """
414
+
415
+ self._timestamp = timestamp
416
+
417
+ def to_dict(self) -> dict:
418
+ """Returns the model properties as a dict"""
419
+ result = {}
420
+
421
+ for attr, _ in six.iteritems(self.swagger_types):
422
+ value = getattr(self, attr)
423
+ if isinstance(value, list):
424
+ result[attr] = list(map(
425
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
426
+ value
427
+ ))
428
+ elif hasattr(value, "to_dict"):
429
+ result[attr] = value.to_dict()
430
+ elif isinstance(value, dict):
431
+ result[attr] = dict(map(
432
+ lambda item: (item[0], item[1].to_dict())
433
+ if hasattr(item[1], "to_dict") else item,
434
+ value.items()
435
+ ))
436
+ else:
437
+ result[attr] = value
438
+ if issubclass(V1ContainerMetrics, dict):
439
+ for key, value in self.items():
440
+ result[key] = value
441
+
442
+ return result
443
+
444
+ def to_str(self) -> str:
445
+ """Returns the string representation of the model"""
446
+ return pprint.pformat(self.to_dict())
447
+
448
+ def __repr__(self) -> str:
449
+ """For `print` and `pprint`"""
450
+ return self.to_str()
451
+
452
+ def __eq__(self, other: 'V1ContainerMetrics') -> bool:
453
+ """Returns true if both objects are equal"""
454
+ if not isinstance(other, V1ContainerMetrics):
455
+ return False
456
+
457
+ return self.__dict__ == other.__dict__
458
+
459
+ def __ne__(self, other: 'V1ContainerMetrics') -> bool:
460
+ """Returns true if both objects are not equal"""
461
+ return not self == other
@@ -0,0 +1,227 @@
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 V1FilesystemMetrics(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
+ 'device': 'str',
45
+ 'fstype': 'str',
46
+ 'mountpoint': 'str',
47
+ 'total': 'float',
48
+ 'utilisation': 'float'
49
+ }
50
+
51
+ attribute_map = {
52
+ 'device': 'device',
53
+ 'fstype': 'fstype',
54
+ 'mountpoint': 'mountpoint',
55
+ 'total': 'total',
56
+ 'utilisation': 'utilisation'
57
+ }
58
+
59
+ def __init__(self, device: 'str' =None, fstype: 'str' =None, mountpoint: 'str' =None, total: 'float' =None, utilisation: 'float' =None): # noqa: E501
60
+ """V1FilesystemMetrics - a model defined in Swagger""" # noqa: E501
61
+ self._device = None
62
+ self._fstype = None
63
+ self._mountpoint = None
64
+ self._total = None
65
+ self._utilisation = None
66
+ self.discriminator = None
67
+ if device is not None:
68
+ self.device = device
69
+ if fstype is not None:
70
+ self.fstype = fstype
71
+ if mountpoint is not None:
72
+ self.mountpoint = mountpoint
73
+ if total is not None:
74
+ self.total = total
75
+ if utilisation is not None:
76
+ self.utilisation = utilisation
77
+
78
+ @property
79
+ def device(self) -> 'str':
80
+ """Gets the device of this V1FilesystemMetrics. # noqa: E501
81
+
82
+
83
+ :return: The device of this V1FilesystemMetrics. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._device
87
+
88
+ @device.setter
89
+ def device(self, device: 'str'):
90
+ """Sets the device of this V1FilesystemMetrics.
91
+
92
+
93
+ :param device: The device of this V1FilesystemMetrics. # noqa: E501
94
+ :type: str
95
+ """
96
+
97
+ self._device = device
98
+
99
+ @property
100
+ def fstype(self) -> 'str':
101
+ """Gets the fstype of this V1FilesystemMetrics. # noqa: E501
102
+
103
+
104
+ :return: The fstype of this V1FilesystemMetrics. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._fstype
108
+
109
+ @fstype.setter
110
+ def fstype(self, fstype: 'str'):
111
+ """Sets the fstype of this V1FilesystemMetrics.
112
+
113
+
114
+ :param fstype: The fstype of this V1FilesystemMetrics. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._fstype = fstype
119
+
120
+ @property
121
+ def mountpoint(self) -> 'str':
122
+ """Gets the mountpoint of this V1FilesystemMetrics. # noqa: E501
123
+
124
+
125
+ :return: The mountpoint of this V1FilesystemMetrics. # noqa: E501
126
+ :rtype: str
127
+ """
128
+ return self._mountpoint
129
+
130
+ @mountpoint.setter
131
+ def mountpoint(self, mountpoint: 'str'):
132
+ """Sets the mountpoint of this V1FilesystemMetrics.
133
+
134
+
135
+ :param mountpoint: The mountpoint of this V1FilesystemMetrics. # noqa: E501
136
+ :type: str
137
+ """
138
+
139
+ self._mountpoint = mountpoint
140
+
141
+ @property
142
+ def total(self) -> 'float':
143
+ """Gets the total of this V1FilesystemMetrics. # noqa: E501
144
+
145
+
146
+ :return: The total of this V1FilesystemMetrics. # noqa: E501
147
+ :rtype: float
148
+ """
149
+ return self._total
150
+
151
+ @total.setter
152
+ def total(self, total: 'float'):
153
+ """Sets the total of this V1FilesystemMetrics.
154
+
155
+
156
+ :param total: The total of this V1FilesystemMetrics. # noqa: E501
157
+ :type: float
158
+ """
159
+
160
+ self._total = total
161
+
162
+ @property
163
+ def utilisation(self) -> 'float':
164
+ """Gets the utilisation of this V1FilesystemMetrics. # noqa: E501
165
+
166
+
167
+ :return: The utilisation of this V1FilesystemMetrics. # noqa: E501
168
+ :rtype: float
169
+ """
170
+ return self._utilisation
171
+
172
+ @utilisation.setter
173
+ def utilisation(self, utilisation: 'float'):
174
+ """Sets the utilisation of this V1FilesystemMetrics.
175
+
176
+
177
+ :param utilisation: The utilisation of this V1FilesystemMetrics. # noqa: E501
178
+ :type: float
179
+ """
180
+
181
+ self._utilisation = utilisation
182
+
183
+ def to_dict(self) -> dict:
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.swagger_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ result[attr] = value
204
+ if issubclass(V1FilesystemMetrics, dict):
205
+ for key, value in self.items():
206
+ result[key] = value
207
+
208
+ return result
209
+
210
+ def to_str(self) -> str:
211
+ """Returns the string representation of the model"""
212
+ return pprint.pformat(self.to_dict())
213
+
214
+ def __repr__(self) -> str:
215
+ """For `print` and `pprint`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other: 'V1FilesystemMetrics') -> bool:
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, V1FilesystemMetrics):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other: 'V1FilesystemMetrics') -> bool:
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other