lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.22__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 +195 -33
- lightning_sdk/api/teamspace_api.py +28 -9
- lightning_sdk/cli/cp/__init__.py +64 -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/run.py +13 -2
- lightning_sdk/cli/studio/__init__.py +4 -0
- lightning_sdk/cli/studio/cp.py +20 -64
- lightning_sdk/cli/studio/ls.py +57 -0
- lightning_sdk/cli/studio/rm.py +71 -0
- lightning_sdk/cli/utils/logging.py +2 -1
- lightning_sdk/cli/utils/studio_filesystem.py +65 -0
- lightning_sdk/cli/utils/teamspace_selection.py +5 -0
- lightning_sdk/exceptions.py +4 -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 +29 -11
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +268 -123
- 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/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -10
- 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/cluster_service_report_machine_system_metrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- 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/v1_capacity_reservation_used_by.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -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 +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- 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_ai_pod_v1.py → v1_cudo_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.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_virtual_machine_response.py} +6 -6
- 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_get_kubernetes_pod_logs_response.py +149 -0
- 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_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
- 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 -1
- 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_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_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -131
- 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/rest_client.py +0 -2
- lightning_sdk/machine.py +3 -3
- lightning_sdk/studio.py +14 -4
- lightning_sdk/utils/logging.py +2 -1
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +95 -75
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.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_kubevirt_vm_resources.py +0 -201
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|
|
28
28
|
from datetime import datetime
|
|
29
29
|
from lightning_sdk.lightning_cloud.openapi.models import *
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class V1VmProviderConfiguration(object):
|
|
32
32
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
33
33
|
|
|
34
34
|
Do not edit the class manually.
|
|
@@ -42,7 +42,7 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'access': 'str',
|
|
45
|
-
'config': '
|
|
45
|
+
'config': 'V1VmConfiguration',
|
|
46
46
|
'name': 'str',
|
|
47
47
|
'node': 'str',
|
|
48
48
|
'status': 'str'
|
|
@@ -56,8 +56,8 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
56
56
|
'status': 'status'
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
def __init__(self, access: 'str' =None, config: '
|
|
60
|
-
"""
|
|
59
|
+
def __init__(self, access: 'str' =None, config: 'V1VmConfiguration' =None, name: 'str' =None, node: 'str' =None, status: 'str' =None): # noqa: E501
|
|
60
|
+
"""V1VmProviderConfiguration - a model defined in Swagger""" # noqa: E501
|
|
61
61
|
self._access = None
|
|
62
62
|
self._config = None
|
|
63
63
|
self._name = None
|
|
@@ -77,62 +77,62 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
77
77
|
|
|
78
78
|
@property
|
|
79
79
|
def access(self) -> 'str':
|
|
80
|
-
"""Gets the access of this
|
|
80
|
+
"""Gets the access of this V1VmProviderConfiguration. # noqa: E501
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
:return: The access of this
|
|
83
|
+
:return: The access of this V1VmProviderConfiguration. # noqa: E501
|
|
84
84
|
:rtype: str
|
|
85
85
|
"""
|
|
86
86
|
return self._access
|
|
87
87
|
|
|
88
88
|
@access.setter
|
|
89
89
|
def access(self, access: 'str'):
|
|
90
|
-
"""Sets the access of this
|
|
90
|
+
"""Sets the access of this V1VmProviderConfiguration.
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
:param access: The access of this
|
|
93
|
+
:param access: The access of this V1VmProviderConfiguration. # noqa: E501
|
|
94
94
|
:type: str
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
97
|
self._access = access
|
|
98
98
|
|
|
99
99
|
@property
|
|
100
|
-
def config(self) -> '
|
|
101
|
-
"""Gets the config of this
|
|
100
|
+
def config(self) -> 'V1VmConfiguration':
|
|
101
|
+
"""Gets the config of this V1VmProviderConfiguration. # noqa: E501
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
:return: The config of this
|
|
105
|
-
:rtype:
|
|
104
|
+
:return: The config of this V1VmProviderConfiguration. # noqa: E501
|
|
105
|
+
:rtype: V1VmConfiguration
|
|
106
106
|
"""
|
|
107
107
|
return self._config
|
|
108
108
|
|
|
109
109
|
@config.setter
|
|
110
|
-
def config(self, config: '
|
|
111
|
-
"""Sets the config of this
|
|
110
|
+
def config(self, config: 'V1VmConfiguration'):
|
|
111
|
+
"""Sets the config of this V1VmProviderConfiguration.
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
:param config: The config of this
|
|
115
|
-
:type:
|
|
114
|
+
:param config: The config of this V1VmProviderConfiguration. # noqa: E501
|
|
115
|
+
:type: V1VmConfiguration
|
|
116
116
|
"""
|
|
117
117
|
|
|
118
118
|
self._config = config
|
|
119
119
|
|
|
120
120
|
@property
|
|
121
121
|
def name(self) -> 'str':
|
|
122
|
-
"""Gets the name of this
|
|
122
|
+
"""Gets the name of this V1VmProviderConfiguration. # noqa: E501
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
:return: The name of this
|
|
125
|
+
:return: The name of this V1VmProviderConfiguration. # noqa: E501
|
|
126
126
|
:rtype: str
|
|
127
127
|
"""
|
|
128
128
|
return self._name
|
|
129
129
|
|
|
130
130
|
@name.setter
|
|
131
131
|
def name(self, name: 'str'):
|
|
132
|
-
"""Sets the name of this
|
|
132
|
+
"""Sets the name of this V1VmProviderConfiguration.
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
:param name: The name of this
|
|
135
|
+
:param name: The name of this V1VmProviderConfiguration. # noqa: E501
|
|
136
136
|
:type: str
|
|
137
137
|
"""
|
|
138
138
|
|
|
@@ -140,20 +140,20 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
140
140
|
|
|
141
141
|
@property
|
|
142
142
|
def node(self) -> 'str':
|
|
143
|
-
"""Gets the node of this
|
|
143
|
+
"""Gets the node of this V1VmProviderConfiguration. # noqa: E501
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
:return: The node of this
|
|
146
|
+
:return: The node of this V1VmProviderConfiguration. # noqa: E501
|
|
147
147
|
:rtype: str
|
|
148
148
|
"""
|
|
149
149
|
return self._node
|
|
150
150
|
|
|
151
151
|
@node.setter
|
|
152
152
|
def node(self, node: 'str'):
|
|
153
|
-
"""Sets the node of this
|
|
153
|
+
"""Sets the node of this V1VmProviderConfiguration.
|
|
154
154
|
|
|
155
155
|
|
|
156
|
-
:param node: The node of this
|
|
156
|
+
:param node: The node of this V1VmProviderConfiguration. # noqa: E501
|
|
157
157
|
:type: str
|
|
158
158
|
"""
|
|
159
159
|
|
|
@@ -161,20 +161,20 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
161
161
|
|
|
162
162
|
@property
|
|
163
163
|
def status(self) -> 'str':
|
|
164
|
-
"""Gets the status of this
|
|
164
|
+
"""Gets the status of this V1VmProviderConfiguration. # noqa: E501
|
|
165
165
|
|
|
166
166
|
|
|
167
|
-
:return: The status of this
|
|
167
|
+
:return: The status of this V1VmProviderConfiguration. # noqa: E501
|
|
168
168
|
:rtype: str
|
|
169
169
|
"""
|
|
170
170
|
return self._status
|
|
171
171
|
|
|
172
172
|
@status.setter
|
|
173
173
|
def status(self, status: 'str'):
|
|
174
|
-
"""Sets the status of this
|
|
174
|
+
"""Sets the status of this V1VmProviderConfiguration.
|
|
175
175
|
|
|
176
176
|
|
|
177
|
-
:param status: The status of this
|
|
177
|
+
:param status: The status of this V1VmProviderConfiguration. # noqa: E501
|
|
178
178
|
:type: str
|
|
179
179
|
"""
|
|
180
180
|
|
|
@@ -201,7 +201,7 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
201
201
|
))
|
|
202
202
|
else:
|
|
203
203
|
result[attr] = value
|
|
204
|
-
if issubclass(
|
|
204
|
+
if issubclass(V1VmProviderConfiguration, dict):
|
|
205
205
|
for key, value in self.items():
|
|
206
206
|
result[key] = value
|
|
207
207
|
|
|
@@ -215,13 +215,13 @@ class V1KubevirtProviderConfiguration(object):
|
|
|
215
215
|
"""For `print` and `pprint`"""
|
|
216
216
|
return self.to_str()
|
|
217
217
|
|
|
218
|
-
def __eq__(self, other: '
|
|
218
|
+
def __eq__(self, other: 'V1VmProviderConfiguration') -> bool:
|
|
219
219
|
"""Returns true if both objects are equal"""
|
|
220
|
-
if not isinstance(other,
|
|
220
|
+
if not isinstance(other, V1VmProviderConfiguration):
|
|
221
221
|
return False
|
|
222
222
|
|
|
223
223
|
return self.__dict__ == other.__dict__
|
|
224
224
|
|
|
225
|
-
def __ne__(self, other: '
|
|
225
|
+
def __ne__(self, other: 'V1VmProviderConfiguration') -> bool:
|
|
226
226
|
"""Returns true if both objects are not equal"""
|
|
227
227
|
return not self == other
|