lightning-sdk 2025.12.17__py3-none-any.whl → 2026.1.22__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightning_sdk/__version__.py +1 -1
- lightning_sdk/api/k8s_api.py +75 -29
- lightning_sdk/api/studio_api.py +195 -33
- lightning_sdk/api/teamspace_api.py +28 -9
- lightning_sdk/cli/cp/__init__.py +64 -0
- lightning_sdk/cli/entrypoint.py +2 -0
- lightning_sdk/cli/groups.py +22 -0
- lightning_sdk/cli/legacy/clusters_menu.py +2 -2
- lightning_sdk/cli/legacy/deploy/_auth.py +7 -6
- lightning_sdk/cli/legacy/run.py +13 -2
- lightning_sdk/cli/studio/__init__.py +4 -0
- lightning_sdk/cli/studio/cp.py +20 -64
- lightning_sdk/cli/studio/ls.py +57 -0
- lightning_sdk/cli/studio/rm.py +71 -0
- lightning_sdk/cli/utils/logging.py +2 -1
- lightning_sdk/cli/utils/studio_filesystem.py +65 -0
- lightning_sdk/cli/utils/teamspace_selection.py +5 -0
- lightning_sdk/exceptions.py +4 -0
- lightning_sdk/job/base.py +1 -1
- lightning_sdk/k8s_cluster.py +9 -10
- lightning_sdk/lightning_cloud/__version__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/__init__.py +29 -11
- lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -1
- lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
- lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +268 -123
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +246 -19
- lightning_sdk/lightning_cloud/openapi/api/lightningwork_service_api.py +116 -11
- lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +588 -2
- lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +9 -1
- lightning_sdk/lightning_cloud/openapi/api/{kubernetes_virtual_machine_service_api.py → virtual_machine_service_api.py} +82 -82
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +28 -10
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_cluster_capacity_reservation_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_machine_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_create_org_cluster_capacity_reservation_body.py +409 -0
- lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_create_lit_logger_media_body.py +305 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_lit_logger_media_body.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/lit_logger_service_update_metrics_stream_body.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_capacity_reservation_used_by.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +53 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +0 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_org_cluster_capacity_reservation_response.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_ai_pod_v1.py → v1_cudo_direct_v1.py} +51 -51
- lightning_sdk/lightning_cloud/openapi/models/{v1_delete_kubernetes_virtual_machine_response.py → v1_delete_lit_logger_media_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/{kubernetes_virtual_machine_service_update_kubernetes_virtual_machine_body.py → v1_delete_virtual_machine_response.py} +6 -6
- lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -27
- lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_get_kubernetes_pod_logs_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/{v1_get_machine_response.py → v1_get_kubernetes_pod_response.py} +23 -23
- lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_joinable_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_setting.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_type.py +108 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_settings_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_pod_logs_page.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_config.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_response.py +43 -17
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_pods_sort_order.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_logger_media_response.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_models_response.py +55 -3
- lightning_sdk/lightning_cloud/openapi/models/{v1_list_kubernetes_virtual_machines_response.py → v1_list_virtual_machines_response.py} +16 -16
- lightning_sdk/lightning_cloud/openapi/models/v1_lit_logger_media.py +513 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +27 -53
- lightning_sdk/lightning_cloud/openapi/models/v1_machine_direct_v1.py +107 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_media_type.py +104 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_nebius_direct_v1.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_idle_state_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_report_machine_system_metrics_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_tenant_credentials.py +201 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -131
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubernetes_virtual_machine.py → v1_virtual_machine.py} +94 -68
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_vm_configuration.py → v1_vm_configuration.py} +20 -20
- lightning_sdk/lightning_cloud/openapi/models/{v1_kubevirt_provider_configuration.py → v1_vm_provider_configuration.py} +32 -32
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_create_virtual_machine_body.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/virtual_machine_service_update_virtual_machine_body.py +97 -0
- lightning_sdk/lightning_cloud/rest_client.py +0 -2
- lightning_sdk/machine.py +3 -3
- lightning_sdk/studio.py +14 -4
- lightning_sdk/utils/logging.py +2 -1
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/METADATA +1 -5
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/RECORD +95 -75
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/WHEEL +1 -1
- lightning_sdk/lightning_cloud/cli/__main__.py +0 -29
- lightning_sdk/lightning_cloud/openapi/models/kubernetes_virtual_machine_service_create_kubernetes_virtual_machine_body.py +0 -513
- lightning_sdk/lightning_cloud/openapi/models/v1_kubevirt_vm_resources.py +0 -201
- lightning_sdk/lightning_cloud/source_code/logs_socket_api.py +0 -103
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/entry_points.txt +0 -0
- {lightning_sdk-2025.12.17.dist-info → lightning_sdk-2026.1.22.dist-info}/top_level.txt +0 -0
|
@@ -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 ClusterServiceCreateOrgClusterCapacityReservationBody(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
|
+
'capacity_reservation_type': 'str',
|
|
45
|
+
'cloud_provider_capacity_reservation_id': 'str',
|
|
46
|
+
'end_time': 'datetime',
|
|
47
|
+
'full_cloud_provider_reservation_string': 'str',
|
|
48
|
+
'instance_type': 'str',
|
|
49
|
+
'match_pattern': 'str',
|
|
50
|
+
'num_instances': 'int',
|
|
51
|
+
'populate_from_cloud_provider': 'bool',
|
|
52
|
+
'project_id': 'str',
|
|
53
|
+
'region': 'str',
|
|
54
|
+
'start_time': 'datetime',
|
|
55
|
+
'zone': 'str'
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
attribute_map = {
|
|
59
|
+
'capacity_reservation_type': 'capacityReservationType',
|
|
60
|
+
'cloud_provider_capacity_reservation_id': 'cloudProviderCapacityReservationId',
|
|
61
|
+
'end_time': 'endTime',
|
|
62
|
+
'full_cloud_provider_reservation_string': 'fullCloudProviderReservationString',
|
|
63
|
+
'instance_type': 'instanceType',
|
|
64
|
+
'match_pattern': 'matchPattern',
|
|
65
|
+
'num_instances': 'numInstances',
|
|
66
|
+
'populate_from_cloud_provider': 'populateFromCloudProvider',
|
|
67
|
+
'project_id': 'projectId',
|
|
68
|
+
'region': 'region',
|
|
69
|
+
'start_time': 'startTime',
|
|
70
|
+
'zone': 'zone'
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
def __init__(self, capacity_reservation_type: 'str' =None, cloud_provider_capacity_reservation_id: 'str' =None, end_time: 'datetime' =None, full_cloud_provider_reservation_string: 'str' =None, instance_type: 'str' =None, match_pattern: 'str' =None, num_instances: 'int' =None, populate_from_cloud_provider: 'bool' =None, project_id: 'str' =None, region: 'str' =None, start_time: 'datetime' =None, zone: 'str' =None): # noqa: E501
|
|
74
|
+
"""ClusterServiceCreateOrgClusterCapacityReservationBody - a model defined in Swagger""" # noqa: E501
|
|
75
|
+
self._capacity_reservation_type = None
|
|
76
|
+
self._cloud_provider_capacity_reservation_id = None
|
|
77
|
+
self._end_time = None
|
|
78
|
+
self._full_cloud_provider_reservation_string = None
|
|
79
|
+
self._instance_type = None
|
|
80
|
+
self._match_pattern = None
|
|
81
|
+
self._num_instances = None
|
|
82
|
+
self._populate_from_cloud_provider = None
|
|
83
|
+
self._project_id = None
|
|
84
|
+
self._region = None
|
|
85
|
+
self._start_time = None
|
|
86
|
+
self._zone = None
|
|
87
|
+
self.discriminator = None
|
|
88
|
+
if capacity_reservation_type is not None:
|
|
89
|
+
self.capacity_reservation_type = capacity_reservation_type
|
|
90
|
+
if cloud_provider_capacity_reservation_id is not None:
|
|
91
|
+
self.cloud_provider_capacity_reservation_id = cloud_provider_capacity_reservation_id
|
|
92
|
+
if end_time is not None:
|
|
93
|
+
self.end_time = end_time
|
|
94
|
+
if full_cloud_provider_reservation_string is not None:
|
|
95
|
+
self.full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
|
|
96
|
+
if instance_type is not None:
|
|
97
|
+
self.instance_type = instance_type
|
|
98
|
+
if match_pattern is not None:
|
|
99
|
+
self.match_pattern = match_pattern
|
|
100
|
+
if num_instances is not None:
|
|
101
|
+
self.num_instances = num_instances
|
|
102
|
+
if populate_from_cloud_provider is not None:
|
|
103
|
+
self.populate_from_cloud_provider = populate_from_cloud_provider
|
|
104
|
+
if project_id is not None:
|
|
105
|
+
self.project_id = project_id
|
|
106
|
+
if region is not None:
|
|
107
|
+
self.region = region
|
|
108
|
+
if start_time is not None:
|
|
109
|
+
self.start_time = start_time
|
|
110
|
+
if zone is not None:
|
|
111
|
+
self.zone = zone
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def capacity_reservation_type(self) -> 'str':
|
|
115
|
+
"""Gets the capacity_reservation_type of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:return: The capacity_reservation_type of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._capacity_reservation_type
|
|
122
|
+
|
|
123
|
+
@capacity_reservation_type.setter
|
|
124
|
+
def capacity_reservation_type(self, capacity_reservation_type: 'str'):
|
|
125
|
+
"""Sets the capacity_reservation_type of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
:param capacity_reservation_type: The capacity_reservation_type of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
129
|
+
:type: str
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._capacity_reservation_type = capacity_reservation_type
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def cloud_provider_capacity_reservation_id(self) -> 'str':
|
|
136
|
+
"""Gets the cloud_provider_capacity_reservation_id of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
:return: The cloud_provider_capacity_reservation_id of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
140
|
+
:rtype: str
|
|
141
|
+
"""
|
|
142
|
+
return self._cloud_provider_capacity_reservation_id
|
|
143
|
+
|
|
144
|
+
@cloud_provider_capacity_reservation_id.setter
|
|
145
|
+
def cloud_provider_capacity_reservation_id(self, cloud_provider_capacity_reservation_id: 'str'):
|
|
146
|
+
"""Sets the cloud_provider_capacity_reservation_id of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
:param cloud_provider_capacity_reservation_id: The cloud_provider_capacity_reservation_id of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
150
|
+
:type: str
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._cloud_provider_capacity_reservation_id = cloud_provider_capacity_reservation_id
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def end_time(self) -> 'datetime':
|
|
157
|
+
"""Gets the end_time of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:return: The end_time of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
161
|
+
:rtype: datetime
|
|
162
|
+
"""
|
|
163
|
+
return self._end_time
|
|
164
|
+
|
|
165
|
+
@end_time.setter
|
|
166
|
+
def end_time(self, end_time: 'datetime'):
|
|
167
|
+
"""Sets the end_time of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
:param end_time: The end_time of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
171
|
+
:type: datetime
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
self._end_time = end_time
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
def full_cloud_provider_reservation_string(self) -> 'str':
|
|
178
|
+
"""Gets the full_cloud_provider_reservation_string of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:return: The full_cloud_provider_reservation_string of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
182
|
+
:rtype: str
|
|
183
|
+
"""
|
|
184
|
+
return self._full_cloud_provider_reservation_string
|
|
185
|
+
|
|
186
|
+
@full_cloud_provider_reservation_string.setter
|
|
187
|
+
def full_cloud_provider_reservation_string(self, full_cloud_provider_reservation_string: 'str'):
|
|
188
|
+
"""Sets the full_cloud_provider_reservation_string of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param full_cloud_provider_reservation_string: The full_cloud_provider_reservation_string of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
192
|
+
:type: str
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
self._full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def instance_type(self) -> 'str':
|
|
199
|
+
"""Gets the instance_type of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
:return: The instance_type of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
203
|
+
:rtype: str
|
|
204
|
+
"""
|
|
205
|
+
return self._instance_type
|
|
206
|
+
|
|
207
|
+
@instance_type.setter
|
|
208
|
+
def instance_type(self, instance_type: 'str'):
|
|
209
|
+
"""Sets the instance_type of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param instance_type: The instance_type of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
213
|
+
:type: str
|
|
214
|
+
"""
|
|
215
|
+
|
|
216
|
+
self._instance_type = instance_type
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def match_pattern(self) -> 'str':
|
|
220
|
+
"""Gets the match_pattern of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
:return: The match_pattern of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
224
|
+
:rtype: str
|
|
225
|
+
"""
|
|
226
|
+
return self._match_pattern
|
|
227
|
+
|
|
228
|
+
@match_pattern.setter
|
|
229
|
+
def match_pattern(self, match_pattern: 'str'):
|
|
230
|
+
"""Sets the match_pattern of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
:param match_pattern: The match_pattern of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
234
|
+
:type: str
|
|
235
|
+
"""
|
|
236
|
+
|
|
237
|
+
self._match_pattern = match_pattern
|
|
238
|
+
|
|
239
|
+
@property
|
|
240
|
+
def num_instances(self) -> 'int':
|
|
241
|
+
"""Gets the num_instances of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:return: The num_instances of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
245
|
+
:rtype: int
|
|
246
|
+
"""
|
|
247
|
+
return self._num_instances
|
|
248
|
+
|
|
249
|
+
@num_instances.setter
|
|
250
|
+
def num_instances(self, num_instances: 'int'):
|
|
251
|
+
"""Sets the num_instances of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
:param num_instances: The num_instances of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
255
|
+
:type: int
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._num_instances = num_instances
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def populate_from_cloud_provider(self) -> 'bool':
|
|
262
|
+
"""Gets the populate_from_cloud_provider of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
:return: The populate_from_cloud_provider of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
266
|
+
:rtype: bool
|
|
267
|
+
"""
|
|
268
|
+
return self._populate_from_cloud_provider
|
|
269
|
+
|
|
270
|
+
@populate_from_cloud_provider.setter
|
|
271
|
+
def populate_from_cloud_provider(self, populate_from_cloud_provider: 'bool'):
|
|
272
|
+
"""Sets the populate_from_cloud_provider of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
:param populate_from_cloud_provider: The populate_from_cloud_provider of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
276
|
+
:type: bool
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
self._populate_from_cloud_provider = populate_from_cloud_provider
|
|
280
|
+
|
|
281
|
+
@property
|
|
282
|
+
def project_id(self) -> 'str':
|
|
283
|
+
"""Gets the project_id of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
:return: The project_id of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
287
|
+
:rtype: str
|
|
288
|
+
"""
|
|
289
|
+
return self._project_id
|
|
290
|
+
|
|
291
|
+
@project_id.setter
|
|
292
|
+
def project_id(self, project_id: 'str'):
|
|
293
|
+
"""Sets the project_id of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:param project_id: The project_id of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
297
|
+
:type: str
|
|
298
|
+
"""
|
|
299
|
+
|
|
300
|
+
self._project_id = project_id
|
|
301
|
+
|
|
302
|
+
@property
|
|
303
|
+
def region(self) -> 'str':
|
|
304
|
+
"""Gets the region of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
:return: The region of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
308
|
+
:rtype: str
|
|
309
|
+
"""
|
|
310
|
+
return self._region
|
|
311
|
+
|
|
312
|
+
@region.setter
|
|
313
|
+
def region(self, region: 'str'):
|
|
314
|
+
"""Sets the region of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param region: The region of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
318
|
+
:type: str
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
self._region = region
|
|
322
|
+
|
|
323
|
+
@property
|
|
324
|
+
def start_time(self) -> 'datetime':
|
|
325
|
+
"""Gets the start_time of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
:return: The start_time of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
329
|
+
:rtype: datetime
|
|
330
|
+
"""
|
|
331
|
+
return self._start_time
|
|
332
|
+
|
|
333
|
+
@start_time.setter
|
|
334
|
+
def start_time(self, start_time: 'datetime'):
|
|
335
|
+
"""Sets the start_time of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
:param start_time: The start_time of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
339
|
+
:type: datetime
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
self._start_time = start_time
|
|
343
|
+
|
|
344
|
+
@property
|
|
345
|
+
def zone(self) -> 'str':
|
|
346
|
+
"""Gets the zone of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
:return: The zone of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
350
|
+
:rtype: str
|
|
351
|
+
"""
|
|
352
|
+
return self._zone
|
|
353
|
+
|
|
354
|
+
@zone.setter
|
|
355
|
+
def zone(self, zone: 'str'):
|
|
356
|
+
"""Sets the zone of this ClusterServiceCreateOrgClusterCapacityReservationBody.
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
:param zone: The zone of this ClusterServiceCreateOrgClusterCapacityReservationBody. # noqa: E501
|
|
360
|
+
:type: str
|
|
361
|
+
"""
|
|
362
|
+
|
|
363
|
+
self._zone = zone
|
|
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(ClusterServiceCreateOrgClusterCapacityReservationBody, 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: 'ClusterServiceCreateOrgClusterCapacityReservationBody') -> bool:
|
|
401
|
+
"""Returns true if both objects are equal"""
|
|
402
|
+
if not isinstance(other, ClusterServiceCreateOrgClusterCapacityReservationBody):
|
|
403
|
+
return False
|
|
404
|
+
|
|
405
|
+
return self.__dict__ == other.__dict__
|
|
406
|
+
|
|
407
|
+
def __ne__(self, other: 'ClusterServiceCreateOrgClusterCapacityReservationBody') -> bool:
|
|
408
|
+
"""Returns true if both objects are not equal"""
|
|
409
|
+
return not self == other
|
lightning_sdk/lightning_cloud/openapi/models/cluster_service_report_machine_system_metrics_body.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
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 ClusterServiceReportMachineSystemMetricsBody(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
|
+
'machine_metrics': 'list[V1SystemMetrics]'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'machine_metrics': 'machineMetrics'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, machine_metrics: 'list[V1SystemMetrics]' =None): # noqa: E501
|
|
52
|
+
"""ClusterServiceReportMachineSystemMetricsBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._machine_metrics = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if machine_metrics is not None:
|
|
56
|
+
self.machine_metrics = machine_metrics
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def machine_metrics(self) -> 'list[V1SystemMetrics]':
|
|
60
|
+
"""Gets the machine_metrics of this ClusterServiceReportMachineSystemMetricsBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The machine_metrics of this ClusterServiceReportMachineSystemMetricsBody. # noqa: E501
|
|
64
|
+
:rtype: list[V1SystemMetrics]
|
|
65
|
+
"""
|
|
66
|
+
return self._machine_metrics
|
|
67
|
+
|
|
68
|
+
@machine_metrics.setter
|
|
69
|
+
def machine_metrics(self, machine_metrics: 'list[V1SystemMetrics]'):
|
|
70
|
+
"""Sets the machine_metrics of this ClusterServiceReportMachineSystemMetricsBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param machine_metrics: The machine_metrics of this ClusterServiceReportMachineSystemMetricsBody. # noqa: E501
|
|
74
|
+
:type: list[V1SystemMetrics]
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._machine_metrics = machine_metrics
|
|
78
|
+
|
|
79
|
+
def to_dict(self) -> dict:
|
|
80
|
+
"""Returns the model properties as a dict"""
|
|
81
|
+
result = {}
|
|
82
|
+
|
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
84
|
+
value = getattr(self, attr)
|
|
85
|
+
if isinstance(value, list):
|
|
86
|
+
result[attr] = list(map(
|
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
88
|
+
value
|
|
89
|
+
))
|
|
90
|
+
elif hasattr(value, "to_dict"):
|
|
91
|
+
result[attr] = value.to_dict()
|
|
92
|
+
elif isinstance(value, dict):
|
|
93
|
+
result[attr] = dict(map(
|
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
|
96
|
+
value.items()
|
|
97
|
+
))
|
|
98
|
+
else:
|
|
99
|
+
result[attr] = value
|
|
100
|
+
if issubclass(ClusterServiceReportMachineSystemMetricsBody, dict):
|
|
101
|
+
for key, value in self.items():
|
|
102
|
+
result[key] = value
|
|
103
|
+
|
|
104
|
+
return result
|
|
105
|
+
|
|
106
|
+
def to_str(self) -> str:
|
|
107
|
+
"""Returns the string representation of the model"""
|
|
108
|
+
return pprint.pformat(self.to_dict())
|
|
109
|
+
|
|
110
|
+
def __repr__(self) -> str:
|
|
111
|
+
"""For `print` and `pprint`"""
|
|
112
|
+
return self.to_str()
|
|
113
|
+
|
|
114
|
+
def __eq__(self, other: 'ClusterServiceReportMachineSystemMetricsBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, ClusterServiceReportMachineSystemMetricsBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'ClusterServiceReportMachineSystemMetricsBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -44,6 +44,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
44
44
|
'alerts': 'list[V1ServerAlert]',
|
|
45
45
|
'app_url': 'str',
|
|
46
46
|
'bytes_to_sync': 'str',
|
|
47
|
+
'capacity_reservation_id': 'str',
|
|
47
48
|
'cloud_space_id': 'str',
|
|
48
49
|
'cloud_space_instance_id': 'str',
|
|
49
50
|
'cluster_id': 'str',
|
|
@@ -81,6 +82,7 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
81
82
|
'alerts': 'alerts',
|
|
82
83
|
'app_url': 'appUrl',
|
|
83
84
|
'bytes_to_sync': 'bytesToSync',
|
|
85
|
+
'capacity_reservation_id': 'capacityReservationId',
|
|
84
86
|
'cloud_space_id': 'cloudSpaceId',
|
|
85
87
|
'cloud_space_instance_id': 'cloudSpaceInstanceId',
|
|
86
88
|
'cluster_id': 'clusterId',
|
|
@@ -114,11 +116,12 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
114
116
|
'vscode_url': 'vscodeUrl'
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, private_ip_address: 'str' =None, public_ip_address: 'str' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
|
|
119
|
+
def __init__(self, alerts: 'list[V1ServerAlert]' =None, app_url: 'str' =None, bytes_to_sync: 'str' =None, capacity_reservation_id: 'str' =None, cloud_space_id: 'str' =None, cloud_space_instance_id: 'str' =None, cluster_id: 'str' =None, compute_config: 'V1UserRequestedComputeConfig' =None, creation_timestamp: 'datetime' =None, data_connection_mounts: 'list[V1DataConnectionMount]' =None, files_to_sync: 'str' =None, free: 'bool' =None, ide: 'str' =None, instance_id: 'str' =None, instance_region: 'str' =None, instance_url: 'str' =None, jupyterlab_url: 'str' =None, phase: 'V1CloudSpaceInstanceState' =None, price: 'float' =None, private_ip_address: 'str' =None, public_ip_address: 'str' =None, ssh_host: 'str' =None, ssh_port: 'int' =None, ssh_username: 'str' =None, start_timestamp: 'datetime' =None, startup_eta_seconds: 'str' =None, startup_percentage: 'str' =None, startup_phase: 'str' =None, startup_status: 'V1CloudSpaceInstanceStartupStatus' =None, status_message: 'str' =None, switched_at: 'datetime' =None, sync_last_updated: 'datetime' =None, termination_time: 'datetime' =None, transfer_metadata: 'V1CloudSpaceTransferMetadata' =None, vscode_url: 'str' =None): # noqa: E501
|
|
118
120
|
"""Externalv1CloudSpaceInstanceStatus - a model defined in Swagger""" # noqa: E501
|
|
119
121
|
self._alerts = None
|
|
120
122
|
self._app_url = None
|
|
121
123
|
self._bytes_to_sync = None
|
|
124
|
+
self._capacity_reservation_id = None
|
|
122
125
|
self._cloud_space_id = None
|
|
123
126
|
self._cloud_space_instance_id = None
|
|
124
127
|
self._cluster_id = None
|
|
@@ -157,6 +160,8 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
157
160
|
self.app_url = app_url
|
|
158
161
|
if bytes_to_sync is not None:
|
|
159
162
|
self.bytes_to_sync = bytes_to_sync
|
|
163
|
+
if capacity_reservation_id is not None:
|
|
164
|
+
self.capacity_reservation_id = capacity_reservation_id
|
|
160
165
|
if cloud_space_id is not None:
|
|
161
166
|
self.cloud_space_id = cloud_space_id
|
|
162
167
|
if cloud_space_instance_id is not None:
|
|
@@ -283,6 +288,27 @@ class Externalv1CloudSpaceInstanceStatus(object):
|
|
|
283
288
|
|
|
284
289
|
self._bytes_to_sync = bytes_to_sync
|
|
285
290
|
|
|
291
|
+
@property
|
|
292
|
+
def capacity_reservation_id(self) -> 'str':
|
|
293
|
+
"""Gets the capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
:return: The capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
297
|
+
:rtype: str
|
|
298
|
+
"""
|
|
299
|
+
return self._capacity_reservation_id
|
|
300
|
+
|
|
301
|
+
@capacity_reservation_id.setter
|
|
302
|
+
def capacity_reservation_id(self, capacity_reservation_id: 'str'):
|
|
303
|
+
"""Sets the capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus.
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
:param capacity_reservation_id: The capacity_reservation_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|
|
307
|
+
:type: str
|
|
308
|
+
"""
|
|
309
|
+
|
|
310
|
+
self._capacity_reservation_id = capacity_reservation_id
|
|
311
|
+
|
|
286
312
|
@property
|
|
287
313
|
def cloud_space_id(self) -> 'str':
|
|
288
314
|
"""Gets the cloud_space_id of this Externalv1CloudSpaceInstanceStatus. # noqa: E501
|