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.
Files changed (130) hide show
  1. lightning_sdk/__version__.py +1 -1
  2. lightning_sdk/api/k8s_api.py +75 -29
  3. lightning_sdk/api/studio_api.py +192 -37
  4. lightning_sdk/api/teamspace_api.py +180 -54
  5. lightning_sdk/api/utils.py +8 -0
  6. lightning_sdk/cli/cp/__init__.py +67 -0
  7. lightning_sdk/cli/cp/teamspace_uploads.py +93 -0
  8. lightning_sdk/cli/entrypoint.py +2 -0
  9. lightning_sdk/cli/groups.py +22 -0
  10. lightning_sdk/cli/legacy/clusters_menu.py +2 -2
  11. lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
  12. lightning_sdk/cli/legacy/download.py +29 -98
  13. lightning_sdk/cli/legacy/run.py +13 -2
  14. lightning_sdk/cli/legacy/upload.py +24 -31
  15. lightning_sdk/cli/studio/__init__.py +4 -0
  16. lightning_sdk/cli/studio/cp.py +24 -65
  17. lightning_sdk/cli/studio/ls.py +57 -0
  18. lightning_sdk/cli/studio/rm.py +71 -0
  19. lightning_sdk/cli/utils/filesystem.py +103 -0
  20. lightning_sdk/cli/utils/logging.py +2 -1
  21. lightning_sdk/cli/utils/teamspace_selection.py +5 -0
  22. lightning_sdk/exceptions.py +31 -0
  23. lightning_sdk/job/base.py +1 -1
  24. lightning_sdk/k8s_cluster.py +9 -10
  25. lightning_sdk/lightning_cloud/__version__.py +1 -1
  26. lightning_sdk/lightning_cloud/openapi/__init__.py +43 -23
  27. lightning_sdk/lightning_cloud/openapi/api/__init__.py +2 -1
  28. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +118 -1
  29. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +378 -536
  30. lightning_sdk/lightning_cloud/openapi/api/container_registry_service_api.py +456 -0
  31. lightning_sdk/lightning_cloud/openapi/api/data_connection_service_api.py +5 -1
  32. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +11 -11
  33. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +113 -0
  34. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
  35. lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
  36. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
  37. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
  38. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +113 -0
  39. lightning_sdk/lightning_cloud/openapi/api/storage_service_api.py +5 -1
  40. lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
  41. lightning_sdk/lightning_cloud/openapi/models/__init__.py +41 -22
  42. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
  45. lightning_sdk/lightning_cloud/openapi/models/{v1_add_container_registry_response.py → cluster_service_report_machine_system_metrics_body.py} +23 -23
  46. lightning_sdk/lightning_cloud/openapi/models/container_registry_config_ecr.py +149 -0
  47. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_status.py → container_registry_provider.py} +14 -10
  48. lightning_sdk/lightning_cloud/openapi/models/container_registry_service_create_container_registry_body.py +201 -0
  49. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config_input.py → container_registry_service_refresh_container_registry_credentials_body.py} +21 -21
  50. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_config.py → jobs_service_duplicate_deployment_body.py} +51 -51
  52. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
  53. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
  54. lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
  55. lightning_sdk/lightning_cloud/openapi/models/organizations_service_update_org_role_body.py +175 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -1
  58. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +53 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +79 -27
  62. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry.py +63 -89
  64. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_add_container_registry_body.py → v1_container_registry_config.py} +16 -16
  65. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_scopes.py +149 -0
  66. lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_create_container_registry_response.py} +6 -6
  67. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
  70. lightning_sdk/lightning_cloud/openapi/models/v1_cudo_direct_v1.py +175 -0
  71. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_refresh_container_registry_credentials_body.py → v1_delete_lit_logger_media_response.py} +6 -6
  72. 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
  73. lightning_sdk/lightning_cloud/openapi/models/v1_delete_virtual_machine_response.py +97 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_describe_org_cluster_capacity_reservation_response.py +201 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
  76. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_generic_job_spec.py +79 -1
  78. lightning_sdk/lightning_cloud/openapi/models/{v1_validate_container_registry_response.py → v1_get_kubernetes_pod_logs_response.py} +37 -37
  79. lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
  80. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +27 -1
  81. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
  83. lightning_sdk/lightning_cloud/openapi/models/{v1_container_registry_integration.py → v1_k8s_incident_setting.py} +49 -23
  84. lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
  85. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
  86. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -27
  87. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
  88. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
  89. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
  90. lightning_sdk/lightning_cloud/openapi/models/v1_list_container_registries_response.py +6 -6
  91. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
  92. lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
  93. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
  94. lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
  95. lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
  96. lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
  97. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
  98. lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
  99. lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
  100. lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_mithril_direct_v1.py} +51 -51
  101. lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
  102. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  103. lightning_sdk/lightning_cloud/openapi/models/v1_refresh_container_registry_credentials_response.py +1 -27
  104. lightning_sdk/lightning_cloud/openapi/models/{cluster_service_validate_container_registry_body.py → v1_report_cloud_space_instance_idle_state_response.py} +6 -6
  105. lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
  106. lightning_sdk/lightning_cloud/openapi/models/{v1_ecr_registry_details.py → v1_tenant_credentials.py} +53 -53
  107. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +183 -157
  108. lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
  109. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
  110. lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
  111. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
  112. lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
  113. lightning_sdk/lightning_cloud/openapi/rest.py +2 -2
  114. lightning_sdk/lightning_cloud/rest_client.py +0 -2
  115. lightning_sdk/machine.py +3 -3
  116. lightning_sdk/studio.py +14 -4
  117. lightning_sdk/teamspace.py +28 -7
  118. lightning_sdk/utils/logging.py +2 -1
  119. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/METADATA +1 -5
  120. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/RECORD +125 -102
  121. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/WHEEL +1 -1
  122. lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
  123. lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
  124. lightning_sdk/lightning_cloud/openapi/models/v1_container_registry_info.py +0 -281
  125. lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
  126. lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
  127. /lightning_sdk/lightning_cloud/openapi/models/{v1_list_filesystem_mmts_response.py → v1_list_filesystem_mm_ts_response.py} +0 -0
  128. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/LICENSE +0 -0
  129. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/entry_points.txt +0 -0
  130. {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.27.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,565 @@
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 VirtualMachineServiceCreateVirtualMachineBody(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
+ 'can_download_source_code': 'bool',
45
+ 'cloud_space_environment_template_id': 'str',
46
+ 'cloud_space_instance_cpu_image_override': 'str',
47
+ 'cloud_space_instance_gpu_image_override': 'str',
48
+ 'compute_name': 'str',
49
+ 'data_connection_mounts': 'list[V1DataConnectionMount]',
50
+ 'disable_secrets': 'bool',
51
+ 'disk_size': 'str',
52
+ 'display_name': 'str',
53
+ 'name': 'str',
54
+ 'plugins': 'list[str]',
55
+ 'project_id': 'str',
56
+ 'requested_run_duration_seconds': 'str',
57
+ 'same_compute_on_resume': 'bool',
58
+ 'sandbox': 'bool',
59
+ 'seed_files': 'list[V1CloudSpaceSeedFile]',
60
+ 'source': 'V1CloudSpaceSourceType',
61
+ 'spot': 'bool'
62
+ }
63
+
64
+ attribute_map = {
65
+ 'can_download_source_code': 'canDownloadSourceCode',
66
+ 'cloud_space_environment_template_id': 'cloudSpaceEnvironmentTemplateId',
67
+ 'cloud_space_instance_cpu_image_override': 'cloudSpaceInstanceCpuImageOverride',
68
+ 'cloud_space_instance_gpu_image_override': 'cloudSpaceInstanceGpuImageOverride',
69
+ 'compute_name': 'computeName',
70
+ 'data_connection_mounts': 'dataConnectionMounts',
71
+ 'disable_secrets': 'disableSecrets',
72
+ 'disk_size': 'diskSize',
73
+ 'display_name': 'displayName',
74
+ 'name': 'name',
75
+ 'plugins': 'plugins',
76
+ 'project_id': 'projectId',
77
+ 'requested_run_duration_seconds': 'requestedRunDurationSeconds',
78
+ 'same_compute_on_resume': 'sameComputeOnResume',
79
+ 'sandbox': 'sandbox',
80
+ 'seed_files': 'seedFiles',
81
+ 'source': 'source',
82
+ 'spot': 'spot'
83
+ }
84
+
85
+ def __init__(self, can_download_source_code: 'bool' =None, cloud_space_environment_template_id: 'str' =None, cloud_space_instance_cpu_image_override: 'str' =None, cloud_space_instance_gpu_image_override: 'str' =None, compute_name: 'str' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, disable_secrets: 'bool' =None, disk_size: 'str' =None, display_name: 'str' =None, name: 'str' =None, plugins: 'list[str]' =None, project_id: 'str' =None, requested_run_duration_seconds: 'str' =None, same_compute_on_resume: 'bool' =None, sandbox: 'bool' =None, seed_files: 'list[V1CloudSpaceSeedFile]' =None, source: 'V1CloudSpaceSourceType' =None, spot: 'bool' =None): # noqa: E501
86
+ """VirtualMachineServiceCreateVirtualMachineBody - a model defined in Swagger""" # noqa: E501
87
+ self._can_download_source_code = None
88
+ self._cloud_space_environment_template_id = None
89
+ self._cloud_space_instance_cpu_image_override = None
90
+ self._cloud_space_instance_gpu_image_override = None
91
+ self._compute_name = None
92
+ self._data_connection_mounts = None
93
+ self._disable_secrets = None
94
+ self._disk_size = None
95
+ self._display_name = None
96
+ self._name = None
97
+ self._plugins = None
98
+ self._project_id = None
99
+ self._requested_run_duration_seconds = None
100
+ self._same_compute_on_resume = None
101
+ self._sandbox = None
102
+ self._seed_files = None
103
+ self._source = None
104
+ self._spot = None
105
+ self.discriminator = None
106
+ if can_download_source_code is not None:
107
+ self.can_download_source_code = can_download_source_code
108
+ if cloud_space_environment_template_id is not None:
109
+ self.cloud_space_environment_template_id = cloud_space_environment_template_id
110
+ if cloud_space_instance_cpu_image_override is not None:
111
+ self.cloud_space_instance_cpu_image_override = cloud_space_instance_cpu_image_override
112
+ if cloud_space_instance_gpu_image_override is not None:
113
+ self.cloud_space_instance_gpu_image_override = cloud_space_instance_gpu_image_override
114
+ if compute_name is not None:
115
+ self.compute_name = compute_name
116
+ if data_connection_mounts is not None:
117
+ self.data_connection_mounts = data_connection_mounts
118
+ if disable_secrets is not None:
119
+ self.disable_secrets = disable_secrets
120
+ if disk_size is not None:
121
+ self.disk_size = disk_size
122
+ if display_name is not None:
123
+ self.display_name = display_name
124
+ if name is not None:
125
+ self.name = name
126
+ if plugins is not None:
127
+ self.plugins = plugins
128
+ if project_id is not None:
129
+ self.project_id = project_id
130
+ if requested_run_duration_seconds is not None:
131
+ self.requested_run_duration_seconds = requested_run_duration_seconds
132
+ if same_compute_on_resume is not None:
133
+ self.same_compute_on_resume = same_compute_on_resume
134
+ if sandbox is not None:
135
+ self.sandbox = sandbox
136
+ if seed_files is not None:
137
+ self.seed_files = seed_files
138
+ if source is not None:
139
+ self.source = source
140
+ if spot is not None:
141
+ self.spot = spot
142
+
143
+ @property
144
+ def can_download_source_code(self) -> 'bool':
145
+ """Gets the can_download_source_code of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
146
+
147
+
148
+ :return: The can_download_source_code of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
149
+ :rtype: bool
150
+ """
151
+ return self._can_download_source_code
152
+
153
+ @can_download_source_code.setter
154
+ def can_download_source_code(self, can_download_source_code: 'bool'):
155
+ """Sets the can_download_source_code of this VirtualMachineServiceCreateVirtualMachineBody.
156
+
157
+
158
+ :param can_download_source_code: The can_download_source_code of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
159
+ :type: bool
160
+ """
161
+
162
+ self._can_download_source_code = can_download_source_code
163
+
164
+ @property
165
+ def cloud_space_environment_template_id(self) -> 'str':
166
+ """Gets the cloud_space_environment_template_id of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
167
+
168
+
169
+ :return: The cloud_space_environment_template_id of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._cloud_space_environment_template_id
173
+
174
+ @cloud_space_environment_template_id.setter
175
+ def cloud_space_environment_template_id(self, cloud_space_environment_template_id: 'str'):
176
+ """Sets the cloud_space_environment_template_id of this VirtualMachineServiceCreateVirtualMachineBody.
177
+
178
+
179
+ :param cloud_space_environment_template_id: The cloud_space_environment_template_id of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
180
+ :type: str
181
+ """
182
+
183
+ self._cloud_space_environment_template_id = cloud_space_environment_template_id
184
+
185
+ @property
186
+ def cloud_space_instance_cpu_image_override(self) -> 'str':
187
+ """Gets the cloud_space_instance_cpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
188
+
189
+
190
+ :return: The cloud_space_instance_cpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
191
+ :rtype: str
192
+ """
193
+ return self._cloud_space_instance_cpu_image_override
194
+
195
+ @cloud_space_instance_cpu_image_override.setter
196
+ def cloud_space_instance_cpu_image_override(self, cloud_space_instance_cpu_image_override: 'str'):
197
+ """Sets the cloud_space_instance_cpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody.
198
+
199
+
200
+ :param cloud_space_instance_cpu_image_override: The cloud_space_instance_cpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
201
+ :type: str
202
+ """
203
+
204
+ self._cloud_space_instance_cpu_image_override = cloud_space_instance_cpu_image_override
205
+
206
+ @property
207
+ def cloud_space_instance_gpu_image_override(self) -> 'str':
208
+ """Gets the cloud_space_instance_gpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
209
+
210
+
211
+ :return: The cloud_space_instance_gpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
212
+ :rtype: str
213
+ """
214
+ return self._cloud_space_instance_gpu_image_override
215
+
216
+ @cloud_space_instance_gpu_image_override.setter
217
+ def cloud_space_instance_gpu_image_override(self, cloud_space_instance_gpu_image_override: 'str'):
218
+ """Sets the cloud_space_instance_gpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody.
219
+
220
+
221
+ :param cloud_space_instance_gpu_image_override: The cloud_space_instance_gpu_image_override of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
222
+ :type: str
223
+ """
224
+
225
+ self._cloud_space_instance_gpu_image_override = cloud_space_instance_gpu_image_override
226
+
227
+ @property
228
+ def compute_name(self) -> 'str':
229
+ """Gets the compute_name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
230
+
231
+
232
+ :return: The compute_name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
233
+ :rtype: str
234
+ """
235
+ return self._compute_name
236
+
237
+ @compute_name.setter
238
+ def compute_name(self, compute_name: 'str'):
239
+ """Sets the compute_name of this VirtualMachineServiceCreateVirtualMachineBody.
240
+
241
+
242
+ :param compute_name: The compute_name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
243
+ :type: str
244
+ """
245
+
246
+ self._compute_name = compute_name
247
+
248
+ @property
249
+ def data_connection_mounts(self) -> 'list[V1DataConnectionMount]':
250
+ """Gets the data_connection_mounts of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
251
+
252
+
253
+ :return: The data_connection_mounts of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
254
+ :rtype: list[V1DataConnectionMount]
255
+ """
256
+ return self._data_connection_mounts
257
+
258
+ @data_connection_mounts.setter
259
+ def data_connection_mounts(self, data_connection_mounts: 'list[V1DataConnectionMount]'):
260
+ """Sets the data_connection_mounts of this VirtualMachineServiceCreateVirtualMachineBody.
261
+
262
+
263
+ :param data_connection_mounts: The data_connection_mounts of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
264
+ :type: list[V1DataConnectionMount]
265
+ """
266
+
267
+ self._data_connection_mounts = data_connection_mounts
268
+
269
+ @property
270
+ def disable_secrets(self) -> 'bool':
271
+ """Gets the disable_secrets of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
272
+
273
+
274
+ :return: The disable_secrets of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
275
+ :rtype: bool
276
+ """
277
+ return self._disable_secrets
278
+
279
+ @disable_secrets.setter
280
+ def disable_secrets(self, disable_secrets: 'bool'):
281
+ """Sets the disable_secrets of this VirtualMachineServiceCreateVirtualMachineBody.
282
+
283
+
284
+ :param disable_secrets: The disable_secrets of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
285
+ :type: bool
286
+ """
287
+
288
+ self._disable_secrets = disable_secrets
289
+
290
+ @property
291
+ def disk_size(self) -> 'str':
292
+ """Gets the disk_size of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
293
+
294
+
295
+ :return: The disk_size of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
296
+ :rtype: str
297
+ """
298
+ return self._disk_size
299
+
300
+ @disk_size.setter
301
+ def disk_size(self, disk_size: 'str'):
302
+ """Sets the disk_size of this VirtualMachineServiceCreateVirtualMachineBody.
303
+
304
+
305
+ :param disk_size: The disk_size of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
306
+ :type: str
307
+ """
308
+
309
+ self._disk_size = disk_size
310
+
311
+ @property
312
+ def display_name(self) -> 'str':
313
+ """Gets the display_name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
314
+
315
+
316
+ :return: The display_name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
317
+ :rtype: str
318
+ """
319
+ return self._display_name
320
+
321
+ @display_name.setter
322
+ def display_name(self, display_name: 'str'):
323
+ """Sets the display_name of this VirtualMachineServiceCreateVirtualMachineBody.
324
+
325
+
326
+ :param display_name: The display_name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
327
+ :type: str
328
+ """
329
+
330
+ self._display_name = display_name
331
+
332
+ @property
333
+ def name(self) -> 'str':
334
+ """Gets the name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
335
+
336
+
337
+ :return: The name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
338
+ :rtype: str
339
+ """
340
+ return self._name
341
+
342
+ @name.setter
343
+ def name(self, name: 'str'):
344
+ """Sets the name of this VirtualMachineServiceCreateVirtualMachineBody.
345
+
346
+
347
+ :param name: The name of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
348
+ :type: str
349
+ """
350
+
351
+ self._name = name
352
+
353
+ @property
354
+ def plugins(self) -> 'list[str]':
355
+ """Gets the plugins of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
356
+
357
+
358
+ :return: The plugins of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
359
+ :rtype: list[str]
360
+ """
361
+ return self._plugins
362
+
363
+ @plugins.setter
364
+ def plugins(self, plugins: 'list[str]'):
365
+ """Sets the plugins of this VirtualMachineServiceCreateVirtualMachineBody.
366
+
367
+
368
+ :param plugins: The plugins of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
369
+ :type: list[str]
370
+ """
371
+
372
+ self._plugins = plugins
373
+
374
+ @property
375
+ def project_id(self) -> 'str':
376
+ """Gets the project_id of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
377
+
378
+
379
+ :return: The project_id of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
380
+ :rtype: str
381
+ """
382
+ return self._project_id
383
+
384
+ @project_id.setter
385
+ def project_id(self, project_id: 'str'):
386
+ """Sets the project_id of this VirtualMachineServiceCreateVirtualMachineBody.
387
+
388
+
389
+ :param project_id: The project_id of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
390
+ :type: str
391
+ """
392
+
393
+ self._project_id = project_id
394
+
395
+ @property
396
+ def requested_run_duration_seconds(self) -> 'str':
397
+ """Gets the requested_run_duration_seconds of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
398
+
399
+
400
+ :return: The requested_run_duration_seconds of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
401
+ :rtype: str
402
+ """
403
+ return self._requested_run_duration_seconds
404
+
405
+ @requested_run_duration_seconds.setter
406
+ def requested_run_duration_seconds(self, requested_run_duration_seconds: 'str'):
407
+ """Sets the requested_run_duration_seconds of this VirtualMachineServiceCreateVirtualMachineBody.
408
+
409
+
410
+ :param requested_run_duration_seconds: The requested_run_duration_seconds of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
411
+ :type: str
412
+ """
413
+
414
+ self._requested_run_duration_seconds = requested_run_duration_seconds
415
+
416
+ @property
417
+ def same_compute_on_resume(self) -> 'bool':
418
+ """Gets the same_compute_on_resume of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
419
+
420
+
421
+ :return: The same_compute_on_resume of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
422
+ :rtype: bool
423
+ """
424
+ return self._same_compute_on_resume
425
+
426
+ @same_compute_on_resume.setter
427
+ def same_compute_on_resume(self, same_compute_on_resume: 'bool'):
428
+ """Sets the same_compute_on_resume of this VirtualMachineServiceCreateVirtualMachineBody.
429
+
430
+
431
+ :param same_compute_on_resume: The same_compute_on_resume of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
432
+ :type: bool
433
+ """
434
+
435
+ self._same_compute_on_resume = same_compute_on_resume
436
+
437
+ @property
438
+ def sandbox(self) -> 'bool':
439
+ """Gets the sandbox of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
440
+
441
+
442
+ :return: The sandbox of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
443
+ :rtype: bool
444
+ """
445
+ return self._sandbox
446
+
447
+ @sandbox.setter
448
+ def sandbox(self, sandbox: 'bool'):
449
+ """Sets the sandbox of this VirtualMachineServiceCreateVirtualMachineBody.
450
+
451
+
452
+ :param sandbox: The sandbox of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
453
+ :type: bool
454
+ """
455
+
456
+ self._sandbox = sandbox
457
+
458
+ @property
459
+ def seed_files(self) -> 'list[V1CloudSpaceSeedFile]':
460
+ """Gets the seed_files of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
461
+
462
+
463
+ :return: The seed_files of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
464
+ :rtype: list[V1CloudSpaceSeedFile]
465
+ """
466
+ return self._seed_files
467
+
468
+ @seed_files.setter
469
+ def seed_files(self, seed_files: 'list[V1CloudSpaceSeedFile]'):
470
+ """Sets the seed_files of this VirtualMachineServiceCreateVirtualMachineBody.
471
+
472
+
473
+ :param seed_files: The seed_files of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
474
+ :type: list[V1CloudSpaceSeedFile]
475
+ """
476
+
477
+ self._seed_files = seed_files
478
+
479
+ @property
480
+ def source(self) -> 'V1CloudSpaceSourceType':
481
+ """Gets the source of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
482
+
483
+
484
+ :return: The source of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
485
+ :rtype: V1CloudSpaceSourceType
486
+ """
487
+ return self._source
488
+
489
+ @source.setter
490
+ def source(self, source: 'V1CloudSpaceSourceType'):
491
+ """Sets the source of this VirtualMachineServiceCreateVirtualMachineBody.
492
+
493
+
494
+ :param source: The source of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
495
+ :type: V1CloudSpaceSourceType
496
+ """
497
+
498
+ self._source = source
499
+
500
+ @property
501
+ def spot(self) -> 'bool':
502
+ """Gets the spot of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
503
+
504
+
505
+ :return: The spot of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
506
+ :rtype: bool
507
+ """
508
+ return self._spot
509
+
510
+ @spot.setter
511
+ def spot(self, spot: 'bool'):
512
+ """Sets the spot of this VirtualMachineServiceCreateVirtualMachineBody.
513
+
514
+
515
+ :param spot: The spot of this VirtualMachineServiceCreateVirtualMachineBody. # noqa: E501
516
+ :type: bool
517
+ """
518
+
519
+ self._spot = spot
520
+
521
+ def to_dict(self) -> dict:
522
+ """Returns the model properties as a dict"""
523
+ result = {}
524
+
525
+ for attr, _ in six.iteritems(self.swagger_types):
526
+ value = getattr(self, attr)
527
+ if isinstance(value, list):
528
+ result[attr] = list(map(
529
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
530
+ value
531
+ ))
532
+ elif hasattr(value, "to_dict"):
533
+ result[attr] = value.to_dict()
534
+ elif isinstance(value, dict):
535
+ result[attr] = dict(map(
536
+ lambda item: (item[0], item[1].to_dict())
537
+ if hasattr(item[1], "to_dict") else item,
538
+ value.items()
539
+ ))
540
+ else:
541
+ result[attr] = value
542
+ if issubclass(VirtualMachineServiceCreateVirtualMachineBody, dict):
543
+ for key, value in self.items():
544
+ result[key] = value
545
+
546
+ return result
547
+
548
+ def to_str(self) -> str:
549
+ """Returns the string representation of the model"""
550
+ return pprint.pformat(self.to_dict())
551
+
552
+ def __repr__(self) -> str:
553
+ """For `print` and `pprint`"""
554
+ return self.to_str()
555
+
556
+ def __eq__(self, other: 'VirtualMachineServiceCreateVirtualMachineBody') -> bool:
557
+ """Returns true if both objects are equal"""
558
+ if not isinstance(other, VirtualMachineServiceCreateVirtualMachineBody):
559
+ return False
560
+
561
+ return self.__dict__ == other.__dict__
562
+
563
+ def __ne__(self, other: 'VirtualMachineServiceCreateVirtualMachineBody') -> bool:
564
+ """Returns true if both objects are not equal"""
565
+ return not self == other
@@ -0,0 +1,97 @@
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 VirtualMachineServiceUpdateVirtualMachineBody(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
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """VirtualMachineServiceUpdateVirtualMachineBody - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(VirtualMachineServiceUpdateVirtualMachineBody, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'VirtualMachineServiceUpdateVirtualMachineBody') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, VirtualMachineServiceUpdateVirtualMachineBody):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'VirtualMachineServiceUpdateVirtualMachineBody') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -49,11 +49,11 @@ class RESTResponse(io.IOBase):
49
49
 
50
50
  def getheaders(self):
51
51
  """Returns a dictionary of the response headers."""
52
- return self.urllib3_response.headers
52
+ return self.urllib3_response.getheaders()
53
53
 
54
54
  def getheader(self, name, default=None):
55
55
  """Returns a given response header."""
56
- return self.urllib3_response.headers.get(name, default)
56
+ return self.urllib3_response.getheader(name, default)
57
57
 
58
58
 
59
59
  class RESTClientObject(object):
@@ -42,7 +42,6 @@ from lightning_sdk.lightning_cloud.openapi import (
42
42
  K8SClusterServiceApi
43
43
  )
44
44
  from lightning_sdk.lightning_cloud.openapi.rest import ApiException
45
- from lightning_sdk.lightning_cloud.source_code.logs_socket_api import LightningLogsSocketAPI
46
45
 
47
46
  logger = logging.getLogger(__name__)
48
47
 
@@ -79,7 +78,6 @@ def create_swagger_client(check_context: bool = True, with_auth: bool = True):
79
78
 
80
79
 
81
80
  class GridRestClient(
82
- LightningLogsSocketAPI,
83
81
  LightningappInstanceServiceApi,
84
82
  LightningappV2ServiceApi,
85
83
  AuthServiceApi,