lightning-sdk 2025.12.16__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/org_api.py +7 -0
- lightning_sdk/api/studio_api.py +223 -36
- lightning_sdk/api/teamspace_api.py +28 -9
- lightning_sdk/api/user_api.py +5 -0
- 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/download.py +2 -1
- lightning_sdk/cli/legacy/run.py +13 -2
- lightning_sdk/cli/legacy/studios_menu.py +8 -1
- 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 +24 -5
- lightning_sdk/job/job.py +12 -5
- lightning_sdk/job/v1.py +5 -2
- lightning_sdk/job/v2.py +9 -1
- lightning_sdk/k8s_cluster.py +9 -10
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +46 -3
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +118 -1
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +787 -125
- 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/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/storage_service_api.py +5 -1
- lightning_sdk/lightning_cloud/openapi/api/virtual_machine_service_api.py +557 -0
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -3
- lightning_sdk/lightning_cloud/openapi/models/cloud_space_environment_template_service_update_cloud_space_environment_template_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_add_container_registry_body.py +123 -0
- 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 +79 -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_refresh_container_registry_credentials_body.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_validate_container_registry_body.py +97 -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_add_container_registry_response.py +123 -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 +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.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_container_registry.py +253 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +281 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_integration.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_status.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -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_cudo_direct_v1.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_container_registry_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_logger_media_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_virtual_machine_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_ecr_registry_config.py} +49 -49
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_config_input.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ecr_registry_details.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_get_artifacts_page_response.py +29 -3
- 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_get_user_response.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_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 +105 -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 +357 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +123 -0
- 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_virtual_machines_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -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_node_metrics.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +123 -0
- 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_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +217 -113
- lightning_sdk/lightning_cloud/openapi/models/v1_validate_container_registry_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_virtual_machine.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vm_configuration.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_vm_provider_configuration.py +227 -0
- 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/mmt/base.py +26 -7
- lightning_sdk/mmt/mmt.py +11 -6
- lightning_sdk/mmt/v1.py +5 -2
- lightning_sdk/mmt/v2.py +5 -2
- lightning_sdk/organization.py +10 -1
- lightning_sdk/owner.py +4 -0
- lightning_sdk/plugin.py +2 -2
- lightning_sdk/studio.py +47 -6
- lightning_sdk/user.py +22 -2
- lightning_sdk/utils/logging.py +2 -1
- lightning_sdk/utils/resolve.py +9 -7
- {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +139 -94
- {lightning_sdk-2025.12.16.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/source_code/logs_socket_api.py +0 -103
- /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mm_ts_response.py → v1_list_filesystem_mmts_response.py} +0 -0
- {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.16.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,409 @@
|
|
|
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 V1VirtualMachine(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
|
+
'cluster_id': 'str',
|
|
45
|
+
'created_at': 'datetime',
|
|
46
|
+
'deleted_at': 'datetime',
|
|
47
|
+
'deployment_id': 'str',
|
|
48
|
+
'id': 'str',
|
|
49
|
+
'name': 'str',
|
|
50
|
+
'node': 'str',
|
|
51
|
+
'project_id': 'str',
|
|
52
|
+
'provider_config': 'V1VmProviderConfiguration',
|
|
53
|
+
'state': 'str',
|
|
54
|
+
'updated_at': 'datetime',
|
|
55
|
+
'user_id': 'str'
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
attribute_map = {
|
|
59
|
+
'cluster_id': 'clusterId',
|
|
60
|
+
'created_at': 'createdAt',
|
|
61
|
+
'deleted_at': 'deletedAt',
|
|
62
|
+
'deployment_id': 'deploymentId',
|
|
63
|
+
'id': 'id',
|
|
64
|
+
'name': 'name',
|
|
65
|
+
'node': 'node',
|
|
66
|
+
'project_id': 'projectId',
|
|
67
|
+
'provider_config': 'providerConfig',
|
|
68
|
+
'state': 'state',
|
|
69
|
+
'updated_at': 'updatedAt',
|
|
70
|
+
'user_id': 'userId'
|
|
71
|
+
}
|
|
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
|
|
75
|
+
self._cluster_id = None
|
|
76
|
+
self._created_at = None
|
|
77
|
+
self._deleted_at = None
|
|
78
|
+
self._deployment_id = None
|
|
79
|
+
self._id = None
|
|
80
|
+
self._name = None
|
|
81
|
+
self._node = None
|
|
82
|
+
self._project_id = None
|
|
83
|
+
self._provider_config = None
|
|
84
|
+
self._state = None
|
|
85
|
+
self._updated_at = None
|
|
86
|
+
self._user_id = None
|
|
87
|
+
self.discriminator = None
|
|
88
|
+
if cluster_id is not None:
|
|
89
|
+
self.cluster_id = cluster_id
|
|
90
|
+
if created_at is not None:
|
|
91
|
+
self.created_at = created_at
|
|
92
|
+
if deleted_at is not None:
|
|
93
|
+
self.deleted_at = deleted_at
|
|
94
|
+
if deployment_id is not None:
|
|
95
|
+
self.deployment_id = deployment_id
|
|
96
|
+
if id is not None:
|
|
97
|
+
self.id = id
|
|
98
|
+
if name is not None:
|
|
99
|
+
self.name = name
|
|
100
|
+
if node is not None:
|
|
101
|
+
self.node = node
|
|
102
|
+
if project_id is not None:
|
|
103
|
+
self.project_id = project_id
|
|
104
|
+
if provider_config is not None:
|
|
105
|
+
self.provider_config = provider_config
|
|
106
|
+
if state is not None:
|
|
107
|
+
self.state = state
|
|
108
|
+
if updated_at is not None:
|
|
109
|
+
self.updated_at = updated_at
|
|
110
|
+
if user_id is not None:
|
|
111
|
+
self.user_id = user_id
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def cluster_id(self) -> 'str':
|
|
115
|
+
"""Gets the cluster_id of this V1VirtualMachine. # noqa: E501
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:return: The cluster_id of this V1VirtualMachine. # noqa: E501
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._cluster_id
|
|
122
|
+
|
|
123
|
+
@cluster_id.setter
|
|
124
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
125
|
+
"""Sets the cluster_id of this V1VirtualMachine.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param cluster_id: The cluster_id of this V1VirtualMachine. # noqa: E501
|
|
129
|
+
:type: str
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._cluster_id = cluster_id
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def created_at(self) -> 'datetime':
|
|
136
|
+
"""Gets the created_at of this V1VirtualMachine. # noqa: E501
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:return: The created_at of this V1VirtualMachine. # noqa: E501
|
|
140
|
+
:rtype: datetime
|
|
141
|
+
"""
|
|
142
|
+
return self._created_at
|
|
143
|
+
|
|
144
|
+
@created_at.setter
|
|
145
|
+
def created_at(self, created_at: 'datetime'):
|
|
146
|
+
"""Sets the created_at of this V1VirtualMachine.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:param created_at: The created_at of this V1VirtualMachine. # noqa: E501
|
|
150
|
+
:type: datetime
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._created_at = created_at
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def deleted_at(self) -> 'datetime':
|
|
157
|
+
"""Gets the deleted_at of this V1VirtualMachine. # noqa: E501
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:return: The deleted_at of this V1VirtualMachine. # noqa: E501
|
|
161
|
+
:rtype: datetime
|
|
162
|
+
"""
|
|
163
|
+
return self._deleted_at
|
|
164
|
+
|
|
165
|
+
@deleted_at.setter
|
|
166
|
+
def deleted_at(self, deleted_at: 'datetime'):
|
|
167
|
+
"""Sets the deleted_at of this V1VirtualMachine.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:param deleted_at: The deleted_at of this V1VirtualMachine. # noqa: E501
|
|
171
|
+
:type: datetime
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
self._deleted_at = deleted_at
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
def deployment_id(self) -> 'str':
|
|
178
|
+
"""Gets the deployment_id of this V1VirtualMachine. # noqa: E501
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:return: The deployment_id of this V1VirtualMachine. # noqa: E501
|
|
182
|
+
:rtype: str
|
|
183
|
+
"""
|
|
184
|
+
return self._deployment_id
|
|
185
|
+
|
|
186
|
+
@deployment_id.setter
|
|
187
|
+
def deployment_id(self, deployment_id: 'str'):
|
|
188
|
+
"""Sets the deployment_id of this V1VirtualMachine.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param deployment_id: The deployment_id of this V1VirtualMachine. # noqa: E501
|
|
192
|
+
:type: str
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
self._deployment_id = deployment_id
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def id(self) -> 'str':
|
|
199
|
+
"""Gets the id of this V1VirtualMachine. # noqa: E501
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:return: The id of this V1VirtualMachine. # noqa: E501
|
|
203
|
+
:rtype: str
|
|
204
|
+
"""
|
|
205
|
+
return self._id
|
|
206
|
+
|
|
207
|
+
@id.setter
|
|
208
|
+
def id(self, id: 'str'):
|
|
209
|
+
"""Sets the id of this V1VirtualMachine.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param id: The id of this V1VirtualMachine. # noqa: E501
|
|
213
|
+
:type: str
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
self._id = id
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def name(self) -> 'str':
|
|
220
|
+
"""Gets the name of this V1VirtualMachine. # noqa: E501
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:return: The name of this V1VirtualMachine. # noqa: E501
|
|
224
|
+
:rtype: str
|
|
225
|
+
"""
|
|
226
|
+
return self._name
|
|
227
|
+
|
|
228
|
+
@name.setter
|
|
229
|
+
def name(self, name: 'str'):
|
|
230
|
+
"""Sets the name of this V1VirtualMachine.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param name: The name of this V1VirtualMachine. # noqa: E501
|
|
234
|
+
:type: str
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
self._name = name
|
|
238
|
+
|
|
239
|
+
@property
|
|
240
|
+
def node(self) -> 'str':
|
|
241
|
+
"""Gets the node of this V1VirtualMachine. # noqa: E501
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:return: The node of this V1VirtualMachine. # noqa: E501
|
|
245
|
+
:rtype: str
|
|
246
|
+
"""
|
|
247
|
+
return self._node
|
|
248
|
+
|
|
249
|
+
@node.setter
|
|
250
|
+
def node(self, node: 'str'):
|
|
251
|
+
"""Sets the node of this V1VirtualMachine.
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:param node: The node of this V1VirtualMachine. # noqa: E501
|
|
255
|
+
:type: str
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._node = node
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def project_id(self) -> 'str':
|
|
262
|
+
"""Gets the project_id of this V1VirtualMachine. # noqa: E501
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:return: The project_id of this V1VirtualMachine. # noqa: E501
|
|
266
|
+
:rtype: str
|
|
267
|
+
"""
|
|
268
|
+
return self._project_id
|
|
269
|
+
|
|
270
|
+
@project_id.setter
|
|
271
|
+
def project_id(self, project_id: 'str'):
|
|
272
|
+
"""Sets the project_id of this V1VirtualMachine.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:param project_id: The project_id of this V1VirtualMachine. # noqa: E501
|
|
276
|
+
:type: str
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
self._project_id = project_id
|
|
280
|
+
|
|
281
|
+
@property
|
|
282
|
+
def provider_config(self) -> 'V1VmProviderConfiguration':
|
|
283
|
+
"""Gets the provider_config of this V1VirtualMachine. # noqa: E501
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:return: The provider_config of this V1VirtualMachine. # noqa: E501
|
|
287
|
+
:rtype: V1VmProviderConfiguration
|
|
288
|
+
"""
|
|
289
|
+
return self._provider_config
|
|
290
|
+
|
|
291
|
+
@provider_config.setter
|
|
292
|
+
def provider_config(self, provider_config: 'V1VmProviderConfiguration'):
|
|
293
|
+
"""Sets the provider_config of this V1VirtualMachine.
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:param provider_config: The provider_config of this V1VirtualMachine. # noqa: E501
|
|
297
|
+
:type: V1VmProviderConfiguration
|
|
298
|
+
"""
|
|
299
|
+
|
|
300
|
+
self._provider_config = provider_config
|
|
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
|
+
|
|
323
|
+
@property
|
|
324
|
+
def updated_at(self) -> 'datetime':
|
|
325
|
+
"""Gets the updated_at of this V1VirtualMachine. # noqa: E501
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
:return: The updated_at of this V1VirtualMachine. # noqa: E501
|
|
329
|
+
:rtype: datetime
|
|
330
|
+
"""
|
|
331
|
+
return self._updated_at
|
|
332
|
+
|
|
333
|
+
@updated_at.setter
|
|
334
|
+
def updated_at(self, updated_at: 'datetime'):
|
|
335
|
+
"""Sets the updated_at of this V1VirtualMachine.
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:param updated_at: The updated_at of this V1VirtualMachine. # noqa: E501
|
|
339
|
+
:type: datetime
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
self._updated_at = updated_at
|
|
343
|
+
|
|
344
|
+
@property
|
|
345
|
+
def user_id(self) -> 'str':
|
|
346
|
+
"""Gets the user_id of this V1VirtualMachine. # noqa: E501
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
:return: The user_id of this V1VirtualMachine. # noqa: E501
|
|
350
|
+
:rtype: str
|
|
351
|
+
"""
|
|
352
|
+
return self._user_id
|
|
353
|
+
|
|
354
|
+
@user_id.setter
|
|
355
|
+
def user_id(self, user_id: 'str'):
|
|
356
|
+
"""Sets the user_id of this V1VirtualMachine.
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:param user_id: The user_id of this V1VirtualMachine. # noqa: E501
|
|
360
|
+
:type: str
|
|
361
|
+
"""
|
|
362
|
+
|
|
363
|
+
self._user_id = user_id
|
|
364
|
+
|
|
365
|
+
def to_dict(self) -> dict:
|
|
366
|
+
"""Returns the model properties as a dict"""
|
|
367
|
+
result = {}
|
|
368
|
+
|
|
369
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
370
|
+
value = getattr(self, attr)
|
|
371
|
+
if isinstance(value, list):
|
|
372
|
+
result[attr] = list(map(
|
|
373
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
374
|
+
value
|
|
375
|
+
))
|
|
376
|
+
elif hasattr(value, "to_dict"):
|
|
377
|
+
result[attr] = value.to_dict()
|
|
378
|
+
elif isinstance(value, dict):
|
|
379
|
+
result[attr] = dict(map(
|
|
380
|
+
lambda item: (item[0], item[1].to_dict())
|
|
381
|
+
if hasattr(item[1], "to_dict") else item,
|
|
382
|
+
value.items()
|
|
383
|
+
))
|
|
384
|
+
else:
|
|
385
|
+
result[attr] = value
|
|
386
|
+
if issubclass(V1VirtualMachine, dict):
|
|
387
|
+
for key, value in self.items():
|
|
388
|
+
result[key] = value
|
|
389
|
+
|
|
390
|
+
return result
|
|
391
|
+
|
|
392
|
+
def to_str(self) -> str:
|
|
393
|
+
"""Returns the string representation of the model"""
|
|
394
|
+
return pprint.pformat(self.to_dict())
|
|
395
|
+
|
|
396
|
+
def __repr__(self) -> str:
|
|
397
|
+
"""For `print` and `pprint`"""
|
|
398
|
+
return self.to_str()
|
|
399
|
+
|
|
400
|
+
def __eq__(self, other: 'V1VirtualMachine') -> bool:
|
|
401
|
+
"""Returns true if both objects are equal"""
|
|
402
|
+
if not isinstance(other, V1VirtualMachine):
|
|
403
|
+
return False
|
|
404
|
+
|
|
405
|
+
return self.__dict__ == other.__dict__
|
|
406
|
+
|
|
407
|
+
def __ne__(self, other: 'V1VirtualMachine') -> bool:
|
|
408
|
+
"""Returns true if both objects are not equal"""
|
|
409
|
+
return not self == other
|
|
@@ -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 V1VmConfiguration(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
|
+
'image': 'str',
|
|
45
|
+
'resources': 'V1Resources'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
attribute_map = {
|
|
49
|
+
'image': 'image',
|
|
50
|
+
'resources': 'resources'
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
def __init__(self, image: 'str' =None, resources: 'V1Resources' =None): # noqa: E501
|
|
54
|
+
"""V1VmConfiguration - a model defined in Swagger""" # noqa: E501
|
|
55
|
+
self._image = None
|
|
56
|
+
self._resources = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
if image is not None:
|
|
59
|
+
self.image = image
|
|
60
|
+
if resources is not None:
|
|
61
|
+
self.resources = resources
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def image(self) -> 'str':
|
|
65
|
+
"""Gets the image of this V1VmConfiguration. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The image of this V1VmConfiguration. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._image
|
|
72
|
+
|
|
73
|
+
@image.setter
|
|
74
|
+
def image(self, image: 'str'):
|
|
75
|
+
"""Sets the image of this V1VmConfiguration.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param image: The image of this V1VmConfiguration. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._image = image
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def resources(self) -> 'V1Resources':
|
|
86
|
+
"""Gets the resources of this V1VmConfiguration. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The resources of this V1VmConfiguration. # noqa: E501
|
|
90
|
+
:rtype: V1Resources
|
|
91
|
+
"""
|
|
92
|
+
return self._resources
|
|
93
|
+
|
|
94
|
+
@resources.setter
|
|
95
|
+
def resources(self, resources: 'V1Resources'):
|
|
96
|
+
"""Sets the resources of this V1VmConfiguration.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param resources: The resources of this V1VmConfiguration. # noqa: E501
|
|
100
|
+
:type: V1Resources
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._resources = resources
|
|
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(V1VmConfiguration, 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: 'V1VmConfiguration') -> bool:
|
|
141
|
+
"""Returns true if both objects are equal"""
|
|
142
|
+
if not isinstance(other, V1VmConfiguration):
|
|
143
|
+
return False
|
|
144
|
+
|
|
145
|
+
return self.__dict__ == other.__dict__
|
|
146
|
+
|
|
147
|
+
def __ne__(self, other: 'V1VmConfiguration') -> bool:
|
|
148
|
+
"""Returns true if both objects are not equal"""
|
|
149
|
+
return not self == other
|