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
|
@@ -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 V1VirtualMachine(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.
|
|
@@ -44,12 +44,13 @@ class V1KubernetesVirtualMachine(object):
|
|
|
44
44
|
'cluster_id': 'str',
|
|
45
45
|
'created_at': 'datetime',
|
|
46
46
|
'deleted_at': 'datetime',
|
|
47
|
-
'
|
|
47
|
+
'deployment_id': 'str',
|
|
48
48
|
'id': 'str',
|
|
49
49
|
'name': 'str',
|
|
50
50
|
'node': 'str',
|
|
51
51
|
'project_id': 'str',
|
|
52
|
-
'provider_config': '
|
|
52
|
+
'provider_config': 'V1VmProviderConfiguration',
|
|
53
|
+
'state': 'str',
|
|
53
54
|
'updated_at': 'datetime',
|
|
54
55
|
'user_id': 'str'
|
|
55
56
|
}
|
|
@@ -58,27 +59,29 @@ class V1KubernetesVirtualMachine(object):
|
|
|
58
59
|
'cluster_id': 'clusterId',
|
|
59
60
|
'created_at': 'createdAt',
|
|
60
61
|
'deleted_at': 'deletedAt',
|
|
61
|
-
'
|
|
62
|
+
'deployment_id': 'deploymentId',
|
|
62
63
|
'id': 'id',
|
|
63
64
|
'name': 'name',
|
|
64
65
|
'node': 'node',
|
|
65
66
|
'project_id': 'projectId',
|
|
66
67
|
'provider_config': 'providerConfig',
|
|
68
|
+
'state': 'state',
|
|
67
69
|
'updated_at': 'updatedAt',
|
|
68
70
|
'user_id': 'userId'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None,
|
|
72
|
-
"""
|
|
73
|
+
def __init__(self, cluster_id: 'str' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, deployment_id: 'str' =None, id: 'str' =None, name: 'str' =None, node: 'str' =None, project_id: 'str' =None, provider_config: 'V1VmProviderConfiguration' =None, state: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
|
|
74
|
+
"""V1VirtualMachine - a model defined in Swagger""" # noqa: E501
|
|
73
75
|
self._cluster_id = None
|
|
74
76
|
self._created_at = None
|
|
75
77
|
self._deleted_at = None
|
|
76
|
-
self.
|
|
78
|
+
self._deployment_id = None
|
|
77
79
|
self._id = None
|
|
78
80
|
self._name = None
|
|
79
81
|
self._node = None
|
|
80
82
|
self._project_id = None
|
|
81
83
|
self._provider_config = None
|
|
84
|
+
self._state = None
|
|
82
85
|
self._updated_at = None
|
|
83
86
|
self._user_id = None
|
|
84
87
|
self.discriminator = None
|
|
@@ -88,8 +91,8 @@ class V1KubernetesVirtualMachine(object):
|
|
|
88
91
|
self.created_at = created_at
|
|
89
92
|
if deleted_at is not None:
|
|
90
93
|
self.deleted_at = deleted_at
|
|
91
|
-
if
|
|
92
|
-
self.
|
|
94
|
+
if deployment_id is not None:
|
|
95
|
+
self.deployment_id = deployment_id
|
|
93
96
|
if id is not None:
|
|
94
97
|
self.id = id
|
|
95
98
|
if name is not None:
|
|
@@ -100,6 +103,8 @@ class V1KubernetesVirtualMachine(object):
|
|
|
100
103
|
self.project_id = project_id
|
|
101
104
|
if provider_config is not None:
|
|
102
105
|
self.provider_config = provider_config
|
|
106
|
+
if state is not None:
|
|
107
|
+
self.state = state
|
|
103
108
|
if updated_at is not None:
|
|
104
109
|
self.updated_at = updated_at
|
|
105
110
|
if user_id is not None:
|
|
@@ -107,20 +112,20 @@ class V1KubernetesVirtualMachine(object):
|
|
|
107
112
|
|
|
108
113
|
@property
|
|
109
114
|
def cluster_id(self) -> 'str':
|
|
110
|
-
"""Gets the cluster_id of this
|
|
115
|
+
"""Gets the cluster_id of this V1VirtualMachine. # noqa: E501
|
|
111
116
|
|
|
112
117
|
|
|
113
|
-
:return: The cluster_id of this
|
|
118
|
+
:return: The cluster_id of this V1VirtualMachine. # noqa: E501
|
|
114
119
|
:rtype: str
|
|
115
120
|
"""
|
|
116
121
|
return self._cluster_id
|
|
117
122
|
|
|
118
123
|
@cluster_id.setter
|
|
119
124
|
def cluster_id(self, cluster_id: 'str'):
|
|
120
|
-
"""Sets the cluster_id of this
|
|
125
|
+
"""Sets the cluster_id of this V1VirtualMachine.
|
|
121
126
|
|
|
122
127
|
|
|
123
|
-
:param cluster_id: The cluster_id of this
|
|
128
|
+
:param cluster_id: The cluster_id of this V1VirtualMachine. # noqa: E501
|
|
124
129
|
:type: str
|
|
125
130
|
"""
|
|
126
131
|
|
|
@@ -128,20 +133,20 @@ class V1KubernetesVirtualMachine(object):
|
|
|
128
133
|
|
|
129
134
|
@property
|
|
130
135
|
def created_at(self) -> 'datetime':
|
|
131
|
-
"""Gets the created_at of this
|
|
136
|
+
"""Gets the created_at of this V1VirtualMachine. # noqa: E501
|
|
132
137
|
|
|
133
138
|
|
|
134
|
-
:return: The created_at of this
|
|
139
|
+
:return: The created_at of this V1VirtualMachine. # noqa: E501
|
|
135
140
|
:rtype: datetime
|
|
136
141
|
"""
|
|
137
142
|
return self._created_at
|
|
138
143
|
|
|
139
144
|
@created_at.setter
|
|
140
145
|
def created_at(self, created_at: 'datetime'):
|
|
141
|
-
"""Sets the created_at of this
|
|
146
|
+
"""Sets the created_at of this V1VirtualMachine.
|
|
142
147
|
|
|
143
148
|
|
|
144
|
-
:param created_at: The created_at of this
|
|
149
|
+
:param created_at: The created_at of this V1VirtualMachine. # noqa: E501
|
|
145
150
|
:type: datetime
|
|
146
151
|
"""
|
|
147
152
|
|
|
@@ -149,62 +154,62 @@ class V1KubernetesVirtualMachine(object):
|
|
|
149
154
|
|
|
150
155
|
@property
|
|
151
156
|
def deleted_at(self) -> 'datetime':
|
|
152
|
-
"""Gets the deleted_at of this
|
|
157
|
+
"""Gets the deleted_at of this V1VirtualMachine. # noqa: E501
|
|
153
158
|
|
|
154
159
|
|
|
155
|
-
:return: The deleted_at of this
|
|
160
|
+
:return: The deleted_at of this V1VirtualMachine. # noqa: E501
|
|
156
161
|
:rtype: datetime
|
|
157
162
|
"""
|
|
158
163
|
return self._deleted_at
|
|
159
164
|
|
|
160
165
|
@deleted_at.setter
|
|
161
166
|
def deleted_at(self, deleted_at: 'datetime'):
|
|
162
|
-
"""Sets the deleted_at of this
|
|
167
|
+
"""Sets the deleted_at of this V1VirtualMachine.
|
|
163
168
|
|
|
164
169
|
|
|
165
|
-
:param deleted_at: The deleted_at of this
|
|
170
|
+
:param deleted_at: The deleted_at of this V1VirtualMachine. # noqa: E501
|
|
166
171
|
:type: datetime
|
|
167
172
|
"""
|
|
168
173
|
|
|
169
174
|
self._deleted_at = deleted_at
|
|
170
175
|
|
|
171
176
|
@property
|
|
172
|
-
def
|
|
173
|
-
"""Gets the
|
|
177
|
+
def deployment_id(self) -> 'str':
|
|
178
|
+
"""Gets the deployment_id of this V1VirtualMachine. # noqa: E501
|
|
174
179
|
|
|
175
180
|
|
|
176
|
-
:return: The
|
|
177
|
-
:rtype:
|
|
181
|
+
:return: The deployment_id of this V1VirtualMachine. # noqa: E501
|
|
182
|
+
:rtype: str
|
|
178
183
|
"""
|
|
179
|
-
return self.
|
|
184
|
+
return self._deployment_id
|
|
180
185
|
|
|
181
|
-
@
|
|
182
|
-
def
|
|
183
|
-
"""Sets the
|
|
186
|
+
@deployment_id.setter
|
|
187
|
+
def deployment_id(self, deployment_id: 'str'):
|
|
188
|
+
"""Sets the deployment_id of this V1VirtualMachine.
|
|
184
189
|
|
|
185
190
|
|
|
186
|
-
:param
|
|
187
|
-
:type:
|
|
191
|
+
:param deployment_id: The deployment_id of this V1VirtualMachine. # noqa: E501
|
|
192
|
+
:type: str
|
|
188
193
|
"""
|
|
189
194
|
|
|
190
|
-
self.
|
|
195
|
+
self._deployment_id = deployment_id
|
|
191
196
|
|
|
192
197
|
@property
|
|
193
198
|
def id(self) -> 'str':
|
|
194
|
-
"""Gets the id of this
|
|
199
|
+
"""Gets the id of this V1VirtualMachine. # noqa: E501
|
|
195
200
|
|
|
196
201
|
|
|
197
|
-
:return: The id of this
|
|
202
|
+
:return: The id of this V1VirtualMachine. # noqa: E501
|
|
198
203
|
:rtype: str
|
|
199
204
|
"""
|
|
200
205
|
return self._id
|
|
201
206
|
|
|
202
207
|
@id.setter
|
|
203
208
|
def id(self, id: 'str'):
|
|
204
|
-
"""Sets the id of this
|
|
209
|
+
"""Sets the id of this V1VirtualMachine.
|
|
205
210
|
|
|
206
211
|
|
|
207
|
-
:param id: The id of this
|
|
212
|
+
:param id: The id of this V1VirtualMachine. # noqa: E501
|
|
208
213
|
:type: str
|
|
209
214
|
"""
|
|
210
215
|
|
|
@@ -212,20 +217,20 @@ class V1KubernetesVirtualMachine(object):
|
|
|
212
217
|
|
|
213
218
|
@property
|
|
214
219
|
def name(self) -> 'str':
|
|
215
|
-
"""Gets the name of this
|
|
220
|
+
"""Gets the name of this V1VirtualMachine. # noqa: E501
|
|
216
221
|
|
|
217
222
|
|
|
218
|
-
:return: The name of this
|
|
223
|
+
:return: The name of this V1VirtualMachine. # noqa: E501
|
|
219
224
|
:rtype: str
|
|
220
225
|
"""
|
|
221
226
|
return self._name
|
|
222
227
|
|
|
223
228
|
@name.setter
|
|
224
229
|
def name(self, name: 'str'):
|
|
225
|
-
"""Sets the name of this
|
|
230
|
+
"""Sets the name of this V1VirtualMachine.
|
|
226
231
|
|
|
227
232
|
|
|
228
|
-
:param name: The name of this
|
|
233
|
+
:param name: The name of this V1VirtualMachine. # noqa: E501
|
|
229
234
|
:type: str
|
|
230
235
|
"""
|
|
231
236
|
|
|
@@ -233,20 +238,20 @@ class V1KubernetesVirtualMachine(object):
|
|
|
233
238
|
|
|
234
239
|
@property
|
|
235
240
|
def node(self) -> 'str':
|
|
236
|
-
"""Gets the node of this
|
|
241
|
+
"""Gets the node of this V1VirtualMachine. # noqa: E501
|
|
237
242
|
|
|
238
243
|
|
|
239
|
-
:return: The node of this
|
|
244
|
+
:return: The node of this V1VirtualMachine. # noqa: E501
|
|
240
245
|
:rtype: str
|
|
241
246
|
"""
|
|
242
247
|
return self._node
|
|
243
248
|
|
|
244
249
|
@node.setter
|
|
245
250
|
def node(self, node: 'str'):
|
|
246
|
-
"""Sets the node of this
|
|
251
|
+
"""Sets the node of this V1VirtualMachine.
|
|
247
252
|
|
|
248
253
|
|
|
249
|
-
:param node: The node of this
|
|
254
|
+
:param node: The node of this V1VirtualMachine. # noqa: E501
|
|
250
255
|
:type: str
|
|
251
256
|
"""
|
|
252
257
|
|
|
@@ -254,62 +259,83 @@ class V1KubernetesVirtualMachine(object):
|
|
|
254
259
|
|
|
255
260
|
@property
|
|
256
261
|
def project_id(self) -> 'str':
|
|
257
|
-
"""Gets the project_id of this
|
|
262
|
+
"""Gets the project_id of this V1VirtualMachine. # noqa: E501
|
|
258
263
|
|
|
259
264
|
|
|
260
|
-
:return: The project_id of this
|
|
265
|
+
:return: The project_id of this V1VirtualMachine. # noqa: E501
|
|
261
266
|
:rtype: str
|
|
262
267
|
"""
|
|
263
268
|
return self._project_id
|
|
264
269
|
|
|
265
270
|
@project_id.setter
|
|
266
271
|
def project_id(self, project_id: 'str'):
|
|
267
|
-
"""Sets the project_id of this
|
|
272
|
+
"""Sets the project_id of this V1VirtualMachine.
|
|
268
273
|
|
|
269
274
|
|
|
270
|
-
:param project_id: The project_id of this
|
|
275
|
+
:param project_id: The project_id of this V1VirtualMachine. # noqa: E501
|
|
271
276
|
:type: str
|
|
272
277
|
"""
|
|
273
278
|
|
|
274
279
|
self._project_id = project_id
|
|
275
280
|
|
|
276
281
|
@property
|
|
277
|
-
def provider_config(self) -> '
|
|
278
|
-
"""Gets the provider_config of this
|
|
282
|
+
def provider_config(self) -> 'V1VmProviderConfiguration':
|
|
283
|
+
"""Gets the provider_config of this V1VirtualMachine. # noqa: E501
|
|
279
284
|
|
|
280
285
|
|
|
281
|
-
:return: The provider_config of this
|
|
282
|
-
:rtype:
|
|
286
|
+
:return: The provider_config of this V1VirtualMachine. # noqa: E501
|
|
287
|
+
:rtype: V1VmProviderConfiguration
|
|
283
288
|
"""
|
|
284
289
|
return self._provider_config
|
|
285
290
|
|
|
286
291
|
@provider_config.setter
|
|
287
|
-
def provider_config(self, provider_config: '
|
|
288
|
-
"""Sets the provider_config of this
|
|
292
|
+
def provider_config(self, provider_config: 'V1VmProviderConfiguration'):
|
|
293
|
+
"""Sets the provider_config of this V1VirtualMachine.
|
|
289
294
|
|
|
290
295
|
|
|
291
|
-
:param provider_config: The provider_config of this
|
|
292
|
-
:type:
|
|
296
|
+
:param provider_config: The provider_config of this V1VirtualMachine. # noqa: E501
|
|
297
|
+
:type: V1VmProviderConfiguration
|
|
293
298
|
"""
|
|
294
299
|
|
|
295
300
|
self._provider_config = provider_config
|
|
296
301
|
|
|
302
|
+
@property
|
|
303
|
+
def state(self) -> 'str':
|
|
304
|
+
"""Gets the state of this V1VirtualMachine. # noqa: E501
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:return: The state of this V1VirtualMachine. # noqa: E501
|
|
308
|
+
:rtype: str
|
|
309
|
+
"""
|
|
310
|
+
return self._state
|
|
311
|
+
|
|
312
|
+
@state.setter
|
|
313
|
+
def state(self, state: 'str'):
|
|
314
|
+
"""Sets the state of this V1VirtualMachine.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param state: The state of this V1VirtualMachine. # noqa: E501
|
|
318
|
+
:type: str
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
self._state = state
|
|
322
|
+
|
|
297
323
|
@property
|
|
298
324
|
def updated_at(self) -> 'datetime':
|
|
299
|
-
"""Gets the updated_at of this
|
|
325
|
+
"""Gets the updated_at of this V1VirtualMachine. # noqa: E501
|
|
300
326
|
|
|
301
327
|
|
|
302
|
-
:return: The updated_at of this
|
|
328
|
+
:return: The updated_at of this V1VirtualMachine. # noqa: E501
|
|
303
329
|
:rtype: datetime
|
|
304
330
|
"""
|
|
305
331
|
return self._updated_at
|
|
306
332
|
|
|
307
333
|
@updated_at.setter
|
|
308
334
|
def updated_at(self, updated_at: 'datetime'):
|
|
309
|
-
"""Sets the updated_at of this
|
|
335
|
+
"""Sets the updated_at of this V1VirtualMachine.
|
|
310
336
|
|
|
311
337
|
|
|
312
|
-
:param updated_at: The updated_at of this
|
|
338
|
+
:param updated_at: The updated_at of this V1VirtualMachine. # noqa: E501
|
|
313
339
|
:type: datetime
|
|
314
340
|
"""
|
|
315
341
|
|
|
@@ -317,20 +343,20 @@ class V1KubernetesVirtualMachine(object):
|
|
|
317
343
|
|
|
318
344
|
@property
|
|
319
345
|
def user_id(self) -> 'str':
|
|
320
|
-
"""Gets the user_id of this
|
|
346
|
+
"""Gets the user_id of this V1VirtualMachine. # noqa: E501
|
|
321
347
|
|
|
322
348
|
|
|
323
|
-
:return: The user_id of this
|
|
349
|
+
:return: The user_id of this V1VirtualMachine. # noqa: E501
|
|
324
350
|
:rtype: str
|
|
325
351
|
"""
|
|
326
352
|
return self._user_id
|
|
327
353
|
|
|
328
354
|
@user_id.setter
|
|
329
355
|
def user_id(self, user_id: 'str'):
|
|
330
|
-
"""Sets the user_id of this
|
|
356
|
+
"""Sets the user_id of this V1VirtualMachine.
|
|
331
357
|
|
|
332
358
|
|
|
333
|
-
:param user_id: The user_id of this
|
|
359
|
+
:param user_id: The user_id of this V1VirtualMachine. # noqa: E501
|
|
334
360
|
:type: str
|
|
335
361
|
"""
|
|
336
362
|
|
|
@@ -357,7 +383,7 @@ class V1KubernetesVirtualMachine(object):
|
|
|
357
383
|
))
|
|
358
384
|
else:
|
|
359
385
|
result[attr] = value
|
|
360
|
-
if issubclass(
|
|
386
|
+
if issubclass(V1VirtualMachine, dict):
|
|
361
387
|
for key, value in self.items():
|
|
362
388
|
result[key] = value
|
|
363
389
|
|
|
@@ -371,13 +397,13 @@ class V1KubernetesVirtualMachine(object):
|
|
|
371
397
|
"""For `print` and `pprint`"""
|
|
372
398
|
return self.to_str()
|
|
373
399
|
|
|
374
|
-
def __eq__(self, other: '
|
|
400
|
+
def __eq__(self, other: 'V1VirtualMachine') -> bool:
|
|
375
401
|
"""Returns true if both objects are equal"""
|
|
376
|
-
if not isinstance(other,
|
|
402
|
+
if not isinstance(other, V1VirtualMachine):
|
|
377
403
|
return False
|
|
378
404
|
|
|
379
405
|
return self.__dict__ == other.__dict__
|
|
380
406
|
|
|
381
|
-
def __ne__(self, other: '
|
|
407
|
+
def __ne__(self, other: 'V1VirtualMachine') -> bool:
|
|
382
408
|
"""Returns true if both objects are not equal"""
|
|
383
409
|
return not self == other
|
|
@@ -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 V1VmConfiguration(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 V1KubevirtVmConfiguration(object):
|
|
|
42
42
|
"""
|
|
43
43
|
swagger_types = {
|
|
44
44
|
'image': 'str',
|
|
45
|
-
'resources': '
|
|
45
|
+
'resources': 'V1Resources'
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
attribute_map = {
|
|
@@ -50,8 +50,8 @@ class V1KubevirtVmConfiguration(object):
|
|
|
50
50
|
'resources': 'resources'
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
def __init__(self, image: 'str' =None, resources: '
|
|
54
|
-
"""
|
|
53
|
+
def __init__(self, image: 'str' =None, resources: 'V1Resources' =None): # noqa: E501
|
|
54
|
+
"""V1VmConfiguration - a model defined in Swagger""" # noqa: E501
|
|
55
55
|
self._image = None
|
|
56
56
|
self._resources = None
|
|
57
57
|
self.discriminator = None
|
|
@@ -62,42 +62,42 @@ class V1KubevirtVmConfiguration(object):
|
|
|
62
62
|
|
|
63
63
|
@property
|
|
64
64
|
def image(self) -> 'str':
|
|
65
|
-
"""Gets the image of this
|
|
65
|
+
"""Gets the image of this V1VmConfiguration. # noqa: E501
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
:return: The image of this
|
|
68
|
+
:return: The image of this V1VmConfiguration. # noqa: E501
|
|
69
69
|
:rtype: str
|
|
70
70
|
"""
|
|
71
71
|
return self._image
|
|
72
72
|
|
|
73
73
|
@image.setter
|
|
74
74
|
def image(self, image: 'str'):
|
|
75
|
-
"""Sets the image of this
|
|
75
|
+
"""Sets the image of this V1VmConfiguration.
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
:param image: The image of this
|
|
78
|
+
:param image: The image of this V1VmConfiguration. # noqa: E501
|
|
79
79
|
:type: str
|
|
80
80
|
"""
|
|
81
81
|
|
|
82
82
|
self._image = image
|
|
83
83
|
|
|
84
84
|
@property
|
|
85
|
-
def resources(self) -> '
|
|
86
|
-
"""Gets the resources of this
|
|
85
|
+
def resources(self) -> 'V1Resources':
|
|
86
|
+
"""Gets the resources of this V1VmConfiguration. # noqa: E501
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
:return: The resources of this
|
|
90
|
-
:rtype:
|
|
89
|
+
:return: The resources of this V1VmConfiguration. # noqa: E501
|
|
90
|
+
:rtype: V1Resources
|
|
91
91
|
"""
|
|
92
92
|
return self._resources
|
|
93
93
|
|
|
94
94
|
@resources.setter
|
|
95
|
-
def resources(self, resources: '
|
|
96
|
-
"""Sets the resources of this
|
|
95
|
+
def resources(self, resources: 'V1Resources'):
|
|
96
|
+
"""Sets the resources of this V1VmConfiguration.
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
:param resources: The resources of this
|
|
100
|
-
:type:
|
|
99
|
+
:param resources: The resources of this V1VmConfiguration. # noqa: E501
|
|
100
|
+
:type: V1Resources
|
|
101
101
|
"""
|
|
102
102
|
|
|
103
103
|
self._resources = resources
|
|
@@ -123,7 +123,7 @@ class V1KubevirtVmConfiguration(object):
|
|
|
123
123
|
))
|
|
124
124
|
else:
|
|
125
125
|
result[attr] = value
|
|
126
|
-
if issubclass(
|
|
126
|
+
if issubclass(V1VmConfiguration, dict):
|
|
127
127
|
for key, value in self.items():
|
|
128
128
|
result[key] = value
|
|
129
129
|
|
|
@@ -137,13 +137,13 @@ class V1KubevirtVmConfiguration(object):
|
|
|
137
137
|
"""For `print` and `pprint`"""
|
|
138
138
|
return self.to_str()
|
|
139
139
|
|
|
140
|
-
def __eq__(self, other: '
|
|
140
|
+
def __eq__(self, other: 'V1VmConfiguration') -> bool:
|
|
141
141
|
"""Returns true if both objects are equal"""
|
|
142
|
-
if not isinstance(other,
|
|
142
|
+
if not isinstance(other, V1VmConfiguration):
|
|
143
143
|
return False
|
|
144
144
|
|
|
145
145
|
return self.__dict__ == other.__dict__
|
|
146
146
|
|
|
147
|
-
def __ne__(self, other: '
|
|
147
|
+
def __ne__(self, other: 'V1VmConfiguration') -> bool:
|
|
148
148
|
"""Returns true if both objects are not equal"""
|
|
149
149
|
return not self == other
|