lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.27__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/__version__.py +1 -1
- lightning_sdk/api/k8s_api.py +75 -29
- lightning_sdk/api/studio_api.py +192 -37
- lightning_sdk/api/teamspace_api.py +180 -54
- lightning_sdk/api/utils.py +8 -0
- lightning_sdk/cli/cp/__init__.py +67 -0
- lightning_sdk/cli/cp/teamspace_uploads.py +93 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +22 -0
- lightning_sdk/cli/legacy/clusters_menu.py +2 -2
- lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
- lightning_sdk/cli/legacy/download.py +29 -98
- lightning_sdk/cli/legacy/run.py +13 -2
- lightning_sdk/cli/legacy/upload.py +24 -31
- lightning_sdk/cli/studio/__init__.py +4 -0
- lightning_sdk/cli/studio/cp.py +24 -65
- lightning_sdk/cli/studio/ls.py +57 -0
- lightning_sdk/cli/studio/rm.py +71 -0
- lightning_sdk/cli/utils/filesystem.py +103 -0
- lightning_sdk/cli/utils/logging.py +2 -1
- lightning_sdk/cli/utils/teamspace_selection.py +5 -0
- lightning_sdk/exceptions.py +31 -0
- lightning_sdk/job/base.py +1 -1
- lightning_sdk/k8s_cluster.py +9 -10
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +43 -23
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +2 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +378 -536
- lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +456 -0
- lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
- lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +41 -22
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → cluster_service_report_machine_system_metrics_body.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/container_registry_config_ecr.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
- lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → jobs_service_duplicate_deployment_body.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_scopes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_create_container_registry_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_cudo_direct_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → v1_delete_lit_logger_media_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_org_cluster_capacity_reservation_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_virtual_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_get_kubernetes_pod_logs_response.py} +37 -37
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → v1_k8s_incident_setting.py} +49 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_mithril_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
- lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_report_cloud_space_instance_idle_state_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_details.py → v1_tenant_credentials.py} +53 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +183 -157
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
- lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
- lightning_sdk/lightning_cloud/rest_client.py +0 -2
- lightning_sdk/machine.py +3 -3
- lightning_sdk/studio.py +14 -4
- lightning_sdk/teamspace.py +28 -7
- lightning_sdk/utils/logging.py +2 -1
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/RECORD +125 -102
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
- /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/top_level.txt +0 -0
lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
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 LitLoggerServiceCreateLitLoggerMediaBody(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
|
+
'caption': 'str',
|
|
45
|
+
'content_hash': 'str',
|
|
46
|
+
'epoch': 'str',
|
|
47
|
+
'media_type': 'V1MediaType',
|
|
48
|
+
'mime_type': 'str',
|
|
49
|
+
'name': 'str',
|
|
50
|
+
'size_bytes': 'str',
|
|
51
|
+
'step': 'str'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
attribute_map = {
|
|
55
|
+
'caption': 'caption',
|
|
56
|
+
'content_hash': 'contentHash',
|
|
57
|
+
'epoch': 'epoch',
|
|
58
|
+
'media_type': 'mediaType',
|
|
59
|
+
'mime_type': 'mimeType',
|
|
60
|
+
'name': 'name',
|
|
61
|
+
'size_bytes': 'sizeBytes',
|
|
62
|
+
'step': 'step'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, caption: 'str' =None, content_hash: 'str' =None, epoch: 'str' =None, media_type: 'V1MediaType' =None, mime_type: 'str' =None, name: 'str' =None, size_bytes: 'str' =None, step: 'str' =None): # noqa: E501
|
|
66
|
+
"""LitLoggerServiceCreateLitLoggerMediaBody - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
self._caption = None
|
|
68
|
+
self._content_hash = None
|
|
69
|
+
self._epoch = None
|
|
70
|
+
self._media_type = None
|
|
71
|
+
self._mime_type = None
|
|
72
|
+
self._name = None
|
|
73
|
+
self._size_bytes = None
|
|
74
|
+
self._step = None
|
|
75
|
+
self.discriminator = None
|
|
76
|
+
if caption is not None:
|
|
77
|
+
self.caption = caption
|
|
78
|
+
if content_hash is not None:
|
|
79
|
+
self.content_hash = content_hash
|
|
80
|
+
if epoch is not None:
|
|
81
|
+
self.epoch = epoch
|
|
82
|
+
if media_type is not None:
|
|
83
|
+
self.media_type = media_type
|
|
84
|
+
if mime_type is not None:
|
|
85
|
+
self.mime_type = mime_type
|
|
86
|
+
if name is not None:
|
|
87
|
+
self.name = name
|
|
88
|
+
if size_bytes is not None:
|
|
89
|
+
self.size_bytes = size_bytes
|
|
90
|
+
if step is not None:
|
|
91
|
+
self.step = step
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def caption(self) -> 'str':
|
|
95
|
+
"""Gets the caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:return: The caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._caption
|
|
102
|
+
|
|
103
|
+
@caption.setter
|
|
104
|
+
def caption(self, caption: 'str'):
|
|
105
|
+
"""Sets the caption of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:param caption: The caption of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
109
|
+
:type: str
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
self._caption = caption
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def content_hash(self) -> 'str':
|
|
116
|
+
"""Gets the content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:return: The content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._content_hash
|
|
123
|
+
|
|
124
|
+
@content_hash.setter
|
|
125
|
+
def content_hash(self, content_hash: 'str'):
|
|
126
|
+
"""Sets the content_hash of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param content_hash: The content_hash of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
|
|
133
|
+
self._content_hash = content_hash
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def epoch(self) -> 'str':
|
|
137
|
+
"""Gets the epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:return: The epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._epoch
|
|
144
|
+
|
|
145
|
+
@epoch.setter
|
|
146
|
+
def epoch(self, epoch: 'str'):
|
|
147
|
+
"""Sets the epoch of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param epoch: The epoch of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
151
|
+
:type: str
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
self._epoch = epoch
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def media_type(self) -> 'V1MediaType':
|
|
158
|
+
"""Gets the media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
162
|
+
:rtype: V1MediaType
|
|
163
|
+
"""
|
|
164
|
+
return self._media_type
|
|
165
|
+
|
|
166
|
+
@media_type.setter
|
|
167
|
+
def media_type(self, media_type: 'V1MediaType'):
|
|
168
|
+
"""Sets the media_type of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param media_type: The media_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
172
|
+
:type: V1MediaType
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
self._media_type = media_type
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
def mime_type(self) -> 'str':
|
|
179
|
+
"""Gets the mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:return: The mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
183
|
+
:rtype: str
|
|
184
|
+
"""
|
|
185
|
+
return self._mime_type
|
|
186
|
+
|
|
187
|
+
@mime_type.setter
|
|
188
|
+
def mime_type(self, mime_type: 'str'):
|
|
189
|
+
"""Sets the mime_type of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
:param mime_type: The mime_type of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
193
|
+
:type: str
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._mime_type = mime_type
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
def name(self) -> 'str':
|
|
200
|
+
"""Gets the name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
:return: The name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
204
|
+
:rtype: str
|
|
205
|
+
"""
|
|
206
|
+
return self._name
|
|
207
|
+
|
|
208
|
+
@name.setter
|
|
209
|
+
def name(self, name: 'str'):
|
|
210
|
+
"""Sets the name of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
:param name: The name of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
214
|
+
:type: str
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
self._name = name
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
def size_bytes(self) -> 'str':
|
|
221
|
+
"""Gets the size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
:return: The size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
225
|
+
:rtype: str
|
|
226
|
+
"""
|
|
227
|
+
return self._size_bytes
|
|
228
|
+
|
|
229
|
+
@size_bytes.setter
|
|
230
|
+
def size_bytes(self, size_bytes: 'str'):
|
|
231
|
+
"""Sets the size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
:param size_bytes: The size_bytes of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
235
|
+
:type: str
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
self._size_bytes = size_bytes
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def step(self) -> 'str':
|
|
242
|
+
"""Gets the step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
:return: The step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
246
|
+
:rtype: str
|
|
247
|
+
"""
|
|
248
|
+
return self._step
|
|
249
|
+
|
|
250
|
+
@step.setter
|
|
251
|
+
def step(self, step: 'str'):
|
|
252
|
+
"""Sets the step of this LitLoggerServiceCreateLitLoggerMediaBody.
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
:param step: The step of this LitLoggerServiceCreateLitLoggerMediaBody. # noqa: E501
|
|
256
|
+
:type: str
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
self._step = step
|
|
260
|
+
|
|
261
|
+
def to_dict(self) -> dict:
|
|
262
|
+
"""Returns the model properties as a dict"""
|
|
263
|
+
result = {}
|
|
264
|
+
|
|
265
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
266
|
+
value = getattr(self, attr)
|
|
267
|
+
if isinstance(value, list):
|
|
268
|
+
result[attr] = list(map(
|
|
269
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
270
|
+
value
|
|
271
|
+
))
|
|
272
|
+
elif hasattr(value, "to_dict"):
|
|
273
|
+
result[attr] = value.to_dict()
|
|
274
|
+
elif isinstance(value, dict):
|
|
275
|
+
result[attr] = dict(map(
|
|
276
|
+
lambda item: (item[0], item[1].to_dict())
|
|
277
|
+
if hasattr(item[1], "to_dict") else item,
|
|
278
|
+
value.items()
|
|
279
|
+
))
|
|
280
|
+
else:
|
|
281
|
+
result[attr] = value
|
|
282
|
+
if issubclass(LitLoggerServiceCreateLitLoggerMediaBody, dict):
|
|
283
|
+
for key, value in self.items():
|
|
284
|
+
result[key] = value
|
|
285
|
+
|
|
286
|
+
return result
|
|
287
|
+
|
|
288
|
+
def to_str(self) -> str:
|
|
289
|
+
"""Returns the string representation of the model"""
|
|
290
|
+
return pprint.pformat(self.to_dict())
|
|
291
|
+
|
|
292
|
+
def __repr__(self) -> str:
|
|
293
|
+
"""For `print` and `pprint`"""
|
|
294
|
+
return self.to_str()
|
|
295
|
+
|
|
296
|
+
def __eq__(self, other: 'LitLoggerServiceCreateLitLoggerMediaBody') -> bool:
|
|
297
|
+
"""Returns true if both objects are equal"""
|
|
298
|
+
if not isinstance(other, LitLoggerServiceCreateLitLoggerMediaBody):
|
|
299
|
+
return False
|
|
300
|
+
|
|
301
|
+
return self.__dict__ == other.__dict__
|
|
302
|
+
|
|
303
|
+
def __ne__(self, other: 'LitLoggerServiceCreateLitLoggerMediaBody') -> bool:
|
|
304
|
+
"""Returns true if both objects are not equal"""
|
|
305
|
+
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
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 LitLoggerServiceUpdateLitLoggerMediaBody(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
|
+
'caption': 'str',
|
|
45
|
+
'upload_complete': 'bool'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'caption': 'caption',
|
|
50
|
+
'upload_complete': 'uploadComplete'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, caption: 'str' =None, upload_complete: 'bool' =None): # noqa: E501
|
|
54
|
+
"""LitLoggerServiceUpdateLitLoggerMediaBody - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._caption = None
|
|
56
|
+
self._upload_complete = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if caption is not None:
|
|
59
|
+
self.caption = caption
|
|
60
|
+
if upload_complete is not None:
|
|
61
|
+
self.upload_complete = upload_complete
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def caption(self) -> 'str':
|
|
65
|
+
"""Gets the caption of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The caption of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._caption
|
|
72
|
+
|
|
73
|
+
@caption.setter
|
|
74
|
+
def caption(self, caption: 'str'):
|
|
75
|
+
"""Sets the caption of this LitLoggerServiceUpdateLitLoggerMediaBody.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param caption: The caption of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._caption = caption
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def upload_complete(self) -> 'bool':
|
|
86
|
+
"""Gets the upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
|
|
90
|
+
:rtype: bool
|
|
91
|
+
"""
|
|
92
|
+
return self._upload_complete
|
|
93
|
+
|
|
94
|
+
@upload_complete.setter
|
|
95
|
+
def upload_complete(self, upload_complete: 'bool'):
|
|
96
|
+
"""Sets the upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param upload_complete: The upload_complete of this LitLoggerServiceUpdateLitLoggerMediaBody. # noqa: E501
|
|
100
|
+
:type: bool
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._upload_complete = upload_complete
|
|
104
|
+
|
|
105
|
+
def to_dict(self) -> dict:
|
|
106
|
+
"""Returns the model properties as a dict"""
|
|
107
|
+
result = {}
|
|
108
|
+
|
|
109
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
110
|
+
value = getattr(self, attr)
|
|
111
|
+
if isinstance(value, list):
|
|
112
|
+
result[attr] = list(map(
|
|
113
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
+
value
|
|
115
|
+
))
|
|
116
|
+
elif hasattr(value, "to_dict"):
|
|
117
|
+
result[attr] = value.to_dict()
|
|
118
|
+
elif isinstance(value, dict):
|
|
119
|
+
result[attr] = dict(map(
|
|
120
|
+
lambda item: (item[0], item[1].to_dict())
|
|
121
|
+
if hasattr(item[1], "to_dict") else item,
|
|
122
|
+
value.items()
|
|
123
|
+
))
|
|
124
|
+
else:
|
|
125
|
+
result[attr] = value
|
|
126
|
+
if issubclass(LitLoggerServiceUpdateLitLoggerMediaBody, dict):
|
|
127
|
+
for key, value in self.items():
|
|
128
|
+
result[key] = value
|
|
129
|
+
|
|
130
|
+
return result
|
|
131
|
+
|
|
132
|
+
def to_str(self) -> str:
|
|
133
|
+
"""Returns the string representation of the model"""
|
|
134
|
+
return pprint.pformat(self.to_dict())
|
|
135
|
+
|
|
136
|
+
def __repr__(self) -> str:
|
|
137
|
+
"""For `print` and `pprint`"""
|
|
138
|
+
return self.to_str()
|
|
139
|
+
|
|
140
|
+
def __eq__(self, other: 'LitLoggerServiceUpdateLitLoggerMediaBody') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, LitLoggerServiceUpdateLitLoggerMediaBody):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'LitLoggerServiceUpdateLitLoggerMediaBody') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py
CHANGED
|
@@ -41,6 +41,8 @@ class LitLoggerServiceUpdateMetricsStreamBody(object):
|
|
|
41
41
|
and the value is json key in definition.
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
|
+
'dark_color': 'str',
|
|
45
|
+
'light_color': 'str',
|
|
44
46
|
'name': 'str',
|
|
45
47
|
'persisted': 'bool',
|
|
46
48
|
'phase': 'V1PhaseType',
|
|
@@ -48,19 +50,27 @@ class LitLoggerServiceUpdateMetricsStreamBody(object):
|
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
attribute_map = {
|
|
53
|
+
'dark_color': 'darkColor',
|
|
54
|
+
'light_color': 'lightColor',
|
|
51
55
|
'name': 'name',
|
|
52
56
|
'persisted': 'persisted',
|
|
53
57
|
'phase': 'phase',
|
|
54
58
|
'trackers': 'trackers'
|
|
55
59
|
}
|
|
56
60
|
|
|
57
|
-
def __init__(self, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
|
|
61
|
+
def __init__(self, dark_color: 'str' =None, light_color: 'str' =None, name: 'str' =None, persisted: 'bool' =None, phase: 'V1PhaseType' =None, trackers: 'dict(str, V1MetricsTracker)' =None): # noqa: E501
|
|
58
62
|
"""LitLoggerServiceUpdateMetricsStreamBody - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._dark_color = None
|
|
64
|
+
self._light_color = None
|
|
59
65
|
self._name = None
|
|
60
66
|
self._persisted = None
|
|
61
67
|
self._phase = None
|
|
62
68
|
self._trackers = None
|
|
63
69
|
self.discriminator = None
|
|
70
|
+
if dark_color is not None:
|
|
71
|
+
self.dark_color = dark_color
|
|
72
|
+
if light_color is not None:
|
|
73
|
+
self.light_color = light_color
|
|
64
74
|
if name is not None:
|
|
65
75
|
self.name = name
|
|
66
76
|
if persisted is not None:
|
|
@@ -70,6 +80,48 @@ class LitLoggerServiceUpdateMetricsStreamBody(object):
|
|
|
70
80
|
if trackers is not None:
|
|
71
81
|
self.trackers = trackers
|
|
72
82
|
|
|
83
|
+
@property
|
|
84
|
+
def dark_color(self) -> 'str':
|
|
85
|
+
"""Gets the dark_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The dark_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._dark_color
|
|
92
|
+
|
|
93
|
+
@dark_color.setter
|
|
94
|
+
def dark_color(self, dark_color: 'str'):
|
|
95
|
+
"""Sets the dark_color of this LitLoggerServiceUpdateMetricsStreamBody.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param dark_color: The dark_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|
|
99
|
+
:type: str
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._dark_color = dark_color
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def light_color(self) -> 'str':
|
|
106
|
+
"""Gets the light_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:return: The light_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|
|
110
|
+
:rtype: str
|
|
111
|
+
"""
|
|
112
|
+
return self._light_color
|
|
113
|
+
|
|
114
|
+
@light_color.setter
|
|
115
|
+
def light_color(self, light_color: 'str'):
|
|
116
|
+
"""Sets the light_color of this LitLoggerServiceUpdateMetricsStreamBody.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
:param light_color: The light_color of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|
|
120
|
+
:type: str
|
|
121
|
+
"""
|
|
122
|
+
|
|
123
|
+
self._light_color = light_color
|
|
124
|
+
|
|
73
125
|
@property
|
|
74
126
|
def name(self) -> 'str':
|
|
75
127
|
"""Gets the name of this LitLoggerServiceUpdateMetricsStreamBody. # noqa: E501
|